@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,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import classNames from '../../../utils/classnames';
|
|
4
|
-
import './index.css';
|
|
5
|
-
import { usePlatform } from '../../../utils/platform';
|
|
6
|
-
import { ConfigProvider, Form as TeaForm } from 'tea-component';
|
|
7
|
-
import type { CommonFormPropsType } from '../types';
|
|
8
|
-
|
|
9
|
-
export default function FormCell({
|
|
10
|
-
className,
|
|
11
|
-
style,
|
|
12
|
-
label,
|
|
13
|
-
layout,
|
|
14
|
-
children,
|
|
15
|
-
multiCell,
|
|
16
|
-
requiredFlag,
|
|
17
|
-
size,
|
|
18
|
-
}: PropsType) {
|
|
19
|
-
const platform = usePlatform();
|
|
20
|
-
const isFlex = layout !== 'vertical';
|
|
21
|
-
|
|
22
|
-
if (platform === 'pc') {
|
|
23
|
-
return (
|
|
24
|
-
<ConfigProvider classPrefix="wedatea2td">
|
|
25
|
-
<TeaForm.Item
|
|
26
|
-
style={style}
|
|
27
|
-
className={classNames({
|
|
28
|
-
'weda-ui': true,
|
|
29
|
-
'weui-cells_forms': !multiCell,
|
|
30
|
-
'weui-cells_checkbox': multiCell,
|
|
31
|
-
'weda-formcells__pc': !!label,
|
|
32
|
-
'weda-formcells__full-width': size === 'full',
|
|
33
|
-
[layout]: layout,
|
|
34
|
-
[className]: [className],
|
|
35
|
-
})}
|
|
36
|
-
label={label}
|
|
37
|
-
required={requiredFlag}
|
|
38
|
-
>
|
|
39
|
-
{children}
|
|
40
|
-
</TeaForm.Item>
|
|
41
|
-
</ConfigProvider>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
return (
|
|
45
|
-
<div className={className} style={style}>
|
|
46
|
-
<div
|
|
47
|
-
className={classNames({
|
|
48
|
-
'weda-formcells': true,
|
|
49
|
-
'weui-cells': true,
|
|
50
|
-
'weui-cells_forms': !multiCell,
|
|
51
|
-
'weui-cells_checkbox': multiCell,
|
|
52
|
-
'weui-flex': isFlex,
|
|
53
|
-
})}
|
|
54
|
-
>
|
|
55
|
-
{label ? (
|
|
56
|
-
<div
|
|
57
|
-
className={classNames({
|
|
58
|
-
'weda-formcells__label': true,
|
|
59
|
-
// 标题也采用使用weui-cell的样式
|
|
60
|
-
'weui-cell': true,
|
|
61
|
-
})}
|
|
62
|
-
>
|
|
63
|
-
<label>{label}</label>
|
|
64
|
-
{requiredFlag ? (
|
|
65
|
-
<label className="weda-formcells__flag">*</label>
|
|
66
|
-
) : null}
|
|
67
|
-
</div>
|
|
68
|
-
) : null}
|
|
69
|
-
<div
|
|
70
|
-
className={classNames({
|
|
71
|
-
'weda-formcells__content': true,
|
|
72
|
-
'weui-flex__item': isFlex,
|
|
73
|
-
})}
|
|
74
|
-
>
|
|
75
|
-
{children}
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface PropsType extends CommonFormPropsType {
|
|
83
|
-
multiCell?: boolean;
|
|
84
|
-
size?: string;
|
|
85
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* ios safari 特别是小屏幕 iphone SE 之流
|
|
2
|
-
weui自带cell的padding会把input压到很小,
|
|
3
|
-
容易点不到,需要特殊处理
|
|
4
|
-
START
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
把weui-cell 的padding还回到input
|
|
9
|
-
*/
|
|
10
|
-
.weda-ui input.weui-input {
|
|
11
|
-
padding: 28px 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.weda-ui.weda-input .weui-flex__item .weui-cell_form {
|
|
15
|
-
padding: 0;
|
|
16
|
-
padding-right: 16px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.weda-ui.weda-input .weui-cell_form {
|
|
20
|
-
padding: 0 16px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* END
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
背景颜色设置问题
|
|
29
|
-
START
|
|
30
|
-
*/
|
|
31
|
-
.weda-ui .wedatea2td-input {
|
|
32
|
-
background: inherit;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* END
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
.weda-input .weui-input {
|
|
39
|
-
font-weight: inherit;
|
|
40
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import classNames from '../../../utils/classnames';
|
|
3
|
-
import { usePlatform } from '../../../utils/platform';
|
|
4
|
-
import { Input as TeaInput, ConfigProvider } from 'tea-component';
|
|
5
|
-
import { renderDecorator } from '../renderDecorator';
|
|
6
|
-
import { useSyncValue } from '../../../utils/useSyncValue';
|
|
7
|
-
import './index.css';
|
|
8
|
-
import type { CommonFormPropsType } from '../types';
|
|
9
|
-
|
|
10
|
-
export default function Input({
|
|
11
|
-
id,
|
|
12
|
-
className,
|
|
13
|
-
style,
|
|
14
|
-
events = {},
|
|
15
|
-
// 组件属性
|
|
16
|
-
label = '标题',
|
|
17
|
-
labelVisible = true,
|
|
18
|
-
name = 'formInput',
|
|
19
|
-
defaultValue = '',
|
|
20
|
-
password = false,
|
|
21
|
-
placeholder = '请输入',
|
|
22
|
-
type = 'text',
|
|
23
|
-
maxLength = 140,
|
|
24
|
-
disabled = false,
|
|
25
|
-
focus: autoFocus = false,
|
|
26
|
-
layout = 'horizontal',
|
|
27
|
-
requiredFlag = false,
|
|
28
|
-
size = 'l',
|
|
29
|
-
clearable = true,
|
|
30
|
-
decorator,
|
|
31
|
-
}: PropsType) {
|
|
32
|
-
const platform = usePlatform();
|
|
33
|
-
const cls = classNames({
|
|
34
|
-
'weda-ui': true,
|
|
35
|
-
'weda-input': true,
|
|
36
|
-
[className]: className,
|
|
37
|
-
});
|
|
38
|
-
const subCls = classNames({
|
|
39
|
-
'weui-cell': true,
|
|
40
|
-
'weui-cell_active': true,
|
|
41
|
-
'weui-cell_form': true,
|
|
42
|
-
'weui-cell_disabled': disabled,
|
|
43
|
-
});
|
|
44
|
-
const inputType = getInputType(type, password);
|
|
45
|
-
|
|
46
|
-
// 两次默认值不同时, 需要刷新value
|
|
47
|
-
const [value, setValue] = useSyncValue(defaultValue);
|
|
48
|
-
|
|
49
|
-
const onChange = function (e) {
|
|
50
|
-
const text = typeof e === 'string' ? e : e.target.value;
|
|
51
|
-
if (maxLength > 0 && text.length > maxLength) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
const newValue = text;
|
|
55
|
-
setValue(newValue);
|
|
56
|
-
events.change({ value: newValue }, { originEvent: e });
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const onClear = function (e) {
|
|
60
|
-
events.clear({ originValue: value }, { originEvent: e });
|
|
61
|
-
setValue('');
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const onKeyDown = function (e) {
|
|
66
|
-
// 确认逻辑
|
|
67
|
-
if (e.key === 'enter' || e.keyCode === 13) {
|
|
68
|
-
events.confirm({ value: e.target.value }, { originEvent: e });
|
|
69
|
-
}
|
|
70
|
-
// 数字类型的键盘, 不能输入e
|
|
71
|
-
if (inputType === 'number' && e.key === 'e') {
|
|
72
|
-
e.preventDefault();
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const onFocus = function (e) {
|
|
77
|
-
events.focus({ value: e.target.value }, { originEvent: e });
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const onBlur = function (e) {
|
|
81
|
-
events.blur({ value: e.target.value }, { originEvent: e });
|
|
82
|
-
};
|
|
83
|
-
const fieldEl =
|
|
84
|
-
platform === 'h5' ? (
|
|
85
|
-
<div className={subCls}>
|
|
86
|
-
<div className="weui-cell__bd weui-flex">
|
|
87
|
-
<input
|
|
88
|
-
className="weui-input"
|
|
89
|
-
type={inputType}
|
|
90
|
-
placeholder={placeholder}
|
|
91
|
-
value={value}
|
|
92
|
-
disabled={disabled}
|
|
93
|
-
name={name}
|
|
94
|
-
autoFocus={autoFocus}
|
|
95
|
-
onChange={onChange}
|
|
96
|
-
onFocus={onFocus}
|
|
97
|
-
onBlur={onBlur}
|
|
98
|
-
onKeyDown={onKeyDown}
|
|
99
|
-
role="input"
|
|
100
|
-
/>
|
|
101
|
-
{clearable && (
|
|
102
|
-
<button
|
|
103
|
-
className="weui-btn_reset weui-btn_icon weui-btn_input-clear"
|
|
104
|
-
onMouseDown={onClear}
|
|
105
|
-
>
|
|
106
|
-
<i className="weui-icon-clear"></i>
|
|
107
|
-
</button>
|
|
108
|
-
)}
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
) : (
|
|
112
|
-
<ConfigProvider classPrefix="wedatea2td">
|
|
113
|
-
<TeaInput
|
|
114
|
-
size={size}
|
|
115
|
-
type={inputType}
|
|
116
|
-
placeholder={placeholder}
|
|
117
|
-
value={value}
|
|
118
|
-
disabled={disabled}
|
|
119
|
-
name={name}
|
|
120
|
-
autoFocus={autoFocus}
|
|
121
|
-
onChange={onChange}
|
|
122
|
-
onFocus={onFocus}
|
|
123
|
-
onBlur={onBlur}
|
|
124
|
-
onKeyDown={onKeyDown}
|
|
125
|
-
/>
|
|
126
|
-
</ConfigProvider>
|
|
127
|
-
);
|
|
128
|
-
return renderDecorator(
|
|
129
|
-
fieldEl,
|
|
130
|
-
decorator
|
|
131
|
-
)({
|
|
132
|
-
id,
|
|
133
|
-
className: cls,
|
|
134
|
-
style,
|
|
135
|
-
label: labelVisible ? label : null,
|
|
136
|
-
layout,
|
|
137
|
-
multiCell: false,
|
|
138
|
-
requiredFlag,
|
|
139
|
-
size,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface PropsType extends CommonFormPropsType {
|
|
144
|
-
defaultValue?: string;
|
|
145
|
-
password?: boolean;
|
|
146
|
-
placeholder?: string;
|
|
147
|
-
type?: 'text' | 'number' | 'idcard' | 'digit';
|
|
148
|
-
maxLength?: number;
|
|
149
|
-
focus?: boolean;
|
|
150
|
-
size?: 's' | 'm' | 'l' | 'full';
|
|
151
|
-
clearable?: boolean;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function getInputType(type, password) {
|
|
155
|
-
if (password) {
|
|
156
|
-
return 'password';
|
|
157
|
-
}
|
|
158
|
-
switch (type) {
|
|
159
|
-
case 'idcard':
|
|
160
|
-
return 'text';
|
|
161
|
-
case 'digit':
|
|
162
|
-
return 'number';
|
|
163
|
-
default:
|
|
164
|
-
return type;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/* mapChoose组件 */
|
|
2
|
-
|
|
3
|
-
/* em = 16px */
|
|
4
|
-
.weda-ui_map-choose {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
.map-choose-pc {
|
|
9
|
-
display: flex;
|
|
10
|
-
}
|
|
11
|
-
.map-choose-pc-left {
|
|
12
|
-
width: 45%;
|
|
13
|
-
position: relative;
|
|
14
|
-
}
|
|
15
|
-
.map-choose-pc-right {
|
|
16
|
-
width: 55%;
|
|
17
|
-
}
|
|
18
|
-
.map-choose-header {
|
|
19
|
-
width: 100%;
|
|
20
|
-
padding: 8px 15px;
|
|
21
|
-
position: relative;
|
|
22
|
-
border-bottom: 1px solid #d3d3d3;
|
|
23
|
-
}
|
|
24
|
-
.map-choose-header_focus {
|
|
25
|
-
padding-right: 60px;
|
|
26
|
-
}
|
|
27
|
-
.map-choose-header_focus .map-choose-header_search_cancel {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
.map-choose-header_focus .map-choose-header_search_place {
|
|
31
|
-
left: 10px;
|
|
32
|
-
transform: translate(0, 0);
|
|
33
|
-
}
|
|
34
|
-
.map-choose-header_search {
|
|
35
|
-
height: 30px;
|
|
36
|
-
background-color: #ebebeb;
|
|
37
|
-
padding-left: 10px;
|
|
38
|
-
padding-right: 10px;
|
|
39
|
-
color: #b4b4b4;
|
|
40
|
-
font-size: 1em;
|
|
41
|
-
line-height: 2em;
|
|
42
|
-
border-radius: 5px;
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
text-overflow: ellipsis;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
.map-choose-header_search_place {
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0;
|
|
51
|
-
left: 50%;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
transform: translate(-50%, 0);
|
|
55
|
-
}
|
|
56
|
-
.map-choose-header_search_cancel {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0;
|
|
59
|
-
right: 0;
|
|
60
|
-
width: 55px;
|
|
61
|
-
height: 46px;
|
|
62
|
-
line-height: 2.875em;
|
|
63
|
-
text-align: center;
|
|
64
|
-
font-size: 1em;
|
|
65
|
-
color: #0079ff;
|
|
66
|
-
background-color: #fff;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
display: none;
|
|
69
|
-
}
|
|
70
|
-
.map-choose-header_search img {
|
|
71
|
-
width: 16px;
|
|
72
|
-
height: 16px;
|
|
73
|
-
margin-right: 4px;
|
|
74
|
-
}
|
|
75
|
-
.map-choose-header_search input {
|
|
76
|
-
display: block;
|
|
77
|
-
width: 100%;
|
|
78
|
-
padding-top: 6px;
|
|
79
|
-
padding-bottom: 6px;
|
|
80
|
-
border: 0;
|
|
81
|
-
font-size: 0.875em;
|
|
82
|
-
line-height: 1.125em;
|
|
83
|
-
background: 0 0;
|
|
84
|
-
position: relative;
|
|
85
|
-
z-index: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.map-choose-con {
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: calc(100% - 50px);
|
|
91
|
-
position: relative;
|
|
92
|
-
}
|
|
93
|
-
.map-choose-warp,
|
|
94
|
-
.map-choose-explore {
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: 100%;
|
|
97
|
-
}
|
|
98
|
-
.map-choose-explore-pc {
|
|
99
|
-
height: calc(100% - 47px);
|
|
100
|
-
}
|
|
101
|
-
.map-choose-explore {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
.map-choose-explore_show {
|
|
105
|
-
display: block;
|
|
106
|
-
position: absolute;
|
|
107
|
-
z-index: 1000;
|
|
108
|
-
top: 0;
|
|
109
|
-
left: 0;
|
|
110
|
-
background-color: #fff;
|
|
111
|
-
overflow: hidden;
|
|
112
|
-
}
|
|
113
|
-
.map-choose-explore_show-pc {
|
|
114
|
-
top: 47px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.map-choose-warp_sugges {
|
|
118
|
-
height: 55%;
|
|
119
|
-
width: 100%;
|
|
120
|
-
}
|
|
121
|
-
.map-choose-warp_sugges-pc {
|
|
122
|
-
height: calc(100% - 47px);
|
|
123
|
-
width: 100%;
|
|
124
|
-
}
|
|
125
|
-
.map-choose-warp_sugges ul,
|
|
126
|
-
.map-choose-explore_show ul {
|
|
127
|
-
width: 100%;
|
|
128
|
-
height: 100%;
|
|
129
|
-
padding: 0;
|
|
130
|
-
overflow: scroll;
|
|
131
|
-
overflow-x: hidden;
|
|
132
|
-
}
|
|
133
|
-
.map-choose-warp_sugges li,
|
|
134
|
-
.map-choose-explore_show li {
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 59px;
|
|
137
|
-
padding-top: 6px;
|
|
138
|
-
position: relative;
|
|
139
|
-
border-bottom: 1px solid #d3d3d3;
|
|
140
|
-
cursor: pointer;
|
|
141
|
-
position: relative;
|
|
142
|
-
}
|
|
143
|
-
.map-choose-warp_sugges li span {
|
|
144
|
-
display: none;
|
|
145
|
-
}
|
|
146
|
-
.map-choose-warp_sugges_choosed span {
|
|
147
|
-
position: absolute;
|
|
148
|
-
right: 1.25em;
|
|
149
|
-
top: 50%;
|
|
150
|
-
transform: translate(0, -50%);
|
|
151
|
-
width: 1em;
|
|
152
|
-
height: 1em;
|
|
153
|
-
display: block !important;
|
|
154
|
-
background-image: url('https://qcloudimg.tencent-cloud.cn/raw/354c15c0cb845120ac3e9c474e6737b3.png');
|
|
155
|
-
background-size: 100% 100%;
|
|
156
|
-
background-repeat: no-repeat;
|
|
157
|
-
}
|
|
158
|
-
.map-choose-warp_sugges li div,
|
|
159
|
-
.map-choose-explore_show li div {
|
|
160
|
-
text-overflow: ellipsis;
|
|
161
|
-
white-space: nowrap;
|
|
162
|
-
overflow: hidden;
|
|
163
|
-
width: 98%;
|
|
164
|
-
}
|
|
165
|
-
.map-choose-warp_sugges_title,
|
|
166
|
-
.map-choose-explore_title {
|
|
167
|
-
font-size: 0.875em;
|
|
168
|
-
line-height: 1.6875em;
|
|
169
|
-
color: #333;
|
|
170
|
-
font-weight: 400;
|
|
171
|
-
display: block;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.map-choose-explore_show_inSearch {
|
|
175
|
-
display: none;
|
|
176
|
-
}
|
|
177
|
-
.map-choose-explore_show-h5 {
|
|
178
|
-
height: auto;
|
|
179
|
-
min-height: 75vh;
|
|
180
|
-
}
|