@cloudbase/weda-ui 3.4.2 → 3.4.4
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/configs/components/auth.json +2 -1
- package/dist/configs/components/button.js +240 -0
- package/dist/configs/components/calendar.json +4 -2
- package/dist/configs/components/carousel.json +2 -1
- package/dist/configs/components/chart/bar.json +7 -2
- package/dist/configs/components/chart/line.js +872 -0
- package/dist/configs/components/chart/pie.json +7 -2
- package/dist/configs/components/chart/statisticsCard.json +3 -2
- package/dist/configs/components/container.js +64 -0
- package/dist/configs/components/dataView.js +507 -0
- package/dist/configs/components/drawer.json +2 -1
- package/dist/configs/components/flow/flow.json +26 -0
- package/dist/configs/components/flow/flowbasic.json +122 -0
- package/dist/configs/components/flow/flowchart.json +22 -0
- package/dist/configs/components/flow/flowcontrol.json +66 -0
- package/dist/configs/components/flow/flowlayout.json +31 -0
- package/dist/configs/components/flow/flowprocess.json +122 -0
- package/dist/configs/components/form/checkbox.json +2 -1
- package/dist/configs/components/form/departTreeSelect.json +2 -1
- package/dist/configs/components/form/form.json +2 -1
- package/dist/configs/components/form/input.json +2 -1
- package/dist/configs/components/form/location.json +4 -2
- package/dist/configs/components/form/radio.json +2 -1
- package/dist/configs/components/form/richText.json +2 -1
- package/dist/configs/components/form/select.json +6 -1
- package/dist/configs/components/form/switch.json +2 -1
- package/dist/configs/components/form/textarea.json +2 -1
- package/dist/configs/components/form/tips.json +2 -1
- package/dist/configs/components/form/uploader.json +2 -1
- package/dist/configs/components/form/uploaderFile.json +2 -1
- package/dist/configs/components/form/userTreeSelect.json +57 -1
- package/dist/configs/components/formdetail.json +16 -4
- package/dist/configs/components/graphicCard.json +2 -1
- package/dist/configs/components/grid/col.js +125 -0
- package/dist/configs/components/grid/grid.js +131 -0
- package/dist/configs/components/grid/row.js +143 -0
- package/dist/configs/components/image.js +205 -0
- package/dist/configs/components/link.js +78 -0
- package/dist/configs/components/listView.js +988 -0
- package/dist/configs/components/lottery.json +6 -2
- package/dist/configs/components/modal.js +72 -0
- package/dist/configs/components/navLayout.json +3 -2
- package/dist/configs/components/navigationBar.json +12 -3
- package/dist/configs/components/pagelayout.json +31 -0
- package/dist/configs/components/repeater-item.json +17 -0
- package/dist/configs/components/repeater.js +125 -0
- package/dist/configs/components/richtextview.json +4 -3
- package/dist/configs/components/scrollVeiw.json +5 -3
- package/dist/configs/components/slot.json +2 -1
- package/dist/configs/components/swiper.json +3 -2
- package/dist/configs/components/table.json +777 -0
- package/dist/configs/components/tabs.js +120 -0
- package/dist/configs/components/text.js +120 -0
- package/dist/configs/components/wd-bubble.js +204 -0
- package/dist/configs/components/wd-button.js +417 -0
- package/dist/configs/components/wd-divider.js +89 -0
- package/dist/configs/components/wd-icon.js +126 -0
- package/dist/configs/components/wd-image.js +164 -0
- package/dist/configs/components/wd-link.js +234 -0
- package/dist/configs/components/wd-table.js +59 -0
- package/dist/configs/components/wd-text.js +142 -0
- package/dist/configs/components/wedaVideo.json +7 -2
- package/dist/configs/components/wxOpenApi/phone.js +126 -0
- package/dist/configs/components/wxOpenApi/phoneCode.js +117 -0
- package/dist/configs/components/wxOpenApi/share.js +164 -0
- package/dist/configs/components/wxOpenApi/userInfo.js +168 -0
- package/dist/configs/index.js +63 -14
- package/dist/configs/type-utils/index.js +92 -0
- package/dist/docs/common/componentList.js +144 -0
- package/dist/docs/common/components/classes-view.js +34 -0
- package/dist/docs/common/components/event-view.js +46 -0
- package/dist/docs/common/components/json-schema-view.js +18 -0
- package/dist/docs/common/components/methods-view.js +32 -0
- package/dist/docs/common/components/properties-view.js +45 -0
- package/dist/docs/common/format.js +60 -35
- package/dist/docs/common/helper.js +1 -0
- package/dist/docs/common/tableView.js +61 -50
- package/dist/enum/index.js +521 -0
- package/dist/index.js +1 -1
- package/dist/style/index.scss +1 -0
- package/dist/web/actions/showMessage/index.css +0 -3
- package/dist/web/actions/showMessage/index.js +1 -1
- package/dist/web/actions/showModal/index.css +0 -3
- package/dist/web/components/button/index.css +2 -5
- package/dist/web/components/button/index.js +4 -4
- package/dist/web/components/calendar/index.css +29 -32
- package/dist/web/components/calendar/index.js +37 -35
- package/dist/web/components/carousel/index.css +11 -14
- package/dist/web/components/carousel/index.js +13 -6
- package/dist/web/components/chart/common/core/eChartBar.js +10 -2
- package/dist/web/components/chart/common/core/eChartLine.js +16 -8
- package/dist/web/components/chart/common/core/eChartPie.js +2 -1
- package/dist/web/components/chart/statisticsCard/index.css +12 -15
- package/dist/web/components/chart/statisticsCard/index.js +6 -1
- package/dist/web/components/dataView/index.js +3 -3
- package/dist/web/components/emptyContent/index.css +26 -0
- package/dist/web/components/emptyContent/index.js +46 -0
- package/dist/web/components/flow/components/FlowModuleText/Content.js +6 -0
- package/dist/web/components/flow/components/FlowModuleText/Title.js +16 -0
- package/dist/web/components/flow/components/FlowModuleText/index.css +4 -0
- package/dist/web/components/flow/components/FlowModuleText/index.js +7 -0
- package/dist/web/components/flow/components/FlowModuleText/utils.js +34 -0
- package/dist/web/components/flow/components/FlowStatusText/index.js +37 -0
- package/dist/web/components/flow/components/FlowUserSelect/index.css +116 -0
- package/dist/web/components/flow/components/FlowUserSelect/index.js +115 -0
- package/dist/web/components/flow/components/HighLightComment/index.js +31 -0
- package/dist/web/components/flow/components/HighlightTextarea/index.css +42 -0
- package/dist/web/components/flow/components/HighlightTextarea/index.js +131 -0
- package/dist/web/components/flow/components/UserSelectModel/UserSelect.js +74 -0
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.css +8 -0
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +86 -0
- package/dist/web/components/flow/components/UserSelectModel/index.js +18 -0
- package/dist/web/components/flow/components/WedaUserTransfer/index.css +3 -0
- package/dist/web/components/flow/components/WedaUserTransfer/index.js +162 -0
- package/dist/web/components/flow/components/index.js +7 -0
- package/dist/web/components/flow/constants/index.js +65 -0
- package/dist/web/components/flow/frame/getCommonFlowData.js +80 -0
- package/dist/web/components/flow/frame/hooks/index.js +2 -0
- package/dist/web/components/flow/frame/hooks/useCommonFlowRequest.js +148 -0
- package/dist/web/components/flow/frame/hooks/useElementMediaQuery.js +15 -0
- package/dist/web/components/flow/frame/index.js +75 -0
- package/dist/web/components/flow/frame/types.js +271 -0
- package/dist/web/components/flow/frame/utils.js +90 -0
- package/dist/web/components/flow/modules/basic/Basic.css +16 -0
- package/dist/web/components/flow/modules/basic/Basic.js +48 -0
- package/dist/web/components/flow/modules/basic/BasicMobile.css +29 -0
- package/dist/web/components/flow/modules/basic/BasicMobile.js +41 -0
- package/dist/web/components/flow/modules/basic/index.js +13 -0
- package/dist/web/components/flow/modules/basic/utils.js +20 -0
- package/dist/web/components/flow/modules/chart/Chart.js +302 -0
- package/dist/web/components/flow/modules/chart/constants.js +28 -0
- package/dist/web/components/flow/modules/chart/index.css +87 -0
- package/dist/web/components/flow/modules/chart/index.js +5 -0
- package/dist/web/components/flow/modules/chart/isString.js +5 -0
- package/dist/web/components/flow/modules/combination/index.js +21 -0
- package/dist/web/components/flow/modules/control/ApprovalDrawer.css +144 -0
- package/dist/web/components/flow/modules/control/ApprovalDrawer.js +178 -0
- package/dist/web/components/flow/modules/control/ApprovalPopup.css +115 -0
- package/dist/web/components/flow/modules/control/ApprovalPopup.js +241 -0
- package/dist/web/components/flow/modules/control/Control.css +29 -0
- package/dist/web/components/flow/modules/control/Control.js +93 -0
- package/dist/web/components/flow/modules/control/ControlMobile.css +69 -0
- package/dist/web/components/flow/modules/control/ControlMobile.js +133 -0
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.css +3 -0
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.js +31 -0
- package/dist/web/components/flow/modules/control/constants/index.js +35 -0
- package/dist/web/components/flow/modules/control/index.js +15 -0
- package/dist/web/components/flow/modules/control/provider/index.js +17 -0
- package/dist/web/components/flow/modules/control/provider/useControlModel.js +256 -0
- package/dist/web/components/flow/modules/control/provider/useMobileModel.js +86 -0
- package/dist/web/components/flow/modules/control/provider/useRevokeAndBackHook.js +82 -0
- package/dist/web/components/flow/modules/control/utils/ControlModelUtils.js +57 -0
- package/dist/web/components/flow/modules/control/utils/index.js +2 -0
- package/dist/web/components/flow/modules/layout/index.css +6 -0
- package/dist/web/components/flow/modules/layout/index.js +22 -0
- package/dist/web/components/flow/modules/process/Process.js +73 -0
- package/dist/web/components/flow/modules/process/ProcessMobile.js +81 -0
- package/dist/web/components/flow/modules/process/index.css +194 -0
- package/dist/web/components/flow/modules/process/index.js +14 -0
- package/dist/web/components/flow/modules/process/utils/index.js +32 -0
- package/dist/web/components/flow/services/flow.js +111 -0
- package/dist/web/components/flow/services/ideData/chart.js +88 -0
- package/dist/web/components/flow/services/ideData/index.js +5 -0
- package/dist/web/components/flow/services/ideData/instance.js +23 -0
- package/dist/web/components/flow/services/ideData/pageDetail.js +41 -0
- package/dist/web/components/flow/services/ideData/process.js +27 -0
- package/dist/web/components/flow/services/index.js +2 -0
- package/dist/web/components/flow/services/user.js +23 -0
- package/dist/web/components/flow/services/utils.js +28 -0
- package/dist/web/components/form/enumSelect/NormalSelect.js +1 -1
- package/dist/web/components/form/form/index.css +2 -5
- package/dist/web/components/form/form/index.js +52 -7
- package/dist/web/components/form/formcell/index.css +29 -17
- package/dist/web/components/form/input/index.css +10 -8
- package/dist/web/components/form/input/index.js +12 -1
- package/dist/web/components/form/location/common/mapChoose.css +88 -91
- package/dist/web/components/form/location/common/selectModal.css +10 -13
- package/dist/web/components/form/location/components/LocationH5/index.css +17 -20
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +2 -3
- package/dist/web/components/form/location/components/LocationH5/location.module.css +0 -3
- package/dist/web/components/form/location/components/LocationPC/index.css +10 -13
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +2 -3
- package/dist/web/components/form/location/index.css +0 -3
- package/dist/web/components/form/radio/index.css +0 -3
- package/dist/web/components/form/select/allTimePicker/calendar.css +15 -18
- package/dist/web/components/form/select/allTimePicker/dataUtils.js +10 -0
- package/dist/web/components/form/select/allTimePicker/index.css +53 -27
- package/dist/web/components/form/select/allTimePicker/index.js +36 -27
- package/dist/web/components/form/select/dropdown-select/h5.js +141 -0
- package/dist/web/components/form/select/dropdown-select/index.css +159 -0
- package/dist/web/components/form/select/dropdown-select/index.js +206 -0
- package/dist/web/components/form/select/dropdown-select/pc.js +113 -0
- package/dist/web/components/form/select/dropdown-select/ui.js +45 -40
- package/dist/web/components/form/select/h5.js +16 -6
- package/dist/web/components/form/select/index.css +17 -6
- package/dist/web/components/form/select/index.js +7 -9
- package/dist/web/components/form/select/request.js +106 -0
- package/dist/web/components/form/select/status/allEmpty.js +5 -0
- package/dist/web/components/form/select/status/empty.js +18 -0
- package/dist/web/components/form/select/status/index.css +63 -0
- package/dist/web/components/form/select/status/index.js +7 -0
- package/dist/web/components/form/select/status/loading.js +20 -0
- package/dist/web/components/form/select/status/propsType.js +1 -0
- package/dist/web/components/form/select/status/retry.js +20 -0
- package/dist/web/components/form/switch/index.js +1 -1
- package/dist/web/components/form/switch/switch.module.css +0 -3
- package/dist/web/components/form/textarea/index.css +1 -4
- package/dist/web/components/form/textarea/index.js +1 -1
- package/dist/web/components/form/tips/index.css +11 -2
- package/dist/web/components/form/uploader/index.css +14 -17
- package/dist/web/components/form/uploader/uploader.h5.js +4 -4
- package/dist/web/components/form/uploader/uploader.pc.js +1 -1
- package/dist/web/components/form/uploaderFile/index.css +61 -64
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +1 -1
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +1 -1
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +276 -0
- package/dist/web/components/form/userOrgSelect/common/types.js +1 -0
- package/dist/web/components/form/userOrgSelect/common/utils.js +103 -0
- package/dist/web/components/form/userOrgSelect/component/depart-breadcrumb.js +15 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.js +63 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +96 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.js +69 -0
- package/dist/web/components/form/userOrgSelect/component/error-tips.js +11 -0
- package/dist/web/components/form/userOrgSelect/component/index.css +323 -0
- package/dist/web/components/form/userOrgSelect/component/input-tags.js +21 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search-h5.js +25 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search.js +11 -0
- package/dist/web/components/form/userOrgSelect/component/modal-select-h5.js +201 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree-h5.js +19 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree.js +33 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list-h5.js +44 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list.js +15 -0
- package/dist/web/components/form/userOrgSelect/component/user-org-list.js +55 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +151 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-list-h5.js +107 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +50 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/error-tips.js +11 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/model-user-list.js +99 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/org-tree.js +10 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +75 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +65 -0
- package/dist/web/components/form/userOrgSelect/component/userOrgSelect.css +1160 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +54 -87
- package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +88 -0
- package/dist/web/components/form/userOrgSelect/hooks/use-views-data.js +48 -0
- package/dist/web/components/formdetail/index.css +34 -31
- package/dist/web/components/formdetail/index.js +12 -3
- package/dist/web/components/graphicCard/index.css +15 -18
- package/dist/web/components/grid/_utils.css +67 -0
- package/dist/web/components/grid/col.js +33 -0
- package/dist/web/components/grid/grid.css +1185 -0
- package/dist/web/components/grid/grid.js +19 -0
- package/dist/web/components/grid/row.js +14 -0
- package/dist/web/components/image/image.js +9 -1
- package/dist/web/components/image/index.css +2 -5
- package/dist/web/components/image/index.js +1 -1
- package/dist/web/components/index.js +33 -2
- package/dist/web/components/link/index.css +0 -3
- package/dist/web/components/listView/index.css +26 -20
- package/dist/web/components/listView/index.js +234 -81
- package/dist/web/components/lottery/index.css +72 -75
- package/dist/web/components/modal/h5.css +19 -21
- package/dist/web/components/modal/modal.h5.js +12 -11
- package/dist/web/components/modal/modal.pc.js +1 -1
- package/dist/web/components/navLayout/index.css +14 -139
- package/dist/web/components/navigationBar/common.js +5 -4
- package/dist/web/components/navigationBar/h5Menu.js +12 -10
- package/dist/web/components/navigationBar/horizontalMenu.js +42 -35
- package/dist/web/components/navigationBar/index.css +131 -86
- package/dist/web/components/navigationBar/index.js +6 -4
- package/dist/web/components/navigationBar/verticalMenu.js +13 -9
- package/dist/web/components/pageLayout/PageContent/index.css +25 -0
- package/dist/web/components/pageLayout/PageContent/index.js +81 -0
- package/dist/web/components/pageLayout/index.css +4 -0
- package/dist/web/components/pageLayout/index.js +22 -0
- package/dist/web/components/phoneCode/index.js +1 -0
- package/dist/web/components/repeater/index.js +17 -0
- package/dist/web/components/repeater-item/index.js +9 -0
- package/dist/web/components/richText/index.css +8 -7
- package/dist/web/components/richText/index.js +6 -4
- package/dist/web/components/richText/richtext.module.css +2 -5
- package/dist/web/components/richTextView/index.css +7 -10
- package/dist/web/components/swiper/index.css +10 -13
- package/dist/web/components/swiper/index.js +19 -5
- package/dist/web/components/table/BaseTable.js +1240 -0
- package/dist/web/components/table/ExportFileModalByApi/index.css +9 -0
- package/dist/web/components/table/ExportFileModalByApi/index.js +150 -0
- package/dist/web/components/table/FieldRender.js +629 -0
- package/dist/web/components/table/FilterFields.js +518 -0
- package/dist/web/components/table/Form/Enum.js +56 -0
- package/dist/web/components/table/Form/Location.css +11 -0
- package/dist/web/components/table/Form/Location.js +126 -0
- package/dist/web/components/table/ImportFileModal/csvTemplate.json +606 -0
- package/dist/web/components/table/ImportFileModal/index.js +310 -0
- package/dist/web/components/table/ImportFileModal/submitFormatter.js +32 -0
- package/dist/web/components/table/ImportFileModal/validate.js +127 -0
- package/dist/web/components/table/ImportFileModalByApi/index.css +130 -0
- package/dist/web/components/table/ImportFileModalByApi/index.js +321 -0
- package/dist/web/components/table/ImportFileModalByApi/uploadCSVFile.js +115 -0
- package/dist/web/components/table/InOrOutRecordModeal.js +139 -0
- package/dist/web/components/table/QuoteModal.js +16 -0
- package/dist/web/components/table/SelectableBlock/index.css +0 -0
- package/dist/web/components/table/SelectableBlock/index.js +81 -0
- package/dist/web/components/table/UserDepartment/ViewCell.js +11 -0
- package/dist/web/components/table/UserDepartment/utils.js +80 -0
- package/dist/web/components/table/UserDepartment/viewCell.css +11 -0
- package/dist/web/components/table/baseTable.css +579 -0
- package/dist/web/components/table/hooks/useImportingStatus.js +69 -0
- package/dist/web/components/table/hooks/useInOutFieldsRecords.js +23 -0
- package/dist/web/components/table/index.css +336 -0
- package/dist/web/components/table/index.js +111 -0
- package/dist/web/components/tabs/index.css +19 -18
- package/dist/web/components/tabs/tabs.h5.js +8 -17
- package/dist/web/components/tabs/tabs.pc.js +1 -1
- package/dist/web/components/text/index.css +7 -9
- package/dist/web/components/text/index.js +2 -2
- package/dist/web/components/uploaderFileView/index.css +0 -3
- package/dist/web/components/uploaderFileView/index.js +6 -5
- package/dist/web/components/uploaderView/index.css +5 -8
- package/dist/web/components/wd-bubble/index.js +3 -0
- package/dist/web/components/wd-bubble/wd-bubble.js +17 -0
- package/dist/web/components/wd-button/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-button/index.js +3 -0
- package/dist/web/components/wd-button/wd-button.js +89 -0
- package/dist/web/components/wd-config-provider/index.js +1 -0
- package/dist/web/components/wd-config-provider/wd-config-context.js +5 -0
- package/dist/web/components/wd-config-provider/wd-config-provider.js +12 -0
- package/dist/web/components/wd-divider/index.js +3 -0
- package/dist/web/components/wd-divider/wd-divider.js +29 -0
- package/dist/web/components/wd-icon/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-icon/index.js +3 -0
- package/dist/web/components/wd-icon/wd-icon.js +63 -0
- package/dist/web/components/wd-image/image.js +171 -0
- package/dist/web/components/wd-image/index.js +82 -0
- package/dist/web/components/wd-link/index.js +3 -0
- package/dist/web/components/wd-link/wd-link.js +105 -0
- package/dist/web/components/wd-table/index.js +3 -0
- package/dist/web/components/wd-table/wd-table.js +24 -0
- package/dist/web/components/wd-text/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-text/index.js +3 -0
- package/dist/web/components/wd-text/wd-text.js +91 -0
- package/dist/web/components/wedaVideo/index.css +2 -5
- package/dist/web/components/wedaVideo/index.js +9 -7
- package/dist/web/index.js +1 -0
- package/dist/web/utils/config-context/index.js +1 -0
- package/dist/web/utils/config-context/use-config.js +9 -0
- package/dist/web/utils/constant.js +95 -1
- package/dist/web/utils/datasource.js +369 -0
- package/dist/web/utils/date.js +137 -0
- package/dist/web/utils/file.js +190 -0
- package/dist/web/utils/getPageQuery.js +16 -0
- package/dist/web/utils/hooks/CreatePortal.js +6 -0
- package/dist/web/utils/hooks/EnumHoc.js +81 -0
- package/dist/web/utils/hooks/context.js +28 -0
- package/dist/web/utils/hooks/globalConnect.js +26 -0
- package/dist/web/utils/{use-cloud-id-temp-url.js → hooks/use-cloud-id-temp-url.js} +2 -2
- package/dist/web/utils/{useSetState.js → hooks/useSetState.js} +0 -0
- package/dist/web/utils/{useSyncValue.js → hooks/useSyncValue.js} +0 -0
- package/dist/web/utils/platform.js +137 -28
- package/dist/web/utils/pollingInterface.js +61 -0
- package/dist/web/utils/tcb.js +46 -8
- package/dist/web/utils/tool.js +109 -0
- package/dist/web/utils/widget-api/index.js +18 -0
- package/dist/web/weda-ui.css +128 -4
- package/package.json +59 -29
- package/dist/configs/components/button.json +0 -239
- package/dist/configs/components/chart/line.json +0 -881
- package/dist/configs/components/container.json +0 -64
- package/dist/configs/components/dataView.json +0 -290
- package/dist/configs/components/image.json +0 -190
- package/dist/configs/components/link.json +0 -82
- package/dist/configs/components/listView.json +0 -483
- package/dist/configs/components/modal.json +0 -73
- package/dist/configs/components/tabs.json +0 -122
- package/dist/configs/components/text.json +0 -112
- package/dist/configs/components/wxOpenApi/phone.json +0 -127
- package/dist/configs/components/wxOpenApi/phoneCode.json +0 -109
- package/dist/configs/components/wxOpenApi/share.json +0 -161
- package/dist/configs/components/wxOpenApi/userInfo.json +0 -168
- package/dist/configs/index.d.ts +0 -105
- package/dist/docs/common/format.d.ts +0 -13
- package/dist/docs/common/tableView.d.ts +0 -30
- package/dist/index.d.ts +0 -2
- package/dist/setupTests.d.ts +0 -2
- package/dist/web/actions/index.d.ts +0 -3
- package/dist/web/actions/showMessage/index.d.ts +0 -17
- package/dist/web/actions/showModal/index.d.ts +0 -4
- package/dist/web/actions/showToast/index.d.ts +0 -1
- package/dist/web/components/button/index.d.ts +0 -33
- package/dist/web/components/calendar/index.d.ts +0 -19
- package/dist/web/components/calendar/util.d.ts +0 -13
- package/dist/web/components/carousel/index.d.ts +0 -41
- package/dist/web/components/chart/bar/index.d.ts +0 -3
- package/dist/web/components/chart/bar/index.old.d.ts +0 -40
- package/dist/web/components/chart/common/Chart.d.ts +0 -9
- package/dist/web/components/chart/common/chart-custom-connector.d.ts +0 -6
- package/dist/web/components/chart/common/chart-error.d.ts +0 -2
- package/dist/web/components/chart/common/config/bar.d.ts +0 -48
- package/dist/web/components/chart/common/config/global.d.ts +0 -13
- package/dist/web/components/chart/common/config/line.d.ts +0 -46
- package/dist/web/components/chart/common/config/pie.d.ts +0 -29
- package/dist/web/components/chart/common/core/eChartBar.d.ts +0 -66
- package/dist/web/components/chart/common/core/eChartBase.d.ts +0 -127
- package/dist/web/components/chart/common/core/eChartLine.d.ts +0 -60
- package/dist/web/components/chart/common/core/eChartPie.d.ts +0 -48
- package/dist/web/components/chart/common/core/type.d.ts +0 -35
- package/dist/web/components/chart/common/data-transform.d.ts +0 -8
- package/dist/web/components/chart/common/echarts.d.ts +0 -5
- package/dist/web/components/chart/common/useChart.d.ts +0 -8
- package/dist/web/components/chart/line/index.d.ts +0 -3
- package/dist/web/components/chart/line/index.old.d.ts +0 -38
- package/dist/web/components/chart/pie/index.d.ts +0 -3
- package/dist/web/components/chart/pie/index.old.d.ts +0 -27
- package/dist/web/components/chart/statisticsCard/index.d.ts +0 -85
- package/dist/web/components/chart/statisticsCard/interface.d.ts +0 -13
- package/dist/web/components/common/error-boundary.d.ts +0 -5
- package/dist/web/components/common/portal.d.ts +0 -7
- package/dist/web/components/common/use-loop-render-detect.d.ts +0 -11
- package/dist/web/components/container/index.d.ts +0 -6
- package/dist/web/components/dataView/index.d.ts +0 -6
- package/dist/web/components/dataView/interface.d.ts +0 -5
- package/dist/web/components/drawer/index.d.ts +0 -13
- package/dist/web/components/form/checkbox/index.d.ts +0 -13
- package/dist/web/components/form/enumSelect/MultipleSelect.d.ts +0 -78
- package/dist/web/components/form/enumSelect/NormalSelect.d.ts +0 -83
- package/dist/web/components/form/enumSelect/SelectContainer.d.ts +0 -16
- package/dist/web/components/form/enumSelect/index.d.ts +0 -82
- package/dist/web/components/form/enumSelect/props/defaultProps.d.ts +0 -34
- package/dist/web/components/form/enumSelect/props/propsTypes.d.ts +0 -39
- package/dist/web/components/form/form/index.d.ts +0 -32
- package/dist/web/components/form/formcell/index.d.ts +0 -8
- package/dist/web/components/form/input/index.d.ts +0 -14
- package/dist/web/components/form/location/common/mapChoose.d.ts +0 -15
- package/dist/web/components/form/location/common/mapView.d.ts +0 -19
- package/dist/web/components/form/location/common/propsConfig.d.ts +0 -59
- package/dist/web/components/form/location/common/selectModal.d.ts +0 -21
- package/dist/web/components/form/location/common/useLocationInfo.d.ts +0 -36
- package/dist/web/components/form/location/components/LocationH5/location.h5.d.ts +0 -8
- package/dist/web/components/form/location/components/LocationPC/Header.d.ts +0 -12
- package/dist/web/components/form/location/components/LocationPC/location.PC.d.ts +0 -8
- package/dist/web/components/form/location/constants.d.ts +0 -2
- package/dist/web/components/form/location/index.d.ts +0 -1
- package/dist/web/components/form/radio/index.d.ts +0 -11
- package/dist/web/components/form/renderDecorator.d.ts +0 -6
- package/dist/web/components/form/select/allTimePicker/calendar.d.ts +0 -13
- package/dist/web/components/form/select/allTimePicker/dataUtils.d.ts +0 -24
- package/dist/web/components/form/select/allTimePicker/index.d.ts +0 -14
- package/dist/web/components/form/select/dropdown-select/ui.d.ts +0 -15
- package/dist/web/components/form/select/h5.d.ts +0 -16
- package/dist/web/components/form/select/index.d.ts +0 -66
- package/dist/web/components/form/select/region/index.d.ts +0 -6
- package/dist/web/components/form/select/time.d.ts +0 -9
- package/dist/web/components/form/select/use-options.d.ts +0 -26
- package/dist/web/components/form/select/use-options.js +0 -103
- package/dist/web/components/form/select/year.d.ts +0 -7
- package/dist/web/components/form/switch/index.d.ts +0 -6
- package/dist/web/components/form/textarea/index.d.ts +0 -12
- package/dist/web/components/form/tips/index.d.ts +0 -8
- package/dist/web/components/form/uploader/index.d.ts +0 -3
- package/dist/web/components/form/uploader/uploader.h5.d.ts +0 -20
- package/dist/web/components/form/uploader/uploader.pc.d.ts +0 -30
- package/dist/web/components/form/uploaderFile/index.d.ts +0 -4
- package/dist/web/components/form/uploaderFile/uploadFile.h5.d.ts +0 -23
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +0 -35
- package/dist/web/components/form/userOrgSelect/comTool.d.ts +0 -8
- package/dist/web/components/form/userOrgSelect/comTool.js +0 -102
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +0 -19
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +0 -4
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -155
- package/dist/web/components/form/userOrgSelect/departTreeSelect/index.d.ts +0 -2
- package/dist/web/components/form/userOrgSelect/departTreeSelect/index.js +0 -17
- package/dist/web/components/form/userOrgSelect/getUserService.d.ts +0 -11
- package/dist/web/components/form/userOrgSelect/getUserService.js +0 -160
- package/dist/web/components/form/userOrgSelect/index.d.ts +0 -2
- package/dist/web/components/form/userOrgSelect/index.js +0 -17
- package/dist/web/components/form/userOrgSelect/userOrgSelect.css +0 -824
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +0 -27
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +0 -278
- package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +0 -9
- package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +0 -273
- package/dist/web/components/form/userOrgSelect/utils.d.ts +0 -37
- package/dist/web/components/form/userOrgSelect/utils.js +0 -95
- package/dist/web/components/formdetail/index.d.ts +0 -31
- package/dist/web/components/graphicCard/index.d.ts +0 -47
- package/dist/web/components/image/image.d.ts +0 -9
- package/dist/web/components/image/index.d.ts +0 -13
- package/dist/web/components/index.d.ts +0 -50
- package/dist/web/components/link/index.d.ts +0 -24
- package/dist/web/components/listView/index.d.ts +0 -7
- package/dist/web/components/listView/interface.d.ts +0 -127
- package/dist/web/components/lottery/index.d.ts +0 -22
- package/dist/web/components/lottery/lotteryUtil.d.ts +0 -23
- package/dist/web/components/modal/index.d.ts +0 -17
- package/dist/web/components/modal/modal.h5.d.ts +0 -4
- package/dist/web/components/modal/modal.pc.d.ts +0 -3
- package/dist/web/components/navLayout/index.d.ts +0 -65
- package/dist/web/components/navigationBar/common.d.ts +0 -15
- package/dist/web/components/navigationBar/h5Menu.d.ts +0 -14
- package/dist/web/components/navigationBar/horizontalMenu.d.ts +0 -12
- package/dist/web/components/navigationBar/index.d.ts +0 -13
- package/dist/web/components/navigationBar/verticalMenu.d.ts +0 -13
- package/dist/web/components/phone/index.d.ts +0 -18
- package/dist/web/components/phoneCode/index.d.ts +0 -18
- package/dist/web/components/picker/datePicker.d.ts +0 -10
- package/dist/web/components/picker/picker.d.ts +0 -6
- package/dist/web/components/picker/timePicker.d.ts +0 -7
- package/dist/web/components/richText/const.d.ts +0 -1
- package/dist/web/components/richText/index.d.ts +0 -50
- package/dist/web/components/richTextView/index.d.ts +0 -7
- package/dist/web/components/scrollView/index.d.ts +0 -25
- package/dist/web/components/share/index.d.ts +0 -34
- package/dist/web/components/slot/index.d.ts +0 -6
- package/dist/web/components/swiper/index.d.ts +0 -24
- package/dist/web/components/tabs/index.d.ts +0 -13
- package/dist/web/components/tabs/tabs.h5.d.ts +0 -4
- package/dist/web/components/tabs/tabs.pc.d.ts +0 -3
- package/dist/web/components/text/index.d.ts +0 -15
- package/dist/web/components/uploaderFileView/index.d.ts +0 -10
- package/dist/web/components/uploaderView/index.d.ts +0 -17
- package/dist/web/components/userInfo/index.d.ts +0 -26
- package/dist/web/components/wedaVideo/index.d.ts +0 -17
- package/dist/web/index.d.ts +0 -8
- package/dist/web/utils/classnames.d.ts +0 -2
- package/dist/web/utils/console.d.ts +0 -3
- package/dist/web/utils/constant.d.ts +0 -23
- package/dist/web/utils/debounce.d.ts +0 -2
- package/dist/web/utils/getLocalCounter.d.ts +0 -1
- package/dist/web/utils/isObjectEqual.d.ts +0 -2
- package/dist/web/utils/loading-fallback.d.ts +0 -2
- package/dist/web/utils/lodash.d.ts +0 -1
- package/dist/web/utils/platform.d.ts +0 -28
- package/dist/web/utils/tcb.d.ts +0 -33
- package/dist/web/utils/tmap.d.ts +0 -3
- package/dist/web/utils/use-cloud-id-temp-url.d.ts +0 -1
- package/dist/web/utils/useSetState.d.ts +0 -1
- package/dist/web/utils/useSyncValue.d.ts +0 -4
- package/dist/web/utils/weui.d.ts +0 -1
|
@@ -6,8 +6,13 @@ import { useDebouncedCallback, useEventListener, useResizeObserver, } from '@rea
|
|
|
6
6
|
import './index.css';
|
|
7
7
|
import Image from '../image';
|
|
8
8
|
import { emptyObject } from '../../utils/constant';
|
|
9
|
-
export default function Carousel({ className, style, autoplay, circular, vertical, indicatorDots, indicatorColor, indicatorActiveColor, duration, interval, current, events = emptyObject, id, images, }) {
|
|
10
|
-
const
|
|
9
|
+
export default function Carousel({ className, style, autoplay, circular, vertical, indicatorDots, indicatorColor, indicatorActiveColor, duration, interval, current, events = emptyObject, id, images: defalutImages, }) {
|
|
10
|
+
const isCorrectDatas = Array.isArray(defalutImages);
|
|
11
|
+
const images = isCorrectDatas ? defalutImages : [];
|
|
12
|
+
if (!isCorrectDatas) {
|
|
13
|
+
console.error('绑定数据类型错误,当前绑定值:', defalutImages);
|
|
14
|
+
}
|
|
15
|
+
const itemCount = images === null || images === void 0 ? void 0 : images.length;
|
|
11
16
|
current = Math.max(0, Math.min(itemCount - 1, current));
|
|
12
17
|
const [currentIndex, setCurrentIndex] = useState(current);
|
|
13
18
|
const [swipeStyle, setSwipeStyle] = useState(null);
|
|
@@ -39,7 +44,7 @@ export default function Carousel({ className, style, autoplay, circular, vertica
|
|
|
39
44
|
useEventListener(outerWrapRef, 'load', (e) => {
|
|
40
45
|
setHeight(e.target.clientHeight);
|
|
41
46
|
});
|
|
42
|
-
const itemsClone = images.map((x, i) => {
|
|
47
|
+
const itemsClone = images === null || images === void 0 ? void 0 : images.map((x, i) => {
|
|
43
48
|
return (React.createElement("div", { className: "g-swiper-item", "data-index": i, key: i },
|
|
44
49
|
React.createElement(Image, { mode: 'scaleToFill', lazyLoad: false, maskClosable: false, imgPreview: false, src: x.image, alt: '图片', fit: x.fit, style: {
|
|
45
50
|
height: x.height ? x.height : 'auto',
|
|
@@ -108,7 +113,9 @@ export default function Carousel({ className, style, autoplay, circular, vertica
|
|
|
108
113
|
return (React.createElement("div", { className: classNames('g-swiper weda-ui g-carousel', className, {
|
|
109
114
|
vertical: vertical,
|
|
110
115
|
}), style: { height: height ? height : 'auto', ...style }, ref: outerWrapRef, id: id, "data-testid": "carousel" },
|
|
111
|
-
itemCount > 0 ? (
|
|
116
|
+
itemCount > 0 ? (
|
|
117
|
+
// @ts-ignore todo
|
|
118
|
+
React.createElement(Swipe, { className: "g-swiper-list", style: swipeStyle, tolerance: 20, onSwipeLeft: () => {
|
|
112
119
|
vertical || setIndex(currentIndex + 1);
|
|
113
120
|
}, onSwipeRight: () => {
|
|
114
121
|
vertical || setIndex(currentIndex - 1);
|
|
@@ -117,7 +124,7 @@ export default function Carousel({ className, style, autoplay, circular, vertica
|
|
|
117
124
|
}, onSwipeUp: () => {
|
|
118
125
|
vertical && setIndex(currentIndex + 1);
|
|
119
126
|
} },
|
|
120
|
-
itemsClone[itemCount - 1],
|
|
127
|
+
itemsClone[itemCount - 1], images === null || images === void 0 ? void 0 :
|
|
121
128
|
images.map((x, i) => {
|
|
122
129
|
return (React.createElement(SwiperItem, { setHeight: setHeight, currentIndex: currentIndex, index: i, key: i, imagesValue: x },
|
|
123
130
|
React.createElement(Image, { mode: 'scaleToFill', lazyLoad: false, maskClosable: false, imgPreview: false, fit: x.fit, src: x.image, alt: '图片', style: {
|
|
@@ -126,7 +133,7 @@ export default function Carousel({ className, style, autoplay, circular, vertica
|
|
|
126
133
|
} })));
|
|
127
134
|
}),
|
|
128
135
|
itemsClone[0])) : null,
|
|
129
|
-
indicatorDots ? (React.createElement("div", { className: "g-swiper__pagination" }, images.map((x, i) => {
|
|
136
|
+
indicatorDots ? (React.createElement("div", { className: "g-swiper__pagination" }, images === null || images === void 0 ? void 0 : images.map((x, i) => {
|
|
130
137
|
return (React.createElement("a", { key: i, href: "#", className: "g-swiper__pagination-bulletm", "data-testid": "g-swiper__pagination-bulletm", style: {
|
|
131
138
|
backgroundColor: currentIndex === i ? indicatorActiveColor : indicatorColor,
|
|
132
139
|
}, onClick: (e) => {
|
|
@@ -80,8 +80,16 @@ class EchartBar extends EchartBase {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
// 组装图表需要的数据
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const groups = [];
|
|
84
|
+
sortedXAxisData.forEach((eachAxis) => {
|
|
85
|
+
eachAxis.YLabels.forEach((yLabel) => {
|
|
86
|
+
if (yLabel.Group_Name && groups.indexOf(yLabel.Group_Name) < 0) {
|
|
87
|
+
// 去重且保留顺序
|
|
88
|
+
groups.push(yLabel.Group_Name);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
this.config.series = groups.map((groupKey) => {
|
|
85
93
|
// groupKey分组字段中文名
|
|
86
94
|
const serie = {
|
|
87
95
|
name: groupKey,
|
|
@@ -43,17 +43,17 @@ class EchartLine extends EchartBase {
|
|
|
43
43
|
data: [],
|
|
44
44
|
};
|
|
45
45
|
sortedXAxisData.forEach((itemSource, index) => {
|
|
46
|
-
var _a, _b;
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
47
47
|
this.config.series[j].name =
|
|
48
|
-
(_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
|
|
49
|
-
if ((itemSource.YLabels[j].Value === undefined ||
|
|
50
|
-
itemSource.YLabels[j].Value === null) &&
|
|
48
|
+
(_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
|
|
49
|
+
if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined ||
|
|
50
|
+
((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
|
|
51
51
|
!xIsCountEmpty) {
|
|
52
52
|
arrXisCountEmptyIndex.push(index);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
const value = itemSource.YLabels[j].Value
|
|
56
|
-
? itemSource.YLabels[j].Value
|
|
55
|
+
const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value)
|
|
56
|
+
? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value
|
|
57
57
|
: 0;
|
|
58
58
|
this.config.series[j].data.push(value);
|
|
59
59
|
}
|
|
@@ -80,8 +80,16 @@ class EchartLine extends EchartBase {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
// 组装图表需要的数据
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const groups = [];
|
|
84
|
+
sortedXAxisData.forEach((eachAxis) => {
|
|
85
|
+
eachAxis.YLabels.forEach((yLabel) => {
|
|
86
|
+
if (yLabel.Group_Name && groups.indexOf(yLabel.Group_Name) < 0) {
|
|
87
|
+
// 去重且保留顺序
|
|
88
|
+
groups.push(yLabel.Group_Name);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
this.config.series = groups.map((groupKey) => {
|
|
85
93
|
// groupKey分组字段中文名
|
|
86
94
|
const serie = {
|
|
87
95
|
name: groupKey,
|
|
@@ -28,10 +28,11 @@ class EchartPie extends EchartBase {
|
|
|
28
28
|
const arrData = [];
|
|
29
29
|
let i = 0;
|
|
30
30
|
arrSourData.forEach((itemSource) => {
|
|
31
|
+
var _a;
|
|
31
32
|
const numc = setColor ? setColor.length : 0;
|
|
32
33
|
const strColor = numc > 0 ? { color: setColor[i % numc] } : {};
|
|
33
34
|
arrData.push({
|
|
34
|
-
value: itemSource.YLabels[0].Value,
|
|
35
|
+
value: (_a = itemSource.YLabels[0]) === null || _a === void 0 ? void 0 : _a.Value,
|
|
35
36
|
name: itemSource.XLabel.Value,
|
|
36
37
|
tooltip: {},
|
|
37
38
|
itemStyle: strColor,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* pc style */
|
|
2
2
|
.weda-statistics-card {
|
|
3
3
|
background: #ffffff;
|
|
4
|
-
border:
|
|
4
|
+
border: 1px solid #f1f2f5;
|
|
5
5
|
box-sizing: border-box;
|
|
6
|
-
box-shadow:
|
|
7
|
-
border-radius:
|
|
6
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
7
|
+
border-radius: 6px;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: 14px;
|
|
10
10
|
}
|
|
11
11
|
.weda-statistics-card.weda-statistics-card-pc {
|
|
12
|
-
width:
|
|
13
|
-
min-height:
|
|
12
|
+
width: 276px;
|
|
13
|
+
min-height: 128px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.weda-statistics-card .weda-statistics-card__wrapper {
|
|
17
17
|
width: 100%;
|
|
18
|
-
padding:
|
|
18
|
+
padding: 28px 24px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.weda-statistics-card .weda-statistics-card__title {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.weda-statistics-card .weda-statistics-card__detail {
|
|
28
|
-
margin-top:
|
|
28
|
+
margin-top: 8px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.weda-statistics-card .weda-statistics-card__count {
|
|
@@ -39,28 +39,25 @@
|
|
|
39
39
|
font-size: 1em;
|
|
40
40
|
line-height: 1.57142em;
|
|
41
41
|
color: rgba(0, 0, 0, 0.4);
|
|
42
|
-
margin-left:
|
|
42
|
+
margin-left: 4px;
|
|
43
43
|
vertical-align: middle;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* h5 style */
|
|
47
47
|
.weda-statistics-card.weda-statistics-card-mobile {
|
|
48
48
|
max-width: 100%;
|
|
49
|
-
min-height:
|
|
49
|
+
min-height: 140px;
|
|
50
50
|
}
|
|
51
51
|
.weda-statistics-card-mobile .weda-statistics-card__wrapper {
|
|
52
52
|
width: 100%;
|
|
53
|
-
padding:
|
|
53
|
+
padding: 40px 24px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.weda-statistics-card-mobile .weda-statistics-card__detail {
|
|
57
|
-
margin-top:
|
|
57
|
+
margin-top: 4px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.weda-statistics-card-mobile .weda-statistics-card__count {
|
|
61
61
|
font-size: 2em;
|
|
62
62
|
line-height: 2.42857em;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
/*# sourceURL=webpack://./src/web/components/chart/statisticsCard/index.css */
|
|
66
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9jaGFydC9zdGF0aXN0aWNzQ2FyZC9pbmRleC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsYUFBYTtBQUNiO0VBQ0UsbUJBQW1CO0VBQ25CLGdDQUFnQztFQUNoQyxzQkFBc0I7RUFDdEIsc0RBQXNEO0VBQ3RELHlCQUF5QjtFQUN6QixzQkFBc0I7RUFDdEIsZUFBZTtBQUNqQjtBQUNBO0VBQ0Usa0JBQWtCO0VBQ2xCLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNFLFdBQVc7RUFDWCx3QkFBd0I7QUFDMUI7O0FBRUE7RUFDRSxjQUFjO0VBQ2Qsc0JBQXNCO0VBQ3RCLHlCQUF5QjtBQUMzQjs7QUFFQTtFQUNFLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNFLG9CQUFvQjtFQUNwQixzQkFBc0I7RUFDdEIseUJBQXlCO0VBQ3pCLHFCQUFxQjtBQUN2Qjs7QUFFQTtFQUNFLGNBQWM7RUFDZCxzQkFBc0I7RUFDdEIseUJBQXlCO0VBQ3pCLHVCQUF1QjtFQUN2QixzQkFBc0I7QUFDeEI7O0FBRUEsYUFBYTtBQUNiO0VBQ0UsZUFBZTtFQUNmLGlCQUFpQjtBQUNuQjtBQUNBO0VBQ0UsV0FBVztFQUNYLDhCQUE4QjtBQUNoQzs7QUFFQTtFQUNFLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNFLGNBQWM7RUFDZCxzQkFBc0I7QUFDeEIiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBwYyBzdHlsZSAqL1xuLndlZGEtc3RhdGlzdGljcy1jYXJkIHtcbiAgYmFja2dyb3VuZDogI2ZmZmZmZjtcbiAgYm9yZGVyOiAwLjA3MTQzcmVtIHNvbGlkICNmMWYyZjU7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gIGJveC1zaGFkb3c6IDAgMC4wNzE0M3JlbSAwLjE0Mjg2cmVtIHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgYm9yZGVyLXJhZGl1czogMC40Mjg1N3JlbTtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgZm9udC1zaXplOiAxcmVtO1xufVxuLndlZGEtc3RhdGlzdGljcy1jYXJkLndlZGEtc3RhdGlzdGljcy1jYXJkLXBjIHtcbiAgd2lkdGg6IDE5LjcxNDI5cmVtO1xuICBtaW4taGVpZ2h0OiA5LjE0Mjg2cmVtO1xufVxuXG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQgLndlZGEtc3RhdGlzdGljcy1jYXJkX193cmFwcGVyIHtcbiAgd2lkdGg6IDEwMCU7XG4gIHBhZGRpbmc6IDJyZW0gMS43MTQyOXJlbTtcbn1cblxuLndlZGEtc3RhdGlzdGljcy1jYXJkIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fdGl0bGUge1xuICBmb250LXNpemU6IDFlbTtcbiAgbGluZS1oZWlnaHQ6IDEuNTcxNDJlbTtcbiAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC42KTtcbn1cblxuLndlZGEtc3RhdGlzdGljcy1jYXJkIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fZGV0YWlsIHtcbiAgbWFyZ2luLXRvcDogMC41NzE0M3JlbTtcbn1cblxuLndlZGEtc3RhdGlzdGljcy1jYXJkIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fY291bnQge1xuICBmb250LXNpemU6IDIuMjg1NzFlbTtcbiAgbGluZS1oZWlnaHQ6IDMuMTQyODVlbTtcbiAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC45KTtcbiAgd29yZC1icmVhazogYnJlYWstYWxsO1xufVxuXG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQgLndlZGEtc3RhdGlzdGljcy1jYXJkX191bml0IHtcbiAgZm9udC1zaXplOiAxZW07XG4gIGxpbmUtaGVpZ2h0OiAxLjU3MTQyZW07XG4gIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNCk7XG4gIG1hcmdpbi1sZWZ0OiAwLjI4NTcxcmVtO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufVxuXG4vKiBoNSBzdHlsZSAqL1xuLndlZGEtc3RhdGlzdGljcy1jYXJkLndlZGEtc3RhdGlzdGljcy1jYXJkLW1vYmlsZSB7XG4gIG1heC13aWR0aDogMTAwJTtcbiAgbWluLWhlaWdodDogMTByZW07XG59XG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQtbW9iaWxlIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fd3JhcHBlciB7XG4gIHdpZHRoOiAxMDAlO1xuICBwYWRkaW5nOiAyLjg1NzE0cmVtIDEuNzE0MjlyZW07XG59XG5cbi53ZWRhLXN0YXRpc3RpY3MtY2FyZC1tb2JpbGUgLndlZGEtc3RhdGlzdGljcy1jYXJkX19kZXRhaWwge1xuICBtYXJnaW4tdG9wOiAwLjI4NTcxcmVtO1xufVxuXG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQtbW9iaWxlIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fY291bnQge1xuICBmb250LXNpemU6IDJlbTtcbiAgbGluZS1oZWlnaHQ6IDIuNDI4NTdlbTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useState, useRef } from 'react';
|
|
2
2
|
import './index.css';
|
|
3
3
|
import classNames from '../../../utils/classnames';
|
|
4
4
|
import { ConfigProvider } from 'tea-component';
|
|
5
5
|
import { usePlatform } from '../../../utils/platform';
|
|
6
6
|
import { useDeepCompareEffect, useIsMounted } from '@react-hookz/web';
|
|
7
7
|
import { callDataSource, callWedaApi } from '../../../utils/tcb';
|
|
8
|
+
import { getUuid } from '../../../utils/tool';
|
|
8
9
|
const CLASS_PREFIX = 'weda-statistics-card';
|
|
9
10
|
// 默认显示值
|
|
10
11
|
const defaultVal = 1000;
|
|
@@ -109,6 +110,7 @@ const formatNumber = (val, digits = 0) => {
|
|
|
109
110
|
const defaultAppCloud = { callDataSource, callWedaApi };
|
|
110
111
|
export default function StatisticsCard({ dataSource, filterData, field, operationType, label, isCountEmpty, isShowUnit, unit, decimalDigits, suffix, className, style, events, id, role, appCloud = defaultAppCloud, }) {
|
|
111
112
|
const [val, setVal] = useState(defaultVal);
|
|
113
|
+
const delayRef = useRef({ version: null });
|
|
112
114
|
const isMounted = useIsMounted();
|
|
113
115
|
async function getSourceData(dataSource, filterData, field, operationType, isCountEmpty) {
|
|
114
116
|
const where = (filterData === null || filterData === void 0 ? void 0 : filterData.map)
|
|
@@ -162,7 +164,10 @@ export default function StatisticsCard({ dataSource, filterData, field, operatio
|
|
|
162
164
|
// 内部数据源需要字段和统计方式,外部数据源不需要
|
|
163
165
|
if (((dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) === 'database' && field && operationType) ||
|
|
164
166
|
(dataSource && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) !== 'database')) {
|
|
167
|
+
const fetchVersion = (delayRef.current.version = getUuid());
|
|
165
168
|
let data = await getSourceData(dataSource, filterData, field, operationType, isCountEmpty);
|
|
169
|
+
if (fetchVersion !== delayRef.current.version)
|
|
170
|
+
return;
|
|
166
171
|
// 自定义APIs 返回处理
|
|
167
172
|
if ((dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) !== 'database' && (data === null || data === void 0 ? void 0 : data.result)) {
|
|
168
173
|
data = data === null || data === void 0 ? void 0 : data.result;
|
|
@@ -3,6 +3,6 @@ import ListView from '../listView';
|
|
|
3
3
|
/**
|
|
4
4
|
* 数据容器-列表视图
|
|
5
5
|
*/
|
|
6
|
-
export default function DataView(props) {
|
|
7
|
-
return (React.createElement(ListView, { ...props, isRecords: false, orderBy: undefined, orderType: undefined, template: "none", pageSize: 1, pagination: "none", beforeDataChange: (values) => values === null || values === void 0 ? void 0 : values[0] }));
|
|
8
|
-
}
|
|
6
|
+
export default React.forwardRef(function DataView(props, ref) {
|
|
7
|
+
return (React.createElement(ListView, { ...props, ref: ref, isRecords: false, orderBy: undefined, orderType: undefined, template: "none", pageSize: 1, pagination: "none", beforeDataChange: (values) => (values === null || values === void 0 ? void 0 : values[0]) || {} }));
|
|
8
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.weda-list-view__empty {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 16px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.weda-list-view__empty .weda-list-view__empty__content {
|
|
7
|
+
color: rgba(0, 0, 0, 0.9);
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 200px;
|
|
10
|
+
background-color: #f2f2f2;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
border-radius: 6px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.weda-list-view__empty .weda-list-view__empty__content.table {
|
|
20
|
+
background-color: unset;
|
|
21
|
+
height: 140px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.weda-list-view__empty .weda-list-view__empty__content.table.isH5 {
|
|
25
|
+
height: 548px;
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
const BLOCK_NAME = 'weda-list-view';
|
|
4
|
+
export default function EmptyContent(props) {
|
|
5
|
+
const { emptyText, component, isH5 } = props;
|
|
6
|
+
return (React.createElement("div", { className: `${BLOCK_NAME}__empty` },
|
|
7
|
+
React.createElement("div", { className: `${BLOCK_NAME}__empty__content test
|
|
8
|
+
${component === 'table' && 'table'}
|
|
9
|
+
${isH5 && 'isH5'}` },
|
|
10
|
+
React.createElement("svg", { width: "120", height: "80", viewBox: "0 0 120 80", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11
|
+
React.createElement("rect", { x: "14", y: "8", width: "80", height: "50", fill: "url(#paint0_linear_810_13830)" }),
|
|
12
|
+
React.createElement("path", { d: "M28 22H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
13
|
+
React.createElement("path", { d: "M44 27H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
14
|
+
React.createElement("path", { d: "M44 32H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
15
|
+
React.createElement("g", { filter: "url(#filter0_b_810_13830)" },
|
|
16
|
+
React.createElement("path", { d: "M14 8H94V14H14V8Z", fill: "black", fillOpacity: "0.9" })),
|
|
17
|
+
React.createElement("path", { d: "M19 11H18", stroke: "white" }),
|
|
18
|
+
React.createElement("path", { d: "M23 11H22", stroke: "white" }),
|
|
19
|
+
React.createElement("path", { d: "M27 11H26", stroke: "white" }),
|
|
20
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M78 18H62V34H78V18ZM97 18H81V34H97V18Z", fill: "url(#paint1_linear_810_13830)" }),
|
|
21
|
+
React.createElement("g", { filter: "url(#filter1_b_810_13830)" },
|
|
22
|
+
React.createElement("path", { d: "M50 72H105V32H50V72Z", fill: "url(#paint2_linear_810_13830)", fillOpacity: "0.9" })),
|
|
23
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M79.5244 57.9636C79.5244 58.483 79.2697 58.9325 78.9038 59.2929C78.5397 59.6516 78.0384 59.9517 77.4594 60.1929C76.2991 60.6764 74.7308 60.9636 73.0244 60.9636C71.318 60.9636 69.7498 60.6764 68.5895 60.1929C68.0104 59.9517 67.5092 59.6516 67.145 59.2929C66.7791 58.9325 66.5244 58.483 66.5244 57.9636V50.9636C66.5244 50.4443 66.7791 49.9948 67.145 49.6343C67.5092 49.2756 68.0104 48.9756 68.5895 48.7343C69.7498 48.2509 71.318 47.9636 73.0244 47.9636C74.7308 47.9636 76.2991 48.2509 77.4594 48.7343C78.0384 48.9756 78.5397 49.2756 78.9038 49.6343C79.2697 49.9948 79.5244 50.4443 79.5244 50.9636V57.9636ZM67.8468 50.3467C67.6055 50.5845 67.5244 50.7926 67.5244 50.9636C67.5244 51.1346 67.6055 51.3428 67.8468 51.5805C68.0899 51.82 68.4674 52.0587 68.9741 52.2699C69.9854 52.6912 71.4171 52.9636 73.0244 52.9636C74.6318 52.9636 76.0635 52.6912 77.0747 52.2699C77.5815 52.0587 77.9589 51.82 78.202 51.5805C78.4434 51.3428 78.5244 51.1346 78.5244 50.9636C78.5244 50.7926 78.4434 50.5845 78.202 50.3467C77.9589 50.1072 77.5815 49.8685 77.0747 49.6574C76.0635 49.236 74.6318 48.9636 73.0244 48.9636C71.4171 48.9636 69.9854 49.236 68.9741 49.6574C68.4674 49.8685 68.0899 50.1072 67.8468 50.3467ZM78.5244 52.6118V54.4636C78.5244 54.6346 78.4434 54.8428 78.202 55.0805C77.9589 55.32 77.5815 55.5587 77.0747 55.7699C76.0635 56.1912 74.6318 56.4636 73.0244 56.4636C71.4171 56.4636 69.9854 56.1912 68.9741 55.7699C68.4674 55.5587 68.0899 55.32 67.8468 55.0805C67.6055 54.8428 67.5244 54.6346 67.5244 54.4636V52.6118C67.8298 52.8333 68.1912 53.027 68.5895 53.1929C69.7498 53.6764 71.318 53.9636 73.0244 53.9636C74.7308 53.9636 76.2991 53.6764 77.4594 53.1929C77.8576 53.027 78.2191 52.8333 78.5244 52.6118ZM78.5244 57.9636V56.1118C78.2191 56.3333 77.8576 56.527 77.4594 56.6929C76.2991 57.1764 74.7308 57.4636 73.0244 57.4636C71.318 57.4636 69.7498 57.1764 68.5895 56.6929C68.1912 56.527 67.8298 56.3333 67.5244 56.1118V57.9636C67.5244 58.1346 67.6055 58.3428 67.8468 58.5805C68.0899 58.82 68.4674 59.0587 68.9741 59.2699C69.9854 59.6912 71.4171 59.9636 73.0244 59.9636C74.6318 59.9636 76.0635 59.6912 77.0747 59.2699C77.5815 59.0587 77.9589 58.82 78.202 58.5805C78.4434 58.3428 78.5244 58.1346 78.5244 57.9636Z", fill: "white" }),
|
|
24
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M86.9038 53.2932C87.2697 52.9327 87.5244 52.4832 87.5244 51.9639V44.9639C87.5244 44.4445 87.2697 43.995 86.9038 43.6346C86.5397 43.2759 86.0384 42.9758 85.4594 42.7346C84.2991 42.2511 82.7308 41.9639 81.0244 41.9639C79.318 41.9639 77.7498 42.2511 76.5895 42.7346C76.0104 42.9758 75.5092 43.2759 75.145 43.6346C74.7791 43.995 74.5244 44.4445 74.5244 44.9639V48.0786C74.8689 48.1148 75.2032 48.1631 75.5244 48.2225V46.612C75.8298 46.8335 76.1912 47.0272 76.5895 47.1932C77.7498 47.6766 79.318 47.9639 81.0244 47.9639C82.7308 47.9639 84.2991 47.6766 85.4594 47.1932C85.8576 47.0272 86.2191 46.8335 86.5244 46.612V48.4639C86.5244 48.6349 86.4434 48.843 86.202 49.0808C85.9589 49.3203 85.5815 49.559 85.0747 49.7701C84.0635 50.1915 82.6318 50.4639 81.0244 50.4639C80.4454 50.4639 79.8891 50.4285 79.3671 50.3636C79.4517 50.5615 79.4999 50.7741 79.4999 51V51.3853C79.9898 51.4368 80.5006 51.4639 81.0244 51.4639C82.7308 51.4639 84.2991 51.1766 85.4594 50.6932C85.8576 50.5272 86.2191 50.3335 86.5244 50.112V51.9639C86.5244 52.1349 86.4434 52.343 86.202 52.5808C85.9589 52.8203 85.5815 53.059 85.0747 53.2701C84.0635 53.6915 82.6318 53.9639 81.0244 53.9639C80.4942 53.9639 79.9831 53.9342 79.4999 53.8794V54.8853C79.9898 54.9368 80.5006 54.9639 81.0244 54.9639C82.7308 54.9639 84.2991 54.6766 85.4594 54.1932C86.0384 53.9519 86.5397 53.6519 86.9038 53.2932ZM75.5244 44.9639C75.5244 44.7929 75.6055 44.5847 75.8468 44.3469C76.0899 44.1075 76.4674 43.8688 76.9741 43.6576C77.9854 43.2363 79.4171 42.9639 81.0244 42.9639C82.6318 42.9639 84.0635 43.2363 85.0747 43.6576C85.5815 43.8688 85.9589 44.1075 86.202 44.3469C86.4434 44.5847 86.5244 44.7929 86.5244 44.9639C86.5244 45.1349 86.4434 45.343 86.202 45.5808C85.9589 45.8203 85.5815 46.059 85.0747 46.2701C84.0635 46.6915 82.6318 46.9639 81.0244 46.9639C79.4171 46.9639 77.9854 46.6915 76.9741 46.2701C76.4674 46.059 76.0899 45.8203 75.8468 45.5808C75.6055 45.343 75.5244 45.1349 75.5244 44.9639Z", fill: "white" }),
|
|
25
|
+
React.createElement("defs", null,
|
|
26
|
+
React.createElement("filter", { id: "filter0_b_810_13830", x: "10", y: "4", width: "88", height: "14", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
27
|
+
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
28
|
+
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2" }),
|
|
29
|
+
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
30
|
+
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
31
|
+
React.createElement("filter", { id: "filter1_b_810_13830", x: "44.6667", y: "26.6667", width: "65.6667", height: "50.6667", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
32
|
+
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
33
|
+
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2.66667" }),
|
|
34
|
+
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
35
|
+
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
36
|
+
React.createElement("linearGradient", { id: "paint0_linear_810_13830", x1: "54", y1: "8", x2: "54", y2: "58", gradientUnits: "userSpaceOnUse" },
|
|
37
|
+
React.createElement("stop", { stopColor: "#E7E7E7" }),
|
|
38
|
+
React.createElement("stop", { offset: "1", stopColor: "#DCDCDC" })),
|
|
39
|
+
React.createElement("linearGradient", { id: "paint1_linear_810_13830", x1: "84.6042", y1: "18", x2: "84.6042", y2: "34", gradientUnits: "userSpaceOnUse" },
|
|
40
|
+
React.createElement("stop", { stopColor: "white" }),
|
|
41
|
+
React.createElement("stop", { offset: "1", stopColor: "white", stopOpacity: "0.2" })),
|
|
42
|
+
React.createElement("linearGradient", { id: "paint2_linear_810_13830", x1: "74.8387", y1: "66.7826", x2: "74.8387", y2: "33.6563", gradientUnits: "userSpaceOnUse" },
|
|
43
|
+
React.createElement("stop", { stopColor: "#939393", stopOpacity: "0.7" }),
|
|
44
|
+
React.createElement("stop", { offset: "1", stopColor: "#939393" })))),
|
|
45
|
+
emptyText)));
|
|
46
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getModuleContentStyle } from './utils';
|
|
3
|
+
export function Content(props) {
|
|
4
|
+
const { className, children } = props;
|
|
5
|
+
return (React.createElement("span", { className: className, style: getModuleContentStyle(props) }, children));
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getLineHeight } from './utils';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export function Title(props) {
|
|
5
|
+
const { className, moduleTitle, moduleTitleColor, moduleTitleFontSize, moduleTitleFontWeight, moduleTitleLineHeight, moduleTitleVisible, } = props;
|
|
6
|
+
if (moduleTitleVisible) {
|
|
7
|
+
const style = {
|
|
8
|
+
color: moduleTitleColor,
|
|
9
|
+
fontSize: moduleTitleFontSize,
|
|
10
|
+
fontWeight: moduleTitleFontWeight,
|
|
11
|
+
lineHeight: getLineHeight(moduleTitleLineHeight),
|
|
12
|
+
};
|
|
13
|
+
return (React.createElement("div", { className: `model-flow-module-title ${className}`, style: style }, moduleTitle));
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function getModuleTextProps(props) {
|
|
2
|
+
const moduleProps = {};
|
|
3
|
+
Object.entries(props).forEach(([key, value]) => {
|
|
4
|
+
if (key.startsWith('module')) {
|
|
5
|
+
moduleProps[key] = value;
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
return moduleProps;
|
|
9
|
+
}
|
|
10
|
+
export function getLineHeight(lineHeight) {
|
|
11
|
+
const realLineHeight = +lineHeight;
|
|
12
|
+
if (typeof realLineHeight === 'number') {
|
|
13
|
+
return `${realLineHeight}rem`;
|
|
14
|
+
}
|
|
15
|
+
return lineHeight;
|
|
16
|
+
}
|
|
17
|
+
export function getModuleContentStyle(props) {
|
|
18
|
+
const style = {
|
|
19
|
+
color: props.moduleContentColor,
|
|
20
|
+
fontSize: props.moduleContentFontSize,
|
|
21
|
+
fontWeight: props.moduleContentFontWeight,
|
|
22
|
+
lineHeight: getLineHeight(props.moduleContentLineHeight),
|
|
23
|
+
};
|
|
24
|
+
return style;
|
|
25
|
+
}
|
|
26
|
+
export function getModuleTitleStyle(props) {
|
|
27
|
+
const style = {
|
|
28
|
+
color: props.moduleTitleColor,
|
|
29
|
+
fontSize: props.moduleTitleFontSize,
|
|
30
|
+
fontWeight: props.moduleTitleFontWeight,
|
|
31
|
+
lineHeight: getLineHeight(props.moduleTitleLineHeight),
|
|
32
|
+
};
|
|
33
|
+
return style;
|
|
34
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from 'tea-component';
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
+
const omit = (prop, { [prop]: _, ...rest }) => rest;
|
|
5
|
+
export const FlowStatusText = (props) => {
|
|
6
|
+
const { isCompleted, status, userTaskType } = props.flow || {};
|
|
7
|
+
const getTagProps = () => {
|
|
8
|
+
const props = {
|
|
9
|
+
theme: 'warning',
|
|
10
|
+
text: '审批中',
|
|
11
|
+
};
|
|
12
|
+
if (userTaskType === 2) {
|
|
13
|
+
props.text = '处理中';
|
|
14
|
+
}
|
|
15
|
+
if (isCompleted) {
|
|
16
|
+
if (status === 1) {
|
|
17
|
+
props.theme = 'danger';
|
|
18
|
+
props.text = '已终止';
|
|
19
|
+
}
|
|
20
|
+
else if (status === 2) {
|
|
21
|
+
props.theme = 'danger';
|
|
22
|
+
props.text = '已驳回';
|
|
23
|
+
}
|
|
24
|
+
else if (status === 4) {
|
|
25
|
+
props.theme = 'danger';
|
|
26
|
+
props.text = '已作废';
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
props.theme = 'success';
|
|
30
|
+
props.text = userTaskType === 2 ? '已处理' : '审批通过';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return props;
|
|
34
|
+
};
|
|
35
|
+
const { text, ...rest } = getTagProps();
|
|
36
|
+
return (React.createElement(Text, { ...rest, style: omit('color', props.style) }, text));
|
|
37
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.flow-user-select-mobile {
|
|
2
|
+
height: calc(100% - 52px);
|
|
3
|
+
}
|
|
4
|
+
.flow-user-select-mobile .page-info__wrapper-mobile {
|
|
5
|
+
position: relative;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background: #f2f2f2;
|
|
8
|
+
}
|
|
9
|
+
.flow-user-select-mobile .page-info__wrapper-mobile .wedatea2td-table {
|
|
10
|
+
height: calc(100% - 200px) !important;
|
|
11
|
+
}
|
|
12
|
+
.flow-user-select-mobile
|
|
13
|
+
.page-info__wrapper-mobile
|
|
14
|
+
.wedatea2td-table
|
|
15
|
+
.wedatea2td-table__body {
|
|
16
|
+
max-height: calc(100% - 50px) !important;
|
|
17
|
+
}
|
|
18
|
+
.flow-user-select-mobile .page-info__wrapper-mobile footer.selected-info {
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
height: 90px;
|
|
24
|
+
padding: 12px 16px 0 20px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
background: #fff;
|
|
27
|
+
}
|
|
28
|
+
.flow-user-select-mobile
|
|
29
|
+
.page-info__wrapper-mobile
|
|
30
|
+
footer.selected-info
|
|
31
|
+
.selected-info__left
|
|
32
|
+
.selected-count {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: #2473f2;
|
|
35
|
+
}
|
|
36
|
+
.flow-user-select-mobile
|
|
37
|
+
.page-info__wrapper-mobile
|
|
38
|
+
footer.selected-info
|
|
39
|
+
.selected-info__left
|
|
40
|
+
.selected-people {
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
color: #c2c2c2;
|
|
43
|
+
max-width: 200px;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
}
|
|
48
|
+
.flow-user-select-mobile
|
|
49
|
+
.page-info__wrapper-mobile
|
|
50
|
+
footer.selected-info
|
|
51
|
+
.selected-info__left
|
|
52
|
+
.collapse-spread {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
margin-left: 16px;
|
|
55
|
+
width: 8px;
|
|
56
|
+
height: 8px;
|
|
57
|
+
border: none;
|
|
58
|
+
border-top: 2px solid #2473f2;
|
|
59
|
+
border-right: 2px solid #2473f2;
|
|
60
|
+
transform: rotate(-45deg);
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
}
|
|
63
|
+
.flow-user-select-mobile
|
|
64
|
+
.page-info__wrapper-mobile
|
|
65
|
+
footer.selected-info
|
|
66
|
+
.submit-btn {
|
|
67
|
+
width: 94px;
|
|
68
|
+
height: 40px;
|
|
69
|
+
border-radius: 4px;
|
|
70
|
+
background: #2473f2;
|
|
71
|
+
}
|
|
72
|
+
.flow-user-select-mobile .page-info__wrapper-mobile .loading-dom__wrapper {
|
|
73
|
+
height: calc(100% - 150px);
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: space-around;
|
|
76
|
+
align-items: center;
|
|
77
|
+
background: #fff;
|
|
78
|
+
}
|
|
79
|
+
.SelectPersonOrg-popup .selected-title {
|
|
80
|
+
position: sticky;
|
|
81
|
+
top: 0;
|
|
82
|
+
padding: 0 20px;
|
|
83
|
+
height: 40px;
|
|
84
|
+
line-height: 40px;
|
|
85
|
+
display: flex;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
border-bottom: 1px solid #dcdee6;
|
|
88
|
+
}
|
|
89
|
+
.SelectPersonOrg-popup .selected-title .tea-btn {
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
}
|
|
92
|
+
.SelectPersonOrg-popup .selected-title .tea-btn--text {
|
|
93
|
+
color: #666;
|
|
94
|
+
}
|
|
95
|
+
.SelectPersonOrg-popup .selected-title .tea-btn--link {
|
|
96
|
+
color: #006eff;
|
|
97
|
+
}
|
|
98
|
+
.SelectPersonOrg-popup .selected-title span {
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
}
|
|
101
|
+
.SelectPersonOrg-popup .selected-person {
|
|
102
|
+
height: calc(100% - 41px);
|
|
103
|
+
padding: 0 20px;
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
}
|
|
106
|
+
.SelectPersonOrg-popup .selected-person .tea-justify-grid {
|
|
107
|
+
height: 40px;
|
|
108
|
+
line-height: 40px;
|
|
109
|
+
border-bottom: 1px solid #dcdee6;
|
|
110
|
+
}
|
|
111
|
+
.SelectPersonOrg-popup
|
|
112
|
+
.selected-person
|
|
113
|
+
.tea-justify-grid
|
|
114
|
+
.selected-person__name {
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
}
|