mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-16 04:03:17 +08:00
💄 调整名片换行处理
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<span>{{ parseNameCard(props.data.desc) }}</span>
|
||||
<span>获取途径:{{ props.data.source }}</span>
|
||||
</div>
|
||||
<div class="ton-type">{{ props.data.type }}</div>
|
||||
<div class="ton-type" :title="`ID:${props.data.id}`">{{ props.data.type }}</div>
|
||||
<v-btn
|
||||
class="ton-share"
|
||||
@click="shareNameCard"
|
||||
@@ -84,6 +84,12 @@ function parseDesc(desc: string, inQuote: boolean = false): string[] {
|
||||
}
|
||||
if (!desc.includes("!」")) res = res.replace(/!/g, "!\n");
|
||||
res = res.replace(/…/g, "…\n");
|
||||
res = res.replace(/…\n…/g, "……\n");
|
||||
if (props?.data?.id === 210236) res = res.replace(/…\n/g, "…");
|
||||
if (props?.data?.id === 210237) {
|
||||
res = res.replace(/…\n/g, "…\n");
|
||||
res = res.replace(/」/g, "」\n");
|
||||
}
|
||||
const match = res.split("\n");
|
||||
let array: string[] = [];
|
||||
for (const item of match) {
|
||||
|
||||
@@ -549,21 +549,21 @@
|
||||
"id": 210038,
|
||||
"name": "凝光·凤仪",
|
||||
"type": "好感",
|
||||
"desc": "名片纹饰。 常说「麟止凤仪,所患在少」。另一位不论,凝光大人这样的人,一个就够了…",
|
||||
"desc": "名片纹饰。常说「麟止凤仪,所患在少」。另一位不论,凝光大人这样的人,一个就够了…",
|
||||
"source": "凝光的好感等级达到10级时获取。"
|
||||
},
|
||||
{
|
||||
"id": 210039,
|
||||
"name": "北斗·拔锚",
|
||||
"type": "好感",
|
||||
"desc": "名片纹饰。 「若拔锚入海,惑而不知东西。则须仰天,识认北辰斗极。」",
|
||||
"desc": "名片纹饰。「若拔锚入海,惑而不知东西。则须仰天,识认北辰斗极。」",
|
||||
"source": "北斗的好感等级达到10级时获取。"
|
||||
},
|
||||
{
|
||||
"id": 210040,
|
||||
"name": "重云·灵刃",
|
||||
"type": "好感",
|
||||
"desc": "名片纹饰。 本意只是用冰来制作桃木剑。不过做大了之后比起桃木更好驱魔了。",
|
||||
"desc": "名片纹饰。本意只是用冰来制作桃木剑。不过做大了之后比起桃木更好驱魔了。",
|
||||
"source": "重云的好感等级达到10级时获取。"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user