@cloudbase/weda-ui 0.2.15 → 1.0.21

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 (250) hide show
  1. package/README.md +41 -169
  2. package/package.json +28 -15
  3. package/src/configs/components/calendar.json +78 -0
  4. package/src/configs/components/carousel.json +273 -0
  5. package/src/configs/components/chart/bar.json +724 -0
  6. package/src/configs/components/chart/line.json +679 -0
  7. package/src/configs/components/chart/pie.json +497 -0
  8. package/src/configs/components/chart/statisticsCard.json +379 -0
  9. package/src/configs/components/container.json +7 -2
  10. package/src/configs/components/dataView.json +154 -0
  11. package/src/configs/components/form/checkbox.json +97 -5
  12. package/src/configs/components/form/location.json +152 -0
  13. package/src/configs/components/form/radio.json +96 -4
  14. package/src/configs/components/form/select.json +245 -11
  15. package/src/configs/components/form/uploaderFile.json +2 -1
  16. package/src/configs/components/graphicCard.json +410 -0
  17. package/src/configs/components/image.json +7 -2
  18. package/src/configs/components/link.json +20 -4
  19. package/src/configs/components/listView.json +277 -0
  20. package/src/configs/components/modal.json +37 -5
  21. package/src/configs/components/navLayout.json +362 -0
  22. package/src/configs/components/navigationBar.json +59 -0
  23. package/src/configs/components/richtextview.json +4 -1
  24. package/src/configs/components/scrollVeiw.json +74 -22
  25. package/src/configs/components/swiper.json +6 -3
  26. package/src/configs/components/tabs.json +51 -8
  27. package/src/configs/components/text.json +33 -25
  28. package/src/configs/components/wxOpenApi/phone.json +141 -0
  29. package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
  30. package/src/configs/components/wxOpenApi/share.json +167 -0
  31. package/src/configs/components/wxOpenApi/userInfo.json +174 -0
  32. package/src/configs/index.js +34 -0
  33. package/src/mp/components/button/index.js +12 -13
  34. package/src/mp/components/button/index.wxml +1 -1
  35. package/src/mp/components/calendar/arrowright--line.svg +11 -0
  36. package/src/mp/components/calendar/index.js +238 -0
  37. package/src/mp/components/calendar/index.json +4 -0
  38. package/src/mp/components/calendar/index.wxml +37 -0
  39. package/src/mp/components/calendar/index.wxss +178 -0
  40. package/src/mp/components/carousel/index.js +88 -0
  41. package/src/mp/components/carousel/index.json +7 -0
  42. package/src/mp/components/carousel/index.wxml +6 -0
  43. package/src/mp/components/chart/bar/index.js +258 -0
  44. package/src/mp/components/chart/bar/index.json +6 -0
  45. package/src/mp/components/chart/bar/index.wxml +3 -0
  46. package/src/mp/components/chart/bar/index.wxss +9 -0
  47. package/src/mp/components/chart/common/config/bar.js +50 -0
  48. package/src/mp/components/chart/common/config/global.js +16 -0
  49. package/src/mp/components/chart/common/config/line.js +48 -0
  50. package/src/mp/components/chart/common/config/pie.js +36 -0
  51. package/src/mp/components/chart/common/core/eChartBar.js +263 -0
  52. package/src/mp/components/chart/common/core/eChartBase.js +375 -0
  53. package/src/mp/components/chart/common/core/eChartLine.js +229 -0
  54. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  55. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  56. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  57. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  58. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  59. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  60. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  61. package/src/mp/components/chart/line/index.js +247 -0
  62. package/src/mp/components/chart/line/index.json +6 -0
  63. package/src/mp/components/chart/line/index.wxml +3 -0
  64. package/src/mp/components/chart/line/index.wxss +9 -0
  65. package/src/mp/components/chart/pie/index.js +182 -0
  66. package/src/mp/components/chart/pie/index.json +6 -0
  67. package/src/mp/components/chart/pie/index.wxml +4 -0
  68. package/src/mp/components/chart/pie/index.wxss +9 -0
  69. package/src/mp/components/chart/statisticsCard/index.js +253 -0
  70. package/src/mp/components/chart/statisticsCard/index.json +4 -0
  71. package/src/mp/components/chart/statisticsCard/index.wxml +9 -0
  72. package/src/mp/components/chart/statisticsCard/index.wxss +45 -0
  73. package/src/mp/components/dataView/index.js +34 -0
  74. package/src/mp/components/dataView/index.json +7 -0
  75. package/src/mp/components/dataView/index.wxml +15 -0
  76. package/src/mp/components/dataView/index.wxss +0 -0
  77. package/src/mp/components/form/checkbox/index.js +41 -2
  78. package/src/mp/components/form/checkbox/index.wxml +1 -1
  79. package/src/mp/components/form/input/index.js +1 -1
  80. package/src/mp/components/form/location/components/mapChoose/index.js +201 -0
  81. package/src/mp/components/form/location/components/mapChoose/index.json +4 -0
  82. package/src/mp/components/form/location/components/mapChoose/index.wxml +42 -0
  83. package/src/mp/components/form/location/components/mapChoose/index.wxss +188 -0
  84. package/src/mp/components/form/location/index.js +382 -0
  85. package/src/mp/components/form/location/index.json +6 -0
  86. package/src/mp/components/form/location/index.wxml +25 -0
  87. package/src/mp/components/form/location/index.wxss +91 -0
  88. package/src/mp/components/form/radio/index.js +38 -0
  89. package/src/mp/components/form/select/index.js +360 -40
  90. package/src/mp/components/form/select/index.wxml +21 -6
  91. package/src/mp/components/form/select/region/index.js +98 -0
  92. package/src/mp/components/form/textarea/index.wxml +6 -5
  93. package/src/mp/components/form/uploader/index.js +84 -48
  94. package/src/mp/components/form/uploader/index.wxml +15 -3
  95. package/src/mp/components/form/uploaderFile/index.js +106 -27
  96. package/src/mp/components/graphicCard/chevron-right.svg +3 -0
  97. package/src/mp/components/graphicCard/index.js +203 -0
  98. package/src/mp/components/graphicCard/index.json +4 -0
  99. package/src/mp/components/graphicCard/index.wxml +29 -0
  100. package/src/mp/components/graphicCard/index.wxss +157 -0
  101. package/src/mp/components/image/index.js +0 -1
  102. package/src/mp/components/listView/arrow-right-line.svg +3 -0
  103. package/src/mp/components/listView/index.js +285 -0
  104. package/src/mp/components/listView/index.json +4 -0
  105. package/src/mp/components/listView/index.wxml +40 -0
  106. package/src/mp/components/listView/index.wxss +155 -0
  107. package/src/mp/components/listView/more-line.svg +3 -0
  108. package/src/mp/components/navLayout/index.js +123 -0
  109. package/src/mp/components/navLayout/index.json +7 -0
  110. package/src/mp/components/navLayout/index.wxml +25 -0
  111. package/src/mp/components/navLayout/index.wxss +1193 -0
  112. package/src/mp/components/navigationBar/index.js +193 -0
  113. package/src/mp/components/navigationBar/index.json +6 -0
  114. package/src/mp/components/navigationBar/index.wxml +88 -0
  115. package/src/mp/components/navigationBar/index.wxss +1257 -0
  116. package/src/mp/components/swiper/index.wxml +2 -0
  117. package/src/mp/components/tabs/index.js +7 -2
  118. package/src/mp/components/tabs/index.wxml +2 -1
  119. package/src/mp/components/text/index.js +0 -25
  120. package/src/mp/components/text/index.wxml +3 -3
  121. package/src/mp/components/wxOpenApi/phone/index.js +117 -0
  122. package/src/mp/components/wxOpenApi/phone/index.json +4 -0
  123. package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
  124. package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
  125. package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
  126. package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
  127. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
  128. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
  129. package/src/mp/components/wxOpenApi/share/index.js +117 -0
  130. package/src/mp/components/wxOpenApi/share/index.json +4 -0
  131. package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
  132. package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
  133. package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
  134. package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
  135. package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
  136. package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
  137. package/src/mp/index.json +18 -2
  138. package/src/mp/style/weda-ui.wxss +2 -0
  139. package/src/mp/utils/debounce.js +133 -0
  140. package/src/mp/utils/destr.js +48 -0
  141. package/src/mp/utils/dr_square_point.js +25 -0
  142. package/src/mp/utils/platform.js +25 -0
  143. package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1336 -0
  144. package/src/mp/utils/spark-md5.js +776 -0
  145. package/src/mp/utils/tcb.js +62 -0
  146. package/src/setupTests.js +2 -1
  147. package/src/web/components/button/index.css +8 -1
  148. package/src/web/components/button/index.tsx +3 -2
  149. package/src/web/components/calendar/index.css +382 -0
  150. package/src/web/components/calendar/index.jsx +312 -0
  151. package/src/web/components/calendar/util.js +90 -0
  152. package/src/web/components/carousel/index.css +119 -0
  153. package/src/web/components/carousel/index.tsx +417 -0
  154. package/src/web/components/chart/bar/index.tsx +140 -0
  155. package/src/web/components/chart/common/config/bar.js +49 -0
  156. package/src/web/components/chart/common/config/global.js +16 -0
  157. package/src/web/components/chart/common/config/line.js +50 -0
  158. package/src/web/components/chart/common/config/pie.js +37 -0
  159. package/src/web/components/chart/common/core/eChartBar.js +265 -0
  160. package/src/web/components/chart/common/core/eChartBase.ts +383 -0
  161. package/src/web/components/chart/common/core/eChartLine.js +231 -0
  162. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  163. package/src/web/components/chart/common/core/type.ts +34 -0
  164. package/src/web/components/chart/common/echart.css +106 -0
  165. package/src/web/components/chart/common/echarts.ts +33 -0
  166. package/src/web/components/chart/common/useChart.tsx +69 -0
  167. package/src/web/components/chart/line/index.tsx +136 -0
  168. package/src/web/components/chart/pie/index.tsx +99 -0
  169. package/src/web/components/chart/statisticsCard/index.css +62 -0
  170. package/src/web/components/chart/statisticsCard/index.tsx +307 -0
  171. package/src/web/components/chart/statisticsCard/interface.ts +14 -0
  172. package/src/web/components/dataView/index.tsx +20 -0
  173. package/src/web/components/dataView/interface.ts +6 -0
  174. package/src/web/components/form/checkbox/index.tsx +55 -23
  175. package/src/web/components/form/location/common/mapChoose.css +178 -0
  176. package/src/web/components/form/location/common/mapChoose.jsx +343 -0
  177. package/src/web/components/form/location/common/mapView.jsx +190 -0
  178. package/src/web/components/form/location/common/propsConfig.js +54 -0
  179. package/src/web/components/form/location/common/selectModal.css +44 -0
  180. package/src/web/components/form/location/common/selectModal.jsx +82 -0
  181. package/src/web/components/form/location/common/useLocationInfo.js +100 -0
  182. package/src/web/components/form/location/components/LocationH5/index.css +243 -0
  183. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +403 -0
  184. package/src/web/components/form/location/components/LocationPC/Header.jsx +109 -0
  185. package/src/web/components/form/location/components/LocationPC/index.css +44 -0
  186. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +323 -0
  187. package/src/web/components/form/location/constants.js +4 -0
  188. package/src/web/components/form/location/index.css +0 -0
  189. package/src/web/components/form/location/index.jsx +25 -0
  190. package/src/web/components/form/radio/index.tsx +84 -53
  191. package/src/web/components/form/select/h5.tsx +389 -71
  192. package/src/web/components/form/select/index.css +10 -0
  193. package/src/web/components/form/select/index.tsx +404 -144
  194. package/src/web/components/form/select/region/index.ts +122 -31
  195. package/src/web/components/form/select/time.jsx +90 -0
  196. package/src/web/components/form/select/year.tsx +170 -0
  197. package/src/web/components/form/uploader/uploader.h5.tsx +19 -4
  198. package/src/web/components/form/uploader/uploader.pc.tsx +8 -7
  199. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +132 -113
  200. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +16 -11
  201. package/src/web/components/graphicCard/index.css +159 -0
  202. package/src/web/components/graphicCard/index.tsx +310 -0
  203. package/src/web/components/image/image.tsx +1 -2
  204. package/src/web/components/image/index.tsx +1 -1
  205. package/src/web/components/index.js +24 -2
  206. package/src/web/components/link/index.tsx +6 -3
  207. package/src/web/components/listView/arrow-right-line.svg +3 -0
  208. package/src/web/components/listView/index.css +143 -0
  209. package/src/web/components/listView/index.tsx +359 -0
  210. package/src/web/components/listView/interface.ts +98 -0
  211. package/src/web/components/modal/index.tsx +3 -1
  212. package/src/web/components/navLayout/index.css +332 -0
  213. package/src/web/components/navLayout/index.tsx +247 -0
  214. package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
  215. package/src/web/components/navigationBar/common.tsx +198 -0
  216. package/src/web/components/navigationBar/h5Menu.tsx +179 -0
  217. package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
  218. package/src/web/components/navigationBar/index.css +762 -0
  219. package/src/web/components/navigationBar/index.tsx +231 -0
  220. package/src/web/components/navigationBar/type.d.ts +111 -0
  221. package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
  222. package/src/web/components/phone/index.css +0 -0
  223. package/src/web/components/phone/index.tsx +22 -0
  224. package/src/web/components/phoneCode/index.css +0 -0
  225. package/src/web/components/phoneCode/index.tsx +22 -0
  226. package/src/web/components/richTextView/index.tsx +3 -5
  227. package/src/web/components/share/index.css +0 -0
  228. package/src/web/components/share/index.tsx +38 -0
  229. package/src/web/components/tabs/index.tsx +4 -2
  230. package/src/web/components/tabs/tabs.h5.tsx +50 -37
  231. package/src/web/components/tabs/tabs.pc.tsx +23 -10
  232. package/src/web/components/text/index.tsx +6 -14
  233. package/src/web/components/uploaderFileView/index.css +9 -9
  234. package/src/web/components/uploaderFileView/index.jsx +32 -23
  235. package/src/web/components/userInfo/index.css +0 -0
  236. package/src/web/components/userInfo/index.tsx +30 -0
  237. package/src/web/types.d.ts +15 -14
  238. package/src/web/utils/debounce.js +98 -0
  239. package/src/web/utils/platform.js +40 -0
  240. package/src/web/utils/tcb.js +49 -0
  241. package/src/web/utils/tmap.js +4 -0
  242. package/src/web/weda-ui.css +2 -0
  243. package/CHANGELOG.md +0 -240
  244. package/src/.DS_Store +0 -0
  245. package/src/configs/.DS_Store +0 -0
  246. package/src/mp/.gitignore +0 -10
  247. package/src/web/.DS_Store +0 -0
  248. package/src/web/components/form/select/region/cities.ts +0 -2410
  249. package/src/web/components/form/select/region/provinces.ts +0 -240
  250. package/src/web/components/form/select/region/regions.ts +0 -20645
