@cloudbase/weda-ui 2.0.12 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -33
- package/src/configs/components/form/textarea.json +8 -0
- package/src/configs/components/graphicCard.json +1 -1
- package/src/configs/components/navLayout.json +2 -1
- package/src/configs/components/wedaVideo.json +12 -9
- package/src/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +2 -1
- package/src/mp/components/calendar/index.wxml +1 -1
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/select/index.js +2 -2
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +1 -1
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.wxss +10 -10
- package/src/mp/components/richText/index.wxml +1 -1
- package/src/mp/components/richText/index.wxss +7 -5
- package/src/mp/components/tabs/index.wxss +1 -2
- package/src/mp/style/weda-ui.wxss +4 -2
- package/src/web/components/calendar/index.css +27 -40
- package/src/web/components/chart/statisticsCard/index.css +9 -8
- package/src/web/components/form/formcell/index.css +1 -14
- package/src/web/components/form/input/index.css +4 -0
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- package/src/web/components/form/location/components/LocationH5/index.css +19 -19
- package/src/web/components/form/select/h5.tsx +1 -1
- package/src/web/components/form/select/index.tsx +1 -1
- package/src/web/components/form/textarea/index.tsx +12 -0
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
- package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
- package/src/web/components/form/uploaderFile/index.css +24 -23
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +9 -4
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +7 -4
- package/src/web/components/graphicCard/index.css +6 -6
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.tsx +1 -1
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/richTextView/index.css +7 -3
- package/src/web/components/tabs/index.css +1 -2
- package/src/web/components/wedaVideo/index.tsx +14 -4
- package/src/web/utils/platform.js +13 -0
- package/src/web/weda-ui.css +7 -9
- package/src/docs/common/format.tsx +0 -115
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -283
- package/src/docs/compsdocs/chart/Bar.mdx +0 -159
- package/src/docs/compsdocs/chart/Line.mdx +0 -100
- package/src/docs/compsdocs/chart/Pie.mdx +0 -83
- package/src/docs/compsdocs/chart/_category_.json +0 -1
- package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
- package/src/docs/compsdocs/database/DataView.mdx +0 -33
- package/src/docs/compsdocs/database/ListView.mdx +0 -33
- package/src/docs/compsdocs/database/_category_.json +0 -1
- package/src/docs/compsdocs/form/Form.mdx +0 -35
- package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
- package/src/docs/compsdocs/form/FormDate.mdx +0 -30
- package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
- package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
- package/src/docs/compsdocs/form/FormInput.mdx +0 -30
- package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
- package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
- package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
- package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -35
- package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
- package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
- package/src/docs/compsdocs/form/FormTime.mdx +0 -30
- package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
- package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
- package/src/docs/compsdocs/form/_category_.json +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -31
- package/src/docs/compsdocs/grid/Container.mdx +0 -41
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -31
- package/src/docs/compsdocs/grid/Header.mdx +0 -31
- package/src/docs/compsdocs/grid/Layout.mdx +0 -25
- package/src/docs/compsdocs/grid/List.mdx +0 -31
- package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
- package/src/docs/compsdocs/grid/Swiper.mdx +0 -57
- package/src/docs/compsdocs/grid/_category_.json +0 -1
- package/src/docs/compsdocs/media/Icon.mdx +0 -31
- package/src/docs/compsdocs/media/Image.mdx +0 -55
- package/src/docs/compsdocs/media/_category_.json +0 -1
- package/src/docs/compsdocs/model/ModelCreate.mdx +0 -44
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -44
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -156
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -44
- package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
- package/src/docs/compsdocs/model/_category_.json +0 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +0 -37
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -52
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -29
- package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
- package/src/docs/compsdocs/navmenu/_category_.json +0 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +0 -45
- package/src/docs/compsdocs/senior/Modal.mdx +0 -57
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -49
- package/src/docs/compsdocs/senior/_category_.json +0 -1
- package/src/docs/compsdocs/show/Calendar.mdx +0 -29
- package/src/docs/compsdocs/show/Divider.mdx +0 -31
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -29
- package/src/docs/compsdocs/show/Item.mdx +0 -31
- package/src/docs/compsdocs/show/ItemList.mdx +0 -48
- package/src/docs/compsdocs/show/Media.mdx +0 -25
- package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
- package/src/docs/compsdocs/show/Swiper.mdx +0 -33
- package/src/docs/compsdocs/show/Tabs.mdx +0 -37
- package/src/docs/compsdocs/show/_category_.json +0 -1
- package/src/docs/compsdocs/show/button.mdx +0 -25
- package/src/docs/compsdocs/text/Link.mdx +0 -43
- package/src/docs/compsdocs/text/RichTextView.mdx +0 -35
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -31
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -45
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
.weda-RichTextView {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
}
|
|
4
|
+
.weda-RichTextView .blockquote {
|
|
2
5
|
margin: 0 0 10px;
|
|
3
6
|
padding: 15px 20px;
|
|
4
7
|
background-color: #f1f2f3;
|
|
@@ -7,7 +10,7 @@ rich-text .blockquote {
|
|
|
7
10
|
font-style: italic;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
.weda-RichTextView .pre {
|
|
11
14
|
max-width: 100%;
|
|
12
15
|
max-height: 100%;
|
|
13
16
|
margin: 10px 0;
|
|
@@ -17,9 +20,8 @@ rich-text .pre {
|
|
|
17
20
|
border-radius: 3px;
|
|
18
21
|
color: #666;
|
|
19
22
|
font-family: monospace;
|
|
20
|
-
font-size:
|
|
21
|
-
|
|
22
|
-
line-height: 16px;
|
|
23
|
+
font-size: 1em;
|
|
24
|
+
line-height: 1.14285em;
|
|
23
25
|
word-wrap: break-word;
|
|
24
26
|
white-space: pre-wrap;
|
|
25
27
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
height: 45px;
|
|
10
10
|
background-color: #fff;
|
|
11
11
|
position: relative;
|
|
12
|
-
font-size: 0;
|
|
13
12
|
white-space: nowrap;
|
|
14
13
|
border-bottom: 1px solid #eee;
|
|
15
14
|
}
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
flex-basis: 0;
|
|
24
23
|
flex-grow: 1;
|
|
25
24
|
height: 100%;
|
|
26
|
-
font-size:
|
|
25
|
+
font-size: 1em;
|
|
27
26
|
color: #000;
|
|
28
27
|
box-sizing: border-box;
|
|
29
28
|
padding: 0 16px;
|
|
@@ -38,9 +38,11 @@ page .weda-ui {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.weda-ui .weui-cell {
|
|
41
|
-
font-size:
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
}
|
|
43
|
+
.weda-ui .weui-cells {
|
|
44
|
+
font-size: 1em;
|
|
42
45
|
}
|
|
43
|
-
|
|
44
46
|
.weui-cells__group_form .weui-cell::before,
|
|
45
47
|
.weui-cells__group_form .weui-cells::before {
|
|
46
48
|
left: 16px;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* weda_calendar */
|
|
2
2
|
|
|
3
|
+
.weda-calendar {
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
/* pc 日历样式 start */
|
|
4
8
|
.weda-calendar.weda-calendar-pc {
|
|
5
9
|
background: #ffffff;
|
|
@@ -59,27 +63,9 @@
|
|
|
59
63
|
margin-right: 0;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
.weda-calendar-pc
|
|
63
|
-
.weda-calendar__control-section
|
|
64
|
-
.tea-dropdown
|
|
65
|
-
.tea-dropdown__header {
|
|
66
|
-
background: #e7e7e7;
|
|
67
|
-
border-radius: 3px;
|
|
68
|
-
padding: 5px 32px 5px 12px;
|
|
69
|
-
height: 32px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.weda-calendar-pc
|
|
73
|
-
.weda-calendar__control-section
|
|
74
|
-
.tea-dropdown
|
|
75
|
-
.tea-dropdown__value {
|
|
76
|
-
font-size: 14px;
|
|
77
|
-
line-height: 22px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
66
|
.weda-calendar-pc .weda-calendar__control_pc .weda-calendar__current-date {
|
|
81
|
-
font-size:
|
|
82
|
-
line-height:
|
|
67
|
+
font-size: 1em;
|
|
68
|
+
line-height: 1.57142em;
|
|
83
69
|
color: rgba(0, 0, 0, 0.9);
|
|
84
70
|
}
|
|
85
71
|
|
|
@@ -91,6 +77,7 @@
|
|
|
91
77
|
}
|
|
92
78
|
|
|
93
79
|
.weda-calendar .weda-calendar__table {
|
|
80
|
+
font-size: inherit;
|
|
94
81
|
border-collapse: collapse;
|
|
95
82
|
border-spacing: 0;
|
|
96
83
|
width: 100%;
|
|
@@ -126,8 +113,8 @@
|
|
|
126
113
|
justify-content: flex-end;
|
|
127
114
|
height: 100%;
|
|
128
115
|
padding: 0;
|
|
129
|
-
font-size:
|
|
130
|
-
line-height:
|
|
116
|
+
font-size: 1em;
|
|
117
|
+
line-height: 1.57142em;
|
|
131
118
|
color: rgba(0, 0, 0, 0.6);
|
|
132
119
|
margin-right: 12px;
|
|
133
120
|
position: relative;
|
|
@@ -189,9 +176,9 @@
|
|
|
189
176
|
}
|
|
190
177
|
|
|
191
178
|
.weda-calendar .weda-calendar__table .weda-calendar__table-body-cell-value {
|
|
192
|
-
font-size:
|
|
179
|
+
font-size: 1em;
|
|
193
180
|
font-weight: 400;
|
|
194
|
-
line-height:
|
|
181
|
+
line-height: 1.57142em;
|
|
195
182
|
color: rgba(0, 0, 0, 0.9);
|
|
196
183
|
margin-top: 3px;
|
|
197
184
|
position: relative;
|
|
@@ -252,8 +239,8 @@
|
|
|
252
239
|
.weda-calendar_nextMonth.wedatea2td-icon-arrowright--line {
|
|
253
240
|
position: absolute;
|
|
254
241
|
top: 17px;
|
|
255
|
-
width:
|
|
256
|
-
height:
|
|
242
|
+
width: 1.42857em;
|
|
243
|
+
height: 1.42857em;
|
|
257
244
|
}
|
|
258
245
|
|
|
259
246
|
.weda-calendar__control_h5
|
|
@@ -266,13 +253,13 @@
|
|
|
266
253
|
}
|
|
267
254
|
|
|
268
255
|
.weda-calendar__control_h5 .weda-calendar__current-date {
|
|
269
|
-
font-size:
|
|
270
|
-
line-height:
|
|
256
|
+
font-size: 1em;
|
|
257
|
+
line-height: 1.57142em;
|
|
271
258
|
font-weight: bold;
|
|
272
259
|
}
|
|
273
260
|
|
|
274
261
|
.weda-calendar-h5 .weda-calendar__panel {
|
|
275
|
-
height:
|
|
262
|
+
height: 21.85714em;
|
|
276
263
|
padding: 20px 16px 16px 16px;
|
|
277
264
|
width: 100%;
|
|
278
265
|
box-sizing: border-box;
|
|
@@ -299,7 +286,7 @@
|
|
|
299
286
|
}
|
|
300
287
|
|
|
301
288
|
.weda-calendar-h5 .weda-calendar__table .weda-calendar__table-head-cell {
|
|
302
|
-
font-size:
|
|
289
|
+
font-size: 0.85714em;
|
|
303
290
|
line-height: 20px;
|
|
304
291
|
width: 100%;
|
|
305
292
|
height: 100%;
|
|
@@ -307,8 +294,8 @@
|
|
|
307
294
|
-webkit-box-pack: center;
|
|
308
295
|
-ms-flex-pack: center;
|
|
309
296
|
justify-content: center;
|
|
310
|
-
font-size:
|
|
311
|
-
line-height:
|
|
297
|
+
font-size: 0.85714em;
|
|
298
|
+
line-height: 1.428571em;
|
|
312
299
|
-webkit-box-sizing: border-box;
|
|
313
300
|
box-sizing: border-box;
|
|
314
301
|
}
|
|
@@ -346,8 +333,8 @@
|
|
|
346
333
|
-webkit-box-pack: center;
|
|
347
334
|
-ms-flex-pack: center;
|
|
348
335
|
justify-content: center;
|
|
349
|
-
font-size:
|
|
350
|
-
line-height:
|
|
336
|
+
font-size: 0.85714em;
|
|
337
|
+
line-height: 1.42857em;
|
|
351
338
|
-webkit-box-sizing: border-box;
|
|
352
339
|
box-sizing: border-box;
|
|
353
340
|
-webkit-box-pack: center;
|
|
@@ -367,11 +354,11 @@
|
|
|
367
354
|
.weda-calendar-h5
|
|
368
355
|
.weda-calendar__table-body
|
|
369
356
|
.weda-calendar__table-body-cell-value {
|
|
370
|
-
font-size:
|
|
357
|
+
font-size: 1em;
|
|
371
358
|
text-align: center;
|
|
372
359
|
border-radius: 50%;
|
|
373
360
|
width: 40px;
|
|
374
|
-
line-height:
|
|
361
|
+
line-height: 2.85714em;
|
|
375
362
|
margin: 0;
|
|
376
363
|
box-sizing: border-box;
|
|
377
364
|
}
|
|
@@ -388,12 +375,12 @@
|
|
|
388
375
|
.weda-calendar__table-body-cell.is-now
|
|
389
376
|
.weda-calendar__table-body-cell-bg {
|
|
390
377
|
position: absolute;
|
|
391
|
-
width:
|
|
392
|
-
height:
|
|
378
|
+
width: 1.714285em;
|
|
379
|
+
height: 1.714285em;
|
|
393
380
|
background: #0052d9;
|
|
394
381
|
border-radius: 100%;
|
|
395
|
-
left: calc(50% -
|
|
396
|
-
top: calc(50% -
|
|
382
|
+
left: calc(50% - 0.85714em);
|
|
383
|
+
top: calc(50% - 0.85714em);
|
|
397
384
|
z-index: -1;
|
|
398
385
|
}
|
|
399
386
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
7
7
|
border-radius: 6px;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
+
font-size: 14px;
|
|
9
10
|
}
|
|
10
11
|
.weda-statistics-card.weda-statistics-card-pc {
|
|
11
12
|
width: 276px;
|
|
@@ -18,8 +19,8 @@
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.weda-statistics-card .weda-statistics-card__title {
|
|
21
|
-
font-size:
|
|
22
|
-
line-height:
|
|
22
|
+
font-size: 1em;
|
|
23
|
+
line-height: 1.57142em;
|
|
23
24
|
color: rgba(0, 0, 0, 0.6);
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -28,15 +29,15 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.weda-statistics-card .weda-statistics-card__count {
|
|
31
|
-
font-size:
|
|
32
|
-
line-height:
|
|
32
|
+
font-size: 2.28571em;
|
|
33
|
+
line-height: 3.14285em;
|
|
33
34
|
color: rgba(0, 0, 0, 0.9);
|
|
34
35
|
word-break: break-all;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.weda-statistics-card .weda-statistics-card__unit {
|
|
38
|
-
font-size:
|
|
39
|
-
line-height:
|
|
39
|
+
font-size: 1em;
|
|
40
|
+
line-height: 1.57142em;
|
|
40
41
|
color: rgba(0, 0, 0, 0.4);
|
|
41
42
|
margin-left: 4px;
|
|
42
43
|
vertical-align: middle;
|
|
@@ -57,6 +58,6 @@
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
.weda-statistics-card-mobile .weda-statistics-card__count {
|
|
60
|
-
font-size:
|
|
61
|
-
line-height:
|
|
61
|
+
font-size: 2em;
|
|
62
|
+
line-height: 2.42857em;
|
|
62
63
|
}
|
|
@@ -43,14 +43,10 @@
|
|
|
43
43
|
.weda-formcells__pc.vertical .wedatea2td-form__label {
|
|
44
44
|
padding-bottom: 0;
|
|
45
45
|
padding-top: 0;
|
|
46
|
-
font-size: 1rem;
|
|
47
46
|
width: auto;
|
|
48
47
|
margin-bottom: 10px;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
.weda-formcells__pc.vertical .wedatea2td-form__label label {
|
|
52
|
-
color: rgba(0, 0, 0, 0.9);
|
|
53
|
-
}
|
|
54
50
|
.weda-formcells__pc.vertical .wedatea2td-form__help-text {
|
|
55
51
|
margin-top: 4px;
|
|
56
52
|
}
|
|
@@ -66,11 +62,8 @@
|
|
|
66
62
|
.weda-formcells__pc .wedatea2td-form__label {
|
|
67
63
|
display: table-cell; /*container 外适配*/
|
|
68
64
|
vertical-align: baseline;
|
|
69
|
-
color: rgba(0, 0, 0, 0.9);
|
|
70
|
-
padding-right: 20px;
|
|
71
65
|
padding-top: 7px;
|
|
72
66
|
padding-bottom: 7px;
|
|
73
|
-
width: 1px;
|
|
74
67
|
}
|
|
75
68
|
.wedatea2td-form .wedatea2td-form__label .wedatea2td-icon {
|
|
76
69
|
vertical-align: -4px;
|
|
@@ -78,18 +71,12 @@
|
|
|
78
71
|
.weda-formcells__pc .wedatea2td-form__label label,
|
|
79
72
|
.weda-formcells__pc .wedatea2td-form__label legend {
|
|
80
73
|
display: inline-block;
|
|
81
|
-
font-size: 1rem;
|
|
82
74
|
transform: translateZ(0);
|
|
75
|
+
width: 98px;
|
|
83
76
|
}
|
|
84
77
|
|
|
85
78
|
/*formcell*/
|
|
86
|
-
.wedatea2td-form__item.weda-ui {
|
|
87
|
-
display: block;
|
|
88
|
-
}
|
|
89
79
|
|
|
90
|
-
.wedatea2td-form .wedatea2td-form__item {
|
|
91
|
-
display: table-row;
|
|
92
|
-
}
|
|
93
80
|
.weda-formcells__full-width .wedatea2td-form__controls {
|
|
94
81
|
width: 100%;
|
|
95
82
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* mapChoose组件 */
|
|
2
|
+
|
|
3
|
+
/* em = 16px */
|
|
2
4
|
.weda-ui_map-choose {
|
|
3
5
|
width: 100%;
|
|
4
6
|
height: 100%;
|
|
@@ -35,8 +37,8 @@
|
|
|
35
37
|
padding-left: 10px;
|
|
36
38
|
padding-right: 10px;
|
|
37
39
|
color: #b4b4b4;
|
|
38
|
-
font-size:
|
|
39
|
-
line-height:
|
|
40
|
+
font-size: 1em;
|
|
41
|
+
line-height: 2em;
|
|
40
42
|
border-radius: 5px;
|
|
41
43
|
overflow: hidden;
|
|
42
44
|
white-space: nowrap;
|
|
@@ -57,9 +59,9 @@
|
|
|
57
59
|
right: 0;
|
|
58
60
|
width: 55px;
|
|
59
61
|
height: 46px;
|
|
60
|
-
line-height:
|
|
62
|
+
line-height: 2.875em;
|
|
61
63
|
text-align: center;
|
|
62
|
-
font-size:
|
|
64
|
+
font-size: 1em;
|
|
63
65
|
color: #0079ff;
|
|
64
66
|
background-color: #fff;
|
|
65
67
|
cursor: pointer;
|
|
@@ -76,8 +78,8 @@
|
|
|
76
78
|
padding-top: 6px;
|
|
77
79
|
padding-bottom: 6px;
|
|
78
80
|
border: 0;
|
|
79
|
-
font-size:
|
|
80
|
-
line-height:
|
|
81
|
+
font-size: 0.875em;
|
|
82
|
+
line-height: 1.125em;
|
|
81
83
|
background: 0 0;
|
|
82
84
|
position: relative;
|
|
83
85
|
z-index: 1;
|
|
@@ -143,11 +145,11 @@
|
|
|
143
145
|
}
|
|
144
146
|
.map-choose-warp_sugges_choosed span {
|
|
145
147
|
position: absolute;
|
|
146
|
-
right:
|
|
148
|
+
right: 1.25em;
|
|
147
149
|
top: 50%;
|
|
148
150
|
transform: translate(0, -50%);
|
|
149
|
-
width:
|
|
150
|
-
height:
|
|
151
|
+
width: 1em;
|
|
152
|
+
height: 1em;
|
|
151
153
|
display: block !important;
|
|
152
154
|
background-image: url('https://qcloudimg.tencent-cloud.cn/raw/354c15c0cb845120ac3e9c474e6737b3.png');
|
|
153
155
|
background-size: 100% 100%;
|
|
@@ -162,8 +164,8 @@
|
|
|
162
164
|
}
|
|
163
165
|
.map-choose-warp_sugges_title,
|
|
164
166
|
.map-choose-explore_title {
|
|
165
|
-
font-size:
|
|
166
|
-
line-height:
|
|
167
|
+
font-size: 0.875em;
|
|
168
|
+
line-height: 1.6875em;
|
|
167
169
|
color: #333;
|
|
168
170
|
font-weight: 400;
|
|
169
171
|
display: block;
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.form-location-addr-title {
|
|
46
|
-
font-size:
|
|
46
|
+
font-size: 1em;
|
|
47
47
|
}
|
|
48
48
|
.form-location-addr-lat {
|
|
49
|
-
font-size:
|
|
49
|
+
font-size: 0.75em;
|
|
50
50
|
color: rgba(0, 0, 0, 0.4);
|
|
51
|
-
line-height:
|
|
51
|
+
line-height: 1.25em;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.form-location-addr > img {
|
|
55
|
-
width:
|
|
56
|
-
height:
|
|
55
|
+
width: 1.25em;
|
|
56
|
+
height: 1.25em;
|
|
57
57
|
}
|
|
58
58
|
.form-location-addr > div {
|
|
59
59
|
margin-left: 12px;
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
padding-left: 10px;
|
|
116
116
|
padding-right: 10px;
|
|
117
117
|
color: #b4b4b4;
|
|
118
|
-
font-size:
|
|
119
|
-
line-height:
|
|
118
|
+
font-size: 1em;
|
|
119
|
+
line-height: 2.21428em;
|
|
120
120
|
border-radius: 5px;
|
|
121
121
|
overflow: hidden;
|
|
122
122
|
white-space: nowrap;
|
|
@@ -135,19 +135,19 @@
|
|
|
135
135
|
position: absolute;
|
|
136
136
|
top: 0;
|
|
137
137
|
right: 0;
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
140
|
-
line-height:
|
|
138
|
+
width: 3.4375em;
|
|
139
|
+
height: 2.875em;
|
|
140
|
+
line-height: 2.875em;
|
|
141
141
|
text-align: center;
|
|
142
|
-
font-size:
|
|
142
|
+
font-size: 1em;
|
|
143
143
|
color: #0079ff;
|
|
144
144
|
background-color: #fff;
|
|
145
145
|
cursor: pointer;
|
|
146
146
|
display: none;
|
|
147
147
|
}
|
|
148
148
|
.map-choose-header_search img {
|
|
149
|
-
width:
|
|
150
|
-
height:
|
|
149
|
+
width: 1em;
|
|
150
|
+
height: 1em;
|
|
151
151
|
margin-right: 4px;
|
|
152
152
|
}
|
|
153
153
|
.map-choose-header_search input {
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
padding-top: 6px;
|
|
157
157
|
padding-bottom: 6px;
|
|
158
158
|
border: 0;
|
|
159
|
-
font-size:
|
|
160
|
-
line-height:
|
|
159
|
+
font-size: 0.875em;
|
|
160
|
+
line-height: 1.125em;
|
|
161
161
|
background: 0 0;
|
|
162
162
|
position: relative;
|
|
163
163
|
z-index: 1;
|
|
@@ -215,8 +215,8 @@
|
|
|
215
215
|
right: 20px;
|
|
216
216
|
top: 50%;
|
|
217
217
|
transform: translate(0, -50%);
|
|
218
|
-
width:
|
|
219
|
-
height:
|
|
218
|
+
width: 1em;
|
|
219
|
+
height: 1em;
|
|
220
220
|
display: block !important;
|
|
221
221
|
background-image: url('https://qcloudimg.tencent-cloud.cn/raw/354c15c0cb845120ac3e9c474e6737b3.png');
|
|
222
222
|
background-size: 100% 100%;
|
|
@@ -231,8 +231,8 @@
|
|
|
231
231
|
}
|
|
232
232
|
.map-choose-warp_sugges_title,
|
|
233
233
|
.map-choose-explore_title {
|
|
234
|
-
font-size:
|
|
235
|
-
line-height:
|
|
234
|
+
font-size: 0.875em;
|
|
235
|
+
line-height: 1.6875em;
|
|
236
236
|
color: #333;
|
|
237
237
|
font-weight: 400;
|
|
238
238
|
display: block;
|
|
@@ -52,6 +52,14 @@ export default function Textarea({
|
|
|
52
52
|
events.change({ value: text });
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
const onFocus = function (e) {
|
|
56
|
+
events.focus?.({ value: e.target.value }, { originEvent: e });
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const onBlur = function (e) {
|
|
60
|
+
events.blur?.({ value: e.target.value }, { originEvent: e });
|
|
61
|
+
};
|
|
62
|
+
|
|
55
63
|
let textAreaElement;
|
|
56
64
|
if (platform === 'h5') {
|
|
57
65
|
textAreaElement = (
|
|
@@ -62,6 +70,8 @@ export default function Textarea({
|
|
|
62
70
|
placeholder={placeholder}
|
|
63
71
|
value={value}
|
|
64
72
|
onChange={onChange}
|
|
73
|
+
onFocus={onFocus}
|
|
74
|
+
onBlur={onBlur}
|
|
65
75
|
maxLength={maxLength}
|
|
66
76
|
disabled={disabled}
|
|
67
77
|
autoFocus={autoFocus}
|
|
@@ -82,6 +92,8 @@ export default function Textarea({
|
|
|
82
92
|
placeholder={placeholder}
|
|
83
93
|
value={value}
|
|
84
94
|
onChange={onChange}
|
|
95
|
+
onFocus={onFocus}
|
|
96
|
+
onBlur={onBlur}
|
|
85
97
|
maxLength={maxLength}
|
|
86
98
|
disabled={disabled}
|
|
87
99
|
autoFocus={autoFocus}
|
|
@@ -106,3 +106,13 @@
|
|
|
106
106
|
.weui-uploader__hd.vertical {
|
|
107
107
|
padding-bottom: 0;
|
|
108
108
|
}
|
|
109
|
+
|
|
110
|
+
.weda-ui .weui-uploader__file {
|
|
111
|
+
width: 6.85714em;
|
|
112
|
+
height: 6.85714em;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.weda-ui .weui-uploader__input-box {
|
|
116
|
+
width: 6.85714em;
|
|
117
|
+
height: 6.85714em;
|
|
118
|
+
}
|
|
@@ -4,10 +4,9 @@ import classNames from '../../../utils/classnames';
|
|
|
4
4
|
import { getCloudInstance, getTempFileURL } from '../../../utils/tcb';
|
|
5
5
|
import isObjectEqual from '../../../utils/isObjectEqual';
|
|
6
6
|
import { useSyncValue } from '../../../utils/useSyncValue';
|
|
7
|
-
import { isCloudFileID } from '../../../utils/platform';
|
|
7
|
+
import { isCloudFileID, randomUuid } from '../../../utils/platform';
|
|
8
8
|
import { IMAGE_TYPES } from './uploader.pc';
|
|
9
9
|
import type { CommonFormPropsType } from '../types';
|
|
10
|
-
import { v4 } from 'uuid';
|
|
11
10
|
|
|
12
11
|
const uploadPath = 'weda-uploader';
|
|
13
12
|
/**
|
|
@@ -40,7 +39,7 @@ export function ImageUploaderH5({
|
|
|
40
39
|
//上传进度
|
|
41
40
|
const [progress, setProgress] = React.useState(0);
|
|
42
41
|
const [inputValue, setInputValue] = useSyncValue(defaultValue, isObjectEqual);
|
|
43
|
-
|
|
42
|
+
const inputValueRef = React.useRef(inputValue);
|
|
44
43
|
const fileIdList = React.useMemo(() => {
|
|
45
44
|
//兼容h5默认值为空时情况
|
|
46
45
|
if (inputValue === null) {
|
|
@@ -94,9 +93,7 @@ export function ImageUploaderH5({
|
|
|
94
93
|
getCloudInstance().then(async (tcb) => {
|
|
95
94
|
try {
|
|
96
95
|
const fileType = file.type.split('/')?.[1];
|
|
97
|
-
const cloudPath = `${uploadPath}/${
|
|
98
|
-
file?.name
|
|
99
|
-
}`;
|
|
96
|
+
const cloudPath = `${uploadPath}/${randomUuid()}-${file?.name}`;
|
|
100
97
|
const { fileID } = await tcb.uploadFile({
|
|
101
98
|
cloudPath,
|
|
102
99
|
filePath: file,
|
|
@@ -8,10 +8,9 @@ import {
|
|
|
8
8
|
ImagePreview,
|
|
9
9
|
ConfigProvider,
|
|
10
10
|
} from 'tea-component';
|
|
11
|
-
import { v4 } from 'uuid';
|
|
12
11
|
import classNames from '../../../utils/classnames';
|
|
13
12
|
import { getCloudInstance, getTempFileURL } from '../../../utils/tcb';
|
|
14
|
-
import { isCloudFileID } from '../../../utils/platform';
|
|
13
|
+
import { isCloudFileID, randomUuid } from '../../../utils/platform';
|
|
15
14
|
import isObjectEqual from '../../../utils/isObjectEqual';
|
|
16
15
|
import { H5UploaderProps } from './uploader.h5';
|
|
17
16
|
// 默认组件类前缀
|
|
@@ -79,7 +78,7 @@ export function UploaderPCInner(props) {
|
|
|
79
78
|
const [progress, setProgress] = React.useState(0);
|
|
80
79
|
// 文件列表
|
|
81
80
|
const [fileIDList, setfileIDList] = React.useState([]);
|
|
82
|
-
const fileRef = React.useRef(
|
|
81
|
+
const fileRef = React.useRef(['']);
|
|
83
82
|
React.useEffect(() => {
|
|
84
83
|
let initialValue = []
|
|
85
84
|
.concat(defaultValue)
|
|
@@ -130,9 +129,7 @@ export function UploaderPCInner(props) {
|
|
|
130
129
|
getCloudInstance().then(async (tcb) => {
|
|
131
130
|
try {
|
|
132
131
|
const fileType = file.type.split('/')?.[1];
|
|
133
|
-
const cloudPath = `${uploadPath}/${
|
|
134
|
-
file?.name
|
|
135
|
-
}`;
|
|
132
|
+
const cloudPath = `${uploadPath}/${randomUuid()}-${file?.name}`;
|
|
136
133
|
const { fileID } = await tcb.uploadFile({
|
|
137
134
|
cloudPath,
|
|
138
135
|
filePath: file,
|