@cloudbase/weda-ui 3.3.1 → 3.3.3
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/dist/{src/configs → configs}/actions/showModal.json +0 -0
- package/dist/{src/configs → configs}/actions/showToast.json +0 -0
- package/dist/{src/configs → configs}/components/auth.json +0 -0
- package/dist/{src/configs → configs}/components/button.json +0 -0
- package/dist/{src/configs → configs}/components/calendar.json +0 -0
- package/dist/{src/configs → configs}/components/carousel.json +0 -0
- package/dist/{src/configs → configs}/components/chart/bar.json +0 -0
- package/dist/{src/configs → configs}/components/chart/line.json +0 -0
- package/dist/{src/configs → configs}/components/chart/pie.json +0 -0
- package/dist/{src/configs → configs}/components/chart/statisticsCard.json +0 -0
- package/dist/{src/configs → configs}/components/container.json +0 -0
- package/dist/{src/configs → configs}/components/dataView.json +0 -0
- package/dist/{src/configs → configs}/components/drawer.json +0 -0
- package/dist/{src/configs → configs}/components/form/checkbox.json +0 -0
- package/dist/{src/configs → configs}/components/form/departTreeSelect.json +0 -0
- package/dist/{src/configs → configs}/components/form/form.json +0 -0
- package/dist/{src/configs → configs}/components/form/input.json +0 -0
- package/dist/{src/configs → configs}/components/form/location.json +0 -0
- package/dist/{src/configs → configs}/components/form/radio.json +0 -0
- package/dist/{src/configs → configs}/components/form/richText.json +0 -0
- package/dist/{src/configs → configs}/components/form/select.json +0 -0
- package/dist/{src/configs → configs}/components/form/switch.json +0 -0
- package/dist/{src/configs → configs}/components/form/textarea.json +0 -0
- package/dist/{src/configs → configs}/components/form/tips.json +0 -0
- package/dist/{src/configs → configs}/components/form/uploader.json +0 -0
- package/dist/{src/configs → configs}/components/form/uploaderFile.json +0 -0
- package/dist/{src/configs → configs}/components/form/userTreeSelect.json +0 -0
- package/dist/{src/configs → configs}/components/formdetail.json +0 -0
- package/dist/{src/configs → configs}/components/graphicCard.json +0 -0
- package/dist/{src/configs → configs}/components/image.json +0 -0
- package/dist/{src/configs → configs}/components/link.json +0 -0
- package/dist/{src/configs → configs}/components/listView.json +0 -0
- package/dist/{src/configs → configs}/components/lottery.json +0 -0
- package/dist/{src/configs → configs}/components/modal.json +0 -0
- package/dist/{src/configs → configs}/components/navLayout.json +0 -0
- package/dist/{src/configs → configs}/components/navigationBar.json +0 -0
- package/dist/{src/configs → configs}/components/richtextview.json +0 -0
- package/dist/{src/configs → configs}/components/scrollVeiw.json +0 -0
- package/dist/{src/configs → configs}/components/slot.json +0 -0
- package/dist/{src/configs → configs}/components/swiper.json +0 -0
- package/dist/{src/configs → configs}/components/tabs.json +0 -0
- package/dist/{src/configs → configs}/components/text.json +0 -0
- package/dist/{src/configs → configs}/components/wedaVideo.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/phone.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/phoneCode.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/share.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/userInfo.json +0 -0
- package/dist/{src/configs → configs}/index.d.ts +0 -0
- package/dist/{src/configs → configs}/index.js +0 -0
- package/dist/{src/docs → docs}/common/format.d.ts +0 -0
- package/dist/{src/docs → docs}/common/format.js +0 -0
- package/dist/{src/docs → docs}/common/tableView.d.ts +0 -0
- package/dist/{src/docs → docs}/common/tableView.js +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +0 -0
- package/dist/{src/index.js → index.js} +0 -0
- package/dist/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
- package/dist/{src/setupTests.js → setupTests.js} +0 -0
- package/dist/{src/web → web}/actions/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/index.js +0 -0
- package/dist/{src/web → web}/actions/showModal/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/showModal/index.js +0 -0
- package/dist/{src/web → web}/actions/showToast/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/showToast/index.js +0 -0
- package/dist/{src/web → web}/components/button/index.d.ts +0 -0
- package/dist/{src/web → web}/components/button/index.js +0 -0
- package/dist/{src/web → web}/components/calendar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/calendar/index.js +37 -39
- package/dist/{src/web → web}/components/calendar/util.d.ts +0 -0
- package/dist/{src/web → web}/components/calendar/util.js +0 -0
- package/dist/{src/web → web}/components/carousel/index.d.ts +0 -0
- package/dist/{src/web → web}/components/carousel/index.js +62 -62
- package/dist/{src/web → web}/components/chart/bar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/bar/index.js +0 -4
- package/dist/{src/web → web}/components/chart/bar/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/bar/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/common/Chart.d.ts +0 -1
- package/dist/{src/web → web}/components/chart/common/Chart.js +1 -9
- package/dist/{src/web → web}/components/chart/common/chart-custom-connector.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/chart-custom-connector.js +1 -1
- package/dist/{src/web → web}/components/chart/common/chart-error.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/chart-error.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/bar.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/bar.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/global.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/global.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/line.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/line.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/pie.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/pie.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBar.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBar.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBase.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBase.js +1 -1
- package/dist/{src/web → web}/components/chart/common/core/eChartLine.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartLine.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartPie.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartPie.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/type.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/type.js +0 -0
- package/dist/{src/web → web}/components/chart/common/data-transform.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/data-transform.js +1 -1
- package/dist/{src/web → web}/components/chart/common/echarts.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/echarts.js +0 -0
- package/dist/{src/web → web}/components/chart/common/useChart.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/useChart.js +2 -11
- package/dist/{src/web → web}/components/chart/line/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/line/index.js +0 -0
- package/dist/{src/web → web}/components/chart/line/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/line/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.js +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/index.js +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/interface.js +0 -0
- package/dist/{src/web → web}/components/common/error-boundary.d.ts +0 -0
- package/dist/{src/web → web}/components/common/error-boundary.js +0 -0
- package/dist/{src/web → web}/components/common/portal.d.ts +0 -0
- package/dist/{src/web → web}/components/common/portal.js +0 -0
- package/dist/{src/web → web}/components/common/use-loop-render-detect.d.ts +2 -2
- package/dist/{src/web → web}/components/common/use-loop-render-detect.js +7 -9
- package/dist/{src/web → web}/components/container/index.d.ts +0 -0
- package/dist/{src/web → web}/components/container/index.js +0 -0
- package/dist/{src/web → web}/components/dataView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/dataView/index.js +0 -0
- package/dist/{src/web → web}/components/dataView/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/dataView/interface.js +0 -0
- package/dist/{src/web → web}/components/drawer/index.d.ts +0 -0
- package/dist/{src/web → web}/components/drawer/index.js +0 -0
- package/dist/{src/web → web}/components/form/checkbox/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/checkbox/index.js +29 -29
- package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.js +0 -0
- package/dist/{src/web → web}/components/form/form/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/form/index.js +1 -3
- package/dist/{src/web → web}/components/form/formcell/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/formcell/index.js +0 -0
- package/dist/{src/web → web}/components/form/input/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/input/index.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapChoose.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapChoose.js +1 -2
- package/dist/{src/web → web}/components/form/location/common/mapView.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapView.js +1 -4
- package/dist/{src/web → web}/components/form/location/common/propsConfig.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/propsConfig.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/selectModal.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/selectModal.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/tmap.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/tmap.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/useLocationInfo.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/useLocationInfo.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.js +0 -4
- package/dist/{src/web → web}/components/form/location/constants.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/constants.js +0 -0
- package/dist/{src/web → web}/components/form/location/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/index.js +0 -0
- package/dist/{src/web → web}/components/form/radio/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/radio/index.js +3 -3
- package/dist/{src/web → web}/components/form/renderDecorator.d.ts +0 -0
- package/dist/{src/web → web}/components/form/renderDecorator.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/index.js +0 -1
- package/dist/{src/web → web}/components/form/select/dropdown-select/ui.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/dropdown-select/ui.js +0 -0
- package/dist/{src/web → web}/components/form/select/h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/h5.js +4 -18
- package/dist/{src/web → web}/components/form/select/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/index.js +1 -8
- package/dist/{src/web → web}/components/form/select/region/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/region/index.js +0 -0
- package/dist/{src/web → web}/components/form/select/time.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/time.js +0 -0
- package/dist/{src/web → web}/components/form/select/use-options.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/use-options.js +1 -1
- package/dist/{src/web → web}/components/form/select/year.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/year.js +0 -0
- package/dist/{src/web → web}/components/form/switch/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/switch/index.js +0 -0
- package/dist/{src/web → web}/components/form/textarea/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/textarea/index.js +0 -0
- package/dist/{src/web → web}/components/form/tips/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/tips/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploader/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.h5.js +2 -2
- package/dist/{src/web → web}/components/form/uploader/uploader.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.pc.js +1 -1
- package/dist/{src/web → web}/components/form/uploaderFile/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.js +7 -9
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.js +6 -9
- package/dist/{src/web → web}/components/form/userOrgSelect/comTool.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/comTool.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/utils.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/utils.js +0 -0
- package/dist/{src/web → web}/components/formdetail/index.d.ts +0 -0
- package/dist/{src/web → web}/components/formdetail/index.js +10 -12
- package/dist/{src/web → web}/components/graphicCard/index.d.ts +0 -0
- package/dist/{src/web → web}/components/graphicCard/index.js +6 -5
- package/dist/{src/web → web}/components/image/image.d.ts +0 -0
- package/dist/{src/web → web}/components/image/image.js +0 -0
- package/dist/{src/web → web}/components/image/index.d.ts +0 -0
- package/dist/{src/web → web}/components/image/index.js +1 -1
- package/dist/{src/web → web}/components/index.d.ts +0 -0
- package/dist/{src/web → web}/components/index.js +0 -0
- package/dist/{src/web → web}/components/link/index.d.ts +0 -0
- package/dist/{src/web → web}/components/link/index.js +0 -0
- package/dist/{src/web → web}/components/listView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/listView/index.js +0 -1
- package/dist/{src/web → web}/components/listView/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/listView/interface.js +0 -0
- package/dist/{src/web → web}/components/lottery/index.d.ts +0 -0
- package/dist/{src/web → web}/components/lottery/index.js +16 -10
- package/dist/{src/web → web}/components/lottery/lotteryUtil.d.ts +0 -0
- package/dist/{src/web → web}/components/lottery/lotteryUtil.js +0 -0
- package/dist/{src/web → web}/components/modal/index.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/index.js +0 -0
- package/dist/{src/web → web}/components/modal/modal.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/modal.h5.js +0 -0
- package/dist/{src/web → web}/components/modal/modal.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/modal.pc.js +0 -0
- package/dist/{src/web → web}/components/navLayout/index.d.ts +0 -0
- package/dist/{src/web → web}/components/navLayout/index.js +1 -1
- package/dist/{src/web → web}/components/navigationBar/common.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/common.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/h5Menu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/h5Menu.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/horizontalMenu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/horizontalMenu.js +1 -1
- package/dist/{src/web → web}/components/navigationBar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/index.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/verticalMenu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/verticalMenu.js +0 -0
- package/dist/{src/web → web}/components/phone/index.d.ts +0 -0
- package/dist/{src/web → web}/components/phone/index.js +0 -0
- package/dist/{src/web → web}/components/phoneCode/index.d.ts +0 -0
- package/dist/{src/web → web}/components/phoneCode/index.js +0 -0
- package/dist/{src/web → web}/components/picker/datePicker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/datePicker.js +0 -0
- package/dist/{src/web → web}/components/picker/picker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/picker.js +0 -0
- package/dist/{src/web → web}/components/picker/timePicker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/timePicker.js +0 -0
- package/dist/{src/web → web}/components/richText/const.d.ts +0 -0
- package/dist/{src/web → web}/components/richText/const.js +0 -0
- package/dist/{src/web → web}/components/richText/index.d.ts +0 -0
- package/dist/{src/web → web}/components/richText/index.js +2 -1
- package/dist/{src/web → web}/components/richTextView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/richTextView/index.js +18 -20
- package/dist/{src/web → web}/components/scrollView/index.d.ts +0 -1
- package/dist/{src/web → web}/components/scrollView/index.js +4 -6
- package/dist/{src/web → web}/components/share/index.d.ts +0 -0
- package/dist/{src/web → web}/components/share/index.js +0 -0
- package/dist/{src/web → web}/components/slot/index.d.ts +0 -0
- package/dist/{src/web → web}/components/slot/index.js +0 -0
- package/dist/{src/web → web}/components/swiper/index.d.ts +0 -0
- package/dist/{src/web → web}/components/swiper/index.js +62 -62
- package/dist/{src/web → web}/components/tabs/index.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/index.js +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.h5.js +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.pc.js +0 -0
- package/dist/{src/web → web}/components/text/index.d.ts +0 -0
- package/dist/{src/web → web}/components/text/index.js +8 -10
- package/dist/{src/web → web}/components/uploaderFileView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/uploaderFileView/index.js +0 -0
- package/dist/{src/web → web}/components/uploaderView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/uploaderView/index.js +1 -1
- package/dist/{src/web → web}/components/userInfo/index.d.ts +0 -0
- package/dist/{src/web → web}/components/userInfo/index.js +0 -0
- package/dist/{src/web → web}/components/wedaVideo/index.d.ts +0 -0
- package/dist/{src/web → web}/components/wedaVideo/index.js +2 -14
- package/dist/{src/web → web}/index.d.ts +0 -0
- package/dist/{src/web → web}/index.js +0 -0
- package/dist/{src/web → web}/utils/classnames.d.ts +0 -0
- package/dist/{src/web → web}/utils/classnames.js +0 -0
- package/dist/{src/web → web}/utils/console.d.ts +0 -0
- package/dist/{src/web → web}/utils/console.js +0 -0
- package/dist/{src/web → web}/utils/constant.d.ts +0 -0
- package/dist/{src/web → web}/utils/constant.js +0 -0
- package/dist/{src/web → web}/utils/debounce.d.ts +0 -0
- package/dist/{src/web → web}/utils/debounce.js +0 -0
- package/dist/{src/web → web}/utils/getLocalCounter.d.ts +0 -0
- package/dist/{src/web → web}/utils/getLocalCounter.js +0 -0
- package/dist/{src/web → web}/utils/isObjectEqual.d.ts +0 -0
- package/dist/{src/web → web}/utils/isObjectEqual.js +0 -0
- package/dist/{src/web → web}/utils/loading-fallback.d.ts +0 -0
- package/dist/{src/web → web}/utils/loading-fallback.js +0 -0
- package/dist/{src/web → web}/utils/lodash.d.ts +0 -0
- package/dist/{src/web → web}/utils/lodash.js +0 -0
- package/dist/{src/web → web}/utils/platform.d.ts +0 -0
- package/dist/{src/web → web}/utils/platform.js +0 -0
- package/dist/{src/web → web}/utils/tcb.d.ts +0 -0
- package/dist/{src/web → web}/utils/tcb.js +0 -0
- package/dist/web/utils/tmap.d.ts +3 -0
- package/dist/web/utils/tmap.js +21 -0
- package/dist/{src/web → web}/utils/use-cloud-id-temp-url.d.ts +0 -0
- package/dist/{src/web → web}/utils/use-cloud-id-temp-url.js +0 -0
- package/dist/{src/web → web}/utils/useSetState.d.ts +0 -0
- package/dist/{src/web → web}/utils/useSetState.js +0 -0
- package/dist/{src/web → web}/utils/useSyncValue.d.ts +0 -0
- package/dist/{src/web → web}/utils/useSyncValue.js +0 -1
- package/dist/{src/web → web}/utils/weui.d.ts +0 -0
- package/dist/{src/web → web}/utils/weui.js +0 -0
- package/package.json +22 -22
- package/dist/cypress/support/commands.d.ts +0 -1
- package/dist/cypress/support/commands.js +0 -40
- package/dist/cypress/support/e2e.d.ts +0 -24
- package/dist/cypress/support/e2e.js +0 -22
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const useRenderCount: () => [number, () => void];
|
|
2
|
-
declare type ILoopRenderDetectOptions =
|
|
2
|
+
declare type ILoopRenderDetectOptions = {
|
|
3
3
|
limit?: number;
|
|
4
4
|
throwError?: boolean;
|
|
5
5
|
message?: string;
|
|
6
6
|
timeWindowMs?: number;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export declare class DetectedRenderLoppError extends Error {
|
|
9
9
|
}
|
|
10
10
|
export declare const useLoopRenderDetect: (inputOptions?: ILoopRenderDetectOptions) => boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useSyncedRef } from '@react-hookz/web';
|
|
2
2
|
import { useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { debug } from '../../utils/console';
|
|
4
3
|
export const useRenderCount = () => {
|
|
5
4
|
const countRef = useRef(0);
|
|
6
5
|
const syncedRef = useSyncedRef(++countRef.current);
|
|
@@ -83,7 +82,6 @@ const defaultOptions = {
|
|
|
83
82
|
message: '组件控制逻辑出现死循环,请检查并修改相关配置',
|
|
84
83
|
timeWindowMs: 6 * 1000,
|
|
85
84
|
};
|
|
86
|
-
const logger = debug('useLoopRenderDetect');
|
|
87
85
|
export class DetectedRenderLoppError extends Error {
|
|
88
86
|
}
|
|
89
87
|
export const useLoopRenderDetect = (inputOptions = defaultOptions) => {
|
|
@@ -104,14 +102,14 @@ export const useLoopRenderDetect = (inputOptions = defaultOptions) => {
|
|
|
104
102
|
clearTimeout(id);
|
|
105
103
|
}
|
|
106
104
|
};
|
|
107
|
-
}, [
|
|
105
|
+
}, []);
|
|
108
106
|
const fps = useFps();
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
});
|
|
107
|
+
// console.log({
|
|
108
|
+
// timeWindow: options.timeWindowMs,
|
|
109
|
+
// fps,
|
|
110
|
+
// renderCount,
|
|
111
|
+
// limit: options.limit,
|
|
112
|
+
// });
|
|
115
113
|
if ((renderCount > options.limit && fps < 1) ||
|
|
116
114
|
renderCount > options.limit * 3) {
|
|
117
115
|
reset();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { Checkbox as TeaCheckbox, ConfigProvider } from 'tea-component';
|
|
3
3
|
import classNames from '../../../utils/classnames';
|
|
4
4
|
import getLocalCounter from '../../../utils/getLocalCounter';
|
|
@@ -39,8 +39,33 @@ name = 'formCheckbox', label = '标题', labelVisible = true, format = '', enumN
|
|
|
39
39
|
prevRangeRef.current = JSON.parse(JSON.stringify(option));
|
|
40
40
|
setCheckedItems(fromEntries(option.map(({ value, checked }) => [value, !!checked])));
|
|
41
41
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
42
|
+
});
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
// 如果绑定字段类型为枚举,且传入自定义选项集的名称则默认使用自定义选项集的内容作为选项
|
|
45
|
+
if (format === 'x-enum' && enumName) {
|
|
46
|
+
fetchData({ OptNameList: [enumName], PageIndex: 1, PageSize: 10 });
|
|
47
|
+
}
|
|
48
|
+
}, []);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (format === 'x-enum') {
|
|
51
|
+
const opt = enumOptions &&
|
|
52
|
+
enumOptions.map((item) => {
|
|
53
|
+
const checked = controlValue && controlValue.find((val) => val === item.value);
|
|
54
|
+
return {
|
|
55
|
+
value: item.value,
|
|
56
|
+
label: item.label,
|
|
57
|
+
checked: !!checked,
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
setOption(opt);
|
|
61
|
+
}
|
|
62
|
+
}, [controlValue]);
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (format !== 'x-enum') {
|
|
65
|
+
setOption(range);
|
|
66
|
+
}
|
|
67
|
+
}, [range]);
|
|
68
|
+
const fetchData = async (param) => {
|
|
44
69
|
var _a, _b, _c;
|
|
45
70
|
const data = await callWedaApi({
|
|
46
71
|
action: 'DescribeGeneralOptionsDetailList',
|
|
@@ -66,32 +91,7 @@ name = 'formCheckbox', label = '标题', labelVisible = true, format = '', enumN
|
|
|
66
91
|
};
|
|
67
92
|
});
|
|
68
93
|
setOption(opt);
|
|
69
|
-
}
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
// 如果绑定字段类型为枚举,且传入自定义选项集的名称则默认使用自定义选项集的内容作为选项
|
|
72
|
-
if (format === 'x-enum' && enumName) {
|
|
73
|
-
fetchData({ OptNameList: [enumName], PageIndex: 1, PageSize: 10 });
|
|
74
|
-
}
|
|
75
|
-
}, [enumName, fetchData, format]);
|
|
76
|
-
useEffect(() => {
|
|
77
|
-
if (format === 'x-enum') {
|
|
78
|
-
const opt = enumOptions &&
|
|
79
|
-
enumOptions.map((item) => {
|
|
80
|
-
const checked = controlValue && controlValue.find((val) => val === item.value);
|
|
81
|
-
return {
|
|
82
|
-
value: item.value,
|
|
83
|
-
label: item.label,
|
|
84
|
-
checked: !!checked,
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
setOption(opt);
|
|
88
|
-
}
|
|
89
|
-
}, [controlValue, enumOptions, format]);
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
if (format !== 'x-enum') {
|
|
92
|
-
setOption(range);
|
|
93
|
-
}
|
|
94
|
-
}, [format, range]);
|
|
94
|
+
};
|
|
95
95
|
/**
|
|
96
96
|
* 在ios h5端, label和input的绑定不生效
|
|
97
97
|
* 导致 onChange 事件触发有问题, 所以改为监听 onClick 事件
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -80,8 +80,6 @@ export default function Form({ className, contentSlot, style, id, layout, formTy
|
|
|
80
80
|
platform,
|
|
81
81
|
methodGetItem,
|
|
82
82
|
paramGetItem,
|
|
83
|
-
appCloud,
|
|
84
|
-
events,
|
|
85
83
|
]);
|
|
86
84
|
React.useEffect(() => {
|
|
87
85
|
// 因编辑器render时序问题暂不上线
|
|
@@ -126,7 +124,7 @@ export default function Form({ className, contentSlot, style, id, layout, formTy
|
|
|
126
124
|
// // 在表单容器里面的表单元素 if 默认是 false,需要通过onInitDataSourceFieldsWithAuth设置为true
|
|
127
125
|
// events?.onInitDataSourceFieldsWithAuth?.({ isDataModel });
|
|
128
126
|
// }
|
|
129
|
-
}, [formType, isDataModel, platform, dataSourceName
|
|
127
|
+
}, [formType, isDataModel, platform, dataSourceName]);
|
|
130
128
|
// pc 渲染
|
|
131
129
|
const renderPc = () => {
|
|
132
130
|
return (React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
1
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
2
|
// @ts-nocheck
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import classNames from '../../../../utils/classnames';
|
|
6
5
|
import debounce from '../../../../utils/debounce';
|
|
7
6
|
import { tmapApiUrl } from '../constants';
|
|
8
|
-
import { getTMap, calculateDistance, base64LocationIcon } from '
|
|
7
|
+
import { getTMap, calculateDistance, base64LocationIcon, } from '../../../../utils/tmap';
|
|
9
8
|
import './mapChoose.css';
|
|
10
9
|
import { Icon } from 'tea-component';
|
|
11
10
|
const { useEffect, useState, useRef, useMemo } = React;
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as PropTypes from 'prop-types';
|
|
5
5
|
import { tmapApiUrl } from '../constants';
|
|
6
|
-
import { getTMap } from '
|
|
6
|
+
import { getTMap } from '../../../../utils/tmap';
|
|
7
7
|
const { useEffect, useRef, useState } = React;
|
|
8
8
|
const defaultLatLng = {
|
|
9
9
|
lat: null,
|
|
@@ -97,15 +97,12 @@ export default function MapView({ APIKEY = '', drag = true, zoom = true, latlng
|
|
|
97
97
|
mapRef.current = null;
|
|
98
98
|
setMapStatus(false);
|
|
99
99
|
};
|
|
100
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
101
100
|
}, [APIKEY]);
|
|
102
101
|
useEffect(() => {
|
|
103
102
|
mapRef.current && mapRef.current.setDraggable(drag);
|
|
104
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
105
103
|
}, [drag, mapRef.current]);
|
|
106
104
|
useEffect(() => {
|
|
107
105
|
mapRef.current && getTMap() && removeOrAddZoom(mapRef.current, getTMap());
|
|
108
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
109
106
|
}, [zoom, mapRef.current]);
|
|
110
107
|
useEffect(() => {
|
|
111
108
|
const TMap = getTMap();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.d.ts
RENAMED
|
File without changes
|
|
@@ -66,7 +66,6 @@ export default function LocationPC(props) {
|
|
|
66
66
|
customLocation.current = value;
|
|
67
67
|
setLocation(loc);
|
|
68
68
|
}
|
|
69
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
70
69
|
}, [value]);
|
|
71
70
|
useEffect(() => {
|
|
72
71
|
if (value || !currentLocations.current)
|
|
@@ -92,7 +91,6 @@ export default function LocationPC(props) {
|
|
|
92
91
|
});
|
|
93
92
|
}
|
|
94
93
|
setLocation(location);
|
|
95
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
96
94
|
}, [value, locationType]);
|
|
97
95
|
const showToast = (message) => {
|
|
98
96
|
weui.toast(message, {
|
|
@@ -158,7 +156,6 @@ export default function LocationPC(props) {
|
|
|
158
156
|
});
|
|
159
157
|
showToast('请配置地图连接器');
|
|
160
158
|
}
|
|
161
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
162
159
|
}, [dataSource]);
|
|
163
160
|
useEffect(() => {
|
|
164
161
|
let loc = {
|
|
@@ -190,7 +187,6 @@ export default function LocationPC(props) {
|
|
|
190
187
|
poiname: loc.poiname,
|
|
191
188
|
detailedAddress: loc.detailedAddress,
|
|
192
189
|
}, true);
|
|
193
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
194
190
|
}, [locationType]);
|
|
195
191
|
const getIsShowMap = () => {
|
|
196
192
|
let status = showMap;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,18 +38,18 @@ label = '标题', labelVisible = true, format = '', enumName = '', name = 'formR
|
|
|
38
38
|
prevRangeRef.current = option;
|
|
39
39
|
setCheckedItemValue((_a = option.find((item) => item.checked)) === null || _a === void 0 ? void 0 : _a.value);
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
});
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
// 如果绑定字段类型为枚举,且传入自定义选项集的名称则默认使用自定义选项集的内容作为选项
|
|
44
44
|
if (format === 'x-enum' && enumName) {
|
|
45
45
|
fetchData({ OptNameList: [enumName], PageIndex: 1, PageSize: 10 });
|
|
46
46
|
}
|
|
47
|
-
}, [
|
|
47
|
+
}, []);
|
|
48
48
|
useEffect(() => {
|
|
49
49
|
if (format !== 'x-enum') {
|
|
50
50
|
setOption(range);
|
|
51
51
|
}
|
|
52
|
-
}, [
|
|
52
|
+
}, [range]);
|
|
53
53
|
const fetchData = async (param) => {
|
|
54
54
|
var _a, _b, _c;
|
|
55
55
|
const data = await callWedaApi({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -75,17 +75,9 @@ defaultRegion, defaultMutiRegion, separator, regionType, onChange, }) {
|
|
|
75
75
|
defaultMutiRegion,
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
}
|
|
79
|
-
defaultValue,
|
|
80
|
-
defaultDate,
|
|
81
|
-
defaultTime,
|
|
82
|
-
defaultRegion,
|
|
83
|
-
defaultMutiRegion,
|
|
84
|
-
regionType,
|
|
85
|
-
dateMode,
|
|
86
|
-
]);
|
|
78
|
+
});
|
|
87
79
|
//实现初始值触发change事件
|
|
88
|
-
const defaultMutiRegionChange =
|
|
80
|
+
const defaultMutiRegionChange = function (treeValue, defaultMutiRegion) {
|
|
89
81
|
var _a;
|
|
90
82
|
const defaultValue = defaultMutiRegion
|
|
91
83
|
? defaultMutiRegion.split(',')
|
|
@@ -104,7 +96,7 @@ defaultRegion, defaultMutiRegion, separator, regionType, onChange, }) {
|
|
|
104
96
|
});
|
|
105
97
|
(_a = events === null || events === void 0 ? void 0 : events.change) === null || _a === void 0 ? void 0 : _a.call(events, { value: defaultMutiRegion, result: changeValue });
|
|
106
98
|
}
|
|
107
|
-
}
|
|
99
|
+
};
|
|
108
100
|
React.useEffect(() => {
|
|
109
101
|
if (mode == 'region' || mode == 'mutiRegion') {
|
|
110
102
|
if (regionData.length < 1) {
|
|
@@ -139,13 +131,7 @@ defaultRegion, defaultMutiRegion, separator, regionType, onChange, }) {
|
|
|
139
131
|
break;
|
|
140
132
|
}
|
|
141
133
|
}
|
|
142
|
-
}, [
|
|
143
|
-
regionType,
|
|
144
|
-
mode,
|
|
145
|
-
regionData,
|
|
146
|
-
defaultMutiRegionChange,
|
|
147
|
-
defaultMutiRegion,
|
|
148
|
-
]);
|
|
134
|
+
}, [regionType, mode, regionData]);
|
|
149
135
|
const onDateclick = function () {
|
|
150
136
|
const options = {
|
|
151
137
|
className: 'weda-ui weda-picker',
|
|
File without changes
|
|
@@ -132,14 +132,7 @@ function SelectPc({ where, dataSourceName, viewId, format, primaryField, enumNam
|
|
|
132
132
|
defaultMutiRegion,
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
}
|
|
136
|
-
defaultValue,
|
|
137
|
-
defaultDate,
|
|
138
|
-
defaultTime,
|
|
139
|
-
defaultRegion,
|
|
140
|
-
defaultMutiRegion,
|
|
141
|
-
dateMode,
|
|
142
|
-
]);
|
|
135
|
+
});
|
|
143
136
|
React.useEffect(() => {
|
|
144
137
|
if (mode == 'region' || mode == 'mutiRegion') {
|
|
145
138
|
if (regionData.length < 1) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -36,7 +36,7 @@ export function ImageUploaderH5({ title, maxUploadCount, maxSize = 10, acceptTyp
|
|
|
36
36
|
return inputValue;
|
|
37
37
|
}
|
|
38
38
|
return [];
|
|
39
|
-
}, [inputValue
|
|
39
|
+
}, [inputValue]);
|
|
40
40
|
const finalMaxImgCount = React.useMemo(() => {
|
|
41
41
|
if (single)
|
|
42
42
|
return 1;
|
|
@@ -59,7 +59,7 @@ export function ImageUploaderH5({ title, maxUploadCount, maxSize = 10, acceptTyp
|
|
|
59
59
|
onChange && onChange(fileIdList);
|
|
60
60
|
events.change && events.change({ value: fileIdList });
|
|
61
61
|
}
|
|
62
|
-
}, [
|
|
62
|
+
}, [fileIdList]);
|
|
63
63
|
const onProgress = (progressEvent) => {
|
|
64
64
|
let percentCompleted = 0;
|
|
65
65
|
try {
|
|
File without changes
|
|
@@ -53,7 +53,7 @@ export function UploaderPCInner(props) {
|
|
|
53
53
|
initialValue = initialValue[0] ? [initialValue[0]] : [];
|
|
54
54
|
}
|
|
55
55
|
setfileIDList(initialValue);
|
|
56
|
-
}, [defaultValue
|
|
56
|
+
}, [defaultValue]);
|
|
57
57
|
// 值变化事件
|
|
58
58
|
React.useEffect(() => {
|
|
59
59
|
if (!isObjectEqual(fileRef.current, fileIDList)) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -70,7 +70,7 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
70
70
|
(_c = events === null || events === void 0 ? void 0 : events.success) === null || _c === void 0 ? void 0 : _c.call(events, { value: pureFileIDList });
|
|
71
71
|
fileRef.current = fileIDList;
|
|
72
72
|
}
|
|
73
|
-
}, [
|
|
73
|
+
}, [fileIDList]);
|
|
74
74
|
// 外层组件类
|
|
75
75
|
const cls = classNames({
|
|
76
76
|
'weda-ui': true,
|
|
@@ -218,9 +218,12 @@ const TcbFileUpload = ({ file, disabled }) => {
|
|
|
218
218
|
const title = (file === null || file === void 0 ? void 0 : file.name) || '';
|
|
219
219
|
const uuid = file === null || file === void 0 ? void 0 : file._uuid;
|
|
220
220
|
return { size, title, uuid };
|
|
221
|
-
}, [file === null || file === void 0 ? void 0 : file._uuid
|
|
221
|
+
}, [file === null || file === void 0 ? void 0 : file._uuid]);
|
|
222
|
+
React.useEffect(() => {
|
|
223
|
+
handleUpload(file);
|
|
224
|
+
}, [file === null || file === void 0 ? void 0 : file._uuid]);
|
|
222
225
|
// 上传过程
|
|
223
|
-
const handleUpload =
|
|
226
|
+
const handleUpload = async (file) => {
|
|
224
227
|
var _a;
|
|
225
228
|
const tcb = await getCloudInstance();
|
|
226
229
|
try {
|
|
@@ -242,12 +245,7 @@ const TcbFileUpload = ({ file, disabled }) => {
|
|
|
242
245
|
setStatus('UPLOAD_STATUS_ERROR');
|
|
243
246
|
(_a = events === null || events === void 0 ? void 0 : events.error) === null || _a === void 0 ? void 0 : _a.call(events, err);
|
|
244
247
|
}
|
|
245
|
-
}
|
|
246
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
247
|
-
[size, uploadPath, uuid]);
|
|
248
|
-
React.useEffect(() => {
|
|
249
|
-
handleUpload(file);
|
|
250
|
-
}, [file, file._uuid, handleUpload]);
|
|
248
|
+
};
|
|
251
249
|
return (React.createElement("div", { className: `${CLASS_PREFIX}__item`, role: "TcbFileUpload" },
|
|
252
250
|
React.createElement("div", { className: `${CLASS_PREFIX}__item-left` },
|
|
253
251
|
React.createElement(UploadFileStatus, { status: status, percent: percent, size: size, title: title, percentSize: (((file === null || file === void 0 ? void 0 : file.size) / 1024) * percent) / 100 })),
|
|
File without changes
|