@cloudbase/weda-ui 2.0.26 → 3.1.0

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 (411) hide show
  1. package/package.json +12 -13
  2. package/src/configs/actions/showModal.json +0 -48
  3. package/src/configs/actions/showToast.json +0 -41
  4. package/src/configs/components/auth.json +0 -16
  5. package/src/configs/components/button.json +0 -239
  6. package/src/configs/components/calendar.json +0 -81
  7. package/src/configs/components/carousel.json +0 -292
  8. package/src/configs/components/chart/bar.json +0 -721
  9. package/src/configs/components/chart/line.json +0 -674
  10. package/src/configs/components/chart/pie.json +0 -494
  11. package/src/configs/components/chart/statisticsCard.json +0 -376
  12. package/src/configs/components/container.json +0 -50
  13. package/src/configs/components/dataView.json +0 -151
  14. package/src/configs/components/drawer.json +0 -115
  15. package/src/configs/components/form/checkbox.json +0 -173
  16. package/src/configs/components/form/form.json +0 -45
  17. package/src/configs/components/form/input.json +0 -154
  18. package/src/configs/components/form/label.json +0 -22
  19. package/src/configs/components/form/location.json +0 -155
  20. package/src/configs/components/form/radio.json +0 -203
  21. package/src/configs/components/form/richText.json +0 -125
  22. package/src/configs/components/form/select.json +0 -411
  23. package/src/configs/components/form/switch.json +0 -58
  24. package/src/configs/components/form/textarea.json +0 -116
  25. package/src/configs/components/form/tips.json +0 -34
  26. package/src/configs/components/form/uploader.json +0 -169
  27. package/src/configs/components/form/uploaderFile.json +0 -158
  28. package/src/configs/components/graphicCard.json +0 -413
  29. package/src/configs/components/image.json +0 -179
  30. package/src/configs/components/link.json +0 -79
  31. package/src/configs/components/listView.json +0 -281
  32. package/src/configs/components/lottery.json +0 -157
  33. package/src/configs/components/modal.json +0 -83
  34. package/src/configs/components/navLayout.json +0 -368
  35. package/src/configs/components/navigationBar.json +0 -62
  36. package/src/configs/components/picker/datePicker.json +0 -33
  37. package/src/configs/components/picker/picker.json +0 -18
  38. package/src/configs/components/picker/timePicker.json +0 -23
  39. package/src/configs/components/richtextview.json +0 -26
  40. package/src/configs/components/scrollVeiw.json +0 -253
  41. package/src/configs/components/slot.json +0 -17
  42. package/src/configs/components/swiper.json +0 -90
  43. package/src/configs/components/tabs.json +0 -121
  44. package/src/configs/components/text.json +0 -95
  45. package/src/configs/components/wedaVideo.json +0 -89
  46. package/src/configs/components/wxOpenApi/phone.json +0 -127
  47. package/src/configs/components/wxOpenApi/phoneCode.json +0 -109
  48. package/src/configs/components/wxOpenApi/share.json +0 -157
  49. package/src/configs/components/wxOpenApi/userInfo.json +0 -156
  50. package/src/configs/index.js +0 -111
  51. package/src/index.js +0 -4
  52. package/src/mp/README.md +0 -1
  53. package/src/mp/actions/showModal/index.js +0 -3
  54. package/src/mp/actions/showToast/index.js +0 -3
  55. package/src/mp/components/button/index.js +0 -91
  56. package/src/mp/components/button/index.json +0 -4
  57. package/src/mp/components/button/index.wxml +0 -22
  58. package/src/mp/components/button/index.wxss +0 -13
  59. package/src/mp/components/calendar/arrowright--line.svg +0 -11
  60. package/src/mp/components/calendar/index.js +0 -268
  61. package/src/mp/components/calendar/index.json +0 -5
  62. package/src/mp/components/calendar/index.wxml +0 -35
  63. package/src/mp/components/calendar/index.wxss +0 -179
  64. package/src/mp/components/carousel/index.js +0 -88
  65. package/src/mp/components/carousel/index.json +0 -7
  66. package/src/mp/components/carousel/index.wxml +0 -6
  67. package/src/mp/components/chart/bar/index.js +0 -257
  68. package/src/mp/components/chart/bar/index.json +0 -6
  69. package/src/mp/components/chart/bar/index.wxml +0 -3
  70. package/src/mp/components/chart/bar/index.wxss +0 -9
  71. package/src/mp/components/chart/common/config/bar.js +0 -50
  72. package/src/mp/components/chart/common/config/global.js +0 -16
  73. package/src/mp/components/chart/common/config/line.js +0 -48
  74. package/src/mp/components/chart/common/config/pie.js +0 -36
  75. package/src/mp/components/chart/common/core/eChartBar.js +0 -258
  76. package/src/mp/components/chart/common/core/eChartBase.js +0 -389
  77. package/src/mp/components/chart/common/core/eChartLine.js +0 -223
  78. package/src/mp/components/chart/common/core/eChartPie.js +0 -169
  79. package/src/mp/components/chart/common/lib/echarts.min.js +0 -18
  80. package/src/mp/components/chart/ec-canvas/ec-canvas.js +0 -277
  81. package/src/mp/components/chart/ec-canvas/ec-canvas.json +0 -4
  82. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +0 -4
  83. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +0 -4
  84. package/src/mp/components/chart/ec-canvas/wx-canvas.js +0 -109
  85. package/src/mp/components/chart/line/index.js +0 -247
  86. package/src/mp/components/chart/line/index.json +0 -6
  87. package/src/mp/components/chart/line/index.wxml +0 -3
  88. package/src/mp/components/chart/line/index.wxss +0 -9
  89. package/src/mp/components/chart/pie/index.js +0 -182
  90. package/src/mp/components/chart/pie/index.json +0 -6
  91. package/src/mp/components/chart/pie/index.wxml +0 -3
  92. package/src/mp/components/chart/pie/index.wxss +0 -9
  93. package/src/mp/components/chart/statisticsCard/index.js +0 -253
  94. package/src/mp/components/chart/statisticsCard/index.json +0 -4
  95. package/src/mp/components/chart/statisticsCard/index.wxml +0 -9
  96. package/src/mp/components/chart/statisticsCard/index.wxss +0 -42
  97. package/src/mp/components/container/index.js +0 -20
  98. package/src/mp/components/container/index.json +0 -4
  99. package/src/mp/components/container/index.wxml +0 -3
  100. package/src/mp/components/dataView/index.js +0 -34
  101. package/src/mp/components/dataView/index.json +0 -7
  102. package/src/mp/components/dataView/index.wxml +0 -3
  103. package/src/mp/components/dataView/index.wxss +0 -0
  104. package/src/mp/components/form/checkbox/index.js +0 -124
  105. package/src/mp/components/form/checkbox/index.json +0 -7
  106. package/src/mp/components/form/checkbox/index.wxml +0 -13
  107. package/src/mp/components/form/checkbox/index.wxss +0 -1
  108. package/src/mp/components/form/form/index.js +0 -18
  109. package/src/mp/components/form/form/index.json +0 -4
  110. package/src/mp/components/form/form/index.wxml +0 -5
  111. package/src/mp/components/form/form/index.wxss +0 -1
  112. package/src/mp/components/form/formcell/index.js +0 -54
  113. package/src/mp/components/form/formcell/index.json +0 -4
  114. package/src/mp/components/form/formcell/index.wxml +0 -11
  115. package/src/mp/components/form/formcell/index.wxss +0 -31
  116. package/src/mp/components/form/input/index.js +0 -110
  117. package/src/mp/components/form/input/index.json +0 -7
  118. package/src/mp/components/form/input/index.wxml +0 -24
  119. package/src/mp/components/form/input/index.wxss +0 -22
  120. package/src/mp/components/form/location/components/mapChoose/index.js +0 -201
  121. package/src/mp/components/form/location/components/mapChoose/index.json +0 -4
  122. package/src/mp/components/form/location/components/mapChoose/index.wxml +0 -42
  123. package/src/mp/components/form/location/components/mapChoose/index.wxss +0 -188
  124. package/src/mp/components/form/location/index.js +0 -388
  125. package/src/mp/components/form/location/index.json +0 -6
  126. package/src/mp/components/form/location/index.wxml +0 -21
  127. package/src/mp/components/form/location/index.wxss +0 -89
  128. package/src/mp/components/form/radio/index.js +0 -124
  129. package/src/mp/components/form/radio/index.json +0 -7
  130. package/src/mp/components/form/radio/index.wxml +0 -13
  131. package/src/mp/components/form/radio/index.wxss +0 -1
  132. package/src/mp/components/form/select/index.js +0 -677
  133. package/src/mp/components/form/select/index.json +0 -7
  134. package/src/mp/components/form/select/index.wxml +0 -12
  135. package/src/mp/components/form/select/index.wxss +0 -16
  136. package/src/mp/components/form/select/region/index.js +0 -107
  137. package/src/mp/components/form/switch/index.js +0 -75
  138. package/src/mp/components/form/switch/index.json +0 -7
  139. package/src/mp/components/form/switch/index.wxml +0 -11
  140. package/src/mp/components/form/switch/index.wxss +0 -1
  141. package/src/mp/components/form/textarea/index.js +0 -90
  142. package/src/mp/components/form/textarea/index.json +0 -7
  143. package/src/mp/components/form/textarea/index.wxml +0 -8
  144. package/src/mp/components/form/textarea/index.wxss +0 -10
  145. package/src/mp/components/form/tips/index.js +0 -41
  146. package/src/mp/components/form/tips/index.json +0 -4
  147. package/src/mp/components/form/tips/index.wxml +0 -1
  148. package/src/mp/components/form/tips/index.wxss +0 -1
  149. package/src/mp/components/form/uploader/index.js +0 -158
  150. package/src/mp/components/form/uploader/index.json +0 -10
  151. package/src/mp/components/form/uploader/index.wxml +0 -14
  152. package/src/mp/components/form/uploader/index.wxss +0 -36
  153. package/src/mp/components/form/uploader/weui-uploader.js +0 -219
  154. package/src/mp/components/form/uploader/weui-uploader.json +0 -7
  155. package/src/mp/components/form/uploader/weui-uploader.wxml +0 -45
  156. package/src/mp/components/form/uploader/weui-uploader.wxss +0 -1
  157. package/src/mp/components/form/uploaderFile/index.js +0 -313
  158. package/src/mp/components/form/uploaderFile/index.json +0 -9
  159. package/src/mp/components/form/uploaderFile/index.wxml +0 -45
  160. package/src/mp/components/form/uploaderFile/index.wxss +0 -105
  161. package/src/mp/components/graphicCard/chevron-right.svg +0 -3
  162. package/src/mp/components/graphicCard/index.js +0 -203
  163. package/src/mp/components/graphicCard/index.json +0 -4
  164. package/src/mp/components/graphicCard/index.wxml +0 -25
  165. package/src/mp/components/graphicCard/index.wxss +0 -157
  166. package/src/mp/components/image/index.js +0 -182
  167. package/src/mp/components/image/index.json +0 -7
  168. package/src/mp/components/image/index.wxml +0 -9
  169. package/src/mp/components/image/index.wxss +0 -49
  170. package/src/mp/components/listView/arrow-right-line.svg +0 -3
  171. package/src/mp/components/listView/index.js +0 -274
  172. package/src/mp/components/listView/index.json +0 -4
  173. package/src/mp/components/listView/index.wxml +0 -38
  174. package/src/mp/components/listView/index.wxss +0 -155
  175. package/src/mp/components/listView/more-line.svg +0 -3
  176. package/src/mp/components/lottery/index.js +0 -270
  177. package/src/mp/components/lottery/index.json +0 -4
  178. package/src/mp/components/lottery/index.wxml +0 -41
  179. package/src/mp/components/lottery/index.wxss +0 -323
  180. package/src/mp/components/modal/index.js +0 -39
  181. package/src/mp/components/modal/index.json +0 -4
  182. package/src/mp/components/modal/index.wxml +0 -1
  183. package/src/mp/components/navLayout/index.js +0 -120
  184. package/src/mp/components/navLayout/index.json +0 -7
  185. package/src/mp/components/navLayout/index.wxml +0 -23
  186. package/src/mp/components/navLayout/index.wxss +0 -1193
  187. package/src/mp/components/navigationBar/index.js +0 -193
  188. package/src/mp/components/navigationBar/index.json +0 -5
  189. package/src/mp/components/navigationBar/index.wxml +0 -80
  190. package/src/mp/components/navigationBar/index.wxss +0 -1257
  191. package/src/mp/components/richText/index.js +0 -67
  192. package/src/mp/components/richText/index.json +0 -4
  193. package/src/mp/components/richText/index.wxml +0 -3
  194. package/src/mp/components/richText/index.wxss +0 -27
  195. package/src/mp/components/scrollView/index.js +0 -119
  196. package/src/mp/components/scrollView/index.json +0 -4
  197. package/src/mp/components/scrollView/index.wxml +0 -38
  198. package/src/mp/components/slot/index.js +0 -20
  199. package/src/mp/components/slot/index.json +0 -4
  200. package/src/mp/components/slot/index.wxml +0 -3
  201. package/src/mp/components/swiper/index.js +0 -65
  202. package/src/mp/components/swiper/index.json +0 -4
  203. package/src/mp/components/swiper/index.wxml +0 -3
  204. package/src/mp/components/tabs/index.js +0 -59
  205. package/src/mp/components/tabs/index.json +0 -4
  206. package/src/mp/components/tabs/index.wxml +0 -12
  207. package/src/mp/components/tabs/index.wxss +0 -57
  208. package/src/mp/components/text/index.js +0 -40
  209. package/src/mp/components/text/index.json +0 -4
  210. package/src/mp/components/text/index.wxml +0 -1
  211. package/src/mp/components/text/index.wxss +0 -26
  212. package/src/mp/components/wedaVideo/index.js +0 -86
  213. package/src/mp/components/wedaVideo/index.json +0 -4
  214. package/src/mp/components/wedaVideo/index.wxml +0 -4
  215. package/src/mp/components/wedaVideo/index.wxss +0 -20
  216. package/src/mp/components/wxOpenApi/phone/index.js +0 -109
  217. package/src/mp/components/wxOpenApi/phone/index.json +0 -4
  218. package/src/mp/components/wxOpenApi/phone/index.wxml +0 -4
  219. package/src/mp/components/wxOpenApi/phone/index.wxss +0 -22
  220. package/src/mp/components/wxOpenApi/phoneCode/index.js +0 -89
  221. package/src/mp/components/wxOpenApi/phoneCode/index.json +0 -4
  222. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +0 -4
  223. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +0 -22
  224. package/src/mp/components/wxOpenApi/share/index.js +0 -117
  225. package/src/mp/components/wxOpenApi/share/index.json +0 -4
  226. package/src/mp/components/wxOpenApi/share/index.wxml +0 -4
  227. package/src/mp/components/wxOpenApi/share/index.wxss +0 -22
  228. package/src/mp/components/wxOpenApi/userInfo/index.js +0 -88
  229. package/src/mp/components/wxOpenApi/userInfo/index.json +0 -4
  230. package/src/mp/components/wxOpenApi/userInfo/index.wxml +0 -4
  231. package/src/mp/components/wxOpenApi/userInfo/index.wxss +0 -22
  232. package/src/mp/index.json +0 -52
  233. package/src/mp/package.json +0 -6
  234. package/src/mp/style/weda-ui.wxss +0 -71
  235. package/src/mp/utils/classnames.js +0 -39
  236. package/src/mp/utils/constant.js +0 -20
  237. package/src/mp/utils/dayjs.min.js +0 -1
  238. package/src/mp/utils/debounce.js +0 -133
  239. package/src/mp/utils/deepEqual.js +0 -42
  240. package/src/mp/utils/destr.js +0 -49
  241. package/src/mp/utils/dr_square_point.js +0 -29
  242. package/src/mp/utils/handleEvents.js +0 -32
  243. package/src/mp/utils/lodash.js +0 -2
  244. package/src/mp/utils/platform.js +0 -45
  245. package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +0 -1336
  246. package/src/mp/utils/spark-md5.js +0 -776
  247. package/src/mp/utils/tcb.js +0 -76
  248. package/src/setupTests.js +0 -14
  249. package/src/web/actions/index.js +0 -2
  250. package/src/web/actions/showModal/index.tsx +0 -118
  251. package/src/web/actions/showToast/index.js +0 -3
  252. package/src/web/components/auth/index.css +0 -0
  253. package/src/web/components/auth/index.js +0 -66
  254. package/src/web/components/button/index.css +0 -27
  255. package/src/web/components/button/index.tsx +0 -119
  256. package/src/web/components/calendar/index.css +0 -416
  257. package/src/web/components/calendar/index.jsx +0 -312
  258. package/src/web/components/calendar/util.js +0 -90
  259. package/src/web/components/carousel/index.css +0 -119
  260. package/src/web/components/carousel/index.tsx +0 -417
  261. package/src/web/components/chart/bar/index.tsx +0 -140
  262. package/src/web/components/chart/common/config/bar.js +0 -49
  263. package/src/web/components/chart/common/config/global.js +0 -16
  264. package/src/web/components/chart/common/config/line.js +0 -50
  265. package/src/web/components/chart/common/config/pie.js +0 -37
  266. package/src/web/components/chart/common/core/eChartBar.js +0 -259
  267. package/src/web/components/chart/common/core/eChartBase.ts +0 -396
  268. package/src/web/components/chart/common/core/eChartLine.js +0 -225
  269. package/src/web/components/chart/common/core/eChartPie.js +0 -173
  270. package/src/web/components/chart/common/core/type.ts +0 -34
  271. package/src/web/components/chart/common/echart.css +0 -106
  272. package/src/web/components/chart/common/echarts.ts +0 -31
  273. package/src/web/components/chart/common/useChart.tsx +0 -87
  274. package/src/web/components/chart/line/index.tsx +0 -136
  275. package/src/web/components/chart/pie/index.tsx +0 -99
  276. package/src/web/components/chart/statisticsCard/index.css +0 -63
  277. package/src/web/components/chart/statisticsCard/index.tsx +0 -307
  278. package/src/web/components/chart/statisticsCard/interface.ts +0 -14
  279. package/src/web/components/container/index.tsx +0 -34
  280. package/src/web/components/dataView/index.tsx +0 -20
  281. package/src/web/components/dataView/interface.ts +0 -6
  282. package/src/web/components/drawer/index.tsx +0 -68
  283. package/src/web/components/form/checkbox/index.tsx +0 -210
  284. package/src/web/components/form/enumSelect/MultipleSelect.jsx +0 -89
  285. package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -92
  286. package/src/web/components/form/enumSelect/SelectContainer.jsx +0 -43
  287. package/src/web/components/form/enumSelect/index.jsx +0 -9
  288. package/src/web/components/form/enumSelect/props/defaultProps.js +0 -39
  289. package/src/web/components/form/enumSelect/props/propsTypes.js +0 -50
  290. package/src/web/components/form/form/index.css +0 -9
  291. package/src/web/components/form/form/index.tsx +0 -51
  292. package/src/web/components/form/formcell/index.css +0 -85
  293. package/src/web/components/form/formcell/index.tsx +0 -85
  294. package/src/web/components/form/input/index.css +0 -40
  295. package/src/web/components/form/input/index.tsx +0 -166
  296. package/src/web/components/form/location/common/mapChoose.css +0 -180
  297. package/src/web/components/form/location/common/mapChoose.jsx +0 -343
  298. package/src/web/components/form/location/common/mapView.jsx +0 -190
  299. package/src/web/components/form/location/common/propsConfig.js +0 -54
  300. package/src/web/components/form/location/common/selectModal.css +0 -44
  301. package/src/web/components/form/location/common/selectModal.jsx +0 -73
  302. package/src/web/components/form/location/common/useLocationInfo.js +0 -104
  303. package/src/web/components/form/location/components/LocationH5/index.css +0 -239
  304. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +0 -413
  305. package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -96
  306. package/src/web/components/form/location/components/LocationPC/index.css +0 -44
  307. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +0 -332
  308. package/src/web/components/form/location/constants.js +0 -4
  309. package/src/web/components/form/location/index.css +0 -0
  310. package/src/web/components/form/location/index.jsx +0 -25
  311. package/src/web/components/form/radio/index.css +0 -12
  312. package/src/web/components/form/radio/index.tsx +0 -179
  313. package/src/web/components/form/renderDecorator.tsx +0 -28
  314. package/src/web/components/form/select/h5.tsx +0 -602
  315. package/src/web/components/form/select/index.css +0 -27
  316. package/src/web/components/form/select/index.tsx +0 -510
  317. package/src/web/components/form/select/region/index.ts +0 -152
  318. package/src/web/components/form/select/time.jsx +0 -145
  319. package/src/web/components/form/select/year.tsx +0 -172
  320. package/src/web/components/form/switch/index.tsx +0 -100
  321. package/src/web/components/form/textarea/index.css +0 -11
  322. package/src/web/components/form/textarea/index.tsx +0 -127
  323. package/src/web/components/form/tips/index.css +0 -4
  324. package/src/web/components/form/tips/index.tsx +0 -34
  325. package/src/web/components/form/types.d.ts +0 -12
  326. package/src/web/components/form/uploader/index.css +0 -118
  327. package/src/web/components/form/uploader/index.tsx +0 -65
  328. package/src/web/components/form/uploader/uploader.h5.tsx +0 -290
  329. package/src/web/components/form/uploader/uploader.pc.tsx +0 -287
  330. package/src/web/components/form/uploaderFile/fail.svg +0 -12
  331. package/src/web/components/form/uploaderFile/index.css +0 -422
  332. package/src/web/components/form/uploaderFile/index.jsx +0 -25
  333. package/src/web/components/form/uploaderFile/pending.svg +0 -18
  334. package/src/web/components/form/uploaderFile/success.svg +0 -12
  335. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +0 -606
  336. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +0 -520
  337. package/src/web/components/graphicCard/index.css +0 -159
  338. package/src/web/components/graphicCard/index.tsx +0 -310
  339. package/src/web/components/image/image.tsx +0 -187
  340. package/src/web/components/image/index.css +0 -54
  341. package/src/web/components/image/index.tsx +0 -121
  342. package/src/web/components/index.js +0 -95
  343. package/src/web/components/link/index.css +0 -8
  344. package/src/web/components/link/index.tsx +0 -119
  345. package/src/web/components/listView/arrow-right-line.svg +0 -3
  346. package/src/web/components/listView/index.css +0 -143
  347. package/src/web/components/listView/index.tsx +0 -346
  348. package/src/web/components/listView/interface.ts +0 -98
  349. package/src/web/components/lottery/index.css +0 -333
  350. package/src/web/components/lottery/index.tsx +0 -567
  351. package/src/web/components/lottery/lotteryUtil.ts +0 -130
  352. package/src/web/components/modal/index.tsx +0 -60
  353. package/src/web/components/navLayout/index.css +0 -332
  354. package/src/web/components/navLayout/index.tsx +0 -247
  355. package/src/web/components/navigationBar/chevron-right--double.svg +0 -3
  356. package/src/web/components/navigationBar/common.tsx +0 -198
  357. package/src/web/components/navigationBar/h5Menu.tsx +0 -179
  358. package/src/web/components/navigationBar/horizontalMenu.tsx +0 -200
  359. package/src/web/components/navigationBar/index.css +0 -762
  360. package/src/web/components/navigationBar/index.tsx +0 -230
  361. package/src/web/components/navigationBar/type.d.ts +0 -111
  362. package/src/web/components/navigationBar/verticalMenu.tsx +0 -81
  363. package/src/web/components/phone/index.css +0 -0
  364. package/src/web/components/phone/index.tsx +0 -22
  365. package/src/web/components/phoneCode/index.css +0 -0
  366. package/src/web/components/phoneCode/index.tsx +0 -22
  367. package/src/web/components/picker/datePicker.tsx +0 -48
  368. package/src/web/components/picker/picker.tsx +0 -59
  369. package/src/web/components/picker/timePicker.tsx +0 -56
  370. package/src/web/components/richText/const.ts +0 -3
  371. package/src/web/components/richText/index.css +0 -93
  372. package/src/web/components/richText/index.jsx +0 -473
  373. package/src/web/components/richTextView/index.css +0 -63
  374. package/src/web/components/richTextView/index.tsx +0 -63
  375. package/src/web/components/scrollView/index.tsx +0 -148
  376. package/src/web/components/share/index.css +0 -0
  377. package/src/web/components/share/index.tsx +0 -38
  378. package/src/web/components/slot/index.tsx +0 -19
  379. package/src/web/components/swiper/index.css +0 -106
  380. package/src/web/components/swiper/index.tsx +0 -291
  381. package/src/web/components/tabs/index.css +0 -64
  382. package/src/web/components/tabs/index.tsx +0 -35
  383. package/src/web/components/tabs/tabs.h5.tsx +0 -84
  384. package/src/web/components/tabs/tabs.pc.tsx +0 -74
  385. package/src/web/components/text/index.css +0 -26
  386. package/src/web/components/text/index.tsx +0 -60
  387. package/src/web/components/uploaderFileView/index.css +0 -11
  388. package/src/web/components/uploaderFileView/index.jsx +0 -84
  389. package/src/web/components/uploaderView/index.css +0 -31
  390. package/src/web/components/uploaderView/index.tsx +0 -92
  391. package/src/web/components/userInfo/index.css +0 -0
  392. package/src/web/components/userInfo/index.tsx +0 -30
  393. package/src/web/components/wedaVideo/index.css +0 -42
  394. package/src/web/components/wedaVideo/index.tsx +0 -208
  395. package/src/web/index.js +0 -4
  396. package/src/web/types.d.ts +0 -21
  397. package/src/web/utils/classnames.js +0 -39
  398. package/src/web/utils/constant.ts +0 -23
  399. package/src/web/utils/debounce.js +0 -98
  400. package/src/web/utils/events.js +0 -2
  401. package/src/web/utils/getLocalCounter.js +0 -5
  402. package/src/web/utils/isObjectEqual.js +0 -15
  403. package/src/web/utils/loading-fallback.tsx +0 -2
  404. package/src/web/utils/lodash.ts +0 -2
  405. package/src/web/utils/platform.js +0 -156
  406. package/src/web/utils/tcb.js +0 -86
  407. package/src/web/utils/tmap.js +0 -4
  408. package/src/web/utils/useSetState.ts +0 -18
  409. package/src/web/utils/useSyncValue.ts +0 -17
  410. package/src/web/utils/weui.js +0 -3
  411. package/src/web/weda-ui.css +0 -86
