@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,223 +0,0 @@
|
|
|
1
|
-
import EchartBase from './eChartBase';
|
|
2
|
-
import getConfig from '../config/line';
|
|
3
|
-
/**
|
|
4
|
-
* 折线图表
|
|
5
|
-
* @author loonglong
|
|
6
|
-
**/
|
|
7
|
-
class EchartLine extends EchartBase {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
const config = getConfig();
|
|
11
|
-
this.config = { ...this.config, ...config };
|
|
12
|
-
}
|
|
13
|
-
async setSourceData({
|
|
14
|
-
dataSource,
|
|
15
|
-
filterData,
|
|
16
|
-
xField,
|
|
17
|
-
xStatistics,
|
|
18
|
-
xIsCountEmpty,
|
|
19
|
-
yField,
|
|
20
|
-
groupKey,
|
|
21
|
-
groupKeyTimeSpan,
|
|
22
|
-
}) {
|
|
23
|
-
xField = xField || {}; // 向前兼容
|
|
24
|
-
const { name = '', type = '', methodName = '' } = dataSource;
|
|
25
|
-
if (name !== '') {
|
|
26
|
-
const params = this.createWhere({
|
|
27
|
-
filterData,
|
|
28
|
-
xField,
|
|
29
|
-
xStatistics,
|
|
30
|
-
xIsCountEmpty,
|
|
31
|
-
yField,
|
|
32
|
-
groupKey,
|
|
33
|
-
groupKeyTimeSpan,
|
|
34
|
-
});
|
|
35
|
-
const arrSourData = await this.getSourceData(
|
|
36
|
-
name,
|
|
37
|
-
methodName,
|
|
38
|
-
type,
|
|
39
|
-
params
|
|
40
|
-
);
|
|
41
|
-
// 获取 x 轴数据
|
|
42
|
-
const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
|
|
43
|
-
const arrXaxisData = this.setXaxis(sortedXAxisData, xField.format);
|
|
44
|
-
const arrXisCountEmptyIndex = []; // 记录空值的key
|
|
45
|
-
if (Object.keys(groupKey ?? {}).length === 0) {
|
|
46
|
-
const numLine = arrSourData[0].YLabels.length;
|
|
47
|
-
if (numLine > 0) {
|
|
48
|
-
for (let j = 0; j < numLine; j++) {
|
|
49
|
-
this.config.series[j] = {
|
|
50
|
-
type: 'line',
|
|
51
|
-
smooth: true,
|
|
52
|
-
name: '',
|
|
53
|
-
connectNulls: true,
|
|
54
|
-
showSymbol: true,
|
|
55
|
-
label: {
|
|
56
|
-
show: true,
|
|
57
|
-
},
|
|
58
|
-
data: [],
|
|
59
|
-
};
|
|
60
|
-
sortedXAxisData.forEach((itemSource, index) => {
|
|
61
|
-
this.config.series[j].name = itemSource.YLabels[j].Cn_Name;
|
|
62
|
-
if (
|
|
63
|
-
(!itemSource.YLabels[j].Value === undefined ||
|
|
64
|
-
itemSource.YLabels[j].Value === null) &&
|
|
65
|
-
!xIsCountEmpty
|
|
66
|
-
) {
|
|
67
|
-
arrXisCountEmptyIndex.push(index);
|
|
68
|
-
} else {
|
|
69
|
-
const value = itemSource.YLabels[j].Value
|
|
70
|
-
? itemSource.YLabels[j].Value
|
|
71
|
-
: 0;
|
|
72
|
-
this.config.series[j].data.push(value);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// 处理显示空值问题
|
|
78
|
-
this.setEmptyValue(xIsCountEmpty);
|
|
79
|
-
} else if (groupKey) {
|
|
80
|
-
// 如果是分组,则这里需要特殊处理
|
|
81
|
-
// 按groupKey分组存放数据值
|
|
82
|
-
const objGroupKey = {}; // {'分组字段':[{value:'统计的值', dimensionality:'维度名', name:'统计的数值字段名'}]}
|
|
83
|
-
sortedXAxisData.forEach((itemSourData) => {
|
|
84
|
-
itemSourData.YLabels.forEach((yLabel) => {
|
|
85
|
-
if (!objGroupKey[yLabel.Group_Name]) {
|
|
86
|
-
objGroupKey[yLabel.Group_Name] = [];
|
|
87
|
-
}
|
|
88
|
-
objGroupKey[yLabel.Group_Name].push({
|
|
89
|
-
value: yLabel.Value,
|
|
90
|
-
dimensionality: itemSourData.XLabel.Value,
|
|
91
|
-
name: yLabel.Cn_Name,
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
// 组装图表需要的数据
|
|
97
|
-
const groupNames = Object.keys(objGroupKey);
|
|
98
|
-
this.config.series = groupNames.map((groupKey) => {
|
|
99
|
-
// groupKey分组字段中文名
|
|
100
|
-
const serie = {
|
|
101
|
-
name: groupKey,
|
|
102
|
-
connectNulls: true,
|
|
103
|
-
data: this.getSeriesDataGroup(arrXaxisData, objGroupKey[groupKey]),
|
|
104
|
-
type: 'line',
|
|
105
|
-
smooth: true,
|
|
106
|
-
showSymbol: true, // 是否显示线条上数据标签
|
|
107
|
-
label: {
|
|
108
|
-
show: true, // 显示线条上的数据
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
return serie;
|
|
112
|
-
});
|
|
113
|
-
this.config.tooltip.formatter = (params) =>
|
|
114
|
-
`${params.data.dimensionality}\r\n${params.data.name}\r\n${params.seriesName}:${params.value}`;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
setChartType({ chartType }) {
|
|
119
|
-
this.config.series.length > 0 &&
|
|
120
|
-
this.config.series.forEach((itemSeries) => {
|
|
121
|
-
itemSeries.smooth = chartType !== 'line';
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// 显示图表上的数据标签 单位,标签,小数位数,后缀
|
|
126
|
-
setIsSeriesShowSymbol({
|
|
127
|
-
isSeriesShowSymbol,
|
|
128
|
-
isUnit,
|
|
129
|
-
unit,
|
|
130
|
-
decimalDigits,
|
|
131
|
-
suffix,
|
|
132
|
-
}) {
|
|
133
|
-
decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
|
|
134
|
-
this.config.series.length > 0 &&
|
|
135
|
-
this.config.series.forEach((itemSeries) => {
|
|
136
|
-
itemSeries.showSymbol = isSeriesShowSymbol;
|
|
137
|
-
itemSeries.label.show = isSeriesShowSymbol;
|
|
138
|
-
if (isUnit) {
|
|
139
|
-
itemSeries.label.formatter = (params) => {
|
|
140
|
-
const objNewValue = this.getValueByUnit(params.value, unit);
|
|
141
|
-
return `${objNewValue.toFixed(decimalDigits)}${suffix}`;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
if (isUnit) {
|
|
146
|
-
this.config.yAxis.axisLabel.formatter = (value) => {
|
|
147
|
-
const objNewValue = this.getValueByUnit(value, unit);
|
|
148
|
-
return `${objNewValue.toFixed(decimalDigits)}${suffix}`;
|
|
149
|
-
};
|
|
150
|
-
} else {
|
|
151
|
-
this.config.yAxis.axisLabel.formatter = null;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
async setOptions({
|
|
155
|
-
chartType,
|
|
156
|
-
isTitle,
|
|
157
|
-
title,
|
|
158
|
-
titleLocation,
|
|
159
|
-
dataSource,
|
|
160
|
-
filterData,
|
|
161
|
-
xField,
|
|
162
|
-
xStatistics,
|
|
163
|
-
groupKey,
|
|
164
|
-
groupKeyTimeSpan,
|
|
165
|
-
xIsCountEmpty,
|
|
166
|
-
yField,
|
|
167
|
-
isLegend,
|
|
168
|
-
legend,
|
|
169
|
-
isXaxisName,
|
|
170
|
-
xAxisName,
|
|
171
|
-
isXaxisAxisLabelShow,
|
|
172
|
-
isXaxisAxisTickShow,
|
|
173
|
-
isXaxisAxisLabelRotate,
|
|
174
|
-
isYAxisSplitlineLinestyleWidth,
|
|
175
|
-
yAxisSplitlineLinestyleType,
|
|
176
|
-
yAxisMax,
|
|
177
|
-
yAxisMin,
|
|
178
|
-
isYAxisName,
|
|
179
|
-
yAxisName,
|
|
180
|
-
isSeriesShowSymbol,
|
|
181
|
-
isYAxisShow,
|
|
182
|
-
isUnit,
|
|
183
|
-
unit,
|
|
184
|
-
decimalDigits,
|
|
185
|
-
suffix,
|
|
186
|
-
}) {
|
|
187
|
-
if (dataSource) {
|
|
188
|
-
await this.setSourceData({
|
|
189
|
-
dataSource,
|
|
190
|
-
filterData,
|
|
191
|
-
xField,
|
|
192
|
-
xStatistics,
|
|
193
|
-
xIsCountEmpty,
|
|
194
|
-
yField,
|
|
195
|
-
groupKey,
|
|
196
|
-
groupKeyTimeSpan,
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
this.setChartType({ chartType });
|
|
200
|
-
this.setTitle({ isTitle, title, titleLocation });
|
|
201
|
-
this.setLegend({ isLegend, legend });
|
|
202
|
-
this.setIsXaxisAxisLabelShow({ isXaxisAxisLabelShow });
|
|
203
|
-
this.setIsXaxisName({ isXaxisName, xAxisName });
|
|
204
|
-
this.setIsXaxisAxisTickShow({ isXaxisAxisTickShow });
|
|
205
|
-
this.setIsXaxisAxisLabelRotate({ isXaxisAxisLabelRotate, xStatistics });
|
|
206
|
-
this.setIsYAxisSplitlineLinestyleWidth({
|
|
207
|
-
isYAxisSplitlineLinestyleWidth,
|
|
208
|
-
yAxisSplitlineLinestyleType,
|
|
209
|
-
});
|
|
210
|
-
this.setYAxisMaxMin({ yAxisMax, yAxisMin });
|
|
211
|
-
this.setIsYAxisName({ isYAxisName, yAxisName });
|
|
212
|
-
this.setIsYAxisShow({ isYAxisShow });
|
|
213
|
-
this.setIsSeriesShowSymbol({
|
|
214
|
-
isSeriesShowSymbol,
|
|
215
|
-
isUnit,
|
|
216
|
-
unit,
|
|
217
|
-
decimalDigits,
|
|
218
|
-
suffix,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export default EchartLine;
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import EchartBase from './eChartBase';
|
|
2
|
-
import getConfig from '../config/pie';
|
|
3
|
-
/**
|
|
4
|
-
* 饼状图表
|
|
5
|
-
* @author loonglong
|
|
6
|
-
**/
|
|
7
|
-
class EchartPie extends EchartBase {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
const config = getConfig();
|
|
11
|
-
this.config = { ...this.config, ...config };
|
|
12
|
-
}
|
|
13
|
-
async setSourceData({
|
|
14
|
-
dataSource,
|
|
15
|
-
filterData,
|
|
16
|
-
setColor,
|
|
17
|
-
xField,
|
|
18
|
-
xStatistics,
|
|
19
|
-
xIsCountEmpty,
|
|
20
|
-
yField,
|
|
21
|
-
}) {
|
|
22
|
-
const { name = '', type = '', methodName = '' } = dataSource;
|
|
23
|
-
if (name !== '') {
|
|
24
|
-
const params = this.createWhere({
|
|
25
|
-
filterData,
|
|
26
|
-
xField,
|
|
27
|
-
xStatistics,
|
|
28
|
-
xIsCountEmpty,
|
|
29
|
-
yField,
|
|
30
|
-
});
|
|
31
|
-
const arrSourData = await this.getSourceData(
|
|
32
|
-
name,
|
|
33
|
-
methodName,
|
|
34
|
-
type,
|
|
35
|
-
params
|
|
36
|
-
);
|
|
37
|
-
// 获取 x 轴数据
|
|
38
|
-
if (arrSourData.length >= 0) {
|
|
39
|
-
const numPie = arrSourData[0].YLabels.length;
|
|
40
|
-
if (numPie > 0) {
|
|
41
|
-
const arrData = [];
|
|
42
|
-
let i = 0;
|
|
43
|
-
arrSourData.forEach((itemSource) => {
|
|
44
|
-
const numc = setColor ? setColor.length : 0;
|
|
45
|
-
const strColor = numc > 0 ? { color: setColor[i % numc] } : {};
|
|
46
|
-
arrData.push({
|
|
47
|
-
value: itemSource.YLabels[0].Value,
|
|
48
|
-
name: itemSource.XLabel.Value,
|
|
49
|
-
tooltip: {},
|
|
50
|
-
itemStyle: strColor,
|
|
51
|
-
});
|
|
52
|
-
i = i + 1;
|
|
53
|
-
});
|
|
54
|
-
this.config.series[0].data = arrData;
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
// this.config['series'][0].data = [];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
setChartType({ chartType }) {
|
|
62
|
-
this.config.series.length > 0 &&
|
|
63
|
-
this.config.series.forEach((itemSeries) => {
|
|
64
|
-
if (chartType === 'pie') {
|
|
65
|
-
itemSeries.radius = '70%';
|
|
66
|
-
} else {
|
|
67
|
-
itemSeries.radius = ['40%', '70%'];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// 显示图表上的数据标签 单位,标签,小数位数,后缀
|
|
73
|
-
setIsSeriesShowSymbol({
|
|
74
|
-
isSeriesShowSymbol,
|
|
75
|
-
isPercent,
|
|
76
|
-
isUnit,
|
|
77
|
-
unit,
|
|
78
|
-
decimalDigits,
|
|
79
|
-
suffix,
|
|
80
|
-
}) {
|
|
81
|
-
decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
|
|
82
|
-
let show = false;
|
|
83
|
-
let position = 'inner';
|
|
84
|
-
let formatter = null;
|
|
85
|
-
if (isSeriesShowSymbol || isPercent || isUnit) {
|
|
86
|
-
formatter = '';
|
|
87
|
-
}
|
|
88
|
-
this.config.series[0].label.show = show;
|
|
89
|
-
this.config.series[0].label.position = position;
|
|
90
|
-
if (formatter === null) {
|
|
91
|
-
this.config.series[0].label.normal = null;
|
|
92
|
-
} else {
|
|
93
|
-
this.config.series[0].label.normal.formatter = (objValue) => {
|
|
94
|
-
let reData = '';
|
|
95
|
-
if (isSeriesShowSymbol) {
|
|
96
|
-
// 显示数值
|
|
97
|
-
reData = objValue.value;
|
|
98
|
-
}
|
|
99
|
-
if (isUnit) {
|
|
100
|
-
// 显示单位
|
|
101
|
-
if (unit) {
|
|
102
|
-
const objNewValue = this.getValueByUnit(objValue.value, unit);
|
|
103
|
-
reData = `${objNewValue.toFixed(decimalDigits)}${suffix}`;
|
|
104
|
-
} else {
|
|
105
|
-
reData = `${objValue.value.toFixed(decimalDigits)}`;
|
|
106
|
-
}
|
|
107
|
-
this.config.series[0].data.forEach((itemData) => {
|
|
108
|
-
itemData.tooltip.formatter = (objVal) => {
|
|
109
|
-
const objItemData = this.getValueByUnit(objVal.value, unit);
|
|
110
|
-
return `${objItemData.toFixed(decimalDigits)}${suffix}`;
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
if (isPercent) {
|
|
115
|
-
// 显示百分比
|
|
116
|
-
reData = `${reData}(${objValue.percent}%)`;
|
|
117
|
-
}
|
|
118
|
-
return reData;
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
async setOptions({
|
|
123
|
-
chartType,
|
|
124
|
-
isTitle,
|
|
125
|
-
title,
|
|
126
|
-
titleLocation,
|
|
127
|
-
dataSource,
|
|
128
|
-
filterData,
|
|
129
|
-
setColor,
|
|
130
|
-
xField,
|
|
131
|
-
xStatistics,
|
|
132
|
-
xIsCountEmpty,
|
|
133
|
-
yField,
|
|
134
|
-
isLegend,
|
|
135
|
-
legend,
|
|
136
|
-
isSeriesShowSymbol,
|
|
137
|
-
isPercent,
|
|
138
|
-
isUnit,
|
|
139
|
-
unit,
|
|
140
|
-
decimalDigits,
|
|
141
|
-
suffix,
|
|
142
|
-
}) {
|
|
143
|
-
if (dataSource) {
|
|
144
|
-
await this.setSourceData({
|
|
145
|
-
dataSource,
|
|
146
|
-
filterData,
|
|
147
|
-
setColor,
|
|
148
|
-
xField,
|
|
149
|
-
xStatistics,
|
|
150
|
-
xIsCountEmpty,
|
|
151
|
-
yField,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
this.setChartType({ chartType });
|
|
156
|
-
this.setTitle({ isTitle, title, titleLocation });
|
|
157
|
-
this.setLegend({ isLegend, legend });
|
|
158
|
-
this.setIsSeriesShowSymbol({
|
|
159
|
-
isSeriesShowSymbol,
|
|
160
|
-
isPercent,
|
|
161
|
-
isUnit,
|
|
162
|
-
unit,
|
|
163
|
-
decimalDigits,
|
|
164
|
-
suffix,
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export default EchartPie;
|