@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.
- package/package.json +12 -13
- package/src/configs/actions/showModal.json +0 -48
- package/src/configs/actions/showToast.json +0 -41
- package/src/configs/components/auth.json +0 -16
- package/src/configs/components/button.json +0 -239
- package/src/configs/components/calendar.json +0 -81
- package/src/configs/components/carousel.json +0 -292
- package/src/configs/components/chart/bar.json +0 -721
- package/src/configs/components/chart/line.json +0 -674
- package/src/configs/components/chart/pie.json +0 -494
- package/src/configs/components/chart/statisticsCard.json +0 -376
- package/src/configs/components/container.json +0 -50
- package/src/configs/components/dataView.json +0 -151
- package/src/configs/components/drawer.json +0 -115
- package/src/configs/components/form/checkbox.json +0 -173
- package/src/configs/components/form/form.json +0 -45
- package/src/configs/components/form/input.json +0 -154
- package/src/configs/components/form/label.json +0 -22
- package/src/configs/components/form/location.json +0 -155
- package/src/configs/components/form/radio.json +0 -203
- package/src/configs/components/form/richText.json +0 -125
- package/src/configs/components/form/select.json +0 -411
- package/src/configs/components/form/switch.json +0 -58
- package/src/configs/components/form/textarea.json +0 -116
- package/src/configs/components/form/tips.json +0 -34
- package/src/configs/components/form/uploader.json +0 -169
- package/src/configs/components/form/uploaderFile.json +0 -158
- package/src/configs/components/graphicCard.json +0 -413
- package/src/configs/components/image.json +0 -179
- package/src/configs/components/link.json +0 -79
- package/src/configs/components/listView.json +0 -281
- package/src/configs/components/lottery.json +0 -157
- package/src/configs/components/modal.json +0 -83
- package/src/configs/components/navLayout.json +0 -368
- package/src/configs/components/navigationBar.json +0 -62
- package/src/configs/components/picker/datePicker.json +0 -33
- package/src/configs/components/picker/picker.json +0 -18
- package/src/configs/components/picker/timePicker.json +0 -23
- package/src/configs/components/richtextview.json +0 -26
- package/src/configs/components/scrollVeiw.json +0 -253
- package/src/configs/components/slot.json +0 -17
- package/src/configs/components/swiper.json +0 -90
- package/src/configs/components/tabs.json +0 -121
- package/src/configs/components/text.json +0 -95
- package/src/configs/components/wedaVideo.json +0 -89
- package/src/configs/components/wxOpenApi/phone.json +0 -127
- package/src/configs/components/wxOpenApi/phoneCode.json +0 -109
- package/src/configs/components/wxOpenApi/share.json +0 -157
- package/src/configs/components/wxOpenApi/userInfo.json +0 -156
- package/src/configs/index.js +0 -111
- package/src/index.js +0 -4
- package/src/mp/README.md +0 -1
- package/src/mp/actions/showModal/index.js +0 -3
- package/src/mp/actions/showToast/index.js +0 -3
- package/src/mp/components/button/index.js +0 -91
- package/src/mp/components/button/index.json +0 -4
- package/src/mp/components/button/index.wxml +0 -22
- package/src/mp/components/button/index.wxss +0 -13
- package/src/mp/components/calendar/arrowright--line.svg +0 -11
- package/src/mp/components/calendar/index.js +0 -268
- package/src/mp/components/calendar/index.json +0 -5
- package/src/mp/components/calendar/index.wxml +0 -35
- package/src/mp/components/calendar/index.wxss +0 -179
- package/src/mp/components/carousel/index.js +0 -88
- package/src/mp/components/carousel/index.json +0 -7
- package/src/mp/components/carousel/index.wxml +0 -6
- package/src/mp/components/chart/bar/index.js +0 -257
- package/src/mp/components/chart/bar/index.json +0 -6
- package/src/mp/components/chart/bar/index.wxml +0 -3
- package/src/mp/components/chart/bar/index.wxss +0 -9
- package/src/mp/components/chart/common/config/bar.js +0 -50
- package/src/mp/components/chart/common/config/global.js +0 -16
- package/src/mp/components/chart/common/config/line.js +0 -48
- package/src/mp/components/chart/common/config/pie.js +0 -36
- package/src/mp/components/chart/common/core/eChartBar.js +0 -258
- package/src/mp/components/chart/common/core/eChartBase.js +0 -389
- package/src/mp/components/chart/common/core/eChartLine.js +0 -223
- package/src/mp/components/chart/common/core/eChartPie.js +0 -169
- package/src/mp/components/chart/common/lib/echarts.min.js +0 -18
- package/src/mp/components/chart/ec-canvas/ec-canvas.js +0 -277
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +0 -4
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +0 -4
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +0 -4
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +0 -109
- package/src/mp/components/chart/line/index.js +0 -247
- package/src/mp/components/chart/line/index.json +0 -6
- package/src/mp/components/chart/line/index.wxml +0 -3
- package/src/mp/components/chart/line/index.wxss +0 -9
- package/src/mp/components/chart/pie/index.js +0 -182
- package/src/mp/components/chart/pie/index.json +0 -6
- package/src/mp/components/chart/pie/index.wxml +0 -3
- package/src/mp/components/chart/pie/index.wxss +0 -9
- package/src/mp/components/chart/statisticsCard/index.js +0 -253
- package/src/mp/components/chart/statisticsCard/index.json +0 -4
- package/src/mp/components/chart/statisticsCard/index.wxml +0 -9
- package/src/mp/components/chart/statisticsCard/index.wxss +0 -42
- package/src/mp/components/container/index.js +0 -20
- package/src/mp/components/container/index.json +0 -4
- package/src/mp/components/container/index.wxml +0 -3
- package/src/mp/components/dataView/index.js +0 -34
- package/src/mp/components/dataView/index.json +0 -7
- package/src/mp/components/dataView/index.wxml +0 -3
- package/src/mp/components/dataView/index.wxss +0 -0
- package/src/mp/components/form/checkbox/index.js +0 -124
- package/src/mp/components/form/checkbox/index.json +0 -7
- package/src/mp/components/form/checkbox/index.wxml +0 -13
- package/src/mp/components/form/checkbox/index.wxss +0 -1
- package/src/mp/components/form/form/index.js +0 -18
- package/src/mp/components/form/form/index.json +0 -4
- package/src/mp/components/form/form/index.wxml +0 -5
- package/src/mp/components/form/form/index.wxss +0 -1
- package/src/mp/components/form/formcell/index.js +0 -54
- package/src/mp/components/form/formcell/index.json +0 -4
- package/src/mp/components/form/formcell/index.wxml +0 -11
- package/src/mp/components/form/formcell/index.wxss +0 -31
- package/src/mp/components/form/input/index.js +0 -110
- package/src/mp/components/form/input/index.json +0 -7
- package/src/mp/components/form/input/index.wxml +0 -24
- package/src/mp/components/form/input/index.wxss +0 -22
- package/src/mp/components/form/location/components/mapChoose/index.js +0 -201
- package/src/mp/components/form/location/components/mapChoose/index.json +0 -4
- package/src/mp/components/form/location/components/mapChoose/index.wxml +0 -42
- package/src/mp/components/form/location/components/mapChoose/index.wxss +0 -188
- package/src/mp/components/form/location/index.js +0 -388
- package/src/mp/components/form/location/index.json +0 -6
- package/src/mp/components/form/location/index.wxml +0 -21
- package/src/mp/components/form/location/index.wxss +0 -89
- package/src/mp/components/form/radio/index.js +0 -124
- package/src/mp/components/form/radio/index.json +0 -7
- package/src/mp/components/form/radio/index.wxml +0 -13
- package/src/mp/components/form/radio/index.wxss +0 -1
- package/src/mp/components/form/select/index.js +0 -677
- package/src/mp/components/form/select/index.json +0 -7
- package/src/mp/components/form/select/index.wxml +0 -12
- package/src/mp/components/form/select/index.wxss +0 -16
- package/src/mp/components/form/select/region/index.js +0 -107
- package/src/mp/components/form/switch/index.js +0 -75
- package/src/mp/components/form/switch/index.json +0 -7
- package/src/mp/components/form/switch/index.wxml +0 -11
- package/src/mp/components/form/switch/index.wxss +0 -1
- package/src/mp/components/form/textarea/index.js +0 -90
- package/src/mp/components/form/textarea/index.json +0 -7
- package/src/mp/components/form/textarea/index.wxml +0 -8
- package/src/mp/components/form/textarea/index.wxss +0 -10
- package/src/mp/components/form/tips/index.js +0 -41
- package/src/mp/components/form/tips/index.json +0 -4
- package/src/mp/components/form/tips/index.wxml +0 -1
- package/src/mp/components/form/tips/index.wxss +0 -1
- package/src/mp/components/form/uploader/index.js +0 -158
- package/src/mp/components/form/uploader/index.json +0 -10
- package/src/mp/components/form/uploader/index.wxml +0 -14
- package/src/mp/components/form/uploader/index.wxss +0 -36
- package/src/mp/components/form/uploader/weui-uploader.js +0 -219
- package/src/mp/components/form/uploader/weui-uploader.json +0 -7
- package/src/mp/components/form/uploader/weui-uploader.wxml +0 -45
- package/src/mp/components/form/uploader/weui-uploader.wxss +0 -1
- package/src/mp/components/form/uploaderFile/index.js +0 -313
- package/src/mp/components/form/uploaderFile/index.json +0 -9
- package/src/mp/components/form/uploaderFile/index.wxml +0 -45
- package/src/mp/components/form/uploaderFile/index.wxss +0 -105
- package/src/mp/components/graphicCard/chevron-right.svg +0 -3
- package/src/mp/components/graphicCard/index.js +0 -203
- package/src/mp/components/graphicCard/index.json +0 -4
- package/src/mp/components/graphicCard/index.wxml +0 -25
- package/src/mp/components/graphicCard/index.wxss +0 -157
- package/src/mp/components/image/index.js +0 -182
- package/src/mp/components/image/index.json +0 -7
- package/src/mp/components/image/index.wxml +0 -9
- package/src/mp/components/image/index.wxss +0 -49
- package/src/mp/components/listView/arrow-right-line.svg +0 -3
- package/src/mp/components/listView/index.js +0 -274
- package/src/mp/components/listView/index.json +0 -4
- package/src/mp/components/listView/index.wxml +0 -38
- package/src/mp/components/listView/index.wxss +0 -155
- package/src/mp/components/listView/more-line.svg +0 -3
- package/src/mp/components/lottery/index.js +0 -270
- package/src/mp/components/lottery/index.json +0 -4
- package/src/mp/components/lottery/index.wxml +0 -41
- package/src/mp/components/lottery/index.wxss +0 -323
- package/src/mp/components/modal/index.js +0 -39
- package/src/mp/components/modal/index.json +0 -4
- package/src/mp/components/modal/index.wxml +0 -1
- package/src/mp/components/navLayout/index.js +0 -120
- package/src/mp/components/navLayout/index.json +0 -7
- package/src/mp/components/navLayout/index.wxml +0 -23
- package/src/mp/components/navLayout/index.wxss +0 -1193
- package/src/mp/components/navigationBar/index.js +0 -193
- package/src/mp/components/navigationBar/index.json +0 -5
- package/src/mp/components/navigationBar/index.wxml +0 -80
- package/src/mp/components/navigationBar/index.wxss +0 -1257
- package/src/mp/components/richText/index.js +0 -67
- package/src/mp/components/richText/index.json +0 -4
- package/src/mp/components/richText/index.wxml +0 -3
- package/src/mp/components/richText/index.wxss +0 -27
- package/src/mp/components/scrollView/index.js +0 -119
- package/src/mp/components/scrollView/index.json +0 -4
- package/src/mp/components/scrollView/index.wxml +0 -38
- package/src/mp/components/slot/index.js +0 -20
- package/src/mp/components/slot/index.json +0 -4
- package/src/mp/components/slot/index.wxml +0 -3
- package/src/mp/components/swiper/index.js +0 -65
- package/src/mp/components/swiper/index.json +0 -4
- package/src/mp/components/swiper/index.wxml +0 -3
- package/src/mp/components/tabs/index.js +0 -59
- package/src/mp/components/tabs/index.json +0 -4
- package/src/mp/components/tabs/index.wxml +0 -12
- package/src/mp/components/tabs/index.wxss +0 -57
- package/src/mp/components/text/index.js +0 -40
- package/src/mp/components/text/index.json +0 -4
- package/src/mp/components/text/index.wxml +0 -1
- package/src/mp/components/text/index.wxss +0 -26
- package/src/mp/components/wedaVideo/index.js +0 -86
- package/src/mp/components/wedaVideo/index.json +0 -4
- package/src/mp/components/wedaVideo/index.wxml +0 -4
- package/src/mp/components/wedaVideo/index.wxss +0 -20
- package/src/mp/components/wxOpenApi/phone/index.js +0 -109
- package/src/mp/components/wxOpenApi/phone/index.json +0 -4
- package/src/mp/components/wxOpenApi/phone/index.wxml +0 -4
- package/src/mp/components/wxOpenApi/phone/index.wxss +0 -22
- package/src/mp/components/wxOpenApi/phoneCode/index.js +0 -89
- package/src/mp/components/wxOpenApi/phoneCode/index.json +0 -4
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +0 -4
- package/src/mp/components/wxOpenApi/phoneCode/index.wxss +0 -22
- package/src/mp/components/wxOpenApi/share/index.js +0 -117
- package/src/mp/components/wxOpenApi/share/index.json +0 -4
- package/src/mp/components/wxOpenApi/share/index.wxml +0 -4
- package/src/mp/components/wxOpenApi/share/index.wxss +0 -22
- package/src/mp/components/wxOpenApi/userInfo/index.js +0 -88
- package/src/mp/components/wxOpenApi/userInfo/index.json +0 -4
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +0 -4
- package/src/mp/components/wxOpenApi/userInfo/index.wxss +0 -22
- package/src/mp/index.json +0 -52
- package/src/mp/package.json +0 -6
- package/src/mp/style/weda-ui.wxss +0 -71
- package/src/mp/utils/classnames.js +0 -39
- package/src/mp/utils/constant.js +0 -20
- package/src/mp/utils/dayjs.min.js +0 -1
- package/src/mp/utils/debounce.js +0 -133
- package/src/mp/utils/deepEqual.js +0 -42
- package/src/mp/utils/destr.js +0 -49
- package/src/mp/utils/dr_square_point.js +0 -29
- package/src/mp/utils/handleEvents.js +0 -32
- package/src/mp/utils/lodash.js +0 -2
- package/src/mp/utils/platform.js +0 -45
- package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +0 -1336
- package/src/mp/utils/spark-md5.js +0 -776
- package/src/mp/utils/tcb.js +0 -76
- package/src/setupTests.js +0 -14
- package/src/web/actions/index.js +0 -2
- package/src/web/actions/showModal/index.tsx +0 -118
- package/src/web/actions/showToast/index.js +0 -3
- package/src/web/components/auth/index.css +0 -0
- package/src/web/components/auth/index.js +0 -66
- package/src/web/components/button/index.css +0 -27
- package/src/web/components/button/index.tsx +0 -119
- package/src/web/components/calendar/index.css +0 -416
- package/src/web/components/calendar/index.jsx +0 -312
- package/src/web/components/calendar/util.js +0 -90
- package/src/web/components/carousel/index.css +0 -119
- package/src/web/components/carousel/index.tsx +0 -417
- package/src/web/components/chart/bar/index.tsx +0 -140
- package/src/web/components/chart/common/config/bar.js +0 -49
- package/src/web/components/chart/common/config/global.js +0 -16
- package/src/web/components/chart/common/config/line.js +0 -50
- package/src/web/components/chart/common/config/pie.js +0 -37
- package/src/web/components/chart/common/core/eChartBar.js +0 -259
- package/src/web/components/chart/common/core/eChartBase.ts +0 -396
- package/src/web/components/chart/common/core/eChartLine.js +0 -225
- package/src/web/components/chart/common/core/eChartPie.js +0 -173
- package/src/web/components/chart/common/core/type.ts +0 -34
- package/src/web/components/chart/common/echart.css +0 -106
- package/src/web/components/chart/common/echarts.ts +0 -31
- package/src/web/components/chart/common/useChart.tsx +0 -87
- package/src/web/components/chart/line/index.tsx +0 -136
- package/src/web/components/chart/pie/index.tsx +0 -99
- package/src/web/components/chart/statisticsCard/index.css +0 -63
- package/src/web/components/chart/statisticsCard/index.tsx +0 -307
- package/src/web/components/chart/statisticsCard/interface.ts +0 -14
- package/src/web/components/container/index.tsx +0 -34
- package/src/web/components/dataView/index.tsx +0 -20
- package/src/web/components/dataView/interface.ts +0 -6
- package/src/web/components/drawer/index.tsx +0 -68
- package/src/web/components/form/checkbox/index.tsx +0 -210
- package/src/web/components/form/enumSelect/MultipleSelect.jsx +0 -89
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -92
- package/src/web/components/form/enumSelect/SelectContainer.jsx +0 -43
- package/src/web/components/form/enumSelect/index.jsx +0 -9
- package/src/web/components/form/enumSelect/props/defaultProps.js +0 -39
- package/src/web/components/form/enumSelect/props/propsTypes.js +0 -50
- package/src/web/components/form/form/index.css +0 -9
- package/src/web/components/form/form/index.tsx +0 -51
- package/src/web/components/form/formcell/index.css +0 -85
- package/src/web/components/form/formcell/index.tsx +0 -85
- package/src/web/components/form/input/index.css +0 -40
- package/src/web/components/form/input/index.tsx +0 -166
- package/src/web/components/form/location/common/mapChoose.css +0 -180
- package/src/web/components/form/location/common/mapChoose.jsx +0 -343
- package/src/web/components/form/location/common/mapView.jsx +0 -190
- package/src/web/components/form/location/common/propsConfig.js +0 -54
- package/src/web/components/form/location/common/selectModal.css +0 -44
- package/src/web/components/form/location/common/selectModal.jsx +0 -73
- package/src/web/components/form/location/common/useLocationInfo.js +0 -104
- package/src/web/components/form/location/components/LocationH5/index.css +0 -239
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +0 -413
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -96
- package/src/web/components/form/location/components/LocationPC/index.css +0 -44
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +0 -332
- package/src/web/components/form/location/constants.js +0 -4
- package/src/web/components/form/location/index.css +0 -0
- package/src/web/components/form/location/index.jsx +0 -25
- package/src/web/components/form/radio/index.css +0 -12
- package/src/web/components/form/radio/index.tsx +0 -179
- package/src/web/components/form/renderDecorator.tsx +0 -28
- package/src/web/components/form/select/h5.tsx +0 -602
- package/src/web/components/form/select/index.css +0 -27
- package/src/web/components/form/select/index.tsx +0 -510
- package/src/web/components/form/select/region/index.ts +0 -152
- package/src/web/components/form/select/time.jsx +0 -145
- package/src/web/components/form/select/year.tsx +0 -172
- package/src/web/components/form/switch/index.tsx +0 -100
- package/src/web/components/form/textarea/index.css +0 -11
- package/src/web/components/form/textarea/index.tsx +0 -127
- package/src/web/components/form/tips/index.css +0 -4
- package/src/web/components/form/tips/index.tsx +0 -34
- package/src/web/components/form/types.d.ts +0 -12
- package/src/web/components/form/uploader/index.css +0 -118
- package/src/web/components/form/uploader/index.tsx +0 -65
- package/src/web/components/form/uploader/uploader.h5.tsx +0 -290
- package/src/web/components/form/uploader/uploader.pc.tsx +0 -287
- package/src/web/components/form/uploaderFile/fail.svg +0 -12
- package/src/web/components/form/uploaderFile/index.css +0 -422
- package/src/web/components/form/uploaderFile/index.jsx +0 -25
- package/src/web/components/form/uploaderFile/pending.svg +0 -18
- package/src/web/components/form/uploaderFile/success.svg +0 -12
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +0 -606
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +0 -520
- package/src/web/components/graphicCard/index.css +0 -159
- package/src/web/components/graphicCard/index.tsx +0 -310
- package/src/web/components/image/image.tsx +0 -187
- package/src/web/components/image/index.css +0 -54
- package/src/web/components/image/index.tsx +0 -121
- package/src/web/components/index.js +0 -95
- package/src/web/components/link/index.css +0 -8
- package/src/web/components/link/index.tsx +0 -119
- package/src/web/components/listView/arrow-right-line.svg +0 -3
- package/src/web/components/listView/index.css +0 -143
- package/src/web/components/listView/index.tsx +0 -346
- package/src/web/components/listView/interface.ts +0 -98
- package/src/web/components/lottery/index.css +0 -333
- package/src/web/components/lottery/index.tsx +0 -567
- package/src/web/components/lottery/lotteryUtil.ts +0 -130
- package/src/web/components/modal/index.tsx +0 -60
- package/src/web/components/navLayout/index.css +0 -332
- package/src/web/components/navLayout/index.tsx +0 -247
- package/src/web/components/navigationBar/chevron-right--double.svg +0 -3
- package/src/web/components/navigationBar/common.tsx +0 -198
- package/src/web/components/navigationBar/h5Menu.tsx +0 -179
- package/src/web/components/navigationBar/horizontalMenu.tsx +0 -200
- package/src/web/components/navigationBar/index.css +0 -762
- package/src/web/components/navigationBar/index.tsx +0 -230
- package/src/web/components/navigationBar/type.d.ts +0 -111
- package/src/web/components/navigationBar/verticalMenu.tsx +0 -81
- package/src/web/components/phone/index.css +0 -0
- package/src/web/components/phone/index.tsx +0 -22
- package/src/web/components/phoneCode/index.css +0 -0
- package/src/web/components/phoneCode/index.tsx +0 -22
- package/src/web/components/picker/datePicker.tsx +0 -48
- package/src/web/components/picker/picker.tsx +0 -59
- package/src/web/components/picker/timePicker.tsx +0 -56
- package/src/web/components/richText/const.ts +0 -3
- package/src/web/components/richText/index.css +0 -93
- package/src/web/components/richText/index.jsx +0 -473
- package/src/web/components/richTextView/index.css +0 -63
- package/src/web/components/richTextView/index.tsx +0 -63
- package/src/web/components/scrollView/index.tsx +0 -148
- package/src/web/components/share/index.css +0 -0
- package/src/web/components/share/index.tsx +0 -38
- package/src/web/components/slot/index.tsx +0 -19
- package/src/web/components/swiper/index.css +0 -106
- package/src/web/components/swiper/index.tsx +0 -291
- package/src/web/components/tabs/index.css +0 -64
- package/src/web/components/tabs/index.tsx +0 -35
- package/src/web/components/tabs/tabs.h5.tsx +0 -84
- package/src/web/components/tabs/tabs.pc.tsx +0 -74
- package/src/web/components/text/index.css +0 -26
- package/src/web/components/text/index.tsx +0 -60
- package/src/web/components/uploaderFileView/index.css +0 -11
- package/src/web/components/uploaderFileView/index.jsx +0 -84
- package/src/web/components/uploaderView/index.css +0 -31
- package/src/web/components/uploaderView/index.tsx +0 -92
- package/src/web/components/userInfo/index.css +0 -0
- package/src/web/components/userInfo/index.tsx +0 -30
- package/src/web/components/wedaVideo/index.css +0 -42
- package/src/web/components/wedaVideo/index.tsx +0 -208
- package/src/web/index.js +0 -4
- package/src/web/types.d.ts +0 -21
- package/src/web/utils/classnames.js +0 -39
- package/src/web/utils/constant.ts +0 -23
- package/src/web/utils/debounce.js +0 -98
- package/src/web/utils/events.js +0 -2
- package/src/web/utils/getLocalCounter.js +0 -5
- package/src/web/utils/isObjectEqual.js +0 -15
- package/src/web/utils/loading-fallback.tsx +0 -2
- package/src/web/utils/lodash.ts +0 -2
- package/src/web/utils/platform.js +0 -156
- package/src/web/utils/tcb.js +0 -86
- package/src/web/utils/tmap.js +0 -4
- package/src/web/utils/useSetState.ts +0 -18
- package/src/web/utils/useSyncValue.ts +0 -17
- package/src/web/utils/weui.js +0 -3
- package/src/web/weda-ui.css +0 -86
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import '@tcwd/style-wedatheme/index.css';
|
|
2
|
-
// import loadable from '@loadable/component';
|
|
3
|
-
// import { fallback } from '../utils/loading-fallback';
|
|
4
|
-
|
|
5
|
-
// export const Button = loadable(() => import('./button'), {fallback});
|
|
6
|
-
// export const Text = loadable(() => import('./text'), {fallback});
|
|
7
|
-
// export const Container = loadable(() => import('./container'), {fallback});
|
|
8
|
-
// export const Image = loadable(() => import('./image'), {fallback});
|
|
9
|
-
// export const Slot = loadable(() => import('./slot'), {fallback});
|
|
10
|
-
// export const ScrollView = loadable(() => import('./scrollView'), {fallback});
|
|
11
|
-
// export const Swiper = loadable(() => import('./swiper'), {fallback});
|
|
12
|
-
// export const Modal = loadable(() => import('./modal'), {fallback});
|
|
13
|
-
// export const RichText = loadable(() => import('./richText'), {fallback});
|
|
14
|
-
// export const RichTextView = loadable(() => import('./richTextView'), {fallback});
|
|
15
|
-
// export const Link = loadable(() => import('./link'), {fallback});
|
|
16
|
-
// export const Drawer = loadable(() => import('./drawer'), {fallback});
|
|
17
|
-
// export const UploaderView = loadable(() => import('./uploaderView'), {fallback});
|
|
18
|
-
// // picker
|
|
19
|
-
// export const Picker = loadable(() => import('./picker/picker'), {fallback});
|
|
20
|
-
// export const DatePicker = loadable(() => import('./picker/datePicker'), {fallback});
|
|
21
|
-
// export const TimePicker = loadable(() => import('./picker/timePicker'), {fallback});
|
|
22
|
-
// // form
|
|
23
|
-
// export const Form = loadable(() => import('./form/form'), {fallback});
|
|
24
|
-
// export const Input = loadable(() => import('./form/input'), {fallback});
|
|
25
|
-
// export const Textarea = loadable(() => import('./form/textarea'), {fallback});
|
|
26
|
-
// export const Checkbox = loadable(() => import('./form/checkbox'), {fallback});
|
|
27
|
-
// export const Radio = loadable(() => import('./form/radio'), {fallback});
|
|
28
|
-
// export const Switch = loadable(() => import('./form/switch'), {fallback});
|
|
29
|
-
// export const Select = loadable(() => import('./form/select'), {fallback});
|
|
30
|
-
// export const Uploader = loadable(() => import('./form/uploader'), {fallback});
|
|
31
|
-
// export const Tips = loadable(() => import('./form/tips'), {fallback});
|
|
32
|
-
// export const EnumSelect = loadable(() => import('./form/enumSelect'), {fallback});
|
|
33
|
-
// export const Tabs = loadable(() => import('./tabs'), {fallback});
|
|
34
|
-
|
|
35
|
-
export { default as Button } from './button';
|
|
36
|
-
export { default as Text } from './text';
|
|
37
|
-
export { default as Container } from './container';
|
|
38
|
-
export { default as Image } from './image';
|
|
39
|
-
export { default as Slot } from './slot';
|
|
40
|
-
export { default as ScrollView } from './scrollView';
|
|
41
|
-
export { default as Swiper } from './swiper';
|
|
42
|
-
export { default as Carousel } from './carousel';
|
|
43
|
-
export { default as Modal } from './modal';
|
|
44
|
-
export { default as RichText } from './richText';
|
|
45
|
-
export { default as RichTextView } from './richTextView';
|
|
46
|
-
export { default as Link } from './link';
|
|
47
|
-
export { default as Drawer } from './drawer';
|
|
48
|
-
export { default as UploaderView } from './uploaderView';
|
|
49
|
-
export { default as UploaderFileView } from './uploaderFileView';
|
|
50
|
-
export { default as WedaVideo } from './wedaVideo/index';
|
|
51
|
-
|
|
52
|
-
export { default as Picker } from './picker/picker';
|
|
53
|
-
export { default as DatePicker } from './picker/datePicker';
|
|
54
|
-
export { default as TimePicker } from './picker/timePicker';
|
|
55
|
-
// form
|
|
56
|
-
export { default as Form } from './form/form';
|
|
57
|
-
export { default as Input } from './form/input';
|
|
58
|
-
export { default as Textarea } from './form/textarea';
|
|
59
|
-
export { default as Checkbox } from './form/checkbox';
|
|
60
|
-
export { default as Radio } from './form/radio';
|
|
61
|
-
export { default as Switch } from './form/switch';
|
|
62
|
-
export { default as Select } from './form/select';
|
|
63
|
-
export { default as Uploader } from './form/uploader';
|
|
64
|
-
export { default as UploaderFile } from './form/uploaderFile';
|
|
65
|
-
export { default as Tips } from './form/tips';
|
|
66
|
-
export { default as Tabs } from './tabs';
|
|
67
|
-
|
|
68
|
-
export { default as Location } from './form/location';
|
|
69
|
-
|
|
70
|
-
export { default as EnumSelect } from './form/enumSelect';
|
|
71
|
-
export { default as Calendar } from './calendar';
|
|
72
|
-
export { default as NavLayout } from './navLayout';
|
|
73
|
-
|
|
74
|
-
// Data Contaier
|
|
75
|
-
export { default as ListView } from './listView';
|
|
76
|
-
export { default as NavigationBar } from './navigationBar';
|
|
77
|
-
export { default as Line } from './chart/line';
|
|
78
|
-
export { default as Bar } from './chart/bar';
|
|
79
|
-
export { default as Pie } from './chart/pie';
|
|
80
|
-
export { default as DataView } from './dataView';
|
|
81
|
-
|
|
82
|
-
export { default as StatisticsCard } from './chart/statisticsCard';
|
|
83
|
-
export { default as GraphicCard } from './graphicCard';
|
|
84
|
-
|
|
85
|
-
export { default as UserInfo } from './userInfo';
|
|
86
|
-
export { default as Phone } from './phone';
|
|
87
|
-
export { default as PhoneCode } from './phoneCode';
|
|
88
|
-
export { default as Share } from './share';
|
|
89
|
-
|
|
90
|
-
export { default as Lottery } from './lottery';
|
|
91
|
-
// open
|
|
92
|
-
// import Auth from './auth';
|
|
93
|
-
|
|
94
|
-
import 'weui/dist/style/weui.css';
|
|
95
|
-
import '../weda-ui.css';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { CommonPropsType } from '../../types';
|
|
3
|
-
import classNames from '../../utils/classnames';
|
|
4
|
-
import './index.css';
|
|
5
|
-
|
|
6
|
-
export interface PropsType extends CommonPropsType {
|
|
7
|
-
/**
|
|
8
|
-
* 内容
|
|
9
|
-
*/
|
|
10
|
-
content?: string;
|
|
11
|
-
/**
|
|
12
|
-
* 链接地址
|
|
13
|
-
*/
|
|
14
|
-
url?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 参数
|
|
17
|
-
*/
|
|
18
|
-
params?: { key: string; value: string }[];
|
|
19
|
-
contentSlot?: React.ReactNode;
|
|
20
|
-
isOpenInNewWindow: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// 所有绝对地址直接交由浏览器,新开窗口交由浏览器
|
|
24
|
-
// 当前窗口相对地址交给平台
|
|
25
|
-
export default function Link({
|
|
26
|
-
content,
|
|
27
|
-
url = '',
|
|
28
|
-
events = {},
|
|
29
|
-
style,
|
|
30
|
-
className,
|
|
31
|
-
contentSlot,
|
|
32
|
-
params = [], // TODO 格式定义,
|
|
33
|
-
isOpenInNewWindow,
|
|
34
|
-
}: PropsType) {
|
|
35
|
-
url = url.trim();
|
|
36
|
-
const cls = classNames({
|
|
37
|
-
'weda-link': true,
|
|
38
|
-
'weda-ui': true,
|
|
39
|
-
[className]: className,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// URL 构造函数不支持 '//xxx.com' 的格式
|
|
43
|
-
if (url.indexOf('//') === 0) {
|
|
44
|
-
url = location.protocol + url;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// "proto:" 或 "//" 起头的是绝对路径
|
|
48
|
-
let isAbosolutePath = /^(?:[a-z]+:)/i.test(url);
|
|
49
|
-
|
|
50
|
-
let base,
|
|
51
|
-
path,
|
|
52
|
-
href,
|
|
53
|
-
paramObj = {},
|
|
54
|
-
urlObj;
|
|
55
|
-
if (!isAbosolutePath) {
|
|
56
|
-
// 相对地址使用站位域名,不实际使用
|
|
57
|
-
base =
|
|
58
|
-
location.origin && location.origin !== 'null'
|
|
59
|
-
? location.origin
|
|
60
|
-
: 'https://we.da';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
try {
|
|
64
|
-
urlObj = new URL(url, base);
|
|
65
|
-
params.forEach((x) => {
|
|
66
|
-
urlObj.searchParams.append(x.key, x.value);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
href = urlObj.href;
|
|
70
|
-
path = urlObj.pathname;
|
|
71
|
-
|
|
72
|
-
for (const [key, value] of urlObj.searchParams) {
|
|
73
|
-
paramObj[key] = value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// 相对地址去掉站位域名
|
|
77
|
-
if (!isAbosolutePath) {
|
|
78
|
-
href = urlObj.pathname + urlObj.search + urlObj.hash;
|
|
79
|
-
href = href.replace(/^\//, '');
|
|
80
|
-
}
|
|
81
|
-
} catch (e) {
|
|
82
|
-
// 非法 url
|
|
83
|
-
isAbosolutePath = true;
|
|
84
|
-
href = url;
|
|
85
|
-
path = '';
|
|
86
|
-
paramObj = params.reduce((p, x) => {
|
|
87
|
-
p[x.key] = x.value;
|
|
88
|
-
return p;
|
|
89
|
-
}, {});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<a
|
|
94
|
-
style={{ ...style }}
|
|
95
|
-
className={cls}
|
|
96
|
-
target={isOpenInNewWindow ? '_blank' : '_self'}
|
|
97
|
-
href={href}
|
|
98
|
-
onClick={(e) => {
|
|
99
|
-
events.tap && events.tap({}, { originEvent: e });
|
|
100
|
-
|
|
101
|
-
if (!e.defaultPrevented) {
|
|
102
|
-
if (!isAbosolutePath) {
|
|
103
|
-
e.preventDefault();
|
|
104
|
-
app.navigateTo({
|
|
105
|
-
pageId: path,
|
|
106
|
-
packageName: '',
|
|
107
|
-
mode: 'weDa',
|
|
108
|
-
params: paramObj,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}}
|
|
113
|
-
rel="noopener noreferrer"
|
|
114
|
-
>
|
|
115
|
-
{contentSlot && <div className="weda-link-slot">{contentSlot}</div>}
|
|
116
|
-
{content}
|
|
117
|
-
</a>
|
|
118
|
-
);
|
|
119
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
.weda-list-view__containor {
|
|
2
|
-
overflow-y: auto;
|
|
3
|
-
max-height: 100%;
|
|
4
|
-
overflow-x: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.weda-list-view-card {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
margin-right: 3px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/* 加载更多 */
|
|
14
|
-
.weda-list-view__containor .weda-list-view__more {
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.weda-list-view__containor .weda-list-view__more .weda-list-view__bottom-load {
|
|
19
|
-
padding-top: 1px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.weda-list-view__containor .weda-list-view__more .weda-list-view__more-text {
|
|
23
|
-
padding-top: 10px;
|
|
24
|
-
padding-bottom: 14px;
|
|
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
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* 加载更多 ... */
|
|
34
|
-
.weda-list-view__containor .weda-list-view__more .weda-list-view__more-symbol {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
padding-top: 20px;
|
|
39
|
-
padding-bottom: 18px;
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.weda-list-view__containor .weda-list-view__more .weda-list-view__symbol-item {
|
|
44
|
-
width: 8px;
|
|
45
|
-
height: 8px;
|
|
46
|
-
background: #c4c4c4;
|
|
47
|
-
margin-left: 6px;
|
|
48
|
-
border-radius: 50%;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.weda-list-view__containor
|
|
52
|
-
.weda-list-view__more
|
|
53
|
-
.weda-list-view__symbol-item:first-child {
|
|
54
|
-
width: 6px;
|
|
55
|
-
height: 6px;
|
|
56
|
-
margin-left: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* 加载更多 分页 */
|
|
60
|
-
.weda-list-view__containor .weda-list-view__more {
|
|
61
|
-
background-color: #fff;
|
|
62
|
-
}
|
|
63
|
-
.weda-list-view__containor
|
|
64
|
-
.weda-list-view__more.weda-list-view__more-bottomLoad {
|
|
65
|
-
background-color: transparent;
|
|
66
|
-
}
|
|
67
|
-
.weda-list-view__containor
|
|
68
|
-
.weda-list-view__more
|
|
69
|
-
.weda-list-view__more-pagination {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: space-between;
|
|
73
|
-
position: relative;
|
|
74
|
-
padding: 10px 18px 12px 16px;
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.weda-list-view__containor
|
|
79
|
-
.weda-list-view__more
|
|
80
|
-
.weda-list-view__pagination-pre,
|
|
81
|
-
.weda-list-view__containor
|
|
82
|
-
.weda-list-view__more
|
|
83
|
-
.weda-list-view__pagination-next {
|
|
84
|
-
font-size: 0.85714em;
|
|
85
|
-
line-height: 1.71428em;
|
|
86
|
-
color: rgba(0, 0, 0, 0.4);
|
|
87
|
-
padding: 0 24px;
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.weda-list-view__containor
|
|
92
|
-
.weda-list-view__more
|
|
93
|
-
.weda-list-view__pagination-pre.active,
|
|
94
|
-
.weda-list-view__containor
|
|
95
|
-
.weda-list-view__more
|
|
96
|
-
.weda-list-view__pagination-next.active {
|
|
97
|
-
color: rgba(0, 0, 0, 0.9);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.weda-list-view__containor
|
|
101
|
-
.weda-list-view__more
|
|
102
|
-
.weda-list-view__pagination-pre::before,
|
|
103
|
-
.weda-list-view__containor
|
|
104
|
-
.weda-list-view__more
|
|
105
|
-
.weda-list-view__pagination-next::after {
|
|
106
|
-
position: absolute;
|
|
107
|
-
content: '';
|
|
108
|
-
width: 1.71428em;
|
|
109
|
-
height: 1.71428em;
|
|
110
|
-
top: 10px;
|
|
111
|
-
opacity: 0.2;
|
|
112
|
-
background-image: url(arrow-right-line.svg);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.weda-list-view__containor
|
|
116
|
-
.weda-list-view__more
|
|
117
|
-
.active.weda-list-view__pagination-pre::before,
|
|
118
|
-
.weda-list-view__containor
|
|
119
|
-
.weda-list-view__more
|
|
120
|
-
.active.weda-list-view__pagination-next::after {
|
|
121
|
-
opacity: 1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.weda-list-view__containor
|
|
125
|
-
.weda-list-view__more
|
|
126
|
-
.weda-list-view__pagination-pre::before {
|
|
127
|
-
left: 16px;
|
|
128
|
-
transform: rotate(180deg);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.weda-list-view__containor
|
|
132
|
-
.weda-list-view__more
|
|
133
|
-
.weda-list-view__pagination-next::after {
|
|
134
|
-
right: 18px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.weda-list-view__containor
|
|
138
|
-
.weda-list-view__more
|
|
139
|
-
.weda-list-view__pagination-text {
|
|
140
|
-
font-size: 0.85714em;
|
|
141
|
-
line-height: 1.71428em;
|
|
142
|
-
color: rgba(0, 0, 0, 0.4);
|
|
143
|
-
}
|