@@ -1,49 +0,0 @@
1
- .weda-image {
2
- width: 240rpx;
3
- height: 240rpx;
4
- }
5
- .weda-img-mask {
6
- position: fixed;
7
- top: 0;
8
- bottom: 0;
9
- left: 0;
10
- right: 0;
11
- background-color: black;
12
- z-index: 99;
13
- }
14
-
15
- .weda-img-preview {
16
- background: center center no-repeat;
17
- background-size: contain;
18
- width: 100%;
19
- position: absolute;
20
- left: 0;
21
- right: 0;
22
- top: 0;
23
- bottom: 0;
24
- }
25
-
26
- .weda-img-modal-close-btn {
27
- position: fixed;
28
- top: 16px;
29
- right: 16px;
30
- display: inline-block;
31
- z-index: 99;
32
- }
33
-
34
- .weda-image-error {
35
- position: relative !important;
36
- display: inline-block !important;
37
- }
38
-
39
- .weda-image-error::before {
40
- content: '';
41
- background: #f5f5f5
42
- url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMjUuMzIgMTYuMzU5N0MyNi4wNzY0IDE2LjM1OTcgMjYuODI1NCAxNi41MDg3IDI3LjUyNDMgMTYuNzk4MUMyOC4yMjMxIDE3LjA4NzYgMjguODU4MSAxNy41MTE5IDI5LjM5MjkgMTguMDQ2OEMyOS45Mjc4IDE4LjU4MTYgMzAuMzUyMSAxOS4yMTY2IDMwLjY0MTYgMTkuOTE1NEMzMC45MzEgMjAuNjE0MyAzMS4wOCAyMS4zNjMzIDMxLjA4IDIyLjExOTdDMzEuMDggMjIuODc2MSAzMC45MzEgMjMuNjI1MSAzMC42NDE2IDI0LjMyMzlDMzAuMzUyMSAyNS4wMjI4IDI5LjkyNzggMjUuNjU3OCAyOS4zOTI5IDI2LjE5MjZDMjguODU4MSAyNi43Mjc1IDI4LjIyMzEgMjcuMTUxOCAyNy41MjQzIDI3LjQ0MTJDMjYuODI1NCAyNy43MzA3IDI2LjA3NjQgMjcuODc5NyAyNS4zMiAyNy44Nzk3QzIzLjc5MjQgMjcuODc5NyAyMi4zMjczIDI3LjI3MjggMjEuMjQ3MSAyNi4xOTI2QzIwLjE2NjkgMjUuMTEyNCAxOS41NiAyMy42NDczIDE5LjU2IDIyLjExOTdDMTkuNTYgMjAuNTkyIDIwLjE2NjkgMTkuMTI3IDIxLjI0NzEgMTguMDQ2OEMyMi4zMjczIDE2Ljk2NjUgMjMuNzkyNCAxNi4zNTk3IDI1LjMyIDE2LjM1OTdaTTI4IDMuNTU5NjlWMTQuODc2OEMyNy4xNzc3IDE0LjU4NjYgMjYuMTkyIDE0LjQzODggMjUuMzIgMTQuNDM5N0MyNC4wMzEgMTQuNDM5NyAyMi44MTU3IDE0Ljc1NzEgMjEuNzQ4OCAxNS4zMTg0TDIwLjc5NTIgMTMuMTU5N0wxNi4wMjU5IDIwLjAyNzVMOC40NDU3NiAxNi40NDFMMy41NiAyMy4zOTk3SDE3Ljc0NjJDMTcuOTg2NyAyNC44MjkgMTguNjI4MiAyNi4xNjA2IDE5LjU5NTggMjcuMjM5N0gxVjMuNTU5NjlIMjhaTTI1Ljk2IDI0LjAzOTdIMjQuNjhWMjUuMzE5N0gyNS45NlYyNC4wMzk3Wk0yNS45NiAxOC45MTk3SDI0LjY4VjIzLjM5OTdIMjUuOTZWMTguOTE5N1pNNi4xMiAxMC41OTk3QzYuMTIgMTEuOTk4MSA3LjE5OTA0IDEzLjEwODUgOC42MDc2OCAxMy4xNTg0QzEwLjAyMDggMTMuMjA3NyAxMS4yNCAxMi4wNDggMTEuMjQgMTAuNTk5N0MxMS4yNCA5LjI0NjA5IDEwLjA2NDMgOC4wODU3NyA4Ljc1MjMyIDguMDQwOTdDNy4yOTU2OCA3Ljk5MTY5IDYuMTIgOS4xNTEzNyA2LjEyIDEwLjU5OTdaIiBmaWxsPSIjQkNDNEQwIj48L3BhdGg+Cjwvc3ZnPgo=')
43
- no-repeat center / 50% 50%;
44
- position: absolute;
45
- left: 0;
46
- top: 0;
47
- width: 100%;
48
- height: 100%;
49
- }
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M13.1719 12.0002L8.22192 7.05023L9.63592 5.63623L15.9999 12.0002L9.63592 18.3642L8.22192 16.9502L13.1719 12.0002Z" fill="#09121F"/>
3
- </svg>
@@ -1,274 +0,0 @@
1
- import { REL_DICT } from '../../utils/constant';
2
- import { isNil } from '../../utils/lodash';
3
-
4
- const ORDERTYPE = ['asc', 'desc'];
5
- const getWhereList = (where) => {
6
- let result = [];
7
- Array.isArray(where) &&
8
- where.forEach((item1) => {
9
- if (item1?.groupLogic !== 'or' && Array.isArray(item1?.logicData)) {
10
- item1?.logicData.forEach((item2) => {
11
- let [rel, val] = [REL_DICT[item2?.rel], item2?.value];
12
- if ('_begin_with' === rel) {
13
- rel = 'regex';
14
- val = `^${val}`;
15
- }
16
- if ('_exclude' === rel) {
17
- rel = 'regex';
18
- val = `^((?!${val}).)*$`;
19
- }
20
- if (item2?.logic !== 'or' && item2?.key && rel && !isNil(val)) {
21
- result.push({ key: item2.key, rel, val });
22
- }
23
- });
24
- }
25
- });
26
- return result;
27
- };
28
- const DEFAULT_DATA = {
29
- pageNo: 1,
30
- total: 0,
31
- records: [],
32
- pageStr: '0/0',
33
- isVisiableSign: false,
34
- isFirstScreen: true,
35
- };
36
-
37
- Component({
38
- options: {
39
- virtualHost: true,
40
- },
41
- properties: {
42
- className: {
43
- type: String,
44
- value: '',
45
- },
46
- style: {
47
- type: String,
48
- value: '',
49
- },
50
- datasource: {
51
- type: Object,
52
- value: {},
53
- },
54
- orderBy: {
55
- type: String,
56
- },
57
- orderType: {
58
- type: String,
59
- },
60
- where: {
61
- type: Array,
62
- value: [],
63
- },
64
- pageSize: {
65
- type: Number,
66
- value: 5,
67
- },
68
- template: {
69
- type: String,
70
- value: 'simpleList',
71
- },
72
- pagination: {
73
- type: String,
74
- value: 'loadMoreButton',
75
- },
76
- beforeDataChange: {
77
- type: Function,
78
- value: (v) => v,
79
- },
80
- },
81
- data: { ...DEFAULT_DATA, isReLoad: false, loading: false },
82
- methods: {
83
- /**
84
- * 列表容器拉取数据,放在 setData 的回调函数中执行
85
- */
86
- _fetchData: async function () {
87
- const { app } = getApp();
88
- const callDataSource = app?.cloud?.callDataSource;
89
- const { pageNo, loading, isReLoad } = this.data;
90
- const { datasource, orderBy, orderType, where, pageSize } =
91
- this.properties;
92
- if (loading && !isReLoad) return;
93
- if (!callDataSource) {
94
- console.warn(`当前环境缺少方法 app.cloud.callDataSource`);
95
- return;
96
- }
97
- this.setData({ loading: true });
98
- const { name: dataSourceName, extra } = datasource || {};
99
- const methodName =
100
- typeof extra?.methodName === 'string'
101
- ? extra?.methodName
102
- : 'wedaGetRecords';
103
- const tcbParams = {};
104
-
105
- // tcb分页参数
106
- if (!isNil(pageNo) && !isNil(pageSize)) {
107
- tcbParams['pageNo'] = pageNo;
108
- tcbParams['pageSize'] = pageSize;
109
- }
110
- // tcb排序参数
111
- if (orderBy && ORDERTYPE.includes(orderType)) {
112
- tcbParams['orderBy'] = orderBy;
113
- tcbParams['orderType'] = orderType;
114
- }
115
- // tcb过滤参数
116
- const whereEffected = [].concat(getWhereList(where));
117
- whereEffected.length > 0 && (tcbParams['where'] = whereEffected);
118
- // tcb结果和事件
119
- try {
120
- const data = await callDataSource({
121
- dataSourceName,
122
- methodName,
123
- params: tcbParams,
124
- });
125
- let records = data?.records || [];
126
- let total = data?.total || 0;
127
- if (
128
- ['loadMoreButton', 'bottomLoad'].includes(
129
- this.properties.pagination
130
- ) &&
131
- !isReLoad
132
- ) {
133
- records = [...this.data.records, ...records]; // TODO 可能存在单次 setData 数据量过大引起小程序性能问题
134
- }
135
- this.setData(
136
- {
137
- total,
138
- records,
139
- loading: false,
140
- isReLoad: false,
141
- pageStr: `${total > 0 ? pageNo : 0}/${
142
- Math.ceil(total / pageSize) || 0
143
- }`,
144
- },
145
- () => {
146
- this._handleEvents(data);
147
- setTimeout(() => this._firstScreenLoadMore(), 150);
148
- }
149
- );
150
- } catch (e) {
151
- this.setData({ loading: false });
152
- }
153
- },
154
- /**
155
- * 下一页
156
- */
157
- handleNext: function () {
158
- if (
159
- this.data.loading ||
160
- !(this.properties.pageSize * this.data.pageNo < this.data.total)
161
- ) {
162
- return;
163
- }
164
- this.setData({ pageNo: this.data.pageNo + 1 }, () => this._fetchData());
165
- },
166
- /**
167
- * 上一页
168
- */
169
- handlePre: function () {
170
- if (this.data.loading || !(this.properties.pageNo > 1)) {
171
- return;
172
- }
173
- this.setData({ pageNo: this.data.pageNo - 1 }, () => this._fetchData());
174
- },
175
- /**
176
- * 向外部传递事件
177
- */
178
- _handleEvents: function (data) {
179
- const records = this.data.records || [];
180
- const total = this.data.total || records?.length || 0;
181
- const beforeDataChange = this.properties.beforeDataChange || ((v) => v);
182
- this.triggerEvent('onDataChange', {
183
- data: beforeDataChange(records),
184
- });
185
- if (JSON.stringify(data) === '{}') {
186
- this.triggerEvent('queryFail', {
187
- datasource: this.properties.datasource,
188
- data: null,
189
- });
190
- } else {
191
- if (total === 0) {
192
- this.triggerEvent('queryEmpty', {
193
- datasource: this.properties.datasource,
194
- data: beforeDataChange([]),
195
- });
196
- }
197
- this.triggerEvent('querySuccess', {
198
- datasource: this.properties.datasource,
199
- data: beforeDataChange(records),
200
- });
201
- }
202
- },
203
- /**
204
- * 首屏持续触底加载特殊处理
205
- */
206
- _firstScreenLoadMore: function () {
207
- if (this.properties.pagination === 'bottomLoad') {
208
- if (this.data.isFirstScreen) {
209
- this.setData({ isFirstScreen: false });
210
- this.contentObserver?.disconnect();
211
- this._observerContent();
212
- }
213
- }
214
- },
215
- /**
216
- * 开始监听slot
217
- */
218
- _observerContent: function () {
219
- this.contentObserver = this.createIntersectionObserver();
220
- this.contentObserver
221
- .relativeToViewport()
222
- .observe('#weda-list-view_content', (res) => {
223
- this.setData({
224
- isFirstScreen:
225
- res?.boundingClientRect?.bottom <= res?.relativeRect?.bottom,
226
- });
227
- });
228
- },
229
- /**
230
- * 开始监听sign
231
- */
232
- _observerSign: function () {
233
- this.signObserver = this.createIntersectionObserver();
234
- this.signObserver
235
- .relativeToViewport()
236
- .observe('#weda-list-view_sign', (res) => {
237
- this.setData({ isVisiableSign: res?.intersectionRatio > 0 });
238
- });
239
- },
240
- },
241
- observers: {
242
- 'datasource,orderBy,orderType,where,pageSize,pagination': function () {
243
- clearTimeout(this._timer);
244
- this._timer = setTimeout(
245
- () =>
246
- this.setData({ ...DEFAULT_DATA, isReLoad: true }, () =>
247
- this._fetchData()
248
- ),
249
- 200
250
- );
251
- },
252
- isVisiableSign: function (dIsVisiableSign) {
253
- if (dIsVisiableSign && this.properties.pagination === 'bottomLoad') {
254
- this.handleNext();
255
- }
256
- },
257
- isFirstScreen: function (dIsFirstScreen) {
258
- if (dIsFirstScreen && this.properties.pagination === 'bottomLoad') {
259
- this.handleNext();
260
- }
261
- },
262
- },
263
- lifetimes: {
264
- attached: function () {
265
- clearTimeout(this._timer);
266
- this._fetchData();
267
- this._observerSign();
268
- },
269
- detached: function () {
270
- this.contentObserver?.disconnect();
271
- this.signObserver?.disconnect();
272
- },
273
- },
274
- });
@@ -1,4 +0,0 @@
1
- {
2
- "component": true,
3
- "styleIsolation": "shared"
4
- }
@@ -1,38 +0,0 @@
1
- <scroll-view scroll-y scroll-with-animation lower-threshold="5" style="{{style}}" class="weda-list-view__containor weda-ui {{className}}">
2
- <!-- 列表插槽 -->
3
- <view class="{{template === 'cardList' ? 'weda-list-view-card' : ''}}" id="weda-list-view_content">
4
- <slot></slot>
5
- </view>
6
-
7
- <view class="weda-list-view__more {{'weda-list-view__more-' + pagination}}">
8
- <!-- 加载更多 -->
9
- <block wx:if="{{pagination==='loadMoreButton' && pageSize * pageNo < total}}">
10
- <view class="weda-list-view__more-text" bindtap="handleNext">加载更多</view>
11
- </block>
12
- <!-- 触底刷新 -->
13
- <block wx:elif="{{pagination==='bottomLoad'}}">
14
- <view class="weda-list-view__bottom-load" id="weda-list-view_sign">
15
- <view class="weda-list-view__more-symbol" wx:if="{{loading}}">
16
- <view class="weda-list-view__symbol-item"></view>
17
- <view class="weda-list-view__symbol-item"></view>
18
- <view class="weda-list-view__symbol-item"></view>
19
- </view>
20
- </view>
21
- </block>
22
- <!-- 分页器 -->
23
- <block wx:elif="{{pagination==='pagination'}}">
24
- <view class="weda-list-view__more-pagination">
25
- <view class="weda-list-view__pagination-pre {{pageNo > 1 ? 'active': ''}}" bindtap="handlePre">
26
- <image class="weda-list-view__pagination-icon" src="arrow-right-line.svg" />
27
- 上一页
28
- </view>
29
- <view class="weda-list-view__pagination-text">{{pageStr}}</view>
30
- <view class="weda-list-view__pagination-next {{pageSize * pageNo < total ? 'active' : ''}}" bindtap="handleNext">
31
- <image class="weda-list-view__pagination-icon" src="arrow-right-line.svg" />
32
- 下一页
33
- </view>
34
- </view>
35
- </block>
36
- <block wx:else></block>
37
- </view>
38
- </scroll-view>
@@ -1,155 +0,0 @@
1
- /* weda_list_view */
2
-
3
- .weda-list-view__containor {
4
- background: #fff;
5
- width: 100%;
6
- height: 100%;
7
- overflow-x: hidden;
8
- }
9
-
10
- /* 卡片列表 */
11
- .weda-list-view-card {
12
- display: flex;
13
- flex-wrap: wrap;
14
- margin-right: 6rpx;
15
- }
16
-
17
- /* 加载更多 */
18
- .weda-list-view__containor .weda-list-view__more {
19
- width: 100%;
20
- }
21
-
22
- .weda-list-view__containor .weda-list-view__more .weda-list-view__more-text {
23
- padding-top: 20rpx;
24
- padding-bottom: 28rpx;
25
- font-size: 0.85714em;
26
- line-height: 0.85714em;
27
- color: rgba(0, 0, 0, 0.4);
28
- text-align: center;
29
- box-sizing: border-box;
30
- }
31
-
32
- /* 加载更多 ... */
33
- .weda-list-view__containor .weda-list-view__more {
34
- background: #fff;
35
- }
36
-
37
- .weda-list-view__containor
38
- .weda-list-view__more.weda-list-view__more-bottomLoad {
39
- background: transparent;
40
- }
41
-
42
- .weda-list-view__bottom-load {
43
- padding-top: 1px;
44
- }
45
-
46
- .weda-list-view__containor .weda-list-view__more .weda-list-view__more-symbol {
47
- display: flex;
48
- align-items: center;
49
- justify-content: center;
50
- padding-top: 40rpx;
51
- padding-bottom: 36rpx;
52
- box-sizing: border-box;
53
- }
54
-
55
- .weda-list-view__containor .weda-list-view__more .weda-list-view__symbol-item {
56
- width: 16rpx;
57
- height: 16rpx;
58
- background: #c4c4c4;
59
- margin-left: 12rpx;
60
- border-radius: 50%;
61
- }
62
-
63
- .weda-list-view__containor
64
- .weda-list-view__more
65
- .weda-list-view__symbol-item:first-child {
66
- width: 12rpx;
67
- height: 12rpx;
68
- margin-left: 0;
69
- }
70
-
71
- /* 加载更多 分页 */
72
- .weda-list-view__containor
73
- .weda-list-view__more
74
- .weda-list-view__more-pagination {
75
- display: flex;
76
- align-items: center;
77
- justify-content: space-between;
78
- position: relative;
79
- padding: 20rpx 36rpx 24rpx 32rpx;
80
- box-sizing: border-box;
81
- }
82
-
83
- .weda-list-view__containor
84
- .weda-list-view__more
85
- .weda-list-view__pagination-pre,
86
- .weda-list-view__containor
87
- .weda-list-view__more
88
- .weda-list-view__pagination-next {
89
- font-size: 24rpx;
90
- line-height: 48rpx;
91
- color: rgba(0, 0, 0, 0.4);
92
- padding: 0 48rpx;
93
- }
94
-
95
- .weda-list-view__containor
96
- .weda-list-view__more
97
- .weda-list-view__pagination-pre.active,
98
- .weda-list-view__containor
99
- .weda-list-view__more
100
- .weda-list-view__pagination-next.active {
101
- color: rgba(0, 0, 0, 0.9);
102
- }
103
-
104
- .weda-list-view__containor
105
- .weda-list-view__more
106
- .weda-list-view__pagination-pre
107
- .weda-list-view__pagination-icon,
108
- .weda-list-view__containor
109
- .weda-list-view__more
110
- .weda-list-view__pagination-next
111
- .weda-list-view__pagination-icon {
112
- position: absolute;
113
- width: 48rpx;
114
- height: 48rpx;
115
- top: 20rpx;
116
- opacity: 0.2;
117
- }
118
-
119
- .weda-list-view__containor
120
- .weda-list-view__more
121
- .active.weda-list-view__pagination-pre
122
- .weda-list-view__pagination-icon,
123
- .weda-list-view__containor
124
- .weda-list-view__more
125
- .active.weda-list-view__pagination-next
126
- .weda-list-view__pagination-icon {
127
- opacity: 1;
128
- }
129
-
130
- .weda-list-view__containor
131
- .weda-list-view__more
132
- .weda-list-view__pagination-pre
133
- .weda-list-view__pagination-icon {
134
- left: 32rpx;
135
- transform: rotate(180deg);
136
- }
137
-
138
- .weda-list-view__containor
139
- .weda-list-view__more
140
- .weda-list-view__pagination-next
141
- .weda-list-view__pagination-icon {
142
- right: 36rpx;
143
- }
144
-
145
- .weda-list-view__containor
146
- .weda-list-view__more
147
- .weda-list-view__pagination-text {
148
- font-size: 24rpx;
149
- line-height: 44rpx;
150
- color: rgba(0, 0, 0, 0.4);
151
- }
152
-
153
- .split {
154
- height: 40rpx;
155
- }
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4.5 10.5C3.675 10.5 3 11.175 3 12C3 12.825 3.675 13.5 4.5 13.5C5.325 13.5 6 12.825 6 12C6 11.175 5.325 10.5 4.5 10.5ZM19.5 10.5C18.675 10.5 18 11.175 18 12C18 12.825 18.675 13.5 19.5 13.5C20.325 13.5 21 12.825 21 12C21 11.175 20.325 10.5 19.5 10.5ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z" fill="#09121F"/>
3
- </svg>