@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
|
@@ -61,7 +61,6 @@ acceptTypes = emptyArray, downloadVisible = true, deleteVisible = true, uploadPa
|
|
|
61
61
|
(_c = events === null || events === void 0 ? void 0 : events.success) === null || _c === void 0 ? void 0 : _c.call(events, { value: pureFileIDList });
|
|
62
62
|
fileRef.current = fileIDList;
|
|
63
63
|
}
|
|
64
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
64
|
}, [fileIDList]);
|
|
66
65
|
// 外层组件类
|
|
67
66
|
const cls = classNames({
|
|
@@ -210,9 +209,12 @@ const TcbFileUpload = ({ file, disabled }) => {
|
|
|
210
209
|
const title = (file === null || file === void 0 ? void 0 : file.name) || '';
|
|
211
210
|
const uuid = file === null || file === void 0 ? void 0 : file._uuid;
|
|
212
211
|
return { size, title, uuid };
|
|
213
|
-
}, [file === null || file === void 0 ? void 0 : file._uuid
|
|
212
|
+
}, [file === null || file === void 0 ? void 0 : file._uuid]);
|
|
213
|
+
React.useEffect(() => {
|
|
214
|
+
handleUpload(file);
|
|
215
|
+
}, [file === null || file === void 0 ? void 0 : file._uuid]);
|
|
214
216
|
// 上传过程
|
|
215
|
-
const handleUpload =
|
|
217
|
+
const handleUpload = async (file) => {
|
|
216
218
|
const tcb = await getCloudInstance();
|
|
217
219
|
try {
|
|
218
220
|
setStatus('0');
|
|
@@ -233,12 +235,7 @@ const TcbFileUpload = ({ file, disabled }) => {
|
|
|
233
235
|
setStatus('3');
|
|
234
236
|
events.error && events.error(e);
|
|
235
237
|
}
|
|
236
|
-
}
|
|
237
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
238
|
-
[size, uploadPath, uuid]);
|
|
239
|
-
React.useEffect(() => {
|
|
240
|
-
handleUpload(file);
|
|
241
|
-
}, [file, file._uuid, handleUpload]);
|
|
238
|
+
};
|
|
242
239
|
return (React.createElement("div", { className: `${CLASS_PREFIX}--item ${CLASS_PREFIX}--item-body` },
|
|
243
240
|
React.createElement("div", { className: `${CLASS_PREFIX}--item-title`, title: title }, cutFileTitle(title)),
|
|
244
241
|
React.createElement("div", { className: `${CLASS_PREFIX}--item-size` }, size),
|
|
File without changes
|
|
File without changes
|
package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts
RENAMED
|
File without changes
|
package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js
RENAMED
|
File without changes
|
package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts
RENAMED
|
File without changes
|
package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js
RENAMED
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, forwardRef, useImperativeHandle, useState,
|
|
1
|
+
import React, { useEffect, useRef, forwardRef, useImperativeHandle, useState, } from 'react';
|
|
2
2
|
import destr from 'destr';
|
|
3
3
|
import classNames from '../../utils/classnames';
|
|
4
4
|
import { usePlatform, randomStr } from '../../utils/platform';
|
|
@@ -60,11 +60,12 @@ export const changeHandle = ({ type, name, data, childFormItem, isPureArray, par
|
|
|
60
60
|
};
|
|
61
61
|
export default forwardRef(function FormDetail(props, ref) {
|
|
62
62
|
const { className, id, style, children, events, name, value: initDetailValue, isPureArray, parent, } = props;
|
|
63
|
+
const observeRef = useRef(null); // 当前监听对象
|
|
63
64
|
const [defaultValue, setDetailValue] = useState([]);
|
|
64
65
|
const [contextData, setContextData] = useState([]);
|
|
65
66
|
const [childFormItem, setCildFormItem] = useState([]);
|
|
66
67
|
const platform = usePlatform();
|
|
67
|
-
const init =
|
|
68
|
+
const init = (defaultValue) => {
|
|
68
69
|
var _a;
|
|
69
70
|
const formDetailItemValue = {};
|
|
70
71
|
let childFormItem = defaultValue[0] ? Object.keys(defaultValue[0]) : [];
|
|
@@ -110,12 +111,10 @@ export default forwardRef(function FormDetail(props, ref) {
|
|
|
110
111
|
// eslint-disable-next-line rulesdir/no-timer
|
|
111
112
|
setTimeout(() => {
|
|
112
113
|
if (!isObjectEqual(formDetailItemValue, {})) {
|
|
113
|
-
|
|
114
|
-
parent === null || parent === void 0 ? void 0 : parent.setValue(formDetailItemValue);
|
|
115
|
-
}
|
|
114
|
+
parent.setValue(formDetailItemValue);
|
|
116
115
|
}
|
|
117
116
|
}, 0);
|
|
118
|
-
}
|
|
117
|
+
};
|
|
119
118
|
// 初始化context的值
|
|
120
119
|
useEffect(() => {
|
|
121
120
|
if (!isObjectEqual(initDetailValue, defaultValue)) {
|
|
@@ -129,13 +128,12 @@ export default forwardRef(function FormDetail(props, ref) {
|
|
|
129
128
|
setDetailValue(initDetailValue);
|
|
130
129
|
// 组件卸载时触发
|
|
131
130
|
return () => {
|
|
132
|
-
var _a;
|
|
133
|
-
(_a =
|
|
131
|
+
var _a, _b;
|
|
132
|
+
(_a = observeRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
133
|
+
(_b = events === null || events === void 0 ? void 0 : events.onDataChange) === null || _b === void 0 ? void 0 : _b.call(events, { data: [] });
|
|
134
134
|
};
|
|
135
|
-
// 只执行一次;
|
|
136
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
137
135
|
}, []);
|
|
138
|
-
const onChange =
|
|
136
|
+
const onChange = (type, params) => {
|
|
139
137
|
var _a;
|
|
140
138
|
let data = destr(contextData);
|
|
141
139
|
data = changeHandle({
|
|
@@ -148,7 +146,7 @@ export default forwardRef(function FormDetail(props, ref) {
|
|
|
148
146
|
});
|
|
149
147
|
setContextData(data);
|
|
150
148
|
(_a = events === null || events === void 0 ? void 0 : events.onDataChange) === null || _a === void 0 ? void 0 : _a.call(events, { data });
|
|
151
|
-
}
|
|
149
|
+
};
|
|
152
150
|
useImperativeHandle(ref, () => {
|
|
153
151
|
return {
|
|
154
152
|
methods: {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
import './index.css';
|
|
3
3
|
import classNames from '../../utils/classnames';
|
|
4
4
|
import { Row, Col, ConfigProvider, Button, Text } from 'tea-component';
|
|
@@ -12,6 +12,7 @@ const CLASS_PREFIX = 'weda-graphic-card';
|
|
|
12
12
|
export default function GraphicCard({ navOption = emptyArray, ColMobile, ColPC, iconWidthSize, iconHeightSize, titleVisible, desVisible, buttonVisible, textAlign, className, titleColor, titleFontWeight, titleFontSize, titleLineHeight, titleMaxLines, desColor, desFontWeight, desFontSize, desLineHeight, desMaxLines, buttonText, style, }) {
|
|
13
13
|
const platform = usePlatform();
|
|
14
14
|
const isH5 = platform === 'h5';
|
|
15
|
+
const [colCount, setColCount] = React.useState(2);
|
|
15
16
|
// 一个栅格的宽度
|
|
16
17
|
const { width } = useWindowSize();
|
|
17
18
|
const singleGrid = useMemo(() => (width - 24 * 2) / 12, [width]);
|
|
@@ -23,10 +24,10 @@ export default function GraphicCard({ navOption = emptyArray, ColMobile, ColPC,
|
|
|
23
24
|
[className]: className,
|
|
24
25
|
[`${CLASS_PREFIX}-mobile`]: isH5,
|
|
25
26
|
});
|
|
26
|
-
|
|
27
|
+
useEffect(() => {
|
|
27
28
|
const col = isH5 ? ColMobile : ColPC;
|
|
28
|
-
|
|
29
|
-
}, [
|
|
29
|
+
setColCount(col);
|
|
30
|
+
}, [isH5]);
|
|
30
31
|
const cardList = useMemo(() => {
|
|
31
32
|
const list = [];
|
|
32
33
|
if (prevColRef.current !== colCount ||
|
|
@@ -121,7 +122,7 @@ export default function GraphicCard({ navOption = emptyArray, ColMobile, ColPC,
|
|
|
121
122
|
? iconHeightSize
|
|
122
123
|
: (Number(height) * parseInt(iconHeightSize)) / 100 + 'px';
|
|
123
124
|
return { width, height };
|
|
124
|
-
}, [
|
|
125
|
+
}, [iconWidthSize, iconHeightSize, ColMobile, ColPC, isH5]);
|
|
125
126
|
const tapTo = (colInfo = navOption[0]) => {
|
|
126
127
|
switch (colInfo === null || colInfo === void 0 ? void 0 : colInfo.tapStatus) {
|
|
127
128
|
case 'tap':
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -46,7 +46,7 @@ src, alt, mode, lazyLoad, imgPreview, maskClosable, fit, }) {
|
|
|
46
46
|
else {
|
|
47
47
|
return style;
|
|
48
48
|
}
|
|
49
|
-
}, [
|
|
49
|
+
}, [style, fit]);
|
|
50
50
|
return src === realSrc || (realSrc !== undefined && src !== realSrc) ? (React.createElement(ImageInner, { objectFit: realFit, style: realStyle, className: cls, alt: alt, src: realSrc, isError: isError, setIsError: setIsError, events: events, lazyLoad: lazyLoad, imgPreview: imgPreview, maskClosable: maskClosable })) : null;
|
|
51
51
|
}
|
|
52
52
|
function getObjectFitByWxImageMode(mode) {
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-key */
|
|
2
|
-
import React, { useState, useEffect, useCallback, useImperativeHandle,
|
|
2
|
+
import React, { useState, useEffect, useCallback, useImperativeHandle, } from 'react';
|
|
3
3
|
import { usePlatform } from '../../utils/platform';
|
|
4
4
|
import classNames from '../../utils/classnames';
|
|
5
5
|
import './index.css';
|
|
@@ -14,7 +14,7 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
14
14
|
const [lotteryList, setLotteryList] = useState([]);
|
|
15
15
|
const [btnActived, setBtnActived] = useState(false);
|
|
16
16
|
//获取初始化默认数据,数据不足8条设置默认,超过8条获取前8条
|
|
17
|
-
const lotteryListDefault =
|
|
17
|
+
const lotteryListDefault = () => {
|
|
18
18
|
const list = [];
|
|
19
19
|
if (prizeList == null) {
|
|
20
20
|
return list;
|
|
@@ -39,15 +39,21 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
return list;
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
43
|
const startLottery = useCallback(() => {
|
|
44
|
-
setLotteryList(lotteryListDefault);
|
|
44
|
+
setLotteryList(lotteryListDefault());
|
|
45
45
|
setBtnActived(true);
|
|
46
46
|
if (lotteryAction.isStart)
|
|
47
47
|
return;
|
|
48
48
|
events === null || events === void 0 ? void 0 : events.clickLotteryButton();
|
|
49
49
|
setIsStartLottery(true);
|
|
50
|
-
}, [
|
|
50
|
+
}, [
|
|
51
|
+
lotteryAction.isStart,
|
|
52
|
+
setIsStartLottery,
|
|
53
|
+
setBtnActived,
|
|
54
|
+
lotteryListDefault,
|
|
55
|
+
setLotteryList,
|
|
56
|
+
]);
|
|
51
57
|
useImperativeHandle(ref, () => {
|
|
52
58
|
return {
|
|
53
59
|
methods: {
|
|
@@ -56,8 +62,8 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
56
62
|
};
|
|
57
63
|
}, [startLottery]);
|
|
58
64
|
useEffect(() => {
|
|
59
|
-
setLotteryList(lotteryListDefault);
|
|
60
|
-
}, [
|
|
65
|
+
setLotteryList(lotteryListDefault());
|
|
66
|
+
}, [prizeList]);
|
|
61
67
|
useEffect(() => {
|
|
62
68
|
lotteryAction.animationCallback = ({ idx, isEnd }) => {
|
|
63
69
|
setActivedId(idx == -1 ? 0 : idx);
|
|
@@ -84,7 +90,7 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
84
90
|
}, 700);
|
|
85
91
|
}
|
|
86
92
|
};
|
|
87
|
-
}, [
|
|
93
|
+
}, [lotteryList]);
|
|
88
94
|
useEffect(() => {
|
|
89
95
|
// 当满足开启抽奖条件并且点击了开奖开关时,启用抽奖
|
|
90
96
|
if (enablePrize && isStartLottery) {
|
|
@@ -102,7 +108,7 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
102
108
|
//立马停止抽奖
|
|
103
109
|
lotteryAction.stop();
|
|
104
110
|
}
|
|
105
|
-
}, [isStartLottery, enablePrize
|
|
111
|
+
}, [isStartLottery, enablePrize]);
|
|
106
112
|
useEffect(() => {
|
|
107
113
|
// 设置抽奖结果
|
|
108
114
|
lotteryAction.end(prizeResult);
|
|
@@ -182,7 +188,7 @@ export default React.forwardRef(function Lottery({ className, id, style, prizeLi
|
|
|
182
188
|
setDotHeight(dotHeight);
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
|
-
}, [
|
|
191
|
+
}, [style]);
|
|
186
192
|
const renderDot = (direction, list) => {
|
|
187
193
|
return (React.createElement(React.Fragment, null,
|
|
188
194
|
React.createElement("div", { className: classNames(`${CLASS_PREFIX}__dot`, `${CLASS_PREFIX}__dot-${direction}`) }, list.map((item, index) => {
|
|
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
|
|
@@ -54,7 +54,7 @@ export default function NavLayout({ navOption = emptyArray, mobileCol, pcCol, ic
|
|
|
54
54
|
}, [colCount, navOption]);
|
|
55
55
|
React.useEffect(() => {
|
|
56
56
|
setColCount(platform === 'h5' ? mobileCol : pcCol);
|
|
57
|
-
}, [mobileCol, pcCol
|
|
57
|
+
}, [mobileCol, pcCol]);
|
|
58
58
|
// 每个col的宽度百分比
|
|
59
59
|
const colStyle = {
|
|
60
60
|
width: `${(1 / colCount) * 100}%`,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -48,7 +48,7 @@ const HorizontalMenu = ({ menuData, navigationStyle, selected, setSelected }) =>
|
|
|
48
48
|
if (platform !== 'h5' && isHorizontal && ((_a = navWrapRef === null || navWrapRef === void 0 ? void 0 : navWrapRef.current) === null || _a === void 0 ? void 0 : _a.children)) {
|
|
49
49
|
getMenuOffset();
|
|
50
50
|
}
|
|
51
|
-
}, [platform, isHorizontal, navWrapRef
|
|
51
|
+
}, [platform, isHorizontal, navWrapRef]);
|
|
52
52
|
// 渲染下拉菜单
|
|
53
53
|
const renderMenuList = (item, navigationStyle) => {
|
|
54
54
|
return (React.createElement(List, { type: "option", className: `${CLASS_PREFIX}__dropdown-menu-list`, style: { background: navigationStyle.menuBackgroundColor } }, item === null || item === void 0 ? void 0 : item.map((menu) => {
|
|
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
|
|
File without changes
|
|
@@ -92,7 +92,7 @@ label, labelVisible, value: initialValue, readOnly, layout, requiredFlag, onChan
|
|
|
92
92
|
useEffect(() => {
|
|
93
93
|
const state = createStateFromContent(initialValue, {});
|
|
94
94
|
setEditorState(state);
|
|
95
|
-
}, [
|
|
95
|
+
}, []);
|
|
96
96
|
const excludeControls = useMemo(() => {
|
|
97
97
|
const result = [
|
|
98
98
|
'media',
|
|
@@ -134,6 +134,7 @@ label, labelVisible, value: initialValue, readOnly, layout, requiredFlag, onChan
|
|
|
134
134
|
maxSize,
|
|
135
135
|
cloudPath,
|
|
136
136
|
latestEditorState,
|
|
137
|
+
insertMedias,
|
|
137
138
|
setEditorState,
|
|
138
139
|
isH5,
|
|
139
140
|
]);
|
|
File without changes
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React, { useEffect,
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import classNames from '../../utils/classnames';
|
|
3
3
|
import { getTempFileURL } from '../../utils/tcb';
|
|
4
4
|
import './index.css';
|
|
5
5
|
import { LOAD_ERR_IMG_BASE64 } from '../../utils/constant';
|
|
6
6
|
import destr from 'destr';
|
|
7
|
-
const imgRegex = new RegExp(/<img [^>]*src=\\*"([^"]*?)\\*"/g);
|
|
8
7
|
export default function RichTextView({ value = '', className, style, id, }) {
|
|
9
8
|
const parseValue = destr(value);
|
|
10
9
|
const cls = classNames({
|
|
@@ -13,26 +12,25 @@ export default function RichTextView({ value = '', className, style, id, }) {
|
|
|
13
12
|
[className]: className,
|
|
14
13
|
});
|
|
15
14
|
const [displayValue, setDisplayValue] = useState('');
|
|
15
|
+
const regex = new RegExp(/<img [^>]*src=\\*"([^"]*?)\\*"/g);
|
|
16
16
|
const iferror = `javascript:this.width='80';this.src='${LOAD_ERR_IMG_BASE64}';this.onerror=null`;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (newURL) {
|
|
28
|
-
const htmlWithTempUrl = valueWithErrorHandle.replace(new RegExp(url, 'g'), newURL);
|
|
29
|
-
setDisplayValue(htmlWithTempUrl);
|
|
30
|
-
}
|
|
17
|
+
let tempValue = parseValue
|
|
18
|
+
.toString()
|
|
19
|
+
.replace(/<img /g, `<img onerror=${iferror} style="max-width:100%" `);
|
|
20
|
+
const getSrc = async (img) => {
|
|
21
|
+
const url = img.replace(regex, '$1');
|
|
22
|
+
if (img.includes('cloud://')) {
|
|
23
|
+
const newURL = await getTempFileURL(url);
|
|
24
|
+
if (newURL) {
|
|
25
|
+
tempValue = tempValue.replace(new RegExp(url, 'g'), newURL);
|
|
26
|
+
setDisplayValue(tempValue);
|
|
31
27
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
setDisplayValue(tempValue);
|
|
34
32
|
try {
|
|
35
|
-
const imgs = parseValue.match(
|
|
33
|
+
const imgs = parseValue.match(regex);
|
|
36
34
|
if (imgs && imgs.length > 0) {
|
|
37
35
|
imgs.forEach((img) => {
|
|
38
36
|
getSrc(img);
|
|
@@ -40,7 +38,7 @@ export default function RichTextView({ value = '', className, style, id, }) {
|
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
catch (e) { }
|
|
43
|
-
}, [
|
|
41
|
+
}, [value]);
|
|
44
42
|
return (displayValue && (React.createElement("div", { className: cls, style: style, id: id },
|
|
45
43
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: displayValue } }))));
|
|
46
44
|
}
|
|
@@ -8,7 +8,6 @@ export interface PropsType extends CommonPropsType {
|
|
|
8
8
|
scrollIntoView?: string;
|
|
9
9
|
upperThreshold?: number;
|
|
10
10
|
lowerThreshold?: number;
|
|
11
|
-
domRef?: any;
|
|
12
11
|
}
|
|
13
12
|
export default function ScrollView({ id, scrollX, scrollY, style, scrollTop, scrollLeft, scrollIntoView, className, children, upperThreshold, lowerThreshold, events, }: {
|
|
14
13
|
id: any;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import classNames from '../../utils/classnames';
|
|
3
|
-
export default function ScrollView({ id, scrollX = false, scrollY = true, style, scrollTop, scrollLeft, scrollIntoView, className, children, upperThreshold = 50, lowerThreshold = 50,
|
|
4
|
-
// domRef,
|
|
5
|
-
events, }) {
|
|
3
|
+
export default function ScrollView({ id, scrollX = false, scrollY = true, style, scrollTop, scrollLeft, scrollIntoView, className, children, upperThreshold = 50, lowerThreshold = 50, events, }) {
|
|
6
4
|
const [toUpper, setToUpper] = React.useState(false);
|
|
7
5
|
const [toLower, setToLower] = React.useState(false);
|
|
8
6
|
const [scrollLeftPos, setScrollLeftPos] = React.useState(0);
|
|
@@ -66,10 +64,10 @@ events, }) {
|
|
|
66
64
|
}, [scrollLeft]);
|
|
67
65
|
React.useEffect(() => {
|
|
68
66
|
toUpper && events.scrolltoupper();
|
|
69
|
-
}, [
|
|
67
|
+
}, [toUpper]);
|
|
70
68
|
React.useEffect(() => {
|
|
71
69
|
toLower && events.scrolltolower();
|
|
72
|
-
}, [
|
|
70
|
+
}, [toLower]);
|
|
73
71
|
React.useEffect(() => {
|
|
74
72
|
if (scrollIntoView) {
|
|
75
73
|
const children = scrollViewRef.current.children;
|
|
@@ -78,7 +76,7 @@ events, }) {
|
|
|
78
76
|
scrollX && (scrollViewRef.current.scrollLeft = item.offsetLeft);
|
|
79
77
|
// console.log('children', children, item)
|
|
80
78
|
}
|
|
81
|
-
}, [scrollIntoView
|
|
79
|
+
}, [scrollIntoView]);
|
|
82
80
|
const webStyles = {
|
|
83
81
|
position: 'relative',
|
|
84
82
|
width: '100%',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|