Skip to content

Commit c6b0de8

Browse files
authored
refactor: move dtsLabel position (#344)
1 parent 63f317d commit c6b0de8

1 file changed

Lines changed: 25 additions & 23 deletions

File tree

src/components/Header.vue

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,31 @@ function resetFiles() {
9494
/>
9595
<div flex="~ gap-1" items-center lt-sm-hidden>
9696
<div text-xl>Element Plus Playground</div>
97-
<el-tag size="small"
98-
>v{{ appVersion }}, repl v{{ replVersion }}, language tools v{{
99-
languageToolsVersion
100-
}}</el-tag
101-
>
97+
<div flex="~ col gap-1">
98+
<el-tag size="small"
99+
>v{{ appVersion }}, repl v{{ replVersion }}, language tools v{{
100+
languageToolsVersion
101+
}}</el-tag
102+
>
103+
<Transition name="fade" mode="out-in">
104+
<el-tag
105+
v-if="dtsStatus"
106+
:key="dtsStatus"
107+
size="small"
108+
:type="dtsStatus === 'ready' ? 'success' : 'info'"
109+
>
110+
<span
111+
v-if="dtsStatus !== 'ready'"
112+
i-ri-loader-4-line
113+
animate-spin
114+
mr-1
115+
inline-block
116+
/>
117+
<span v-else i-ri-check-line mr-1 inline-block />
118+
{{ dtsLabels[dtsStatus!] }}
119+
</el-tag>
120+
</Transition>
121+
</div>
102122
<div flex="~ col gap-1">
103123
<el-tag v-if="store.pr" size="small">
104124
<el-link
@@ -115,24 +135,6 @@ function resetFiles() {
115135
>
116136
</el-tag>
117137
</div>
118-
<Transition name="fade" mode="out-in">
119-
<el-tag
120-
v-if="dtsStatus"
121-
:key="dtsStatus"
122-
size="small"
123-
:type="dtsStatus === 'ready' ? 'success' : 'info'"
124-
>
125-
<span
126-
v-if="dtsStatus !== 'ready'"
127-
i-ri-loader-4-line
128-
animate-spin
129-
mr-1
130-
inline-block
131-
/>
132-
<span v-else i-ri-check-line mr-1 inline-block />
133-
{{ dtsLabels[dtsStatus!] }}
134-
</el-tag>
135-
</Transition>
136138
</div>
137139
</div>
138140

0 commit comments

Comments
 (0)