@@ -12,3 +12,65 @@ export async function getTempFileURL(data) {
12
12
  return await getApp().app.cloud.getTempFileURL(data);
13
13
  }
14
14
  }
15
+
16
+ /**
17
+ * 云API:获取用户自定义导航内容
18
+ * param
19
+ * WeAppId: string,
20
+ * EnvId: string,
21
+ * PublishType?: string,
22
+ */
23
+ export async function getAppCustomNav() {
24
+ try {
25
+ const PublishType = getApp().app.cloud?.IS_WEDA_IDE ? 'preview' : '';
26
+ const WeAppId = getApp().app?.id;
27
+ const res = await callWedaApi({
28
+ action: 'DescribeAppCustomNav',
29
+ serviceType: 'lowcode',
30
+ data: {
31
+ WeAppId,
32
+ PublishType,
33
+ },
34
+ });
35
+ return res;
36
+ } catch (error) {
37
+ console.error('错误', error);
38
+ return {};
39
+ }
40
+ }
41
+
42
+ /**
43
+ * 调用微搭后端API服务
44
+ */
45
+ export async function callWedaApi(param) {
46
+ if (getApp().app.cloud.callWedaApi) {
47
+ return await getApp().app.cloud.callWedaApi(param);
48
+ }
49
+ }
50
+
51
+ /**
52
+ * 云函数获取数据
53
+ */
54
+ export async function callDataSource(param) {
55
+ if (getApp().app.cloud.callDataSource) {
56
+ return await getApp().app.cloud.callDataSource(param);
57
+ }
58
+ }
59
+
60
+ /**
61
+ * 云函数获取数据
62
+ */
63
+ export async function callDataSourceApi(param) {
64
+ const { params, dataSourceName, methodName } = param;
65
+ try {
66
+ const res = await getApp()?.app?.cloud?.callDataSource?.({
67
+ params,
68
+ dataSourceName,
69
+ methodName,
70
+ });
71
+ return res;
72
+ } catch (error) {
73
+ console.error('错误', error);
74
+ return {};
75
+ }
76
+ }
package/src/setupTests.js CHANGED
@@ -1,3 +1,4 @@
1
+ require("regenerator-runtime");
1
2
  Object.defineProperty(window, 'matchMedia', {
2
3
  writable: true,
3
4
  value: jest.fn().mockImplementation(query => ({
@@ -10,4 +11,4 @@ Object.defineProperty(window, 'matchMedia', {
10
11
  removeEventListener: jest.fn(),
11
12
  dispatchEvent: jest.fn(),
12
13
  })),
13
- });
14
+ });
@@ -6,6 +6,14 @@
6
6
  background-color: var(--weui-BRAND);
