Skip to content

Commit 8e78975

Browse files
committed
fix: eslint
1 parent 3f36b57 commit 8e78975

File tree

10 files changed

+54
-32
lines changed

10 files changed

+54
-32
lines changed

src/components/Cropper/src/CopperModal.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ $prefix-cls: #{$namespace}-cropper-am;
222222
transparent 75%,
223223
rgb(0 0 0 / 25%) 0
224224
);
225-
background-position: 0 0, 12px 12px;
225+
background-position:
226+
0 0,
227+
12px 12px;
226228
background-size: 24px 24px;
227229
}
228230

src/components/InputPassword/src/InputPassword.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ $prefix-cls: #{$namespace}-input-password;
114114
height: inherit;
115115
background-color: transparent;
116116
border-radius: inherit;
117-
transition: width 0.5s ease-in-out, background 0.25s;
117+
transition:
118+
width 0.5s ease-in-out,
119+
background 0.25s;
118120
119121
&[data-score='0'] {
120122
width: 20%;

src/layout/components/Message/src/Message.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ onMounted(() => {
3535
// 首次加载小红点
3636
getUnreadCount()
3737
// 轮询刷新小红点
38-
setInterval(() => {
39-
getUnreadCount()
40-
}, 1000 * 60 * 2)
38+
setInterval(
39+
() => {
40+
getUnreadCount()
41+
},
42+
1000 * 60 * 2
43+
)
4144
})
4245
</script>
4346
<template>

src/layout/components/TagsView/src/TagsView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ watch(
410410
{
411411
icon: 'ep:close',
412412
label: t('common.closeTab'),
413-
disabled: !!visitedViews?.length && selectedTag?.meta.affix,
413+
disabled: !!visitedViews?.length && selectedTag?.meta.affix,
414414
command: () => {
415415
closeSelectedTag(selectedTag!)
416416
}

src/styles/index.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
}
2424

2525
& .peg {
26-
box-shadow: 0 0 10px var(--el-color-primary), 0 0 5px var(--el-color-primary) !important;
26+
box-shadow:
27+
0 0 10px var(--el-color-primary),
28+
0 0 5px var(--el-color-primary) !important;
2729
}
2830

2931
& .spinner-icon {

src/views/mall/product/spu/components/SkuList.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,14 +443,15 @@ const generateTableData = (propertyList: any[]) => {
443443
*/
444444
const validateData = (propertyList: any[]) => {
445445
const skuPropertyIds: number[] = []
446-
formData.value!.skus!.forEach((sku) =>
447-
sku.properties
448-
?.map((property) => property.propertyId)
449-
?.forEach((propertyId) => {
450-
if (skuPropertyIds.indexOf(propertyId!) === -1) {
451-
skuPropertyIds.push(propertyId!)
452-
}
453-
})
446+
formData.value!.skus!.forEach(
447+
(sku) =>
448+
sku.properties
449+
?.map((property) => property.propertyId)
450+
?.forEach((propertyId) => {
451+
if (skuPropertyIds.indexOf(propertyId!) === -1) {
452+
skuPropertyIds.push(propertyId!)
453+
}
454+
})
454455
)
455456
const propertyIds = propertyList.map((item) => item.id)
456457
return skuPropertyIds.length === propertyIds.length

src/views/mall/promotion/combination/activity/CombinationActivityForm.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ const open = async (type: string, id?: number) => {
134134
const data = (await CombinationActivityApi.getCombinationActivity(
135135
id
136136
)) as CombinationActivityApi.CombinationActivityVO
137-
await getSpuDetails(
138-
data.spuId!,
139-
data.products?.map((sku) => sku.skuId),
140-
data.products
141-
)
137+
await getSpuDetails(data.spuId!, data.products?.map((sku) => sku.skuId), data.products)
142138
formRef.value.setValues(data)
143139
} finally {
144140
formLoading.value = false

src/views/mall/promotion/seckill/activity/SeckillActivityForm.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ const open = async (type: string, id?: number) => {
144144
const data = (await SeckillActivityApi.getSeckillActivity(
145145
id
146146
)) as SeckillActivityApi.SeckillActivityVO
147-
await getSpuDetails(
148-
data.spuId!,
149-
data.products?.map((sku) => sku.skuId),
150-
data.products
151-
)
147+
await getSpuDetails(data.spuId!, data.products?.map((sku) => sku.skuId), data.products)
152148
formRef.value.setValues(data)
153149
} finally {
154150
formLoading.value = false

src/views/mall/trade/order/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<el-select class="!w-280px" v-model="queryParams.status" clearable placeholder="全部">
1313
<el-option
1414
v-for="dict in getStrDictOptions(DICT_TYPE.TRADE_ORDER_STATUS)"
15-
:key="(dict.value as string)"
15+
:key="dict.value as string"
1616
:label="dict.label"
1717
:value="dict.value"
1818
/>
@@ -27,7 +27,7 @@
2727
>
2828
<el-option
2929
v-for="dict in getStrDictOptions(DICT_TYPE.PAY_CHANNEL_CODE_TYPE)"
30-
:key="(dict.value as string)"
30+
:key="dict.value as string"
3131
:label="dict.label"
3232
:value="dict.value"
3333
/>
@@ -48,7 +48,7 @@
4848
<el-select class="!w-280px" v-model="queryParams.terminal" clearable placeholder="全部">
4949
<el-option
5050
v-for="dict in getStrDictOptions(DICT_TYPE.TERMINAL)"
51-
:key="(dict.value as string)"
51+
:key="dict.value as string"
5252
:label="dict.label"
5353
:value="dict.value"
5454
/>
@@ -58,7 +58,7 @@
5858
<el-select class="!w-280px" v-model="queryParams.type" clearable placeholder="全部">
5959
<el-option
6060
v-for="dict in getStrDictOptions(DICT_TYPE.TRADE_ORDER_TYPE)"
61-
:key="(dict.value as string)"
61+
:key="dict.value as string"
6262
:label="dict.label"
6363
:value="dict.value"
6464
/>

src/views/mp/components/wx-msg/comment.scss

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,36 @@
9090
padding: 15px;
9191
overflow: hidden;
9292
background: #fff;
93-
font-family: Segoe UI, Lucida Grande, Helvetica, Arial, Microsoft YaHei, FreeSans, Arimo,
94-
Droid Sans, wenquanyi micro hei, Hiragino Sans GB, Hiragino Sans GB W3, FontAwesome,
93+
font-family:
94+
Segoe UI,
95+
Lucida Grande,
96+
Helvetica,
97+
Arial,
98+
Microsoft YaHei,
99+
FreeSans,
100+
Arimo,
101+
Droid Sans,
102+
wenquanyi micro hei,
103+
Hiragino Sans GB,
104+
Hiragino Sans GB W3,
105+
FontAwesome,
95106
sans-serif;
96107
color: #333;
97108
font-size: 14px;
98109
}
99110

100111
blockquote {
101112
margin: 0;
102-
font-family: Georgia, Times New Roman, Times, Kai, Kaiti SC, KaiTi, BiauKai, FontAwesome, serif;
113+
font-family:
114+
Georgia,
115+
Times New Roman,
116+
Times,
117+
Kai,
118+
Kaiti SC,
119+
KaiTi,
120+
BiauKai,
121+
FontAwesome,
122+
serif;
103123
padding: 1px 0 1px 15px;
104124
border-left: 4px solid #ddd;
105125
}

0 commit comments

Comments
 (0)