@cloudbase/weda-ui 2.0.12 → 2.0.28

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.
Files changed (134) hide show
  1. package/package.json +36 -33
  2. package/src/configs/components/form/textarea.json +8 -0
  3. package/src/configs/components/graphicCard.json +1 -1
  4. package/src/configs/components/navLayout.json +2 -1
  5. package/src/configs/components/wedaVideo.json +12 -9
  6. package/src/mp/components/calendar/index.js +4 -1
  7. package/src/mp/components/calendar/index.json +2 -1
  8. package/src/mp/components/calendar/index.wxml +1 -1
  9. package/src/mp/components/calendar/index.wxss +17 -16
  10. package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
  11. package/src/mp/components/form/checkbox/index.js +5 -1
  12. package/src/mp/components/form/input/index.js +1 -1
  13. package/src/mp/components/form/radio/index.js +5 -1
  14. package/src/mp/components/form/select/index.js +7 -7
  15. package/src/mp/components/form/textarea/index.js +6 -0
  16. package/src/mp/components/form/textarea/index.wxml +1 -1
  17. package/src/mp/components/graphicCard/index.wxss +6 -6
  18. package/src/mp/components/listView/index.wxss +2 -2
  19. package/src/mp/components/navLayout/index.wxss +10 -10
  20. package/src/mp/components/navigationBar/index.js +15 -4
  21. package/src/mp/components/navigationBar/index.wxss +10 -10
  22. package/src/mp/components/richText/index.wxml +1 -1
  23. package/src/mp/components/richText/index.wxss +7 -5
  24. package/src/mp/components/tabs/index.wxss +1 -2
  25. package/src/mp/style/weda-ui.wxss +4 -2
  26. package/src/mp/utils/tcb.js +14 -0
  27. package/src/web/components/calendar/index.css +27 -40
  28. package/src/web/components/chart/statisticsCard/index.css +9 -8
  29. package/src/web/components/form/formcell/index.css +1 -14
  30. package/src/web/components/form/input/index.css +4 -0
  31. package/src/web/components/form/location/common/mapChoose.css +13 -11
  32. package/src/web/components/form/location/components/LocationH5/index.css +19 -19
  33. package/src/web/components/form/select/h5.tsx +1 -1
  34. package/src/web/components/form/select/index.tsx +1 -1
  35. package/src/web/components/form/textarea/index.tsx +12 -0
  36. package/src/web/components/form/uploader/index.css +10 -0
  37. package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
  38. package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
  39. package/src/web/components/form/uploaderFile/index.css +24 -23
  40. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +9 -4
  41. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +7 -4
  42. package/src/web/components/graphicCard/index.css +6 -6
  43. package/src/web/components/listView/index.css +8 -8
  44. package/src/web/components/lottery/index.tsx +1 -1
  45. package/src/web/components/navLayout/index.css +25 -25
  46. package/src/web/components/navigationBar/common.tsx +11 -6
  47. package/src/web/components/navigationBar/h5Menu.tsx +1 -1
  48. package/src/web/components/navigationBar/horizontalMenu.tsx +3 -2
  49. package/src/web/components/navigationBar/index.css +26 -26
  50. package/src/web/components/navigationBar/index.tsx +1 -0
  51. package/src/web/components/navigationBar/type.d.ts +8 -1
  52. package/src/web/components/navigationBar/verticalMenu.tsx +1 -1
  53. package/src/web/components/richTextView/index.css +7 -3
  54. package/src/web/components/tabs/index.css +1 -2
  55. package/src/web/components/wedaVideo/index.tsx +14 -4
  56. package/src/web/utils/platform.js +27 -0
  57. package/src/web/weda-ui.css +11 -9
  58. package/src/docs/common/format.tsx +0 -115
  59. package/src/docs/common/tableView.css +0 -164
  60. package/src/docs/common/tableView.tsx +0 -283
  61. package/src/docs/compsdocs/chart/Bar.mdx +0 -159
  62. package/src/docs/compsdocs/chart/Line.mdx +0 -100
  63. package/src/docs/compsdocs/chart/Pie.mdx +0 -83
  64. package/src/docs/compsdocs/chart/_category_.json +0 -1
  65. package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
  66. package/src/docs/compsdocs/database/DataView.mdx +0 -33
  67. package/src/docs/compsdocs/database/ListView.mdx +0 -33
  68. package/src/docs/compsdocs/database/_category_.json +0 -1
  69. package/src/docs/compsdocs/form/Form.mdx +0 -35
  70. package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
  71. package/src/docs/compsdocs/form/FormDate.mdx +0 -30
  72. package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
  73. package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
  74. package/src/docs/compsdocs/form/FormInput.mdx +0 -30
  75. package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
  76. package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
  77. package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
  78. package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
  79. package/src/docs/compsdocs/form/FormSelect.mdx +0 -35
  80. package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
  81. package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
  82. package/src/docs/compsdocs/form/FormTime.mdx +0 -30
  83. package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
  84. package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
  85. package/src/docs/compsdocs/form/_category_.json +0 -1
  86. package/src/docs/compsdocs/grid/Card.mdx +0 -31
  87. package/src/docs/compsdocs/grid/Container.mdx +0 -41
  88. package/src/docs/compsdocs/grid/Footer.mdx +0 -31
  89. package/src/docs/compsdocs/grid/GridLayout.mdx +0 -31
  90. package/src/docs/compsdocs/grid/Header.mdx +0 -31
  91. package/src/docs/compsdocs/grid/Layout.mdx +0 -25
  92. package/src/docs/compsdocs/grid/List.mdx +0 -31
  93. package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
  94. package/src/docs/compsdocs/grid/Swiper.mdx +0 -57
  95. package/src/docs/compsdocs/grid/_category_.json +0 -1
  96. package/src/docs/compsdocs/media/Icon.mdx +0 -31
  97. package/src/docs/compsdocs/media/Image.mdx +0 -55
  98. package/src/docs/compsdocs/media/_category_.json +0 -1
  99. package/src/docs/compsdocs/model/ModelCreate.mdx +0 -44
  100. package/src/docs/compsdocs/model/ModelDetail.mdx +0 -44
  101. package/src/docs/compsdocs/model/ModelTable.mdx +0 -156
  102. package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -44
  103. package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
  104. package/src/docs/compsdocs/model/_category_.json +0 -1
  105. package/src/docs/compsdocs/navmenu/Classification.mdx +0 -37
  106. package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -52
  107. package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -29
  108. package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
  109. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
  110. package/src/docs/compsdocs/navmenu/_category_.json +0 -1
  111. package/src/docs/compsdocs/senior/Lottery.mdx +0 -45
  112. package/src/docs/compsdocs/senior/Modal.mdx +0 -57
  113. package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -49
  114. package/src/docs/compsdocs/senior/_category_.json +0 -1
  115. package/src/docs/compsdocs/show/Calendar.mdx +0 -29
  116. package/src/docs/compsdocs/show/Divider.mdx +0 -31
  117. package/src/docs/compsdocs/show/GraphicCard.mdx +0 -29
  118. package/src/docs/compsdocs/show/Item.mdx +0 -31
  119. package/src/docs/compsdocs/show/ItemList.mdx +0 -48
  120. package/src/docs/compsdocs/show/Media.mdx +0 -25
  121. package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
  122. package/src/docs/compsdocs/show/Swiper.mdx +0 -33
  123. package/src/docs/compsdocs/show/Tabs.mdx +0 -37
  124. package/src/docs/compsdocs/show/_category_.json +0 -1
  125. package/src/docs/compsdocs/show/button.mdx +0 -25
  126. package/src/docs/compsdocs/text/Link.mdx +0 -43
  127. package/src/docs/compsdocs/text/RichTextView.mdx +0 -35
  128. package/src/docs/compsdocs/text/Text.mdx +0 -31
  129. package/src/docs/compsdocs/text/Title.mdx +0 -31
  130. package/src/docs/compsdocs/text/_category_.json +0 -1
  131. package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -59
  132. package/src/docs/compsdocs/wxOpen/Share.mdx +0 -45
  133. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -59
  134. package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
