Skip to content

Commit fa13005

Browse files
committed
fix(miniprogram): 小程序相关vue3迁移异常优化
1 parent d8781c2 commit fa13005

26 files changed

Lines changed: 371 additions & 209 deletions

src/assets/css/miniprogram/app.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
top: 48px;
1515
}
1616
}
17+
18+
.v-miniprogram {
19+
.el-drawer__body {
20+
// 小程序里的 Drawer 内容通常自带内部滚动区,外层 body 再滚会出现双滚动条。
21+
padding: 0;
22+
overflow: hidden;
23+
}
24+
}
1725
}
1826

1927
@import "./miniprogram-light.less";

src/assets/css/miniprogram/var-dark.less

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,14 @@
2121
--primary-white: #ffffff;
2222
--primary-brand-4: #282828;
2323

24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
--secondary-indigo: #5856D6;
44-
--secondary-purple: #AF52DE;
45-
--secondary-cyan: #32ADE6;
46-
--secondary-blue: #1886FE;
47-
--secondary-green: #34C759;
48-
--secondary-mint: #00C7BE;
49-
--secondary-yellow: #FFCC00;
50-
--secondary-orange: #FF9500;
51-
--secondary-red: #FF3B30;
24+
--secondary-indigo: #5856d6;
25+
--secondary-purple: #af52de;
26+
--secondary-cyan: #32ade6;
27+
--secondary-blue: #1886fe;
28+
--secondary-green: #34c759;
29+
--secondary-mint: #00c7be;
30+
--secondary-yellow: #ffcc00;
31+
--secondary-orange: #ff9500;
32+
--secondary-red: #ff3b30;
5233
}
5334
}

src/assets/css/miniprogram/var.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@
4242
--uploader-upload-background-color: var(--black-10);
4343
}
4444

45-
46-
4745
@import "var-dark.less";

src/components/cj/mobile/category-filter-drawer.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div>
33
<el-drawer
44
v-model="show"
5+
class="other-filter-drawer"
56
direction="btt"
67
:show-close="false"
78
:with-header="false"
89
append-to-body
9-
custom-class="other-filter-drawer"
1010
size="400"
1111
@close="onClose"
1212
style="width:100%;"
@@ -258,7 +258,9 @@ export default {
258258
flex-direction: column;
259259
background-color: #24292E;
260260
padding: 20px;
261-
min-height: 300px;
261+
height: 100%;
262+
box-sizing: border-box;
263+
min-height: 0;
262264
position: relative;
263265
264266
@@ -275,11 +277,11 @@ export default {
275277
276278
.m-other-filter-list {
277279
flex: 1;
280+
min-height: 0;
278281
display: flex;
279282
flex-direction: column;
280283
gap: 20px;
281-
margin-bottom: 60px;
282-
max-height: 345px;
284+
margin-bottom: 86px;
283285
overflow-y: auto;
284286
padding-bottom: 20px;
285287

src/components/cj/mobile/children-list-drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div>
33
<el-drawer
44
v-model="show"
5+
class="children-list-drawer"
56
direction="btt"
67
:show-close="false"
78
:with-header="false"
89
append-to-body
9-
custom-class="children-list-drawer"
1010
size="400"
1111
@close="onClose"
1212
style="width: 100%"

src/components/cj/mobile/confirm-ok-drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div>
33
<el-drawer
44
v-model="show"
5+
class="other-filter-drawer"
56
direction="btt"
67
:show-close="false"
78
:with-header="false"
89
append-to-body
9-
custom-class="other-filter-drawer"
1010
size="400"
1111
@close="onClose"
1212
style="width:100%;"

src/components/cj/mobile/map-filter-drawer.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div>
33
<el-drawer
44
v-model="show"
5+
class="other-filter-drawer"
56
direction="btt"
67
:show-close="false"
78
:with-header="false"
89
append-to-body
9-
custom-class="other-filter-drawer"
1010
size="400"
1111
@close="onClose"
1212
style="width: 100%"
@@ -223,7 +223,9 @@ export default {
223223
flex-direction: column;
224224
background-color: #24292e;
225225
padding: 20px;
226-
min-height: 300px;
226+
height: 100%;
227+
box-sizing: border-box;
228+
min-height: 0;
227229
position: relative;
228230
229231
.m-other-filter__title {
@@ -239,11 +241,11 @@ export default {
239241
240242
.m-other-filter-list {
241243
flex: 1;
244+
min-height: 0;
242245
display: flex;
243246
flex-direction: column;
244247
gap: 20px;
245-
margin-bottom: 60px;
246-
max-height: 345px;
248+
margin-bottom: 86px;
247249
overflow-y: auto;
248250
padding-bottom: 20px;
249251

0 commit comments

Comments
 (0)