tntd 3.0.61 → 3.0.62
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 +5 -5
- package/es/_util/responsiveObserve.js +1 -1
- package/es/_util/styleChecker.js +1 -1
- package/es/actions/index.js +1 -1
- package/es/alert/alert.js +2 -2
- package/es/alert/index.js +1 -1
- package/es/anchor/anchor.js +5 -5
- package/es/array-input/index.js +9 -9
- package/es/button/button.js +2 -2
- package/es/cascader/cascader.js +1 -1
- package/es/check-card/group.js +8 -8
- package/es/check-card/index.js +6 -6
- package/es/checkbox/checkbox-group.js +16 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/checkbox/checkbox.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/date-picker/DatePicker.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 +8 -8
- 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/inputNumber.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 +6 -4
- package/es/modal/modal.js.map +1 -1
- package/es/modal/modal.less +16 -0
- 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/popconfirm/popconfirm.js +1 -1
- package/es/popover/popover.js +1 -1
- package/es/preview-text/index.js +7 -7
- package/es/progress/progress.js +2 -2
- package/es/query-form/Field/Checkbox.js +1 -1
- package/es/query-form/Field/Composition/FieldPopover.js +31 -24
- package/es/query-form/Field/Composition/Select.js +31 -24
- package/es/query-form/Field/Composition/SelectInput.js +18 -17
- package/es/query-form/Field/Composition/ValueTag.js +18 -17
- package/es/query-form/Field/Composition/index.js +37 -30
- package/es/query-form/Field/Composition/utils.js +3 -3
- 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 +9 -9
- 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/radio-group.js +16 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/radio/radio.js +1 -1
- package/es/render-empty/render-empty.js +1 -1
- package/es/scroll-bar/Bar.js +5 -5
- package/es/scroll-bar/Context.js +1 -1
- package/es/scroll-bar/ScrollBar.js +1 -1
- package/es/scroll-bar/Thumb.js +5 -5
- package/es/scroll-bar/index.js +1 -1
- package/es/scroll-bar/util.js +1 -1
- package/es/segmented/index.js +2 -2
- package/es/select/select.js +2 -2
- package/es/spin/spin.js +1 -1
- package/es/steps/stepStyle/small.less +5 -0
- package/es/steps/steps.js +2 -2
- package/es/svg-components/index.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 +20 -0
- package/es/table/total-shower.js.map +1 -0
- package/es/table/utils.js +1 -1
- package/es/table-container/index.js +1 -1
- package/es/tabs/tabs.js +2 -2
- package/es/tabs-container/index.js +1 -1
- package/es/tag/tag.js +2 -2
- package/es/time-picker/TimePicker.js +1 -1
- package/es/time-picker/index.js +1 -1
- package/es/title/index.js +1 -1
- package/es/tntd-action/Action.js +9 -9
- package/es/tntd-action/index.js +8 -8
- 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 +3 -3
- package/es/utils/simple-template.js +19 -0
- package/es/utils/simple-template.js.map +1 -0
- 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 +18 -17
- package/lib/_util/responsiveObserve.js +13 -7
- package/lib/_util/styleChecker.js +3 -3
- package/lib/actions/index.js +3 -3
- package/lib/alert/alert.js +16 -10
- package/lib/alert/index.js +3 -3
- package/lib/anchor/anchor.js +18 -17
- package/lib/array-input/index.js +37 -30
- package/lib/button/button.js +16 -10
- package/lib/cascader/cascader.js +3 -3
- package/lib/check-card/group.js +24 -23
- package/lib/check-card/index.js +31 -24
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.d.ts.map +1 -0
- package/lib/checkbox/checkbox-group.js +16 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/checkbox/checkbox.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/date-picker/DatePicker.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 +10 -10
- 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/inputNumber.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.d.ts +1 -0
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +8 -6
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/modal.less +16 -0
- package/lib/notification/assets/index.js +3 -3
- 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/popconfirm/popconfirm.js +3 -3
- package/lib/popover/popover.js +3 -3
- package/lib/preview-text/index.js +9 -9
- package/lib/progress/progress.js +16 -10
- package/lib/query-form/Field/Checkbox.js +3 -3
- package/lib/query-form/Field/Composition/FieldPopover.js +31 -24
- package/lib/query-form/Field/Composition/Select.js +31 -24
- package/lib/query-form/Field/Composition/SelectInput.js +18 -17
- package/lib/query-form/Field/Composition/ValueTag.js +18 -17
- package/lib/query-form/Field/Composition/index.js +37 -30
- package/lib/query-form/Field/Composition/utils.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 +57 -37
- 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/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.d.ts.map +1 -0
- package/lib/radio/radio-group.js +16 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/radio/radio.js +3 -3
- package/lib/render-empty/render-empty.js +3 -3
- package/lib/scroll-bar/Bar.js +18 -17
- package/lib/scroll-bar/Context.js +3 -3
- package/lib/scroll-bar/ScrollBar.js +3 -3
- package/lib/scroll-bar/Thumb.js +18 -17
- package/lib/scroll-bar/index.js +3 -3
- package/lib/scroll-bar/util.js +13 -7
- package/lib/segmented/index.js +16 -10
- package/lib/select/select.js +16 -10
- package/lib/spin/spin.js +3 -3
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/steps/steps.js +16 -10
- package/lib/svg-components/index.js +3 -3
- 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.d.ts +9 -0
- package/lib/table/total-shower.d.ts.map +1 -0
- package/lib/table/total-shower.js +20 -0
- package/lib/table/total-shower.js.map +1 -0
- package/lib/table/utils.js +3 -3
- package/lib/table-container/index.js +3 -3
- package/lib/tabs/tabs.js +16 -10
- package/lib/tabs-container/index.js +3 -3
- package/lib/tag/tag.js +16 -10
- package/lib/time-picker/TimePicker.js +3 -3
- package/lib/time-picker/index.js +3 -3
- package/lib/title/index.js +3 -3
- package/lib/tntd-action/Action.js +22 -21
- package/lib/tntd-action/index.js +21 -20
- 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 +5 -5
- package/lib/utils/simple-template.d.ts +9 -0
- package/lib/utils/simple-template.d.ts.map +1 -0
- package/lib/utils/simple-template.js +19 -0
- package/lib/utils/simple-template.js.map +1 -0
- package/lib/water-mark/index.js +18 -17
- package/package.json +2 -2
package/lib/locale/en_US.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _merge2 = _interopRequireDefault(require("lodash/merge"));
|
|
8
8
|
var _en_US = _interopRequireDefault(require("antd/lib/locale/en_US"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
return
|
|
11
|
-
"default":
|
|
9
|
+
function _interopRequireDefault(obj) {
|
|
10
|
+
return obj && obj.__esModule ? obj : {
|
|
11
|
+
"default": obj
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/*
|
package/lib/locale/zh_CN.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _merge2 = _interopRequireDefault(require("lodash/merge"));
|
|
8
8
|
var _zh_CN = _interopRequireDefault(require("antd/lib/locale/zh_CN"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
return
|
|
11
|
-
"default":
|
|
9
|
+
function _interopRequireDefault(obj) {
|
|
10
|
+
return obj && obj.__esModule ? obj : {
|
|
11
|
+
"default": obj
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
// 覆盖原始的语言包,以便在使用 LocalReceiver 时获取正确的语言包
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { ActionButtonProps, ModalProps } from 'antd/lib/modal';
|
|
|
6
6
|
export interface CurModalProps extends AntdModalProps {
|
|
7
7
|
upperCaseIgnore?: [];
|
|
8
8
|
unUpperConverted?: boolean;
|
|
9
|
+
innerScroll?: boolean;
|
|
9
10
|
}
|
|
10
11
|
interface ModalComponent extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {
|
|
11
12
|
info: typeof AntdModal.info;
|
package/lib/modal/modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAIjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGpD,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,eAAe,CAAC,EAAE,EAAE,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAIjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGpD,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,eAAe,CAAC,EAAE,EAAE,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvF,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAA;IAC3B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,KAAK,EAAE,OAAO,SAAS,CAAC,KAAK,CAAA;IAC7B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAA;IAC3B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,UAAU,EAAE,OAAO,SAAS,CAAC,UAAU,CAAA;CACxC;AAED,eAAO,MAAM,KAAK,gBAkDC,CAAA"}
|
package/lib/modal/modal.js
CHANGED
|
@@ -33,9 +33,9 @@ Object.keys(_modal).forEach(function (key) {
|
|
|
33
33
|
});
|
|
34
34
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
35
35
|
var _utils = require("../utils");
|
|
36
|
-
function _interopRequireDefault(
|
|
37
|
-
return
|
|
38
|
-
"default":
|
|
36
|
+
function _interopRequireDefault(obj) {
|
|
37
|
+
return obj && obj.__esModule ? obj : {
|
|
38
|
+
"default": obj
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
function _getRequireWildcardCache(e) {
|
|
@@ -75,7 +75,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
75
75
|
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
76
76
|
* @Date: 2023-03-08 17:45:01
|
|
77
77
|
* @LastEditors: 郑泳健
|
|
78
|
-
* @LastEditTime:
|
|
78
|
+
* @LastEditTime: 2025-06-23 17:30:37
|
|
79
79
|
* @FilePath: /tntd/packages/tntd/src/modal/modal.tsx
|
|
80
80
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
81
81
|
*/
|
|
@@ -88,14 +88,16 @@ var Modal = exports.Modal = (0, _react.forwardRef)(function (_a, ref) {
|
|
|
88
88
|
cancelButtonProps = _a.cancelButtonProps,
|
|
89
89
|
okButtonProps = _a.okButtonProps,
|
|
90
90
|
closeIcon = _a.closeIcon,
|
|
91
|
-
|
|
91
|
+
_a$innerScroll = _a.innerScroll,
|
|
92
|
+
innerScroll = _a$innerScroll === void 0 ? true : _a$innerScroll,
|
|
93
|
+
rest = __rest(_a, ["title", "className", "upperCaseIgnore", "unUpperConverted", "cancelButtonProps", "okButtonProps", "closeIcon", "innerScroll"]);
|
|
92
94
|
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
93
95
|
var getPrefixCls = _ref.getPrefixCls;
|
|
94
96
|
return _react["default"].createElement(_modal["default"], Object.assign({
|
|
95
97
|
closeIcon: _react["default"].createElement(_icon["default"], {
|
|
96
98
|
type: "close"
|
|
97
99
|
}),
|
|
98
|
-
className: (0, _classnames["default"])('tntd-modal', className),
|
|
100
|
+
className: (0, _classnames["default"])('tntd-modal', innerScroll && 'modal-inner-scroll', className),
|
|
99
101
|
cancelButtonProps: Object.assign({
|
|
100
102
|
type: 'tertiary',
|
|
101
103
|
className: (0, _classnames["default"])('tnt-btn', {
|
package/lib/modal/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAGzC,4DAAmC;AACnC,wDAAmD;AACnD,0DAAoD;AACpD,mDAAyC;AACzC,oCAAuC;AACvC,gDAA6B;AAC7B,uCAA6D;AAkBhD,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,CACE,EASC,EACD,GAAG,EACH,EAAE;QAXF,EACE,KAAK,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,OAEV,EADI,IAAI,cART,gHASC,CADQ;IAIT,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,8BAAC,eAAS,kBACR,SAAS,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,OAAO,GAAG,EAChC,SAAS,EAAE,IAAA,oBAAU,EAAC,YAAY,EAAE,SAAS,CAAC,EAC9C,iBAAiB,EACf,gBACE,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU;wBAClD,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;oBAC1B,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,I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AAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;aAC/D,CAAC,IACC,iBAAiB,CACA,EACtB,aAAa,kBACX,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;gBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;gBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;aAC3D,CAAC,IACC,aAAa,KAEf,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,UAAU,GAAG,eAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-03-20 11:28:43\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/lib/modal'\nimport type { NativeButtonProps } from 'antd/lib/button/button'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/lib/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/lib/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/lib/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n (\n {\n title,\n className,\n upperCaseIgnore,\n unUpperConverted,\n cancelButtonProps,\n okButtonProps,\n closeIcon,\n ...rest\n },\n ref\n ) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n closeIcon={<Icon type=\"close\" />}\n className={classNames('tntd-modal', className)}\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' ||\n !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = ({ okButtonProps, ...props }) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.success = ({ okButtonProps, ...props }) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.error = ({ okButtonProps, ...props }) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warning = ({ okButtonProps, ...props }) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warn = ({ okButtonProps, ...props }) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.confirm = ({ cancelButtonProps, okButtonProps, ...props }) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n cancelButtonProps: {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;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AE,IAAe,MAAK,MAAM;aAC3D,CAAC,IACC,aAAa,KAEf,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,UAAU,GAAG,eAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2025-06-23 17:30:37\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/lib/modal'\nimport type { NativeButtonProps } from 'antd/lib/button/button'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/lib/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/lib/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/lib/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n innerScroll?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n (\n {\n title,\n className,\n upperCaseIgnore,\n unUpperConverted,\n cancelButtonProps,\n okButtonProps,\n closeIcon,\n innerScroll = true,\n ...rest\n },\n ref\n ) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n closeIcon={<Icon type=\"close\" />}\n className={classNames('tntd-modal', innerScroll && 'modal-inner-scroll', className)}\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' ||\n !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = ({ okButtonProps, ...props }) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.success = ({ okButtonProps, ...props }) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.error = ({ okButtonProps, ...props }) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warning = ({ okButtonProps, ...props }) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warn = ({ okButtonProps, ...props }) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.confirm = ({ cancelButtonProps, okButtonProps, ...props }) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n cancelButtonProps: {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
package/lib/modal/modal.less
CHANGED
|
@@ -16,3 +16,19 @@
|
|
|
16
16
|
.@{modal-prefix-cls}-confirm-body-wrapper{
|
|
17
17
|
margin-top: @margin-xxs;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.modal-inner-scroll{
|
|
21
|
+
max-height: calc(100vh - 200px);
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
.ant-modal-body{
|
|
26
|
+
max-height: calc(100vh - 200px - 56px);
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-flow: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-modal-footer{
|
|
32
|
+
padding: 16px 24px 8px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "SvgSuccessTip", {
|
|
|
17
17
|
});
|
|
18
18
|
var _svgSuccessTip = _interopRequireDefault(require("./svg-success-tip"));
|
|
19
19
|
var _svgErrorTip = _interopRequireDefault(require("./svg-error-tip"));
|
|
20
|
-
function _interopRequireDefault(
|
|
21
|
-
return
|
|
22
|
-
"default":
|
|
20
|
+
function _interopRequireDefault(obj) {
|
|
21
|
+
return obj && obj.__esModule ? obj : {
|
|
22
|
+
"default": obj
|
|
23
23
|
};
|
|
24
24
|
}
|
|
@@ -19,9 +19,9 @@ Object.keys(_notification2).forEach(function (key) {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
function _interopRequireDefault(
|
|
23
|
-
return
|
|
24
|
-
"default":
|
|
22
|
+
function _interopRequireDefault(obj) {
|
|
23
|
+
return obj && obj.__esModule ? obj : {
|
|
24
|
+
"default": obj
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
var _default = exports["default"] = _notification["default"];
|
|
@@ -55,9 +55,9 @@ function _interopRequireWildcard(e, r) {
|
|
|
55
55
|
}
|
|
56
56
|
return n["default"] = e, t && t.set(e, n), n;
|
|
57
57
|
}
|
|
58
|
-
function _interopRequireDefault(
|
|
59
|
-
return
|
|
60
|
-
"default":
|
|
58
|
+
function _interopRequireDefault(obj) {
|
|
59
|
+
return obj && obj.__esModule ? obj : {
|
|
60
|
+
"default": obj
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
var prefixCls = 'ant-notification-notice';
|
package/lib/page/Box.js
CHANGED
|
@@ -7,9 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _utils = require("./utils");
|
|
9
9
|
var _card = _interopRequireDefault(require("../card"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
return
|
|
12
|
-
"default":
|
|
10
|
+
function _interopRequireDefault(obj) {
|
|
11
|
+
return obj && obj.__esModule ? obj : {
|
|
12
|
+
"default": obj
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
package/lib/page/index.js
CHANGED
|
@@ -10,18 +10,24 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("./Box"));
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
require("./index.less");
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
return
|
|
15
|
-
"default":
|
|
13
|
+
function _interopRequireDefault(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
"default": obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function _defineProperty(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
function _defineProperty(obj, key, value) {
|
|
19
|
+
key = _toPropertyKey(key);
|
|
20
|
+
if (key in obj) {
|
|
21
|
+
Object.defineProperty(obj, key, {
|
|
22
|
+
value: value,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
obj[key] = value;
|
|
29
|
+
}
|
|
30
|
+
return obj;
|
|
25
31
|
}
|
|
26
32
|
function _toPropertyKey(t) {
|
|
27
33
|
var i = _toPrimitive(t, "string");
|
|
@@ -37,29 +43,30 @@ function _toPrimitive(t, r) {
|
|
|
37
43
|
}
|
|
38
44
|
return ("string" === r ? String : Number)(t);
|
|
39
45
|
}
|
|
40
|
-
function _toConsumableArray(
|
|
41
|
-
return _arrayWithoutHoles(
|
|
46
|
+
function _toConsumableArray(arr) {
|
|
47
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
42
48
|
}
|
|
43
49
|
function _nonIterableSpread() {
|
|
44
50
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45
51
|
}
|
|
46
|
-
function _unsupportedIterableToArray(
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
53
|
+
if (!o) return;
|
|
54
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
55
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
56
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
57
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
58
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
52
59
|
}
|
|
53
|
-
function _iterableToArray(
|
|
54
|
-
if (
|
|
60
|
+
function _iterableToArray(iter) {
|
|
61
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
55
62
|
}
|
|
56
|
-
function _arrayWithoutHoles(
|
|
57
|
-
if (Array.isArray(
|
|
63
|
+
function _arrayWithoutHoles(arr) {
|
|
64
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
58
65
|
}
|
|
59
|
-
function _arrayLikeToArray(
|
|
60
|
-
(
|
|
61
|
-
for (var
|
|
62
|
-
return
|
|
66
|
+
function _arrayLikeToArray(arr, len) {
|
|
67
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
68
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
69
|
+
return arr2;
|
|
63
70
|
}
|
|
64
71
|
function _typeof(o) {
|
|
65
72
|
"@babel/helpers - typeof";
|
|
@@ -7,9 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.less");
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
return
|
|
12
|
-
"default":
|
|
10
|
+
function _interopRequireDefault(obj) {
|
|
11
|
+
return obj && obj.__esModule ? obj : {
|
|
12
|
+
"default": obj
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
var _default = exports["default"] = function _default(WrappedComponent) {
|
|
@@ -8,9 +8,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
|
|
10
10
|
require("./index.less");
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
return
|
|
13
|
-
"default":
|
|
11
|
+
function _interopRequireDefault(obj) {
|
|
12
|
+
return obj && obj.__esModule ? obj : {
|
|
13
|
+
"default": obj
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
@@ -54,9 +54,9 @@ function _interopRequireWildcard(e, r) {
|
|
|
54
54
|
}
|
|
55
55
|
return n["default"] = e, t && t.set(e, n), n;
|
|
56
56
|
}
|
|
57
|
-
function _interopRequireDefault(
|
|
58
|
-
return
|
|
59
|
-
"default":
|
|
57
|
+
function _interopRequireDefault(obj) {
|
|
58
|
+
return obj && obj.__esModule ? obj : {
|
|
59
|
+
"default": obj
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
package/lib/popover/popover.js
CHANGED
|
@@ -54,9 +54,9 @@ function _interopRequireWildcard(e, r) {
|
|
|
54
54
|
}
|
|
55
55
|
return n["default"] = e, t && t.set(e, n), n;
|
|
56
56
|
}
|
|
57
|
-
function _interopRequireDefault(
|
|
58
|
-
return
|
|
59
|
-
"default":
|
|
57
|
+
function _interopRequireDefault(obj) {
|
|
58
|
+
return obj && obj.__esModule ? obj : {
|
|
59
|
+
"default": obj
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
@@ -46,9 +46,9 @@ function _interopRequireWildcard(e, r) {
|
|
|
46
46
|
}
|
|
47
47
|
return n["default"] = e, t && t.set(e, n), n;
|
|
48
48
|
}
|
|
49
|
-
function _interopRequireDefault(
|
|
50
|
-
return
|
|
51
|
-
"default":
|
|
49
|
+
function _interopRequireDefault(obj) {
|
|
50
|
+
return obj && obj.__esModule ? obj : {
|
|
51
|
+
"default": obj
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
var prefixCls = 'tnt-preview-text';
|
|
@@ -151,13 +151,13 @@ var TreeSelect = function TreeSelect(_ref3) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
var
|
|
154
|
+
var findLabel = function findLabel(value, dataSource) {
|
|
155
155
|
for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
|
|
156
156
|
var item = dataSource[i];
|
|
157
157
|
if ((item === null || item === void 0 ? void 0 : item.value) === value || (item === null || item === void 0 ? void 0 : item.key) === value) {
|
|
158
158
|
return item === null || item === void 0 ? void 0 : item.title;
|
|
159
159
|
} else {
|
|
160
|
-
var childLabel =
|
|
160
|
+
var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
|
|
161
161
|
if (childLabel) return childLabel;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -170,7 +170,7 @@ var TreeSelect = function TreeSelect(_ref3) {
|
|
|
170
170
|
label = _ref4.label;
|
|
171
171
|
return _react["default"].createElement(_react["default"].Fragment, null, multiple ? _react["default"].createElement(_tag["default"], {
|
|
172
172
|
key: key
|
|
173
|
-
},
|
|
173
|
+
}, findLabel(value, dataSource) || label || placeholder) : findLabel(value, dataSource) || label || placeholder);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
return _react["default"].createElement("div", {
|
|
@@ -188,13 +188,13 @@ var Cascader = function Cascader(_ref5) {
|
|
|
188
188
|
var getSelected = function getSelected() {
|
|
189
189
|
return (0, _isArray2["default"])(value) ? value : [];
|
|
190
190
|
};
|
|
191
|
-
var
|
|
191
|
+
var findLabel = function findLabel(value, dataSource) {
|
|
192
192
|
for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
|
|
193
193
|
var item = dataSource[i];
|
|
194
194
|
if ((item === null || item === void 0 ? void 0 : item.value) === value) {
|
|
195
195
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
196
196
|
} else {
|
|
197
|
-
var childLabel =
|
|
197
|
+
var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
|
|
198
198
|
if (childLabel) return childLabel;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -205,7 +205,7 @@ var Cascader = function Cascader(_ref5) {
|
|
|
205
205
|
return placeholder;
|
|
206
206
|
}
|
|
207
207
|
return selected.map(function (value) {
|
|
208
|
-
return
|
|
208
|
+
return findLabel(value, dataSource) || placeholder;
|
|
209
209
|
}).join('/');
|
|
210
210
|
};
|
|
211
211
|
return _react["default"].createElement("div", {
|
package/lib/progress/progress.js
CHANGED
|
@@ -24,9 +24,9 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function _interopRequireDefault(
|
|
28
|
-
return
|
|
29
|
-
"default":
|
|
27
|
+
function _interopRequireDefault(obj) {
|
|
28
|
+
return obj && obj.__esModule ? obj : {
|
|
29
|
+
"default": obj
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function _typeof(o) {
|
|
@@ -38,13 +38,19 @@ function _typeof(o) {
|
|
|
38
38
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
39
39
|
}, _typeof(o);
|
|
40
40
|
}
|
|
41
|
-
function _defineProperty(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
function _defineProperty(obj, key, value) {
|
|
42
|
+
key = _toPropertyKey(key);
|
|
43
|
+
if (key in obj) {
|
|
44
|
+
Object.defineProperty(obj, key, {
|
|
45
|
+
value: value,
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
obj[key] = value;
|
|
52
|
+
}
|
|
53
|
+
return obj;
|
|
48
54
|
}
|
|
49
55
|
function _toPropertyKey(t) {
|
|
50
56
|
var i = _toPrimitive(t, "string");
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _checkbox = _interopRequireDefault(require("../../checkbox"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
return
|
|
11
|
-
"default":
|
|
9
|
+
function _interopRequireDefault(obj) {
|
|
10
|
+
return obj && obj.__esModule ? obj : {
|
|
11
|
+
"default": obj
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
@@ -51,18 +51,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
51
51
|
}
|
|
52
52
|
return n["default"] = e, t && t.set(e, n), n;
|
|
53
53
|
}
|
|
54
|
-
function _interopRequireDefault(
|
|
55
|
-
return
|
|
56
|
-
"default":
|
|
54
|
+
function _interopRequireDefault(obj) {
|
|
55
|
+
return obj && obj.__esModule ? obj : {
|
|
56
|
+
"default": obj
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function _defineProperty(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
function _defineProperty(obj, key, value) {
|
|
60
|
+
key = _toPropertyKey(key);
|
|
61
|
+
if (key in obj) {
|
|
62
|
+
Object.defineProperty(obj, key, {
|
|
63
|
+
value: value,
|
|
64
|
+
enumerable: true,
|
|
65
|
+
configurable: true,
|
|
66
|
+
writable: true
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
obj[key] = value;
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
66
72
|
}
|
|
67
73
|
function _toPropertyKey(t) {
|
|
68
74
|
var i = _toPrimitive(t, "string");
|
|
@@ -78,23 +84,24 @@ function _toPrimitive(t, r) {
|
|
|
78
84
|
}
|
|
79
85
|
return ("string" === r ? String : Number)(t);
|
|
80
86
|
}
|
|
81
|
-
function _slicedToArray(
|
|
82
|
-
return _arrayWithHoles(
|
|
87
|
+
function _slicedToArray(arr, i) {
|
|
88
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
83
89
|
}
|
|
84
90
|
function _nonIterableRest() {
|
|
85
91
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
86
92
|
}
|
|
87
|
-
function _unsupportedIterableToArray(
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
94
|
+
if (!o) return;
|
|
95
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
96
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
97
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
98
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
99
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
93
100
|
}
|
|
94
|
-
function _arrayLikeToArray(
|
|
95
|
-
(
|
|
96
|
-
for (var
|
|
97
|
-
return
|
|
101
|
+
function _arrayLikeToArray(arr, len) {
|
|
102
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
103
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
104
|
+
return arr2;
|
|
98
105
|
}
|
|
99
106
|
function _iterableToArrayLimit(r, l) {
|
|
100
107
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -123,8 +130,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
123
130
|
return a;
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
|
-
function _arrayWithHoles(
|
|
127
|
-
if (Array.isArray(
|
|
133
|
+
function _arrayWithHoles(arr) {
|
|
134
|
+
if (Array.isArray(arr)) return arr;
|
|
128
135
|
}
|
|
129
136
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
130
137
|
var t = {};
|