Skip to content

Commit b7948e7

Browse files
committed
fix: 所有单个 html 标签下应用了多个变量的 vue 模板语法,为所有变量添加 span 包裹
未包裹前 vue 模板解析器会错误的添加空格给各个变量
1 parent ae45ca5 commit b7948e7

File tree

22 files changed

+147
-191
lines changed

22 files changed

+147
-191
lines changed

pages/afterglow/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ const docList = [
3535
<div>
3636
<CategorySecond :title="textValue.title1" />
3737
<div class="p-6">
38-
<p class="mb-[1.5rem]">
39-
{{ textValue.p1 }}
40-
</p>
38+
<p class="mb-[1.5rem]">{{ textValue.p1 }}</p>
4139
<div>
4240
<AccordionNavigation :navigation-list="navigationList" />
4341
</div>

pages/afterglow/isa.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ const afterlowIsaListRef = useTemplateRef('afterlowIsaList');
2424
<div>
2525
<category-second id="afterlowIsaTitle" :title="textValue.title1" />
2626
<div class="p-6">
27-
<p>
28-
{{ textValue.p1 }}
29-
</p>
27+
<p>{{ textValue.p1 }}</p>
3028
<div ref="afterlowIsaList">
3129
<app-table-isa
3230
my-key="afterlow-isa-1"

pages/afterglow/requirements.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const afterlowRequirementsList = ref();
6262
v-for="(item, index) in textValue.ul1.li"
6363
:key="`afterlow-requirements-1-li-${index}`">
6464
<div v-if="index === 0">
65-
{{ item }}
65+
<span>{{ item }}</span>
6666
<link-standard :link="useHIndex(localLink.afterlowIsaTitle, 0)" />
6767
</div>
6868
<div v-else>{{ item }}</div>

pages/aosc-os/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const docList = [
3636
<div>
3737
<category-second :title="textValue.title1" />
3838
<div class="p-6">
39-
<p>
40-
{{ textValue.p1 }}
41-
</p>
39+
<p>{{ textValue.p1 }}</p>
4240
<div class="mt-[1.5rem]">
4341
<AccordionNavigation :navigation-list="navigationList" />
4442
</div>

pages/aosc-os/isa.vue

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,17 @@ const aoscOsIsaList2 = ref();
3333
<div>
3434
<category-second :title="textValue.title1" />
3535
<div class="p-6">
36-
<p>
37-
{{ textValue.p1 }}
38-
</p>
36+
<p>{{ textValue.p1 }}</p>
3937
</div>
4038
<div id="aoscOsIsaTableTitle">
4139
<category-second id="aoscOsIsaTableTitle1" :title="textValue.title2" />
4240
</div>
4341
<div class="p-6">
44-
<p>
45-
{{ textValue.p2 }}
46-
</p>
42+
<p>{{ textValue.p2 }}</p>
4743
<div ref="aoscOsIsaList1">
4844
<app-table-isa my-key="aosc-os-isa-1" :table-value="textValue.table1" />
4945
</div>
50-
51-
<p>
52-
{{ textValue.p3 }}
53-
</p>
46+
<p>{{ textValue.p3 }}</p>
5447
</div>
5548

5649
<category-second id="aoscOsIsaTableTitle2" :title="textValue.title3" />
@@ -59,10 +52,7 @@ const aoscOsIsaList2 = ref();
5952
<div ref="aoscOsIsaList2">
6053
<app-table-isa my-key="aosc-os-isa-2" :table-value="textValue.table2" />
6154
</div>
62-
63-
<p>
64-
{{ textValue.p5 }}
65-
</p>
55+
<p>{{ textValue.p5 }}</p>
6656
</div>
6757
<AppSupport :navigation-list="docList" />
6858
<!-- <category-second title="实验性架构" id="tier3" />

pages/aosc-os/livekit/relnote.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ useHead({ title: textValue.title1 });
1919
<li
2020
v-for="(item, index) in textValue.ul1.li"
2121
:key="`aosc-os-livekit-relnote-1-li-${index}`">
22-
<template v-if="index !== 4">{{ item }}</template>
23-
<template v-else>
24-
{{ item[0] }}
22+
<span v-if="index !== 4">{{ item }}</span>
23+
<span v-else>
24+
<span>{{ item[0] }}</span>
2525
<AppLink to="https://github.com/AOSC-Dev/dkcli">dkcli</AppLink>
26-
{{ item[1] }}
27-
</template>
26+
<span>{{ item[1] }}</span>
27+
</span>
2828
</li>
2929
</ul>
3030
</div>

pages/aosc-os/livekit/requirements.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ const aoscOsRequirementsList = ref();
6060
<li
6161
v-for="(item, index) in textValue.ul1.li"
6262
:key="`aosc-os-livekit-requirem-1-li-${index}`">
63-
<template v-if="index === 0">
64-
{{ item[0] }}
63+
<span v-if="index === 0">
64+
<span>{{ item[0] }}</span>
6565
<link-standard :link="localLink.aoscIsaTableTitle" />
66-
</template>
67-
<template v-else>{{ item }}</template>
66+
</span>
67+
<span v-else>{{ item }}</span>
6868
</li>
6969
</ul>
7070
</div>

pages/aosc-os/relnote/index.vue

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ onMounted(() => {
4343
<category-second id="architectural-changes" :title="textValue.title3" />
4444
<div class="p-6">
4545
<p>
46-
{{ textValue.p4[0] }}
46+
<span>{{ textValue.p4[0] }}</span>
4747
<code>{{ textValue.p4[1] }}</code>
48-
{{ textValue.p4[2] }}
48+
<span>{{ textValue.p4[2] }}</span>
4949
</p>
5050
<div class="px-16 pt-2 pb-4">
5151
<app-ul-ordinary :lis="textValue.ul2.li" my-key="aosc-os-relnote-2" />
@@ -60,32 +60,32 @@ onMounted(() => {
6060
<li
6161
v-for="(item, index) in textValue.ul3.li"
6262
:key="`aosc-os-relnote-3-li-${index}`">
63-
<template v-if="index === 1">
63+
<span v-if="index === 1">
6464
<link-standard :link="useTIndex(linkValue.omaSourceGithub, 1)" />
65-
{{ item }}
66-
</template>
67-
<template v-else-if="index === 2">
65+
<span>{{ item }}</span>
66+
</span>
67+
<span v-else-if="index === 2">
6868
<link-standard
6969
:link="useTIndex(linkValue.liblol.sourceHomepage, 1)" />
70-
{{ item[0] }}
70+
<span>{{ item[0] }}</span>
7171
<code>statx()</code>
72-
{{ item[1] }}
72+
<span>{{ item[1] }}</span>
7373
<code>lxstat64()</code>
74-
{{ item[2] }}
75-
</template>
76-
<template v-else-if="index === 8">
77-
{{ item[0] }}
74+
<span>{{ item[2] }}</span>
75+
</span>
76+
<span v-else-if="index === 8">
77+
<span>{{ item[0] }}</span>
7878
<code>ssh-agent.service</code>
79-
{{ item[1] }}
80-
</template>
81-
<template v-else-if="index === 9">
82-
{{ item[0] }}
79+
<span>{{ item[1] }}</span>
80+
</span>
81+
<span v-else-if="index === 9">
82+
<span>{{ item[0] }}</span>
8383
<code>x11-app</code>
84-
{{ item[1] }}
84+
<span>{{ item[1] }}</span>
8585
<code>x11perf</code>
86-
{{ item[2] }}
87-
</template>
88-
<template v-else>{{ item }}</template>
86+
<span>{{ item[2] }}</span>
87+
</span>
88+
<span v-else>{{ item }}</span>
8989
</li>
9090
</ul>
9191
</div>
@@ -99,12 +99,12 @@ onMounted(() => {
9999
<li
100100
v-for="(item, index) in textValue.ul4.li"
101101
:key="`aosc-os-relnote-4-li-${index}`">
102-
<template v-if="index === 2">
103-
{{ item[0] }}
102+
<span v-if="index === 2">
103+
<span>{{ item[0] }}</span>
104104
<code>$PATH</code>
105-
{{ item[1] }}
106-
</template>
107-
<template v-else>{{ item }}</template>
105+
<span>{{ item[1] }}</span>
106+
</span>
107+
<span v-else>{{ item }}</span>
108108
</li>
109109
</ul>
110110
</div>
@@ -118,22 +118,22 @@ onMounted(() => {
118118
<li
119119
v-for="(item, index) in textValue.ul5.li"
120120
:key="`aosc-os-relnote-5-li-${index}`">
121-
<template v-if="index === 1">
122-
{{ item[0] }}
121+
<span v-if="index === 1">
122+
<span>{{ item[0] }}</span>
123123
<link-standard :link="linkValue.dkcli" />
124-
{{ item[1] }}
125-
</template>
126-
<template v-if="index === 3">
127-
{{ item[0] }}
124+
<span>{{ item[1] }}</span>
125+
</span>
126+
<span v-if="index === 3">
127+
<span>{{ item[0] }}</span>
128128
<code>live</code>
129-
{{ item[1] }}
130-
</template>
131-
<template v-if="index === 6">
132-
{{ item[0] }}
129+
<span>{{ item[1] }}</span>
130+
</span>
131+
<span v-if="index === 6">
132+
<span>{{ item[0] }}</span>
133133
<link-standard :link="linkValue.memtest" />
134-
{{ item[1] }}
135-
</template>
136-
<template v-else>{{ item }}</template>
134+
<span>{{ item[1] }}</span>
135+
</span>
136+
<span v-else>{{ item }}</span>
137137
</li>
138138
</ul>
139139
</div>

pages/aosc-os/requirements.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ const aoscOsRequirementsRef = useTemplateRef('aoscOsRequirementsList');
3838
<li
3939
v-for="(item, index) in textValue.ul1.li"
4040
:key="`aosc-os-requirem-1-li-${index}`">
41-
<template v-if="index === 0">
42-
{{ item }}
41+
<span v-if="index === 0">
42+
<span>{{ item }}</span>
4343
<link-standard :link="useHIndex(localLink.aoscIsaTableTitle, 0)" />
44-
</template>
45-
<template v-else>{{ item }}</template>
44+
</span>
45+
<span v-else>{{ item }}</span>
4646
</li>
4747
</ul>
4848
</div>

pages/aosc-os/right-for-me/index.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ useHead({ title: textValue.title1 });
88
<div>
99
<category-second id="aoscOsRequirementsTitle" :title="textValue.title1" />
1010
<div class="p-6">
11-
<p class="pb-[1rem]">
12-
{{ textValue.p1 }}
13-
</p>
14-
<p>
15-
{{ textValue.p2 }}
16-
</p>
11+
<p class="pb-[1rem]">{{ textValue.p1 }}</p>
12+
<p>{{ textValue.p2 }}</p>
1713
</div>
1814
<category-second id="design" :title="textValue.title2" />
1915
<div class="p-6">

0 commit comments

Comments
 (0)