7
7
  }
8
8
 
9
+ .weda-button.weui-btn.weui-btn_primary.weui-btn_wechat:not(.weui-btn_disabled):active {
10
+ background-color: var(--weui-TAG-TEXT-GREEN);
11
+ }
12
+
13
+ .weda-button.weui-btn_primary.weui-btn_wechat {
14
+ background-color: var(--weui-WECHAT);
15
+ }
16
+
9
17
  .weda-button.weda-button-mini {
10
18
  font-size: smaller;
11
19
  }
@@ -17,4 +25,3 @@
17
25
  text-align: center;
18
26
  width: 100%;
19
27
  }
20
-
@@ -29,9 +29,10 @@ const Button = ({
29
29
  'weda-button-mini': size === 'mini',
30
30
  'weui-btn': isH5,
31
31
  'weui-btn_mini': isH5 && size === 'mini',
32
- 'weui-btn_primary': isH5 && type === 'primary',
32
+ 'weui-btn_primary': isH5 && (type === 'primary' || type === 'wechat'),
33
33
  'weui-btn_default': isH5 && type === 'default',
34
34
  'weui-btn_warn': isH5 && type === 'warn',
35
+ 'weui-btn_wechat': isH5 && type === 'wechat',
35
36
  'weui-btn_disabled': isH5 && disabled,
36
37
  [className]: className,
37
38
  });
