tntd 2.8.39 → 2.8.41
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/es/_util/context.js +1 -1
- package/es/_util/defaultRenderEmpty.js +1 -1
- package/es/_util/hooks/useFlexGapSupport.js +4 -4
- package/es/_util/hooks/useForceUpdate.js +4 -4
- package/es/_util/hooks/useScrollLock.js +4 -4
- package/es/_util/responsiveObserve.js +1 -1
- package/es/_util/styleChecker.js +1 -1
- package/es/actions/index.js +1 -1
- package/es/anchor/anchor.js +51 -10
- package/es/anchor/anchor.js.map +1 -1
- package/es/anchor/anchor.less +114 -0
- package/es/anchor/index.js +7 -9
- package/es/anchor/index.js.map +1 -1
- package/es/array-input/index.js +28 -16
- package/es/array-input/index.js.map +1 -1
- package/es/array-input/index.less +129 -0
- package/es/check-card/group.js +8 -8
- package/es/check-card/index.js +6 -6
- package/es/checkbox/checkbox-group.js +1 -1
- package/es/color-picker/ColorPicker.js +6 -6
- package/es/color-picker/index.js +1 -1
- package/es/columns/index.js +1 -1
- package/es/config-provider/config-provider.js +1 -1
- package/es/descriptions/descriptions.js +5 -5
- package/es/development-login/LoginModal.js +6 -6
- package/es/development-login/index.js +4 -4
- package/es/drawer/drawer.js +2 -2
- package/es/ellipsis/Svg/CopySVG.js +1 -1
- package/es/ellipsis/Svg/TickSVG.js +1 -1
- package/es/ellipsis/index.js +5 -5
- package/es/empty/empty.js +2 -2
- package/es/empty/empty.stories.js +2 -2
- package/es/exception/exception.js +1 -1
- package/es/form/form.js +2 -2
- package/es/grid-v4/col.js +2 -2
- package/es/grid-v4/hooks/useBreakpoint.js +1 -1
- package/es/grid-v4/index.js +1 -1
- package/es/grid-v4/row.js +6 -6
- package/es/handle/index.js +1 -1
- package/es/handle-icon/index.js +11 -11
- package/es/icon/IconFont.js +1 -1
- package/es/icon/components/Icon.js +9 -9
- package/es/icon/components/index.js +1 -1
- package/es/icon/components/utils.js +3 -3
- package/es/icon/index.js +7 -7
- package/es/icon/twoTonePrimaryColor.js +1 -1
- package/es/icon/utils.js +1 -1
- package/es/img/Contain.js +1 -1
- package/es/img/Cover.js +5 -5
- package/es/img/index.js +5 -5
- package/es/index.js +1 -1
- package/es/input/input.js +2 -2
- package/es/input-number/index.js +1 -1
- package/es/label/index.js +2 -2
- package/es/loading-button/index.js +5 -5
- package/es/locale/default.js +1 -1
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/modal/modal.js +1 -1
- package/es/notification/assets/index.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/notification.js +1 -1
- package/es/page/Box.js +1 -1
- package/es/page/index.js +7 -7
- package/es/page-container/index.js +1 -1
- package/es/page-loading/index.js +1 -1
- package/es/preview-text/index.js +7 -7
- package/es/query-form/Field/Checkbox.js +1 -1
- package/es/query-form/Field/Select.js +6 -6
- package/es/query-form/Field/SelectInput.js +6 -6
- package/es/query-form/Field/fieldsMap.js +1 -1
- package/es/query-form/Field/index.js +10 -10
- package/es/query-form/createActions.js +1 -1
- package/es/query-form/index.js +10 -10
- package/es/query-form/useForm.js +1 -1
- package/es/query-list-scene/List.js +13 -13
- package/es/query-list-scene/QueryForm.js +10 -10
- package/es/query-list-scene/QueryListScene.js +10 -10
- package/es/query-list-scene/Title.js +1 -1
- package/es/query-list-scene/Toolbar.js +2 -2
- package/es/query-list-scene/createActions.js +1 -1
- package/es/query-list-scene/index.js +1 -1
- package/es/query-list-scene/useActions.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio/radio-group.js +1 -1
- package/es/render-empty/render-empty.js +1 -1
- package/es/segmented/index.js +2 -2
- package/es/select/select.js +2 -2
- package/es/steps/steps.js +2 -2
- package/es/svg-components/index.js +1 -1
- package/es/switch/switch.js +1 -1
- package/es/table/hooks/use-column-setting.js +4 -4
- package/es/table/hooks/use-expand-fixed.js +6 -6
- package/es/table/resizableTable/index.js +6 -6
- package/es/table/table-hoc.js +1 -1
- package/es/table/table.js +9 -9
- package/es/table/table.stories.js +2 -2
- package/es/table/total-shower.js +1 -1
- package/es/table/utils.js +1 -1
- package/es/table-container/index.js +1 -1
- package/es/tabs-container/index.js +1 -1
- package/es/tag/tag.js +2 -2
- package/es/title/index.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
- package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
- package/es/tntd-cascader/AntdCascader/index.js +7 -7
- package/es/tntd-cascader/index.js +1 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
- package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
- package/es/tntd-cascader/rc-cascader/index.js +1 -1
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
- package/es/tntd-form/ErrorList.js +7 -7
- package/es/tntd-form/Form.js +6 -6
- package/es/tntd-form/FormItem/ItemHolder.js +6 -6
- package/es/tntd-form/FormItem/index.js +8 -8
- package/es/tntd-form/FormItemInput.js +1 -1
- package/es/tntd-form/FormItemLabel.js +2 -2
- package/es/tntd-form/FormList.js +1 -1
- package/es/tntd-form/context.js +1 -1
- package/es/tntd-form/hooks/useDebounce.js +4 -4
- package/es/tntd-form/hooks/useForm.js +5 -5
- package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
- package/es/tntd-form/hooks/useFrameState.js +5 -5
- package/es/tntd-form/index.js +1 -1
- package/es/tntd-icon/index.js +1 -1
- package/es/tntd-layout/AppList.js +6 -6
- package/es/tntd-layout/Application.js +6 -6
- package/es/tntd-layout/Avatar.js +2 -2
- package/es/tntd-layout/CompatibleLanguage.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
- package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
- package/es/tntd-layout/GlobalNavigation/index.js +9 -9
- package/es/tntd-layout/Header.js +2 -2
- package/es/tntd-layout/HeaderActions.js +2 -2
- package/es/tntd-layout/HeaderNavs.js +6 -6
- package/es/tntd-layout/HeaderTabs.js +7 -7
- package/es/tntd-layout/Iconfont.js +1 -1
- package/es/tntd-layout/Language.js +6 -6
- package/es/tntd-layout/Layout.js +6 -6
- package/es/tntd-layout/Logo.js +2 -2
- package/es/tntd-layout/OrgAppList.js +6 -6
- package/es/tntd-layout/SideMenu.js +6 -6
- package/es/tntd-layout/Theme.js +6 -6
- package/es/tntd-layout/createActions.js +1 -1
- package/es/tntd-layout/images/index.js +1 -1
- package/es/tntd-layout/index.js +1 -1
- package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
- package/es/tntd-layout/paaslayout/Header.js +2 -2
- package/es/tntd-layout/paaslayout/Logo.js +2 -2
- package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
- package/es/tntd-layout/paaslayout/index.js +6 -6
- package/es/tntd-layout/storage.js +1 -1
- package/es/tntd-modal/index.js +6 -6
- package/es/tntd-rc-select/_util/PurePanel.js +5 -5
- package/es/tntd-rc-select/_util/context.js +1 -1
- package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
- package/es/tntd-rc-select/_util/getIcons.js +1 -1
- package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
- package/es/tntd-rc-select/index.js +2 -2
- package/es/tntd-reference/AHref/index.js +1 -1
- package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
- package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
- package/es/tntd-reference/ReferenceCheck/index.js +1 -1
- package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
- package/es/tntd-reference/ReferenceInfo/index.js +1 -1
- package/es/tntd-reference/index.js +1 -1
- package/es/tntd-second-page/index.js +1 -1
- package/es/tntd-select/DropDownWrap.js +8 -8
- package/es/tntd-select/index.js +9 -10
- package/es/tntd-virtual-tree/index.js +8 -8
- package/es/tntd-virtual-tree/utils.js +28 -28
- package/es/tntd-virtual-tree-select/index.js +10 -10
- package/es/tntd-virtual-tree-select/utils.js +9 -9
- package/es/tooltip/tooltip.js +1 -1
- package/es/upload/index.js +6 -6
- package/es/upload/svg/UploadSVG.js +1 -1
- package/es/utils/checkAuth.js +4 -4
- package/es/utils/index.js +9 -9
- package/es/utils/lang.js +1 -1
- package/es/water-mark/index.js +5 -5
- package/lib/_util/context.js +3 -3
- package/lib/_util/defaultRenderEmpty.js +3 -3
- package/lib/_util/hooks/useFlexGapSupport.js +15 -14
- package/lib/_util/hooks/useForceUpdate.js +15 -14
- package/lib/_util/hooks/useScrollLock.js +15 -14
- package/lib/_util/responsiveObserve.js +13 -7
- package/lib/_util/styleChecker.js +3 -3
- package/lib/actions/index.js +3 -3
- package/lib/anchor/anchor.d.ts.map +1 -1
- package/lib/anchor/anchor.js +96 -12
- package/lib/anchor/anchor.js.map +1 -1
- package/lib/anchor/anchor.less +114 -0
- package/lib/anchor/index.d.ts +3 -2
- package/lib/anchor/index.d.ts.map +1 -1
- package/lib/anchor/index.js +7 -40
- package/lib/anchor/index.js.map +1 -1
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +56 -37
- package/lib/array-input/index.js.map +1 -1
- package/lib/array-input/index.less +129 -0
- package/lib/check-card/group.js +24 -23
- package/lib/check-card/index.js +31 -24
- package/lib/checkbox/checkbox-group.js +3 -3
- package/lib/color-picker/ColorPicker.js +31 -24
- package/lib/color-picker/index.js +3 -3
- package/lib/columns/index.js +3 -3
- package/lib/config-provider/config-provider.js +3 -3
- package/lib/descriptions/descriptions.js +19 -13
- package/lib/development-login/LoginModal.js +31 -24
- package/lib/development-login/index.js +15 -14
- package/lib/drawer/drawer.js +16 -10
- package/lib/ellipsis/Svg/CopySVG.js +3 -3
- package/lib/ellipsis/Svg/TickSVG.js +3 -3
- package/lib/ellipsis/index.js +18 -17
- package/lib/empty/empty.js +16 -10
- package/lib/empty/empty.stories.js +9 -6
- package/lib/exception/exception.js +3 -3
- package/lib/form/form.js +16 -10
- package/lib/grid-v4/col.js +16 -10
- package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
- package/lib/grid-v4/index.js +3 -3
- package/lib/grid-v4/row.js +31 -24
- package/lib/handle/index.js +3 -3
- package/lib/handle-icon/index.js +13 -13
- package/lib/icon/IconFont.js +3 -3
- package/lib/icon/components/Icon.js +70 -44
- package/lib/icon/components/index.js +3 -3
- package/lib/icon/components/utils.js +18 -10
- package/lib/icon/index.js +33 -26
- package/lib/icon/twoTonePrimaryColor.js +3 -3
- package/lib/icon/utils.js +3 -3
- package/lib/img/Contain.js +3 -3
- package/lib/img/Cover.js +18 -17
- package/lib/img/index.js +18 -17
- package/lib/index.js +3 -3
- package/lib/input/input.js +16 -10
- package/lib/input-number/index.js +3 -3
- package/lib/label/index.js +16 -10
- package/lib/loading-button/index.js +18 -17
- package/lib/locale/default.js +3 -3
- package/lib/locale/en_US.js +3 -3
- package/lib/locale/zh_CN.js +3 -3
- package/lib/modal/modal.js +3 -3
- package/lib/notification/assets/index.js +3 -3
- package/lib/notification/assets/svg-error-tip.d.ts +1 -1
- package/lib/notification/assets/svg-success-tip.d.ts +1 -1
- package/lib/notification/index.js +3 -3
- package/lib/notification/notification.js +3 -3
- package/lib/page/Box.js +3 -3
- package/lib/page/index.js +33 -26
- package/lib/page-container/index.js +3 -3
- package/lib/page-loading/index.js +3 -3
- package/lib/preview-text/index.js +9 -9
- package/lib/query-form/Field/Checkbox.js +3 -3
- package/lib/query-form/Field/Select.js +31 -24
- package/lib/query-form/Field/SelectInput.js +31 -24
- package/lib/query-form/Field/fieldsMap.js +3 -3
- package/lib/query-form/Field/index.js +73 -47
- package/lib/query-form/createActions.js +3 -3
- package/lib/query-form/index.js +70 -44
- package/lib/query-form/useForm.js +3 -3
- package/lib/query-list-scene/List.js +61 -41
- package/lib/query-list-scene/QueryForm.js +70 -44
- package/lib/query-list-scene/QueryListScene.js +70 -44
- package/lib/query-list-scene/Title.js +3 -3
- package/lib/query-list-scene/Toolbar.js +16 -10
- package/lib/query-list-scene/createActions.js +3 -3
- package/lib/query-list-scene/index.js +3 -3
- package/lib/query-list-scene/useActions.js +3 -3
- package/lib/radio/index.js +3 -3
- package/lib/radio/radio-group.js +3 -3
- package/lib/render-empty/render-empty.js +3 -3
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.js +16 -10
- package/lib/select/select.js +16 -10
- package/lib/steps/steps.js +16 -10
- package/lib/svg-components/illustration-403.d.ts +1 -1
- package/lib/svg-components/illustration-404.d.ts +1 -1
- package/lib/svg-components/illustration-500.d.ts +1 -1
- package/lib/svg-components/illustration-empty.d.ts +1 -1
- package/lib/svg-components/illustration-failure.d.ts +1 -1
- package/lib/svg-components/illustration-no-access.d.ts +1 -1
- package/lib/svg-components/illustration-no-chart.d.ts +1 -1
- package/lib/svg-components/illustration-no-result.d.ts +1 -1
- package/lib/svg-components/illustration-offline.d.ts +1 -1
- package/lib/svg-components/illustration-success.d.ts +1 -1
- package/lib/svg-components/index.js +3 -3
- package/lib/switch/switch.js +3 -3
- package/lib/table/assets/image-loading-background.d.ts +1 -1
- package/lib/table/assets/image-loading.d.ts +1 -1
- package/lib/table/hooks/use-column-setting.js +15 -14
- package/lib/table/hooks/use-expand-fixed.js +36 -30
- package/lib/table/resizableTable/index.js +31 -24
- package/lib/table/table-hoc.js +3 -3
- package/lib/table/table.js +34 -27
- package/lib/table/table.stories.js +16 -10
- package/lib/table/total-shower.js +3 -3
- package/lib/table/utils.js +3 -3
- package/lib/table-container/index.js +3 -3
- package/lib/tabs-container/index.js +3 -3
- package/lib/tag/tag.js +16 -10
- package/lib/title/index.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +16 -10
- package/lib/tntd-cascader/AntdCascader/config/utils.js +16 -10
- package/lib/tntd-cascader/AntdCascader/index.js +33 -26
- package/lib/tntd-cascader/index.js +3 -3
- package/lib/tntd-cascader/rc-cascader/Cascader.js +24 -23
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +16 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +33 -26
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +37 -30
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -17
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +24 -23
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +17 -16
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +30 -23
- package/lib/tntd-cascader/rc-cascader/index.js +3 -3
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
- package/lib/tntd-form/ErrorList.js +33 -26
- package/lib/tntd-form/Form.js +31 -24
- package/lib/tntd-form/FormItem/ItemHolder.js +31 -24
- package/lib/tntd-form/FormItem/index.js +24 -23
- package/lib/tntd-form/FormItemInput.js +3 -3
- package/lib/tntd-form/FormItemLabel.js +16 -10
- package/lib/tntd-form/FormList.js +3 -3
- package/lib/tntd-form/context.js +3 -3
- package/lib/tntd-form/hooks/useDebounce.js +15 -14
- package/lib/tntd-form/hooks/useForm.js +18 -17
- package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
- package/lib/tntd-form/hooks/useFrameState.js +18 -17
- package/lib/tntd-form/index.js +3 -3
- package/lib/tntd-icon/index.js +3 -3
- package/lib/tntd-layout/AppList.js +24 -20
- package/lib/tntd-layout/Application.js +24 -20
- package/lib/tntd-layout/Avatar.js +9 -6
- package/lib/tntd-layout/CompatibleLanguage.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +9 -6
- package/lib/tntd-layout/EnterpriseLayout/Language.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +24 -20
- package/lib/tntd-layout/GlobalNavigation/index.js +30 -26
- package/lib/tntd-layout/Header.js +9 -6
- package/lib/tntd-layout/HeaderActions.js +9 -6
- package/lib/tntd-layout/HeaderNavs.js +24 -20
- package/lib/tntd-layout/HeaderTabs.js +37 -27
- package/lib/tntd-layout/Iconfont.js +3 -3
- package/lib/tntd-layout/Language.js +24 -20
- package/lib/tntd-layout/Layout.js +24 -20
- package/lib/tntd-layout/Logo.js +9 -6
- package/lib/tntd-layout/OrgAppList.js +24 -20
- package/lib/tntd-layout/SideMenu.js +24 -20
- package/lib/tntd-layout/Theme.js +24 -20
- package/lib/tntd-layout/createActions.js +3 -3
- package/lib/tntd-layout/images/index.js +3 -3
- package/lib/tntd-layout/index.js +3 -3
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +24 -20
- package/lib/tntd-layout/paaslayout/Header.js +9 -6
- package/lib/tntd-layout/paaslayout/Logo.js +9 -6
- package/lib/tntd-layout/paaslayout/SideMenu.js +24 -20
- package/lib/tntd-layout/paaslayout/index.js +24 -20
- package/lib/tntd-layout/storage.js +3 -3
- package/lib/tntd-modal/index.js +31 -24
- package/lib/tntd-rc-select/_util/PurePanel.js +18 -17
- package/lib/tntd-rc-select/_util/context.js +3 -3
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
- package/lib/tntd-rc-select/_util/getIcons.js +3 -3
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +16 -10
- package/lib/tntd-rc-select/index.js +16 -10
- package/lib/tntd-reference/AHref/index.js +3 -3
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +18 -17
- package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
- package/lib/tntd-reference/ReferenceDrawer/index.js +18 -17
- package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
- package/lib/tntd-reference/index.js +3 -3
- package/lib/tntd-second-page/index.js +3 -3
- package/lib/tntd-select/DropDownWrap.js +54 -34
- package/lib/tntd-select/index.js +57 -40
- package/lib/tntd-virtual-tree/index.js +24 -23
- package/lib/tntd-virtual-tree/utils.js +66 -62
- package/lib/tntd-virtual-tree-select/index.js +23 -22
- package/lib/tntd-virtual-tree-select/utils.js +21 -20
- package/lib/tooltip/tooltip.js +3 -3
- package/lib/upload/index.js +45 -41
- package/lib/upload/svg/UploadSVG.js +3 -3
- package/lib/utils/checkAuth.js +6 -6
- package/lib/utils/index.js +21 -20
- package/lib/utils/lang.js +3 -3
- package/lib/water-mark/index.js +18 -17
- package/package.json +2 -2
- package/es/alert/alert.js +0 -93
- package/es/alert/alert.js.map +0 -1
- package/es/array-input/icon.js +0 -32
- package/es/array-input/icon.js.map +0 -1
- package/es/cascader/cascader.js +0 -49
- package/es/cascader/cascader.js.map +0 -1
- package/es/checkbox/checkbox.js +0 -65
- package/es/checkbox/checkbox.js.map +0 -1
- package/es/date-picker/DatePicker.js +0 -128
- package/es/date-picker/DatePicker.js.map +0 -1
- package/es/input-number/inputNumber.js +0 -54
- package/es/input-number/inputNumber.js.map +0 -1
- package/es/page-loading/loading1.gif +0 -0
- package/es/popconfirm/popconfirm.js +0 -61
- package/es/popconfirm/popconfirm.js.map +0 -1
- package/es/popover/popover.js +0 -55
- package/es/popover/popover.js.map +0 -1
- package/es/progress/progress.js +0 -148
- package/es/progress/progress.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.js +0 -464
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/Select.js +0 -260
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/SelectInput.js +0 -112
- package/es/query-form/Field/Composition/SelectInput.js.map +0 -1
- package/es/query-form/Field/Composition/ValueTag.js +0 -240
- package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -448
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/index.less +0 -145
- package/es/query-form/Field/Composition/utils.js +0 -173
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/es/query-form-v2/index.less +0 -133
- package/es/radio/radio.js +0 -75
- package/es/radio/radio.js.map +0 -1
- package/es/scroll-bar/Bar.js +0 -169
- package/es/scroll-bar/Bar.js.map +0 -1
- package/es/scroll-bar/Context.js +0 -17
- package/es/scroll-bar/Context.js.map +0 -1
- package/es/scroll-bar/ScrollBar.js +0 -132
- package/es/scroll-bar/ScrollBar.js.map +0 -1
- package/es/scroll-bar/Thumb.js +0 -203
- package/es/scroll-bar/Thumb.js.map +0 -1
- package/es/scroll-bar/index.js +0 -14
- package/es/scroll-bar/index.js.map +0 -1
- package/es/scroll-bar/scrollBar.less +0 -59
- package/es/scroll-bar/util.js +0 -72
- package/es/scroll-bar/util.js.map +0 -1
- package/es/spin/spin.js +0 -44
- package/es/spin/spin.js.map +0 -1
- package/es/time-picker/TimePicker.js +0 -55
- package/es/time-picker/TimePicker.js.map +0 -1
- package/es/tntd-action/Action.js +0 -141
- package/es/tntd-action/Action.js.map +0 -1
- package/lib/alert/alert.d.ts +0 -12
- package/lib/alert/alert.d.ts.map +0 -1
- package/lib/alert/alert.js +0 -147
- package/lib/alert/alert.js.map +0 -1
- package/lib/array-input/icon.d.ts +0 -4
- package/lib/array-input/icon.d.ts.map +0 -1
- package/lib/array-input/icon.js +0 -36
- package/lib/array-input/icon.js.map +0 -1
- package/lib/cascader/cascader.d.ts +0 -10
- package/lib/cascader/cascader.d.ts.map +0 -1
- package/lib/cascader/cascader.js +0 -84
- package/lib/cascader/cascader.js.map +0 -1
- package/lib/checkbox/checkbox.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts.map +0 -1
- package/lib/checkbox/checkbox.js +0 -100
- package/lib/checkbox/checkbox.js.map +0 -1
- package/lib/date-picker/DatePicker.d.ts +0 -21
- package/lib/date-picker/DatePicker.d.ts.map +0 -1
- package/lib/date-picker/DatePicker.js +0 -163
- package/lib/date-picker/DatePicker.js.map +0 -1
- package/lib/input-number/inputNumber.d.ts +0 -10
- package/lib/input-number/inputNumber.d.ts.map +0 -1
- package/lib/input-number/inputNumber.js +0 -89
- package/lib/input-number/inputNumber.js.map +0 -1
- package/lib/page-loading/loading1.gif +0 -0
- package/lib/popconfirm/popconfirm.d.ts +0 -8
- package/lib/popconfirm/popconfirm.d.ts.map +0 -1
- package/lib/popconfirm/popconfirm.js +0 -96
- package/lib/popconfirm/popconfirm.js.map +0 -1
- package/lib/popover/popover.d.ts +0 -14
- package/lib/popover/popover.d.ts.map +0 -1
- package/lib/popover/popover.js +0 -90
- package/lib/popover/popover.js.map +0 -1
- package/lib/progress/progress.d.ts +0 -12
- package/lib/progress/progress.d.ts.map +0 -1
- package/lib/progress/progress.js +0 -179
- package/lib/progress/progress.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -464
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -260
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/SelectInput.d.ts +0 -3
- package/lib/query-form/Field/Composition/SelectInput.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/SelectInput.js +0 -112
- package/lib/query-form/Field/Composition/SelectInput.js.map +0 -1
- package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
- package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/ValueTag.js +0 -240
- package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -15
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -448
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/index.less +0 -145
- package/lib/query-form/Field/Composition/utils.d.ts +0 -21
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -173
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/query-form-v2/index.less +0 -133
- package/lib/radio/radio.d.ts +0 -17
- package/lib/radio/radio.d.ts.map +0 -1
- package/lib/radio/radio.js +0 -110
- package/lib/radio/radio.js.map +0 -1
- package/lib/scroll-bar/Bar.d.ts +0 -4
- package/lib/scroll-bar/Bar.d.ts.map +0 -1
- package/lib/scroll-bar/Bar.js +0 -169
- package/lib/scroll-bar/Bar.js.map +0 -1
- package/lib/scroll-bar/Context.d.ts +0 -7
- package/lib/scroll-bar/Context.d.ts.map +0 -1
- package/lib/scroll-bar/Context.js +0 -17
- package/lib/scroll-bar/Context.js.map +0 -1
- package/lib/scroll-bar/ScrollBar.d.ts +0 -4
- package/lib/scroll-bar/ScrollBar.d.ts.map +0 -1
- package/lib/scroll-bar/ScrollBar.js +0 -132
- package/lib/scroll-bar/ScrollBar.js.map +0 -1
- package/lib/scroll-bar/Thumb.d.ts +0 -3
- package/lib/scroll-bar/Thumb.d.ts.map +0 -1
- package/lib/scroll-bar/Thumb.js +0 -203
- package/lib/scroll-bar/Thumb.js.map +0 -1
- package/lib/scroll-bar/index.d.ts +0 -3
- package/lib/scroll-bar/index.d.ts.map +0 -1
- package/lib/scroll-bar/index.js +0 -14
- package/lib/scroll-bar/index.js.map +0 -1
- package/lib/scroll-bar/scrollBar.less +0 -59
- package/lib/scroll-bar/util.d.ts +0 -40
- package/lib/scroll-bar/util.d.ts.map +0 -1
- package/lib/scroll-bar/util.js +0 -72
- package/lib/scroll-bar/util.js.map +0 -1
- package/lib/spin/spin.d.ts +0 -9
- package/lib/spin/spin.d.ts.map +0 -1
- package/lib/spin/spin.js +0 -79
- package/lib/spin/spin.js.map +0 -1
- package/lib/time-picker/TimePicker.d.ts +0 -9
- package/lib/time-picker/TimePicker.d.ts.map +0 -1
- package/lib/time-picker/TimePicker.js +0 -90
- package/lib/time-picker/TimePicker.js.map +0 -1
- package/lib/tntd-action/Action.d.ts +0 -6
- package/lib/tntd-action/Action.d.ts.map +0 -1
- package/lib/tntd-action/Action.js +0 -218
- package/lib/tntd-action/Action.js.map +0 -1
package/lib/progress/progress.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {};
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
10
|
-
var _progress = _interopRequireDefault(require("antd/lib/progress"));
|
|
11
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var _ellipsis = _interopRequireDefault(require("../ellipsis"));
|
|
13
|
-
var _icon = _interopRequireDefault(require("../icon"));
|
|
14
|
-
require("./progress.less");
|
|
15
|
-
var _tooltip = require("antd/lib/tooltip");
|
|
16
|
-
Object.keys(_tooltip).forEach(function (key) {
|
|
17
|
-
if (key === "default" || key === "__esModule") return;
|
|
18
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
-
if (key in exports && exports[key] === _tooltip[key]) return;
|
|
20
|
-
Object.defineProperty(exports, key, {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _tooltip[key];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
function _interopRequireDefault(e) {
|
|
28
|
-
return e && e.__esModule ? e : {
|
|
29
|
-
"default": e
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _typeof(o) {
|
|
33
|
-
"@babel/helpers - typeof";
|
|
34
|
-
|
|
35
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
36
|
-
return typeof o;
|
|
37
|
-
} : function (o) {
|
|
38
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
39
|
-
}, _typeof(o);
|
|
40
|
-
}
|
|
41
|
-
function _defineProperty(e, r, t) {
|
|
42
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
|
-
value: t,
|
|
44
|
-
enumerable: !0,
|
|
45
|
-
configurable: !0,
|
|
46
|
-
writable: !0
|
|
47
|
-
}) : e[r] = t, e;
|
|
48
|
-
}
|
|
49
|
-
function _toPropertyKey(t) {
|
|
50
|
-
var i = _toPrimitive(t, "string");
|
|
51
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
52
|
-
}
|
|
53
|
-
function _toPrimitive(t, r) {
|
|
54
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
55
|
-
var e = t[Symbol.toPrimitive];
|
|
56
|
-
if (void 0 !== e) {
|
|
57
|
-
var i = e.call(t, r || "default");
|
|
58
|
-
if ("object" != _typeof(i)) return i;
|
|
59
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60
|
-
}
|
|
61
|
-
return ("string" === r ? String : Number)(t);
|
|
62
|
-
}
|
|
63
|
-
var iconMap = {
|
|
64
|
-
line: {
|
|
65
|
-
success: 'check-circle',
|
|
66
|
-
exception: 'close-circle'
|
|
67
|
-
},
|
|
68
|
-
circle: {
|
|
69
|
-
success: 'check',
|
|
70
|
-
exception: 'close'
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var ifPercentBottom = function ifPercentBottom(type, percentPosition) {
|
|
74
|
-
return type === 'line' && percentPosition === 'bottom';
|
|
75
|
-
};
|
|
76
|
-
var percentTransform = function percentTransform(percent) {
|
|
77
|
-
return percent >= 100 ? 100 : percent <= 0 ? 0 : percent;
|
|
78
|
-
};
|
|
79
|
-
var themeStrokeColor = function themeStrokeColor(status, strokeColor, percent) {
|
|
80
|
-
return status !== 'success' && status !== 'exception' && !strokeColor && percent !== 100 ? 'var(--blue-5)' : '';
|
|
81
|
-
};
|
|
82
|
-
var Progress = function Progress(props) {
|
|
83
|
-
var className = props.className,
|
|
84
|
-
_props$type = props.type,
|
|
85
|
-
type = _props$type === void 0 ? 'line' : _props$type,
|
|
86
|
-
_props$percentPositio = props.percentPosition,
|
|
87
|
-
percentPosition = _props$percentPositio === void 0 ? 'right' : _props$percentPositio,
|
|
88
|
-
_props$percent = props.percent,
|
|
89
|
-
percent = _props$percent === void 0 ? 0 : _props$percent,
|
|
90
|
-
format = props.format,
|
|
91
|
-
size = props.size,
|
|
92
|
-
label = props.label,
|
|
93
|
-
_props$width = props.width,
|
|
94
|
-
width = _props$width === void 0 ? 132 : _props$width,
|
|
95
|
-
status = props.status,
|
|
96
|
-
halfCircle = props.halfCircle,
|
|
97
|
-
_props$gapDegree = props.gapDegree,
|
|
98
|
-
gapDegree = _props$gapDegree === void 0 ? props.halfCircle ? 135 : props.gapDegree : _props$gapDegree,
|
|
99
|
-
strokeColor = props.strokeColor,
|
|
100
|
-
_props$strokeWidth = props.strokeWidth,
|
|
101
|
-
strokeWidth = _props$strokeWidth === void 0 ? 7 : _props$strokeWidth;
|
|
102
|
-
var _percent = percentTransform(percent);
|
|
103
|
-
var _strokeColor = themeStrokeColor(status, strokeColor, _percent);
|
|
104
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
105
|
-
var getPrefixCls = _ref.getPrefixCls;
|
|
106
|
-
var prefixCls = getPrefixCls('progress');
|
|
107
|
-
var CusLabelOrPercent = function CusLabelOrPercent(props) {
|
|
108
|
-
var type = props.type,
|
|
109
|
-
theme = props.theme;
|
|
110
|
-
var labelPercentClassName = (0, _classnames["default"])("".concat(prefixCls, "-percent-bottom"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-percent-bottom-").concat(size), size === 'small'), "".concat(prefixCls, "-percent-bottom-").concat(type), type === 'line'));
|
|
111
|
-
var showIcon = function showIcon(status) {
|
|
112
|
-
return _react["default"].createElement(_icon["default"], {
|
|
113
|
-
type: "".concat(iconMap[type][status]),
|
|
114
|
-
theme: theme,
|
|
115
|
-
className: (0, _classnames["default"])(_defineProperty({}, "".concat(labelPercentClassName, " ").concat(labelPercentClassName, "-").concat(status || 'success'), type === 'line'))
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
var showPercent = _react["default"].createElement("div", {
|
|
119
|
-
className: labelPercentClassName
|
|
120
|
-
}, format ? format === null || format === void 0 ? void 0 : format(_percent) : _percent + '%');
|
|
121
|
-
var displayContent;
|
|
122
|
-
if (status === 'success' || status === 'exception') {
|
|
123
|
-
displayContent = showIcon(status);
|
|
124
|
-
} else if (status === 'normal' || status === 'active') {
|
|
125
|
-
displayContent = showPercent;
|
|
126
|
-
} else {
|
|
127
|
-
// 如果状态为空
|
|
128
|
-
displayContent = _percent === 100 ? showIcon('success') : showPercent;
|
|
129
|
-
}
|
|
130
|
-
return displayContent;
|
|
131
|
-
};
|
|
132
|
-
var CusCircleAndDashboardFormat = function CusCircleAndDashboardFormat(props) {
|
|
133
|
-
var widthNum = props.widthNum;
|
|
134
|
-
return _react["default"].createElement("div", {
|
|
135
|
-
className: "".concat(prefixCls, "-cus-format")
|
|
136
|
-
}, !!label && _react["default"].createElement(_ellipsis["default"], {
|
|
137
|
-
className: "".concat(prefixCls, "-cus-format-label"),
|
|
138
|
-
title: label,
|
|
139
|
-
widthLimit: widthNum <= 64 ? widthNum : 'calc(100% - 50px)',
|
|
140
|
-
placement: widthNum <= 64 ? 'bottom' : 'top'
|
|
141
|
-
}), _react["default"].createElement(CusLabelOrPercent, {
|
|
142
|
-
type: "circle",
|
|
143
|
-
theme: "outlined"
|
|
144
|
-
}));
|
|
145
|
-
};
|
|
146
|
-
//line
|
|
147
|
-
var LineProgress = function LineProgress() {
|
|
148
|
-
return _react["default"].createElement(_progress["default"], Object.assign({
|
|
149
|
-
strokeColor: _strokeColor
|
|
150
|
-
}, props, {
|
|
151
|
-
className: (0, _classnames["default"])('tnt-progress', className, _defineProperty({}, "".concat(prefixCls, "-percent-bottom"), percentPosition === 'bottom'))
|
|
152
|
-
}));
|
|
153
|
-
};
|
|
154
|
-
//circle,dashboard (额外新增label和半圆选项)
|
|
155
|
-
var CircleAndDashboardProgress = function CircleAndDashboardProgress() {
|
|
156
|
-
var widthNum = Number(String(width).split('px').shift());
|
|
157
|
-
return _react["default"].createElement(_progress["default"], Object.assign({
|
|
158
|
-
gapDegree: gapDegree,
|
|
159
|
-
strokeColor: _strokeColor,
|
|
160
|
-
strokeWidth: strokeWidth
|
|
161
|
-
}, props, {
|
|
162
|
-
type: halfCircle ? 'dashboard' : type,
|
|
163
|
-
className: (0, _classnames["default"])('tnt-progress', "".concat(prefixCls, "-circle-progress"), className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-small-circle"), widthNum <= 64 && label), "".concat(prefixCls, "-large-circle"), widthNum > 64 && label), "".concat(prefixCls, "-small-half-circle"), halfCircle && widthNum <= 64 && label), "".concat(prefixCls, "-large-half-circle"), halfCircle && widthNum > 64 && label)),
|
|
164
|
-
format: function format() {
|
|
165
|
-
return _react["default"].createElement(CusCircleAndDashboardFormat, {
|
|
166
|
-
widthNum: widthNum
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}));
|
|
170
|
-
};
|
|
171
|
-
var progressMap = {
|
|
172
|
-
line: _react["default"].createElement(LineProgress, null),
|
|
173
|
-
circle: _react["default"].createElement(CircleAndDashboardProgress, null),
|
|
174
|
-
dashboard: _react["default"].createElement(CircleAndDashboardProgress, null)
|
|
175
|
-
};
|
|
176
|
-
return progressMap[type];
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
var _default = exports["default"] = Progress;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/progress/progress.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAGzB,6DAAwD;AACxD,gEAA2C;AAC3C,4DAAmC;AACnC,2DAAkC;AAClC,mDAA0B;AAC1B,2BAAwB;AACxB,kDAA+B;AAO/B,MAAM,OAAO,GAAG;IACd,IAAI,EAAE;QACJ,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,cAAc;KAC1B;IACD,MAAM,EAAE;QACN,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE,OAAO;KACnB;CACF,CAAA;AACD,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,eAAuB,EAAE,EAAE;IAChE,OAAO,IAAI,KAAK,MAAM,IAAI,eAAe,KAAK,QAAQ,CAAA;AACxD,CAAC,CAAA;AACD,MAAM,gBAAgB,GAAG,CAAC,OAAe,EAAE,EAAE;IAC3C,OAAO,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CA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,oBAAoB,CAAC,EAAE,UAAU,IAAI,QAAQ,IAAI,EAAE,IAAI,KAAK;oBACzE,CAAC,GAAG,SAAS,oBAAoB,CAAC,EAAE,UAAU,IAAI,QAAQ,GAAG,EAAE,IAAI,KAAK;iBACzE,CAAC,EACF,MAAM,EAAE,GAAG,EAAE,CAAC,8BAAC,2BAA2B,IAAC,QAAQ,EAAE,QAAQ,GAAI,IACjE,CACH,CAAA;QACH,CAAC,CAAA;QAED,MAAM,WAAW,GAAG;YAClB,IAAI,EAAE,8BAAC,YAAY,OAAG;YACtB,MAAM,EAAE,8BAAC,0BAA0B,OAAG;YACtC,SAAS,EAAE,8BAAC,0BAA0B,OAAG;SAC1C,CAAA;QACD,OAAO,WAAW,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,QAAQ,CAAA","sourcesContent":["import React from 'react'\nimport type { ProgressProps } from 'antd/lib/progress'\nimport type { ThemeType } from 'antd/lib/icon'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdProgress from 'antd/lib/progress'\nimport classNames from 'classnames'\nimport Ellipsis from '../ellipsis'\nimport Icon from '../icon'\nimport './progress.less'\nexport * from 'antd/lib/tooltip'\n\ninterface ExtendsProgress {\n percentPosition?: 'bottom' | 'right'\n label?: React.ReactNode\n halfCircle?: boolean\n}\nconst iconMap = {\n line: {\n success: 'check-circle',\n exception: 'close-circle',\n },\n circle: {\n success: 'check',\n exception: 'close',\n },\n}\nconst ifPercentBottom = (type: string, percentPosition: string) => {\n return type === 'line' && percentPosition === 'bottom'\n}\nconst percentTransform = (percent: number) => {\n return percent >= 100 ? 100 : percent <= 0 ? 0 : percent\n}\n\nconst themeStrokeColor = (status?: string, strokeColor?: string | object, percent?: number) => {\n return status !== 'success' && status !== 'exception' && !strokeColor && percent !== 100\n ? 'var(--blue-5)'\n : ''\n}\n\nconst Progress: React.FC<ProgressProps & ExtendsProgress> = (props) => {\n const {\n className,\n type = 'line',\n percentPosition = 'right',\n percent = 0,\n format,\n size,\n label,\n width = 132,\n status,\n halfCircle,\n gapDegree = props.halfCircle ? 135 : props.gapDegree,\n strokeColor,\n strokeWidth = 7,\n } = props\n const _percent = percentTransform(percent)\n const _strokeColor = themeStrokeColor(status, strokeColor, _percent)\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('progress')\n\n const CusLabelOrPercent = (props: { type: 'line' | 'circle'; theme?: ThemeType }) => {\n const { type, theme } = props\n const labelPercentClassName = classNames(`${prefixCls}-percent-bottom`, {\n [`${prefixCls}-percent-bottom-${size}`]: size === 'small',\n [`${prefixCls}-percent-bottom-${type}`]: type === 'line',\n })\n\n const showIcon = (status: 'success' | 'exception') => (\n <Icon\n type={`${iconMap[type][status]}`}\n theme={theme}\n className={classNames({\n [`${labelPercentClassName} ${labelPercentClassName}-${status || 'success'}`]:\n type === 'line',\n })}\n />\n )\n const showPercent = (\n <div className={labelPercentClassName}>\n {format ? format?.(_percent) : _percent + '%'}\n </div>\n )\n\n let displayContent\n if (status === 'success' || status === 'exception') {\n displayContent = showIcon(status)\n } else if (status === 'normal' || status === 'active') {\n displayContent = showPercent\n } else {\n // 如果状态为空\n displayContent = _percent === 100 ? showIcon('success') : showPercent\n }\n return displayContent\n }\n\n const CusCircleAndDashboardFormat = (props: { widthNum: number }) => {\n const { widthNum } = props\n return (\n <div className={`${prefixCls}-cus-format`}>\n {!!label && (\n <Ellipsis\n className={`${prefixCls}-cus-format-label`}\n title={label}\n widthLimit={widthNum <= 64 ? widthNum : 'calc(100% - 50px)'}\n placement={widthNum <= 64 ? 'bottom' : 'top'}\n />\n )}\n <CusLabelOrPercent type=\"circle\" theme=\"outlined\" />\n </div>\n )\n }\n\n //line\n const LineProgress: React.FC = () => (\n <AntdProgress\n strokeColor={_strokeColor}\n {...props}\n className={classNames('tnt-progress', className, {\n [`${prefixCls}-percent-bottom`]: percentPosition === 'bottom',\n })}\n />\n )\n\n //circle,dashboard (额外新增label和半圆选项)\n const CircleAndDashboardProgress: React.FC = () => {\n const widthNum = Number(String(width).split('px').shift())\n return (\n <AntdProgress\n gapDegree={gapDegree}\n strokeColor={_strokeColor}\n strokeWidth={strokeWidth}\n {...props}\n type={halfCircle ? 'dashboard' : type}\n className={classNames('tnt-progress', `${prefixCls}-circle-progress`, className, {\n [`${prefixCls}-small-circle`]: widthNum <= 64 && label,\n [`${prefixCls}-large-circle`]: widthNum > 64 && label,\n [`${prefixCls}-small-half-circle`]: halfCircle && widthNum <= 64 && label,\n [`${prefixCls}-large-half-circle`]: halfCircle && widthNum > 64 && label,\n })}\n format={() => <CusCircleAndDashboardFormat widthNum={widthNum} />}\n />\n )\n }\n\n const progressMap = {\n line: <LineProgress />,\n circle: <CircleAndDashboardProgress />,\n dashboard: <CircleAndDashboardProgress />,\n }\n return progressMap[type]\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Progress\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare var _default: React.ForwardRefExoticComponent<Pick<{
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
visible: any;
|
|
4
|
-
setVisible: any;
|
|
5
|
-
searchText: any;
|
|
6
|
-
children: any;
|
|
7
|
-
value: any;
|
|
8
|
-
regex: any;
|
|
9
|
-
fieldItems: any;
|
|
10
|
-
propItem: any;
|
|
11
|
-
setFieldItem: any;
|
|
12
|
-
onChange: any;
|
|
13
|
-
form: any;
|
|
14
|
-
locale: any;
|
|
15
|
-
clsPrefix: any;
|
|
16
|
-
}, string | number> & React.RefAttributes<any>>;
|
|
17
|
-
export default _default;
|
|
18
|
-
import React from "react";
|
|
19
|
-
//# sourceMappingURL=FieldPopover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldPopover.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/FieldPopover.js"],"names":[],"mappings":""}
|