Skip to content

Commit 2a58e3f

Browse files
committed
style: unocss eslint
1 parent 57a7ed4 commit 2a58e3f

File tree

59 files changed

+143
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+143
-143
lines changed

src/components/Dialog/src/Dialog.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ const dialogStyle = computed(() => {
7070
:show-close="false"
7171
>
7272
<template #header="{ close }">
73-
<div class="flex justify-between items-center h-54px pl-15px pr-15px relative">
73+
<div class="relative h-54px flex items-center justify-between pl-15px pr-15px">
7474
<slot name="title">
7575
{{ title }}
7676
</slot>
7777
<div
78-
class="h-54px flex justify-between items-center absolute top-[50%] right-15px translate-y-[-50%]"
78+
class="absolute right-15px top-[50%] h-54px flex translate-y-[-50%] items-center justify-between"
7979
>
8080
<Icon
8181
v-if="fullscreen"
82-
class="cursor-pointer is-hover mr-10px"
82+
class="is-hover mr-10px cursor-pointer"
8383
:icon="isFullscreen ? 'radix-icons:exit-full-screen' : 'radix-icons:enter-full-screen'"
8484
color="var(--el-color-info)"
8585
hover-color="var(--el-color-primary)"
8686
@click="toggleFull"
8787
/>
8888
<Icon
89-
class="cursor-pointer is-hover"
89+
class="is-hover cursor-pointer"
9090
icon="ep:close"
9191
hover-color="var(--el-color-primary)"
9292
color="var(--el-color-info)"

src/components/Editor/src/Editor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ defineExpose({
180180
</script>
181181

182182
<template>
183-
<div class="border-1 border-solid border-[var(--el-border-color)] z-99">
183+
<div class="z-99 border-1 border-[var(--el-border-color)] border-solid">
184184
<!-- 工具栏 -->
185185
<Toolbar
186186
:editor="editorRef"
187187
:editorId="editorId"
188-
class="border-0 b-b-1 border-solid border-[var(--el-border-color)]"
188+
class="border-0 b-b-1 border-[var(--el-border-color)] border-solid"
189189
/>
190190
<!-- 编辑器 -->
191191
<Editor

src/components/Form/src/Form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default defineComponent({
203203
icon="ep:warning"
204204
size={16}
205205
color="var(--el-color-primary)"
206-
class="ml-2px relative top-1px"
206+
class="relative top-1px ml-2px"
207207
></Icon>
208208
)
209209
}}

src/components/Icon/src/IconSelect.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ watch(
128128
>
129129
<template #reference>
130130
<div
131-
class="w-40px h-32px cursor-pointer flex justify-center items-center"
131+
class="h-32px w-40px flex cursor-pointer items-center justify-center"
132132
@click="visible = !visible"
133133
>
134134
<Icon :icon="currentActiveType + icon" />
@@ -147,13 +147,13 @@ watch(
147147
>
148148
<ElDivider border-style="dashed" class="tab-divider" />
149149
<ElScrollbar height="220px">
150-
<ul class="flex flex-wrap px-2 ml-2">
150+
<ul class="ml-2 flex flex-wrap px-2">
151151
<li
152152
v-for="(item, key) in pageList"
153153
:key="key"
154154
:style="iconItemStyle(item)"
155155
:title="item"
156-
class="icon-item p-2 w-1/10 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-solid"
156+
class="icon-item mr-2 mt-1 w-1/10 flex cursor-pointer items-center justify-center border border-solid p-2"
157157
@click="onChangeIcon(item)"
158158
>
159159
<Icon :icon="currentActiveType + item" />
@@ -169,7 +169,7 @@ watch(
169169
:page-size="pageSize"
170170
:total="iconCount"
171171
background
172-
class="flex items-center justify-center h-10"
172+
class="h-10 flex items-center justify-center"
173173
layout="prev, pager, next"
174174
small
175175
@current-change="onCurrentChange"

src/components/Infotip/src/Infotip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const keyClick = (key: string) => {
4040
<span :class="[`${prefixCls}__title`, 'pl-5px text-16px font-bold']">{{ title }}</span>
4141
</div>
4242
<div :class="`${prefixCls}__content`">
43-
<p v-for="(item, $index) in schema" :key="$index" class="text-14px mt-15px">
43+
<p v-for="(item, $index) in schema" :key="$index" class="mt-15px text-14px">
4444
<Highlight
4545
:color="highlightColor"
4646
:keys="typeof item === 'string' ? [] : item.keys"

src/components/InputPassword/src/InputPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const getIconName = computed(() => (unref(textType) === 'password' ? 'ep:hide' :
6767
<div
6868
v-if="strength"
6969
:class="`${prefixCls}__bar`"
70-
class="relative h-6px mt-10px mb-6px mr-auto ml-auto"
70+
class="relative mb-6px ml-auto mr-auto mt-10px h-6px"
7171
>
7272
<div :class="`${prefixCls}__bar--fill`" :data-score="getPasswordStrength"></div>
7373
</div>

src/components/Pagination/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:pager-count="pagerCount"
1010
:total="total"
1111
:small="isSmall"
12-
class="float-right mt-15px mb-15px"
12+
class="float-right mb-15px mt-15px"
1313
layout="total, sizes, prev, pager, next, jumper"
1414
@size-change="handleSizeChange"
1515
@current-change="handleCurrentChange"

src/components/Qrcode/src/Qrcode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ const disabledClick = () => {
227227
<div
228228
v-if="disabled"
229229
:class="`${prefixCls}--disabled`"
230-
class="absolute top-0 left-0 flex w-full h-full items-center justify-center"
230+
class="absolute left-0 top-0 h-full w-full flex items-center justify-center"
231231
@click="disabledClick"
232232
>
233-
<div class="absolute top-[50%] left-[50%] font-bold">
233+
<div class="absolute left-[50%] top-[50%] font-bold">
234234
<Icon :size="30" color="var(--el-color-primary)" icon="ep:refresh-right" />
235235
<div>{{ disabledText }}</div>
236236
</div>

src/components/Table/src/Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export default defineComponent({
289289
<ElPagination
290290
v-model:pageSize={pageSizeRef.value}
291291
v-model:currentPage={currentPageRef.value}
292-
class="float-right mt-15px mb-15px"
292+
class="float-right mb-15px mt-15px"
293293
{...unref(pagination)}
294294
></ElPagination>
295295
) : undefined}

src/components/Tooltip/src/Tooltip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ defineProps({
1212
<template>
1313
<span>{{ titel }}</span>
1414
<ElTooltip :content="message" placement="top">
15-
<Icon :icon="icon" class="ml-1px relative top-1px" />
15+
<Icon :icon="icon" class="relative top-1px ml-1px" />
1616
</ElTooltip>
1717
</template>

0 commit comments

Comments
 (0)