@@ -90,7 +91,7 @@ export interface PropsType extends CommonPropsType {
90
91
  /**
91
92
  * 样式类型
92
93
  */
93
- type?: "primary" | "warn" | "default";
94
+ type?: 'primary' | 'warn' | 'wechat' | 'default';
94
95
  /**
95
96
  * 大小
96
97
  */
@@ -0,0 +1,382 @@
1
+ /* weda_calendar */
2
+
3
+ /* pc 日历样式 start */
4
+ .weda-calendar.weda-calendar-pc {
5
+ background: #FFFFFF;
6
+ border: 0.5px solid #DCDCDC;
7
+ box-sizing: border-box;
8
+ box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.05), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 5px 5px -3px rgba(0, 0, 0, 0.1);
9
+ border-radius: 3px;
10
+ min-width: 560px;
11
+ }
12
+
13
+ .weda-calendar-pc .weda-calendar__control_h5 {
14
+ display: none;
15
+ }
16
+
17
+ .weda-calendar-pc .weda-calendar__control_pc {
18
+ padding: 32px;
19
+ display: flex;
20
+ display: -webkit-box;
21
+ display: -ms-flexbox;
22
+ -webkit-box-pack: end;
23
+ -ms-flex-pack: end;
24
+ justify-content: flex-end;
25
+ -webkit-box-align: center;
26
+ -ms-flex-align: center;
27
+ align-items: center;
28
+ }
29
+
30
+ .weda-calendar-pc .weda-calendar__control-section {
31
+ display: flex;
32
+ display: -webkit-box;
33
+ display: -ms-flexbox;
34
+ -webkit-box-pack: end;
35
+ -ms-flex-pack: end;
36
+ justify-content: flex-end;
37
+ -webkit-box-align: center;
38
+ -ms-flex-align: center;
39
+ align-items: center;
40
+ height: 100%;
41
+ margin-right: 16px;
42
+ }
43
+
44
+ .weda-calendar-pc .weda-calendar__control-section:last-child {
45
+ margin-right: 0;
46
+ }
47
+
48
+ .weda-calendar-pc .weda-calendar__control-section .weda-calendar__control-section-cell {
49
+ height: 100%;
50
+ margin-right: 8px;
51
+ }
52
+
53
+ .weda-calendar-pc .weda-calendar__control-section .weda-calendar__control-section-cell:last-child {
54
+ margin-right: 0;
55
+ }
56
+
57
+ .weda-calendar-pc .weda-calendar__control-section .tea-dropdown .tea-dropdown__header {
58
+ background: #E7E7E7;
59
+ border-radius: 3px;
60
+ padding: 5px 32px 5px 12px;
61
+ height: 32px;
62
+
63
+ }
64
+
65
+ .weda-calendar-pc .weda-calendar__control-section .tea-dropdown .tea-dropdown__value {
66
+ font-size: 14px;
67
+ line-height: 22px;
68
+ }
69
+
70
+ .weda-calendar-pc .weda-calendar__control_pc .weda-calendar__current-date {
71
+ font-size: 14px;
72
+ line-height: 22px;
73
+ color: rgba(0, 0, 0, 0.9);
74
+ }
75
+
76
+ .weda-calendar-pc .weda-calendar__panel {
77
+ position: relative;
78
+ padding: 0 32px 32px 32px;
79
+ width: 100%;
80
+ box-sizing: border-box;
81
+ }
82
+
83
+ .weda-calendar .weda-calendar__table {
84
+ border-collapse: collapse;
85
+ border-spacing: 0;
86
+ width: 100%;
87
+ height: 100%;
88
+ }
89
+
90
+ .weda-calendar .weda-calendar__table .weda-calendar__table-head {
91
+ display: block;
92
+ width: 100%;
93
+ margin-bottom: 8px;
94
+ box-sizing: border-box;
95
+ }
96
+
97
+ .weda-calendar .weda-calendar__table .weda-calendar__table-head-row,
98
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-row {
99
+ display: flex;
100
+ display: -webkit-box;
101
+ display: -ms-flexbox;
102
+ width: 100%;
103
+ padding-bottom: 0;
104
+ }
105
+
106
+ .weda-calendar .weda-calendar__table .weda-calendar__table-head-cell {
107
+ cursor: default;
108
+ -webkit-box-flex: 1;
109
+ -ms-flex: 1;
110
+ flex: 1;
111
+ display: -webkit-box;
112
+ display: -ms-flexbox;
113
+ display: flex;
114
+ -webkit-box-pack: end;
115
+ -ms-flex-pack: end;
116
+ justify-content: flex-end;
117
+ height: 100%;
118
+ padding: 0;
119
+ font-size: 14px;
120
+ line-height: 22px;
121
+ color: rgba(0, 0, 0, 0.6);
122
+ margin-right: 12px;
123
+ position: relative;
124
+ }
125
+
126
+ .weda-calendar .weda-calendar__table .weda-calendar__table-head-cell:last-child,
127
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell:last-child {
128
+ margin-right: 0;
129
+ }
130
+
131
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body {
132
+ width: 100%;
133
+ }
134
+
135
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell {
136
+ flex: 1;
137
+ -webkit-box-flex: 1;
138
+ -ms-flex: 1;
139
+ border-top: 1px solid #E7E7E7;
140
+ padding: 0;
141
+ height: 87.4px;
142
+ display: flex;
143
+ display: -webkit-box;
144
+ display: -ms-flexbox;
145
+ -webkit-box-orient: vertical;
146
+ -webkit-box-direction: normal;
147
+ -ms-flex-direction: column;
148
+ flex-direction: column;
149
+ -webkit-box-align: end;
150
+ -ms-flex-align: end;
151
+ align-items: flex-end;
152
+ margin-left: 0;
153
+ margin-right: 12px;
154
+ position: relative;
155
+ justify-content: flex-start;
156
+ color: rgba(0, 0, 0, 0.26);
157
+ }
158
+
159
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-disabled,
160
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-invalid {
161
+ cursor: not-allowed;
162
+ }
163
+
164
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-invalid {
165
+ background: #F3F3F3;
166
+ }
167
+
168
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-now {
169
+ border-top-color: #0052D9;
170
+ background: #ECF2FE;
171
+ }
172
+
173
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell-value {
174
+ font-size: 14px;
175
+ font-weight: 400;
176
+ line-height: 22px;
177
+ color: rgba(0, 0, 0, 0.9);
178
+ margin-top: 3px;
179
+ position: relative;
180
+ }
181
+
182
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-disabled .weda-calendar__table-body-cell-value {
183
+ color: rgba(0, 0, 0, 0.26);
184
+ }
185
+
186
+ .weda-calendar .weda-calendar__table .weda-calendar__table-body-cell .weda-calendar__table-body-cell-marked {
187
+ position: absolute;
188
+ width: 6px;
189
+ height: 6px;
190
+ border-radius: 50%;
191
+ left: 50%;
192
+ transform: translate(-50%);
193
+ bottom: -10px;
194
+ }
195
+
196
+ /* pc 日历样式 end */
197
+
198
+ /* h5 日历样式 start */
199
+
200
+ .weda-calendar.weda-calendar-h5 {
201
+ background: #FFFFFF;
202
+ width: 100%;
203
+ opacity: 0.9;
204
+ }
205
+
206
+ .weda-calendar-h5 .weda-calendar__control_pc {
207
+ display: none;
208
+ }
209
+
210
+ .weda-calendar__control_h5 {
211
+ width: 100%;
212
+ box-sizing: border-box;
213
+ padding: 16px 16px 0 16px;
214
+ position: relative;
215
+ text-align: center;
216
+ }
217
+ .weda-calendar__control_h5 .wedatea2td-icon-arrowleft--line,
218
+ .weda-calendar__control_h5 .wedatea2td-icon-arrowright--line {
219
+ vertical-align: middle;
220
+ background-repeat: no-repeat;
221
+ background-size: contain;
222
+ background-position: center;
223
+ }
224
+
225
+ .weda-calendar__control_h5 .weda-calendar_prevMonth.wedatea2td-icon-arrowleft--line,
226
+ .weda-calendar__control_h5 .weda-calendar_nextMonth.wedatea2td-icon-arrowright--line {
227
+ position: absolute;
228
+ top: 17px;
229
+ width: 20px;
230
+ height: 20px;
231
+ }
232
+
233
+ .weda-calendar__control_h5 .weda-calendar_prevMonth.wedatea2td-icon-arrowleft--line {
234
+ left: 16px;
235
+ }
236
+ .weda-calendar__control_h5 .weda-calendar_nextMonth.wedatea2td-icon-arrowright--line {
237
+ right: 16px;
238
+ }
239
+
240
+ .weda-calendar__control_h5 .weda-calendar__current-date {
241
+ font-size: 14px;
242
+ line-height: 22px;
243
+ font-weight: bold;
244
+ }
245
+
246
+ .weda-calendar-h5 .weda-calendar__panel {
247
+ height: 306px;
248
+ padding: 20px 16px 16px 16px;
249
+ width: 100%;
250
+ box-sizing: border-box;
251
+ }
252
+
253
+ .weda-calendar-h5 .weda-calendar__table {
254
+ width: 100%;
255
+ height: 100%;
256
+ display: -webkit-box;
257
+ display: -ms-flexbox;
258
+ display: flex;
259
+ -webkit-box-orient: vertical;
260
+ -webkit-box-direction: normal;
261
+ -ms-flex-direction: column;
262
+ flex-direction: column;
263
+ justify-self: start;
264
+ -webkit-box-align: start;
265
+ -ms-flex-align: start;
266
+ align-items: flex-start;
267
+ }
268
+
269
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-head {
270
+ margin-bottom: 0;
271
+ }
272
+
273
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-head-cell {
274
+ font-size: 12px;
275
+ line-height: 20px;
276
+ width: 100%;
277
+ height: 100%;
278
+ margin: 0;
279
+ -webkit-box-pack: center;
280
+ -ms-flex-pack: center;
281
+ justify-content: center;
282
+ font-size: 12px;
283
+ line-height: 20px;
284
+ -webkit-box-sizing: border-box;
285
+ box-sizing: border-box;
286
+ }
287
+
288
+ .weda-calendar-h5 .weda-calendar__table-body {
289
+ display: -webkit-box;
290
+ display: -ms-flexbox;
291
+ display: flex;
292
+ -webkit-box-orient: vertical;
293
+ -webkit-box-direction: normal;
294
+ -ms-flex-direction: column;
295
+ flex-direction: column;
296
+ justify-self: center;
297
+ -webkit-box-align: center;
298
+ -ms-flex-align: center;
299
+ align-items: center;
300
+ -webkit-box-flex: 1;
301
+ -ms-flex: 1;
302
+ flex: 1;
303
+ }
304
+
305
+ .weda-calendar-h5 .weda-calendar__table-body .weda-calendar__table-body-row {
306
+ width: 100%;
307
+ display: -webkit-box;
308
+ display: -ms-flexbox;
309
+ display: flex;
310
+ flex: 1;
311
+ }
312
+
313
+ .weda-calendar-h5 .weda-calendar__table-body .weda-calendar__table-body-cell {
314
+ width: 100%;
315
+ height: 100%;
316
+ margin: 0;
317
+ border: none;
318
+ -webkit-box-pack: center;
319
+ -ms-flex-pack: center;
320
+ justify-content: center;
321
+ font-size: 12px;
322
+ line-height: 20px;
323
+ -webkit-box-sizing: border-box;
324
+ box-sizing: border-box;
325
+ -webkit-box-pack: center;
326
+ -ms-flex-pack: center;
327
+ justify-content: center;
328
+ -webkit-box-align: center;
329
+ -ms-flex-align: center;
330
+ align-items: center;
331
+ flex-direction: row;
332
+ }
333
+
334
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-now {
335
+ border: none;
336
+ background: transparent;
337
+ }
338
+
339
+ .weda-calendar-h5 .weda-calendar__table-body .weda-calendar__table-body-cell-value {
340
+ font-size: 14px;
341
+ text-align: center;
342
+ border-radius: 50%;
343
+ width: 40px;
344
+ line-height: 40px;
345
+ margin: 0;
346
+ box-sizing: border-box;
347
+ }
348
+
349
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-now .weda-calendar__table-body-cell-value {
350
+ color: #fff;
351
+ }
352
+
353
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-now .weda-calendar__table-body-cell-bg {
354
+ position: absolute;
355
+ width: 24px;
356
+ height: 24px;
357
+ background: #0052D9;
358
+ border-radius: 100%;
359
+ left: calc(50% - 12px);
360
+ top: calc(50% - 12px);
361
+ z-index: -1;
362
+ }
363
+
364
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell .weda-calendar__table-body-cell-marked {
365
+ width: 4px;
366
+ height: 4px;
367
+ top: calc(50% + 14px);
368
+ }
369
+
370
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-disabled .weda-calendar__table-body-cell-value {
371
+ color: rgba(0, 0, 0, 0.6);
372
+ }
373
+
374
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-invalid {
375
+ background: transparent;
376
+ }
377
+
378
+ .weda-calendar-h5 .weda-calendar__table .weda-calendar__table-body-cell.is-invalid .weda-calendar__table-body-cell-value {
379
+ color: #c5c5c5;
380
+ }
381
+
382
+ /* h5 日历样式 end */