Skip to content

Commit 5494756

Browse files
committed
fix: eslint
1 parent 56a71f6 commit 5494756

File tree

8 files changed

+29
-20
lines changed

8 files changed

+29
-20
lines changed

src/components/Card/src/CardTitle.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,18 @@ const { title } = defineProps({
1919
.card-title {
2020
font-size: 14px;
2121
font-weight: 600;
22+
2223
&::before {
23-
content: '';
24+
position: relative;
25+
top: 8px;
26+
left: -5px;
2427
display: inline-block;
2528
width: 3px;
2629
height: 14px;
2730
//background-color: #105cfb;
2831
background: var(--el-color-primary);
29-
position: relative;
30-
left: -5px;
31-
top: 8px;
3232
border-radius: 5px;
33+
content: '';
3334
transform: translateY(-50%);
3435
}
3536
}

src/components/Descriptions/src/DescriptionsItemLabel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const { label } = defineProps({
2222
.cell-item {
2323
display: inline;
2424
}
25+
2526
.cell-item::after {
2627
content: ':';
2728
}

src/layout/components/Menu/src/Menu.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $prefix-cls: #{$namespace}-menu;
172172
.#{$elNamespace}-menu-item.is-active {
173173
position: relative;
174174
175-
&:after {
175+
&::after {
176176
@extend .is-active--after;
177177
}
178178
}
@@ -195,7 +195,7 @@ $prefix-cls: #{$namespace}-menu;
195195
position: relative;
196196
background-color: var(--left-menu-collapse-bg-active-color) !important;
197197
198-
&:after {
198+
&::after {
199199
@extend .is-active--after;
200200
}
201201
}
@@ -226,7 +226,7 @@ $prefix-cls: #{$namespace}-menu;
226226
.#{$elNamespace}-menu-item.is-active {
227227
position: relative;
228228
229-
&:after {
229+
&::after {
230230
display: none !important;
231231
}
232232
}
@@ -282,7 +282,7 @@ $prefix-cls: #{$namespace}-menu-popper;
282282
background-color: var(--left-menu-bg-active-color) !important;
283283
}
284284
285-
&:after {
285+
&::after {
286286
@extend .is-active--after;
287287
}
288288
}

src/views/mall/product/comment/CommentForm.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const resetForm = () => {
150150
userNickname: undefined,
151151
userAvatar: undefined,
152152
spuId: undefined,
153+
spuName: undefined,
153154
skuId: undefined,
154155
descriptionScores: 5,
155156
benefitScores: 5,
@@ -182,11 +183,11 @@ const handleSkuChange = (sku: ProductSpuApi.Sku) => {
182183
<style>
183184
.select-box {
184185
display: flex;
185-
align-items: center;
186-
justify-content: center;
187-
border: 1px dashed var(--el-border-color-darker);
188-
border-radius: 8px;
189186
width: 100%;
190187
height: 100%;
188+
border: 1px dashed var(--el-border-color-darker);
189+
border-radius: 8px;
190+
align-items: center;
191+
justify-content: center;
191192
}
192193
</style>

src/views/mall/promotion/coupon/template/CouponTemplateForm.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,22 +423,24 @@ const handleRemoveSpu = (index: number) => {
423423
<style scoped lang="scss">
424424
.select-box {
425425
display: flex;
426-
align-items: center;
427-
justify-content: center;
428-
border: 1px dashed var(--el-border-color-darker);
429-
border-radius: 8px;
430426
width: 60px;
431427
height: 60px;
428+
border: 1px dashed var(--el-border-color-darker);
429+
border-radius: 8px;
430+
align-items: center;
431+
justify-content: center;
432432
}
433+
433434
.spu-pic {
434435
position: relative;
435436
}
437+
436438
.del-icon {
437439
position: absolute;
440+
top: -10px;
441+
right: -10px;
438442
z-index: 1;
439443
width: 20px !important;
440444
height: 20px !important;
441-
right: -10px;
442-
top: -10px;
443445
}
444446
</style>

src/views/member/user/detail/UserAccountInfo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const { user } = defineProps<{ user: UserApi.UserVO }>()
5454
.cell-item {
5555
display: inline;
5656
}
57+
5758
.cell-item::after {
5859
content: ':';
5960
}

src/views/member/user/detail/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ import UserAddressList from './UserAddressList.vue'
6363
import UserPointList from './UserPointList.vue'
6464
import UserSignList from './UserSignList.vue'
6565
import { CardTitle } from '@/components/Card/index'
66+
import { ElMessage } from 'element-plus'
6667
6768
defineOptions({ name: 'MemberDetail' })
6869
6970
const activeName = ref('point') // 账户明细 选中的 tabs
7071
const loading = ref(true) // 加载中
71-
let user = ref<UserApi.UserVO>({})
72+
const user = ref<UserApi.UserVO>()
7273
7374
/** 添加/修改操作 */
7475
const formRef = ref()
@@ -104,10 +105,12 @@ onMounted(() => {
104105
.detail-info-item:first-child {
105106
padding-left: 0 !important;
106107
}
108+
107109
/* first-child 不生效有没有大佬给看下q.q */
108110
.detail-info-item:nth-child(2) {
109111
padding-right: 0 !important;
110112
}
113+
111114
.card-header {
112115
display: flex;
113116
justify-content: space-between;

src/views/pay/order/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ onMounted(async () => {
267267
</script>
268268
<style>
269269
.order-font {
270-
font-size: 12px;
271270
padding: 2px 0;
271+
font-size: 12px;
272272
}
273273
</style>

0 commit comments

Comments
 (0)