@@ -1,6 +1,6 @@
1
1
  import destr from '../../utils/destr';
2
2
  import { isUrl } from '../../utils/platform';
3
- import { getAppCustomNav } from '../../utils/tcb';
3
+ import { getAppCustomNav, resolveStaticResourceUrl } from '../../utils/tcb';
4
4
 
5
5
  Component({
6
6
  properties: {
@@ -31,6 +31,7 @@ Component({
31
31
  showTitle: true,
32
32
  title: '标题',
33
33
  showLogo: true,
34
+ logoPath: '',
34
35
  logoUrl:
35
36
  'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/43d3b2b7-445c-4858-8eb0-50ac5d5cc08e.svg ',
36
37
  titleFontSize: '18',
@@ -59,6 +60,12 @@ Component({
59
60
  } = navigationData;
60
61
  let menus = isMultiTerminal ? mobileMenuData : menuData;
61
62
  let selectedKey = this.defaultSelectedMenu(menus);
63
+ // 从cdn中读取图片
64
+ const logoUrl =
65
+ resolveStaticResourceUrl(navigationStyle.logoPath) ||
66
+ navigationStyle.logoUrl;
67
+ navigationStyle.logoUrl = logoUrl;
68
+
62
69
  this.setData({
63
70
  menuData: this.generateMenuData(
64
71
  menus,
@@ -89,16 +96,20 @@ Component({
89
96
  generateMenuData(menuData, menuItem, init = false) {
90
97
  let menus = JSON.parse(JSON.stringify(menuData));
91
98
  return menus?.map((i) => {
92
- let { iconUrl = 'td:view-module', children } = i;
99
+ let { iconUrl = 'td:view-module', children, iconPath } = i;
93
100
  let iconType = 'image';
94
101
  let ticon = '';
95
- if (!isUrl(iconUrl)) {
102
+ if (isUrl(iconUrl)) {
103
+ // 从cdn中读取图片
104
+ iconUrl = resolveStaticResourceUrl(iconPath) || iconUrl;
105
+ } else {
96
106
  iconType = 'icon';
97
107
  if (iconUrl.includes('td:')) {
98
108
  iconType = 't-icon';
99
109
  ticon = iconUrl?.replace('td:', '');
100
110
  }
101
111
  }
112
+
102
113
  if (init) {
103
114
  i.expand = this.hasSelectedMenu(i, menuItem.key);
104
115
  } else if (i.key === menuItem.key) {
@@ -118,7 +129,7 @@ Component({
118
129
  },
119
130
  menuClick(itemInfo) {
120
131
  const menu = itemInfo?.currentTarget?.dataset?.menu;
121
- const { path, type, key, children, expand } = menu;
132
+ const { path, type, children, expand } = menu;
122
133
  if (children.length) {
123
134
  this.setData({
124
135
  menuData: this.generateMenuData(this.data.menuData, {
@@ -1069,7 +1069,7 @@
1069
1069
  align-items: center;
1070
1070
  justify-content: space-between;
1071
1071
  padding: 0 20px 0 16px;
1072
- height: 64px;
1072
+ height: 4.5714em;
1073
1073
  background-color: #fff;
1074
1074
  position: relative;
1075
1075
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
@@ -1084,7 +1084,7 @@
1084
1084
 
1085
1085
  .weda-menu-mobile .weda-menu__bar-main .weda-menu__main-logo {
1086
1086
  font-weight: normal;
1087
- font-size: 18px;
1087
+ font-size: 1.28571em;
1088
1088
  color: #000000;
1089
1089
  text-decoration: none;
1090
1090
  display: flex;
@@ -1092,8 +1092,8 @@
1092
1092
  }
1093
1093
 
1094
1094
  .weda-menu-mobile .weda-menu__bar-main .weda-menu__main-icon {
1095
- width: 32px;
1096
- height: 32px;
1095
+ width: 2.2857em;
1096
+ height: 2.2857em;
1097
1097
  margin-right: 12px;
1098
1098
  }
1099
1099
 
@@ -1105,12 +1105,12 @@
1105
1105
 
1106
1106
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn,
1107
1107
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
1108
- width: 24px;
1109
- height: 24px;
1110
- font-size: 24px;
1108
+ width: 1.71428em;
1109
+ height: 1.71428em;
1110
+ font-size: 1.71428em;
1111
1111
  }
1112
1112
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
1113
- font-size: 28px;
1113
+ font-size: 2em;
1114
1114
  }
1115
1115
  .weda-menu-mobile__drawer {
1116
1116
  width: 100%;
@@ -1206,8 +1206,8 @@
1206
1206
  .weda-drawer-menu__submenu
1207
1207
  .weda-drawer-menu__list
1208
1208
  .weda-drawer-menu__text {
1209
- font-size: 16px;
1210
- line-height: 20px;
1209
+ font-size: 1.4285em;
1210
+ line-height: 1.4285em;
1211
1211
  color: rgba(0, 0, 0, 0.9);
1212
1212
  padding: 0;
1213
1213
  max-width: 100%;
@@ -1,3 +1,3 @@
1
- <view class="weda-ui {{className}}" style="{{style}}">
1
+ <view class="weda-ui weda-RichTextView {{className}}" style="{{style}}">
2
2
  <rich-text nodes="{{__html}}"></rich-text>
3
3
  </view>
@@ -1,4 +1,7 @@
1
- rich-text .blockquote {
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
- rich-text .pre {
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: 14px;
21
- font-weight: 400;
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: 14px;
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: 16px; /* 修改默认weui的17为16 */
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;
@@ -74,3 +74,17 @@ export async function callDataSourceApi(param) {
74
74
  return {};
75
75
  }
76
76
  }
77
+
78
+ /**
79
+ * 返回静态托管cdn域名
80
+ */
81
+ export const resolveStaticResourceUrl = (path) => {
82
+ try {
83
+ // eslint-disable-next-line no-unsafe-optional-chaining
84
+ const resourceUrl =
85
+ getApp()?.app?.__internal__?.resolveStaticResourceUrl(path);
86
+ return resourceUrl;
87
+ } catch (error) {
88
+ return '';
89
+ }
90
+ };
@@ -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: 14px;
82
- line-height: 22px;
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: 14px;
130
- line-height: 22px;
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: 14px;
179
+ font-size: 1em;
193
180
  font-weight: 400;
194
- line-height: 22px;
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: 20px;
256
- height: 20px;
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: 14px;
270
- line-height: 22px;
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: 306px;
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: 12px;
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: 12px;
311
- line-height: 20px;
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: 12px;
350
- line-height: 20px;
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: 14px;
357
+ font-size: 1em;
371
358
  text-align: center;
372
359
  border-radius: 50%;
373
360
  width: 40px;
374
- line-height: 40px;
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: 24px;
392
- height: 24px;
378
+ width: 1.714285em;
379
+ height: 1.714285em;
393
380
  background: #0052d9;
394
381
  border-radius: 100%;
395
- left: calc(50% - 12px);
396
- top: calc(50% - 12px);
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: 14px;
22
- line-height: 22px;
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: 32px;
32
- line-height: 44px;
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: 14px;
39
- line-height: 22px;
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: 28px;
61
- line-height: 34px;
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
  }
@@ -34,3 +34,7 @@
34
34
  /**
35
35
  * END
36
36
  */
37
+
38
+ .weda-input .weui-input {
39
+ font-weight: inherit;
40
+ }
@@ -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: 15px;
39
- line-height: 31px;
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: 46px;
62
+ line-height: 2.875em;
61
63
  text-align: center;
62
- font-size: 16px;
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: 14px;
80
- line-height: 18px;
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: 20px;
148
+ right: 1.25em;
147
149
  top: 50%;
148
150
  transform: translate(0, -50%);
149
- width: 16px;
150
- height: 16px;
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: 14px;
166
- line-height: 27px;
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: 16px;
46
+ font-size: 1em;
47
47
  }
48
48
  .form-location-addr-lat {
49
- font-size: 12px;
49
+ font-size: 0.75em;
50
50
  color: rgba(0, 0, 0, 0.4);
51
- line-height: 20px;
51
+ line-height: 1.25em;
52
52
  }
53
53
 
54
54
  .form-location-addr > img {
55
- width: 19px;
56
- height: 19px;
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: 15px;
119
- line-height: 31px;
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: 55px;
139
- height: 46px;
140
- line-height: 46px;
138
+ width: 3.4375em;
139
+ height: 2.875em;
140
+ line-height: 2.875em;
141
141
  text-align: center;
142
- font-size: 16px;
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: 16px;
150
- height: 16px;
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: 14px;
160
- line-height: 18px;
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: 16px;
219
- height: 16px;
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: 14px;
235
- line-height: 27px;
234
+ font-size: 0.875em;
235
+ line-height: 1.6875em;
236
236
  color: #333;
237
237
  font-weight: 400;
238
238
  display: block;
@@ -184,7 +184,7 @@ PropsType) {
184
184
  if (records && records.length !== 0 && primaryField) {
185
185
  const option = records.map((item) => {
186
186
  return {
187
- label: item[primaryField],
187
+ label: item[primaryField] || item._id,
188
188
  value: item._id,
189
189
  };
190
190
  });
@@ -227,7 +227,7 @@ function SelectPc({
227
227
  if (records && records.length !== 0 && primaryField) {
228
228
  const option = records.map((item) => {
229
229
  return {
230
- label: item[primaryField],
230
+ label: item[primaryField] || item._id,
231
231
  value: item._id,
232
232
  };
233
233
  });
@@ -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
+ }