tdesign-react 0.29.0 → 0.30.1
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/CHANGELOG.md +39 -0
- package/dist/tdesign.css +39 -35
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +444 -250
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +4 -4
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-44699371.js → dep-0231bfed.js} +8 -8
- package/es/_chunks/{dep-44699371.js.map → dep-0231bfed.js.map} +1 -1
- package/{esm/_chunks/dep-fcc1470c.js → es/_chunks/dep-044e7ba4.js} +5 -5
- package/es/_chunks/{dep-fcc1470c.js.map → dep-044e7ba4.js.map} +1 -1
- package/es/_chunks/{dep-45b037f6.js → dep-052aa729.js} +6 -6
- package/es/_chunks/{dep-45b037f6.js.map → dep-052aa729.js.map} +1 -1
- package/es/_chunks/{dep-0c155fb8.js → dep-05675fca.js} +2 -2
- package/es/_chunks/{dep-0c155fb8.js.map → dep-05675fca.js.map} +1 -1
- package/{esm/_chunks/dep-72183a2a.js → es/_chunks/dep-12bf80c6.js} +4 -4
- package/es/_chunks/{dep-72183a2a.js.map → dep-12bf80c6.js.map} +1 -1
- package/{esm/_chunks/dep-84a2760d.js → es/_chunks/dep-13f10fc0.js} +4 -4
- package/es/_chunks/{dep-84a2760d.js.map → dep-13f10fc0.js.map} +1 -1
- package/{esm/_chunks/dep-b0608f92.js → es/_chunks/dep-1476f4eb.js} +4 -4
- package/es/_chunks/{dep-b0608f92.js.map → dep-1476f4eb.js.map} +1 -1
- package/es/_chunks/{dep-1f39069a.js → dep-14afb875.js} +3 -3
- package/es/_chunks/{dep-1f39069a.js.map → dep-14afb875.js.map} +1 -1
- package/{esm/_chunks/dep-87d24f9c.js → es/_chunks/dep-17ee2601.js} +3 -3
- package/es/_chunks/{dep-87d24f9c.js.map → dep-17ee2601.js.map} +1 -1
- package/{esm/_chunks/dep-8fda4184.js → es/_chunks/dep-21668e5d.js} +4 -4
- package/es/_chunks/{dep-8fda4184.js.map → dep-21668e5d.js.map} +1 -1
- package/es/_chunks/{dep-b19149c6.js → dep-23a54e60.js} +9 -9
- package/{esm/_chunks/dep-b19149c6.js.map → es/_chunks/dep-23a54e60.js.map} +1 -1
- package/{esm/_chunks/dep-57f08aea.js → es/_chunks/dep-264afed8.js} +8 -8
- package/es/_chunks/{dep-57f08aea.js.map → dep-264afed8.js.map} +1 -1
- package/{esm/_chunks/dep-a6f7ee47.js → es/_chunks/dep-2bb2cfe2.js} +7 -7
- package/es/_chunks/{dep-a6f7ee47.js.map → dep-2bb2cfe2.js.map} +1 -1
- package/{esm/_chunks/dep-28ef7e25.js → es/_chunks/dep-2c963e61.js} +3 -3
- package/es/_chunks/{dep-28ef7e25.js.map → dep-2c963e61.js.map} +1 -1
- package/{esm/_chunks/dep-8a3956e4.js → es/_chunks/dep-2e234cb5.js} +8 -8
- package/{esm/_chunks/dep-8a3956e4.js.map → es/_chunks/dep-2e234cb5.js.map} +1 -1
- package/es/_chunks/{dep-35137444.js → dep-30b3395d.js} +3 -3
- package/es/_chunks/{dep-35137444.js.map → dep-30b3395d.js.map} +1 -1
- package/{esm/_chunks/dep-39f5cacb.js → es/_chunks/dep-310cb9e0.js} +5 -5
- package/{esm/_chunks/dep-39f5cacb.js.map → es/_chunks/dep-310cb9e0.js.map} +1 -1
- package/es/_chunks/{dep-8b4d9db6.js → dep-3a79d005.js} +16 -16
- package/es/_chunks/{dep-8b4d9db6.js.map → dep-3a79d005.js.map} +1 -1
- package/es/_chunks/{dep-31688470.js → dep-3d488df5.js} +8 -8
- package/es/_chunks/{dep-31688470.js.map → dep-3d488df5.js.map} +1 -1
- package/{esm/_chunks/dep-b69008d0.js → es/_chunks/dep-56f67cd6.js} +5 -5
- package/{esm/_chunks/dep-b69008d0.js.map → es/_chunks/dep-56f67cd6.js.map} +1 -1
- package/{esm/_chunks/dep-301990d4.js → es/_chunks/dep-582fcce4.js} +3 -3
- package/es/_chunks/{dep-301990d4.js.map → dep-582fcce4.js.map} +1 -1
- package/{esm/_chunks/dep-9dc44d0a.js → es/_chunks/dep-59e9e1ce.js} +8 -8
- package/es/_chunks/{dep-9dc44d0a.js.map → dep-59e9e1ce.js.map} +1 -1
- package/es/_chunks/{dep-eb0f021a.js → dep-6991a40e.js} +13 -13
- package/es/_chunks/{dep-eb0f021a.js.map → dep-6991a40e.js.map} +1 -1
- package/{esm/_chunks/dep-78f321a0.js → es/_chunks/dep-740be687.js} +2 -2
- package/es/_chunks/{dep-78f321a0.js.map → dep-740be687.js.map} +1 -1
- package/{esm/_chunks/dep-6f8cc12c.js → es/_chunks/dep-742cbdc1.js} +3 -3
- package/es/_chunks/{dep-6f8cc12c.js.map → dep-742cbdc1.js.map} +1 -1
- package/es/_chunks/{dep-edee984e.js → dep-75434d03.js} +3 -3
- package/es/_chunks/{dep-edee984e.js.map → dep-75434d03.js.map} +1 -1
- package/es/_chunks/{dep-b2f93b29.js → dep-7dd1e502.js} +5 -5
- package/{esm/_chunks/dep-b2f93b29.js.map → es/_chunks/dep-7dd1e502.js.map} +1 -1
- package/es/_chunks/{dep-828497b4.js → dep-855ef9aa.js} +6 -6
- package/es/_chunks/{dep-828497b4.js.map → dep-855ef9aa.js.map} +1 -1
- package/es/_chunks/{dep-e9dbe655.js → dep-8cf5f372.js} +4 -4
- package/{esm/_chunks/dep-e9dbe655.js.map → es/_chunks/dep-8cf5f372.js.map} +1 -1
- package/{esm/_chunks/dep-cec87786.js → es/_chunks/dep-949d4b4d.js} +2 -2
- package/es/_chunks/{dep-cec87786.js.map → dep-949d4b4d.js.map} +1 -1
- package/{esm/_chunks/dep-ea3fc641.js → es/_chunks/dep-9569073a.js} +5 -5
- package/{esm/_chunks/dep-ea3fc641.js.map → es/_chunks/dep-9569073a.js.map} +1 -1
- package/es/_chunks/{dep-8aa2c906.js → dep-96d4434c.js} +5 -5
- package/es/_chunks/{dep-8aa2c906.js.map → dep-96d4434c.js.map} +1 -1
- package/es/_chunks/{dep-65b010db.js → dep-9ac32bc6.js} +6 -6
- package/es/_chunks/{dep-65b010db.js.map → dep-9ac32bc6.js.map} +1 -1
- package/es/_chunks/{dep-c7ea01f9.js → dep-b6aa25c5.js} +7 -7
- package/es/_chunks/{dep-c7ea01f9.js.map → dep-b6aa25c5.js.map} +1 -1
- package/es/_chunks/{dep-ea5f44a6.js → dep-b7b037c2.js} +4 -4
- package/es/_chunks/{dep-ea5f44a6.js.map → dep-b7b037c2.js.map} +1 -1
- package/es/_chunks/{dep-038c9246.js → dep-baf0f22b.js} +7 -7
- package/es/_chunks/{dep-038c9246.js.map → dep-baf0f22b.js.map} +1 -1
- package/es/_chunks/{dep-9bbad855.js → dep-bc10c986.js} +11 -11
- package/{esm/_chunks/dep-9bbad855.js.map → es/_chunks/dep-bc10c986.js.map} +1 -1
- package/{esm/_chunks/dep-39d90b75.js → es/_chunks/dep-bf14ea9c.js} +4 -4
- package/es/_chunks/{dep-39d90b75.js.map → dep-bf14ea9c.js.map} +1 -1
- package/es/_chunks/{dep-a4eea765.js → dep-c62cc7ba.js} +7 -7
- package/es/_chunks/{dep-a4eea765.js.map → dep-c62cc7ba.js.map} +1 -1
- package/es/_chunks/{dep-84980c30.js → dep-c98cf62b.js} +9 -9
- package/es/_chunks/{dep-84980c30.js.map → dep-c98cf62b.js.map} +1 -1
- package/es/_chunks/{dep-84011bbc.js → dep-cbdae73c.js} +4 -4
- package/es/_chunks/{dep-84011bbc.js.map → dep-cbdae73c.js.map} +1 -1
- package/{esm/_chunks/dep-ecabbfa7.js → es/_chunks/dep-d1bf6304.js} +9 -9
- package/{esm/_chunks/dep-ecabbfa7.js.map → es/_chunks/dep-d1bf6304.js.map} +1 -1
- package/es/_chunks/{dep-b6b2aed8.js → dep-d2c29c4b.js} +4 -4
- package/{esm/_chunks/dep-b6b2aed8.js.map → es/_chunks/dep-d2c29c4b.js.map} +1 -1
- package/es/_chunks/{dep-eec95819.js → dep-d383b717.js} +4 -4
- package/es/_chunks/{dep-eec95819.js.map → dep-d383b717.js.map} +1 -1
- package/es/_chunks/{dep-70311a4c.js → dep-d712120d.js} +5 -5
- package/es/_chunks/{dep-70311a4c.js.map → dep-d712120d.js.map} +1 -1
- package/es/_chunks/dep-dc826c4a.js +8 -0
- package/es/_chunks/dep-dc826c4a.js.map +1 -0
- package/es/_chunks/{dep-f04b41c5.js → dep-dedd4d45.js} +6 -6
- package/{esm/_chunks/dep-f04b41c5.js.map → es/_chunks/dep-dedd4d45.js.map} +1 -1
- package/{esm/_chunks/dep-4c657685.js → es/_chunks/dep-e056f70c.js} +5 -5
- package/es/_chunks/{dep-4c657685.js.map → dep-e056f70c.js.map} +1 -1
- package/es/_chunks/{dep-db764550.js → dep-f192174b.js} +6 -6
- package/es/_chunks/{dep-db764550.js.map → dep-f192174b.js.map} +1 -1
- package/es/_chunks/{dep-9ab77a39.js → dep-f467063a.js} +2 -2
- package/es/_chunks/dep-f467063a.js.map +1 -0
- package/{esm/_chunks/dep-7103a109.js → es/_chunks/dep-f74c7fc8.js} +16 -16
- package/es/_chunks/{dep-7103a109.js.map → dep-f74c7fc8.js.map} +1 -1
- package/{esm/_chunks/dep-e99579d9.js → es/_chunks/dep-fcc167d3.js} +4 -4
- package/{esm/_chunks/dep-e99579d9.js.map → es/_chunks/dep-fcc167d3.js.map} +1 -1
- package/{esm/_chunks/dep-c7ef814a.js → es/_chunks/dep-fcd92a0a.js} +2 -2
- package/es/_chunks/{dep-c7ef814a.js.map → dep-fcd92a0a.js.map} +1 -1
- package/es/_chunks/{dep-0728d572.js → dep-fe6c95d7.js} +7 -7
- package/{esm/_chunks/dep-0728d572.js.map → es/_chunks/dep-fe6c95d7.js.map} +1 -1
- package/{esm/_chunks/dep-6b2ffd1d.js → es/_chunks/dep-fefe2718.js} +7 -7
- package/{esm/_chunks/dep-6b2ffd1d.js.map → es/_chunks/dep-fefe2718.js.map} +1 -1
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/date-picker/utils.js +15 -15
- package/es/_common/js/global-config/default-config.js +5 -3
- package/es/_common/js/global-config/default-config.js.map +1 -1
- package/es/_common/js/global-config/locale/en_US.d.ts +5 -0
- package/es/_common/js/global-config/locale/en_US.js +19 -14
- package/es/_common/js/global-config/locale/en_US.js.map +1 -1
- package/es/_common/js/global-config/locale/zh_CN.d.ts +6 -0
- package/es/_common/js/global-config/locale/zh_CN.js +20 -14
- package/es/_common/js/global-config/locale/zh_CN.js.map +1 -1
- package/es/_common/js/loading/circle-adapter.js +5 -5
- package/es/_common/js/log/index.js +1 -1
- package/es/_common/js/log/log.js +1 -1
- package/es/_common/js/log/types.js +1 -1
- package/es/_common/js/tabs/base.d.ts +55 -0
- package/es/_common/js/tabs/base.js +148 -0
- package/es/_common/js/tabs/base.js.map +1 -0
- package/es/_common/js/tree/tree-node-model.js +22 -22
- package/es/_common/js/tree/tree-node.js +27 -27
- package/es/_common/js/tree/tree-store.js +35 -35
- package/es/_common/js/tree/types.js +1 -1
- package/es/_common/js/upload/types.js +1 -1
- package/es/_common/js/upload/xhr.js +3 -3
- package/es/_common/js/upload/xhr.js.map +1 -1
- package/es/_common/js/utils/calcTextareaHeight.js +5 -5
- package/es/_common/js/utils/getScrollbarWidth.js +20 -0
- package/es/_common/js/utils/getScrollbarWidth.js.map +1 -0
- package/es/_common/js/utils/helper.js +5 -5
- package/es/_common/js/utils/set-style.js +1 -1
- package/es/_util/callBoth.js +1 -1
- package/es/_util/composeRefs.js +1 -1
- package/es/_util/dom.js +8 -8
- package/es/_util/easing.js +1 -1
- package/es/_util/forwardRefWithStatics.js +1 -1
- package/es/_util/getScrollbarWidth.js +1 -1
- package/es/_util/hasScrollBar.js +1 -1
- package/es/_util/helper.js +16 -16
- package/es/_util/injectValue.js +1 -1
- package/es/_util/insertCSS.js +1 -1
- package/es/_util/isCallable.js +1 -1
- package/es/_util/linearGradient.js +2 -2
- package/es/_util/noop.js +1 -1
- package/es/_util/number.js +1 -1
- package/es/_util/renderTNode.js +1 -1
- package/es/_util/setStyle.js +1 -1
- package/es/_util/useAnimation.js +21 -21
- package/es/_util/useClickOutside.js +1 -1
- package/es/_util/useCommonClassName.js +21 -21
- package/es/_util/useConfig.js +21 -21
- package/es/_util/useDefault.js +3 -3
- package/es/_util/useDefaultValue.js +5 -5
- package/es/_util/useDialogEsc.js +3 -3
- package/es/_util/useDragSorter.js +3 -3
- package/es/_util/useLayoutEffect.js +8 -8
- package/es/_util/useMutationObserver.js +9 -9
- package/es/_util/usePersistFn.js +1 -1
- package/es/_util/usePrevious.js +1 -1
- package/es/_util/useRefAndForward.js +1 -1
- package/es/_util/useRipple.js +22 -22
- package/es/_util/useSetState.js +4 -4
- package/es/_util/useSwitch.js +3 -3
- package/es/_util/useUpdateEffect.js +8 -8
- package/es/_util/useWindowSize.js +11 -11
- package/es/addon/Addon.js +22 -22
- package/es/addon/index.js +22 -22
- package/es/affix/Affix.js +24 -24
- package/es/affix/index.js +24 -24
- package/es/affix/style/index.js +1 -1
- package/es/affix/type.js +1 -1
- package/es/alert/Alert.js +24 -24
- package/es/alert/index.js +24 -24
- package/es/alert/style/index.js +1 -1
- package/es/alert/type.js +1 -1
- package/es/anchor/Anchor.js +30 -30
- package/es/anchor/AnchorContext.js +1 -1
- package/es/anchor/AnchorItem.js +22 -22
- package/es/anchor/AnchorTarget.js +28 -28
- package/es/anchor/_util/clipboard.js +1 -1
- package/es/anchor/_util/dom.js +1 -1
- package/es/anchor/index.js +30 -30
- package/es/anchor/style/index.js +1 -1
- package/es/anchor/type.js +1 -1
- package/es/avatar/AvararGroup.js +29 -29
- package/es/avatar/Avatar.js +29 -29
- package/es/avatar/AvatarContext.js +1 -1
- package/es/avatar/index.js +29 -29
- package/es/avatar/style/index.js +1 -1
- package/es/avatar/type.js +1 -1
- package/es/badge/Badge.js +22 -22
- package/es/badge/index.js +22 -22
- package/es/badge/style/index.js +1 -1
- package/es/badge/type.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +22 -22
- package/es/breadcrumb/BreadcrumbContext.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +22 -22
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +22 -22
- package/es/breadcrumb/style/index.js +1 -1
- package/es/breadcrumb/type.js +1 -1
- package/es/button/Button.js +25 -25
- package/es/button/index.js +25 -25
- package/es/button/style/index.js +1 -1
- package/es/button/type.js +1 -1
- package/es/calendar/Calendar.js +42 -42
- package/es/calendar/_util.js +1 -1
- package/es/calendar/index.js +42 -42
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/type.js +1 -1
- package/es/card/type.js +1 -1
- package/es/cascader/Cascader.js +48 -48
- package/es/cascader/components/InputContent.js +34 -31
- package/es/cascader/components/InputContent.js.map +1 -1
- package/es/cascader/components/Item.js +36 -36
- package/es/cascader/components/Item.js.map +1 -1
- package/es/cascader/components/Panel.js +35 -35
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +48 -48
- package/es/cascader/interface.js +27 -27
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/type.js +1 -1
- package/es/cascader/utils/cascader.js +4 -4
- package/es/cascader/utils/helper.js +2 -2
- package/es/cascader/utils/inputContent.js +17 -17
- package/es/cascader/utils/item.js +5 -5
- package/es/cascader/utils/item.js.map +1 -1
- package/es/cascader/utils/panel.js +9 -9
- package/es/cascader/utils/panel.js.map +1 -1
- package/es/checkbox/Checkbox.js +31 -31
- package/es/checkbox/CheckboxGroup.js +31 -31
- package/es/checkbox/index.js +31 -31
- package/es/checkbox/style/index.js +1 -1
- package/es/checkbox/type.js +1 -1
- package/es/comment/Comment.js +21 -21
- package/es/comment/index.js +21 -21
- package/es/comment/style/index.js +1 -1
- package/es/comment/type.js +1 -1
- package/es/common/Check.js +29 -29
- package/es/common/FakeArrow.js +21 -21
- package/es/common/Portal.js +22 -22
- package/es/common.js +1 -1
- package/es/config-provider/ConfigContext.d.ts +18 -0
- package/es/config-provider/ConfigContext.js +21 -21
- package/es/config-provider/ConfigProvider.d.ts +6 -0
- package/es/config-provider/ConfigProvider.js +21 -21
- package/es/config-provider/en_US_config.js +1 -1
- package/es/config-provider/index.js +21 -21
- package/es/config-provider/type.js +1 -1
- package/es/config-provider/zh_CN_config.js +1 -1
- package/es/date-picker/DatePicker.js +35 -35
- package/es/date-picker/base/CalendarPresets.js +25 -25
- package/es/date-picker/base/Cell.js +21 -21
- package/es/date-picker/base/Header.js +25 -25
- package/es/date-picker/base/Table.js +23 -23
- package/es/date-picker/base/style/index.js +1 -1
- package/es/date-picker/index.js +35 -35
- package/es/date-picker/panel/Date.js +29 -29
- package/es/date-picker/panel/DateRange.js +29 -29
- package/es/date-picker/panel/style/index.js +1 -1
- package/es/date-picker/style/index.css +15 -15
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +26 -26
- package/es/dialog/RenderDialog.js +24 -24
- package/es/dialog/index.js +26 -26
- package/es/dialog/plugin.js +26 -26
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/type.js +1 -1
- package/es/divider/Divider.js +22 -22
- package/es/divider/index.js +22 -22
- package/es/divider/style/index.js +1 -1
- package/es/divider/type.js +1 -1
- package/es/drawer/Drawer.js +25 -25
- package/es/drawer/DrawerWrapper.js +22 -22
- package/es/drawer/index.js +25 -25
- package/es/drawer/style/index.js +1 -1
- package/es/drawer/type.js +1 -1
- package/es/dropdown/Dropdown.js +40 -40
- package/es/dropdown/DropdownItem.js +30 -30
- package/es/dropdown/DropdownMenu.js +31 -31
- package/es/dropdown/index.js +40 -40
- package/es/dropdown/style/index.js +1 -1
- package/es/dropdown/type.js +1 -1
- package/es/form/Form.js +46 -46
- package/es/form/FormContext.js +1 -1
- package/es/form/FormItem.js +48 -47
- package/es/form/FormItem.js.map +1 -1
- package/es/form/formModel.js +27 -27
- package/es/form/hooks/useInstance.js +27 -27
- package/es/form/index.js +46 -46
- package/es/form/style/index.js +1 -1
- package/es/form/type.js +1 -1
- package/es/grid/Col.js +22 -22
- package/es/grid/Row.js +25 -25
- package/es/grid/index.js +25 -25
- package/es/grid/style/index.js +1 -1
- package/es/grid/type.js +1 -1
- package/es/index.js +58 -57
- package/es/index.js.map +1 -1
- package/es/input/Input.js +39 -30
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.js +22 -22
- package/es/input/index.js +32 -29
- package/es/input/index.js.map +1 -1
- package/es/input/style/index.css +0 -8
- package/es/input/style/index.js +1 -1
- package/es/input/type.js +1 -1
- package/es/input-number/InputNumber.js +38 -30
- package/es/input-number/InputNumber.js.map +1 -1
- package/es/input-number/StepHandler.js +25 -25
- package/es/input-number/index.js +33 -30
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/index.css +5 -1
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/type.js +1 -1
- package/es/input-number/utils/numberUtils.js +1 -1
- package/es/input-number/utils/numberUtils.js.map +1 -1
- package/es/layout/Aside.js +22 -22
- package/es/layout/Layout.js +24 -24
- package/es/layout/index.js +24 -24
- package/es/layout/style/index.js +1 -1
- package/es/layout/type.js +1 -1
- package/es/list/List.js +25 -25
- package/es/list/ListItem.js +21 -21
- package/es/list/ListItemMeta.js +21 -21
- package/es/list/index.js +25 -25
- package/es/list/style/index.js +1 -1
- package/es/list/type.js +1 -1
- package/es/loading/gradient.js +24 -24
- package/es/loading/index.js +25 -25
- package/es/loading/loading.js +29 -29
- package/es/loading/loading.js.map +1 -1
- package/es/loading/plugin.js +25 -25
- package/es/loading/style/index.css +5 -1
- package/es/loading/style/index.js +1 -1
- package/es/loading/type.js +1 -1
- package/es/locale/LocalReceiver.d.ts +6 -0
- package/es/locale/LocalReceiver.js +21 -21
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/menu/HeadMenu.js +29 -25
- package/es/menu/HeadMenu.js.map +1 -1
- package/es/menu/Menu.js +29 -25
- package/es/menu/Menu.js.map +1 -1
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.js +21 -21
- package/es/menu/MenuItem.js +22 -22
- package/es/menu/SubMenu.js +24 -24
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.js +1 -1
- package/es/menu/_util/checkSubMenuActive.js +1 -1
- package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/es/menu/_util/constant.js +1 -1
- package/es/menu/_util/getSubMenuChildStyle.js +1 -1
- package/es/menu/_util/type.js +1 -1
- package/es/menu/hooks/useMenuContext.js +6 -6
- package/es/menu/index.js +29 -25
- package/es/menu/index.js.map +1 -1
- package/es/menu/style/index.js +1 -1
- package/es/menu/type.js +1 -1
- package/es/message/Message.js +25 -25
- package/es/message/MessageClose.js +21 -21
- package/es/message/MessageComponent.js +25 -25
- package/es/message/MessageIcon.js +25 -25
- package/es/message/const.js +1 -1
- package/es/message/index.js +25 -25
- package/es/message/style/index.js +1 -1
- package/es/message/type.js +1 -1
- package/es/message/useMessageClass.js +21 -21
- package/es/notification/Notification.js +25 -25
- package/es/notification/NotificationList.js +25 -25
- package/es/notification/NotificationPlugin.js +25 -25
- package/es/notification/index.js +25 -25
- package/es/notification/style/index.js +1 -1
- package/es/notification/type.js +1 -1
- package/es/pagination/Pagination.js +46 -44
- package/es/pagination/Pagination.js.map +1 -1
- package/es/pagination/index.js +41 -41
- package/es/pagination/style/index.js +1 -1
- package/es/pagination/type.js +1 -1
- package/es/pagination/validators.js +1 -1
- package/es/popconfirm/PopConfirm.js +34 -30
- package/es/popconfirm/PopConfirm.js.map +1 -1
- package/es/popconfirm/PopContent.js +28 -26
- package/es/popconfirm/PopContent.js.map +1 -1
- package/es/popconfirm/index.js +32 -28
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/style/index.js +1 -1
- package/es/popconfirm/type.js +1 -1
- package/es/popup/Popup.js +27 -27
- package/es/popup/hooks/useTriggerProps.js +1 -1
- package/es/popup/index.js +27 -27
- package/es/popup/style/index.js +1 -1
- package/es/popup/type.js +1 -1
- package/es/popup/utils/getTransitionParams.js +1 -1
- package/es/progress/Progress.js +22 -22
- package/es/progress/index.js +22 -22
- package/es/progress/style/index.js +1 -1
- package/es/progress/type.js +1 -1
- package/es/radio/Radio.js +32 -32
- package/es/radio/RadioGroup.js +32 -32
- package/es/radio/index.js +32 -32
- package/es/radio/style/index.js +1 -1
- package/es/radio/type.js +1 -1
- package/es/rate/type.js +1 -1
- package/es/select/base/Option.js +27 -27
- package/es/select/base/OptionGroup.js +21 -21
- package/es/select/base/PopupContent.js +31 -31
- package/es/select/base/Select.js +42 -41
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +41 -41
- package/es/select/style/index.js +1 -1
- package/es/select/type.js +1 -1
- package/es/select/util/helper.js +29 -29
- package/es/select-input/SelectInput.js +42 -39
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/index.js +42 -39
- package/es/select-input/index.js.map +1 -1
- package/es/select-input/style/index.js +1 -1
- package/es/select-input/type.js +1 -1
- package/es/select-input/useMultiple.js +34 -31
- package/es/select-input/useMultiple.js.map +1 -1
- package/es/select-input/useOverlayStyle.js +11 -12
- package/es/select-input/useOverlayStyle.js.map +1 -1
- package/es/select-input/useSingle.js +40 -37
- package/es/select-input/useSingle.js.map +1 -1
- package/es/skeleton/Skeleton.js +31 -31
- package/es/skeleton/index.js +31 -31
- package/es/skeleton/style/index.js +1 -1
- package/es/skeleton/type.js +1 -1
- package/es/slider/Slider.js +35 -32
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.js +28 -28
- package/es/slider/index.js +35 -32
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/index.js +1 -1
- package/es/slider/type.js +1 -1
- package/es/slider/utils/handleNumber.js +1 -1
- package/es/steps/StepItem.js +21 -21
- package/es/steps/Steps.js +21 -21
- package/es/steps/StepsContext.js +1 -1
- package/es/steps/index.js +21 -21
- package/es/steps/style/index.js +1 -1
- package/es/steps/type.js +1 -1
- package/es/sticky-tool/type.js +1 -1
- package/es/style/index.js +1 -1
- package/es/swiper/Swiper.js +23 -23
- package/es/swiper/SwiperItem.js +21 -21
- package/es/swiper/index.js +23 -23
- package/es/swiper/style/index.js +1 -1
- package/es/swiper/type.js +1 -1
- package/es/switch/Switch.js +25 -25
- package/es/switch/index.js +25 -25
- package/es/switch/style/index.js +1 -1
- package/es/switch/type.js +1 -1
- package/es/table/base/Table.js +41 -41
- package/es/table/base/TableAsyncLoadingBody.js +25 -25
- package/es/table/base/TableBody.js +31 -31
- package/es/table/base/TableCell.js +27 -27
- package/es/table/base/TableColGroup.js +1 -1
- package/es/table/base/TableContext.js +1 -1
- package/es/table/base/TableEmptyBody.js +23 -23
- package/es/table/base/TableFooter.js +1 -1
- package/es/table/base/TableHeader.js +29 -29
- package/es/table/base/TableLoadingBody.js +6 -6
- package/es/table/base/TableRow.js +31 -31
- package/es/table/base/style/index.js +1 -1
- package/es/table/enhanced/Table.js +43 -43
- package/es/table/enhanced/TableContext.js +1 -1
- package/es/table/enhanced/style/index.js +1 -1
- package/es/table/enhanced/useTree.js +28 -28
- package/es/table/hooks/useColumns.js +4 -4
- package/es/table/index.js +43 -43
- package/es/table/primary/SorterButton.js +28 -28
- package/es/table/primary/Table.js +43 -43
- package/es/table/primary/expand-box.js +21 -21
- package/es/table/primary/style/index.js +1 -1
- package/es/table/primary/useChange.js +2 -2
- package/es/table/primary/useExpand.js +28 -28
- package/es/table/primary/useFilter.js +36 -36
- package/es/table/primary/useFilterButton.js +36 -36
- package/es/table/primary/useSelect.js +35 -35
- package/es/table/primary/useSorter.js +32 -32
- package/es/table/style/index.js +1 -1
- package/es/table/type.js +1 -1
- package/es/table/util/getRowKeyFromRowKey.js +1 -1
- package/es/table/util/index.js +1 -1
- package/es/tabs/TabBar.js +23 -23
- package/es/tabs/TabNav.js +146 -117
- package/es/tabs/TabNav.js.map +1 -1
- package/es/tabs/TabNavItem.d.ts +1 -0
- package/es/tabs/TabNavItem.js +25 -23
- package/es/tabs/TabNavItem.js.map +1 -1
- package/es/tabs/TabPanel.js +21 -21
- package/es/tabs/Tabs.js +38 -29
- package/es/tabs/Tabs.js.map +1 -1
- package/es/tabs/index.js +28 -24
- package/es/tabs/index.js.map +1 -1
- package/es/tabs/style/index.css +1 -1
- package/es/tabs/style/index.js +1 -1
- package/es/tabs/type.js +1 -1
- package/es/tabs/useTabClass.js +21 -21
- package/es/tag/CheckTag.js +24 -24
- package/es/tag/Tag.js +24 -24
- package/es/tag/index.js +24 -24
- package/es/tag/style/index.js +1 -1
- package/es/tag/type.js +1 -1
- package/es/tag-input/TagInput.js +33 -30
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/index.js +33 -30
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/style/index.css +4 -0
- package/es/tag-input/style/index.js +1 -1
- package/es/tag-input/type.js +1 -1
- package/es/tag-input/useHover.js +3 -3
- package/es/tag-input/useTagList.js +25 -25
- package/es/tag-input/useTagScroll.js +3 -3
- package/es/textarea/Textarea.js +38 -36
- package/es/textarea/Textarea.js.map +1 -1
- package/es/textarea/index.js +29 -29
- package/es/textarea/style/index.js +1 -1
- package/es/textarea/type.js +1 -1
- package/es/time-picker/InputItems.js +32 -32
- package/es/time-picker/TimePicker.js +39 -39
- package/es/time-picker/TimeRangePicker.js +39 -39
- package/es/time-picker/consts.js +23 -23
- package/es/time-picker/index.js +39 -39
- package/es/time-picker/interfaces.js +1 -1
- package/es/time-picker/panel/SinglePanel.js +32 -32
- package/es/time-picker/panel/TimePickerPanel.js +34 -34
- package/es/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/es/time-picker/panel/style/index.js +1 -1
- package/es/time-picker/style/index.js +1 -1
- package/es/time-picker/type.js +1 -1
- package/es/tooltip/Tooltip.js +28 -28
- package/es/tooltip/index.js +28 -28
- package/es/tooltip/style/index.css +9 -9
- package/es/tooltip/style/index.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +48 -48
- package/es/transfer/TransferList.js +46 -46
- package/es/transfer/index.js +49 -49
- package/es/transfer/style/index.js +1 -1
- package/es/transfer/type.js +1 -1
- package/es/transfer/utils.js +18 -18
- package/es/tree/Tree.js +47 -47
- package/es/tree/TreeItem.js +32 -32
- package/es/tree/index.js +47 -47
- package/es/tree/interface.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree/type.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +41 -41
- package/es/tree/useTreeConfig.js +23 -23
- package/es/tree-select/SelectArrow.js +21 -21
- package/es/tree-select/TreeSelect.js +49 -49
- package/es/tree-select/index.js +49 -49
- package/es/tree-select/style/index.js +1 -1
- package/es/tree-select/type.js +1 -1
- package/es/tree-select/useTreeSelectLocale.js +23 -23
- package/es/tree-select/useTreeSelectPassthoughProps.js +21 -21
- package/es/tree-select/useTreeSelectUtils.js +35 -35
- package/es/upload/boolean-render.js +1 -1
- package/es/upload/dragger.js +25 -25
- package/es/upload/hooks/useDefaultValue.js +7 -7
- package/es/upload/hooks/useSizeLimit.js +23 -23
- package/es/upload/index.js +40 -40
- package/es/upload/style/index.js +1 -1
- package/es/upload/themes/dragger-progress.js +25 -25
- package/es/upload/themes/flow-list/file-list.js +25 -25
- package/es/upload/themes/flow-list/img-list.js +25 -25
- package/es/upload/themes/flow-list/index.js +25 -25
- package/es/upload/themes/flow-list/style/index.js +1 -1
- package/es/upload/themes/image-card.js +26 -26
- package/es/upload/themes/single-file.js +25 -25
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +21 -21
- package/es/upload/type.js +1 -1
- package/es/upload/types.js +1 -1
- package/es/upload/upload-trigger.js +25 -25
- package/es/upload/upload.js +40 -40
- package/es/upload/util.js +1 -1
- package/esm/_chunks/{dep-44699371.js → dep-0231bfed.js} +8 -8
- package/esm/_chunks/{dep-44699371.js.map → dep-0231bfed.js.map} +1 -1
- package/{es/_chunks/dep-fcc1470c.js → esm/_chunks/dep-044e7ba4.js} +5 -5
- package/esm/_chunks/{dep-fcc1470c.js.map → dep-044e7ba4.js.map} +1 -1
- package/esm/_chunks/{dep-45b037f6.js → dep-052aa729.js} +6 -6
- package/esm/_chunks/{dep-45b037f6.js.map → dep-052aa729.js.map} +1 -1
- package/esm/_chunks/{dep-0c155fb8.js → dep-05675fca.js} +2 -2
- package/esm/_chunks/{dep-0c155fb8.js.map → dep-05675fca.js.map} +1 -1
- package/{es/_chunks/dep-72183a2a.js → esm/_chunks/dep-12bf80c6.js} +4 -4
- package/esm/_chunks/{dep-72183a2a.js.map → dep-12bf80c6.js.map} +1 -1
- package/{es/_chunks/dep-84a2760d.js → esm/_chunks/dep-13f10fc0.js} +4 -4
- package/esm/_chunks/{dep-84a2760d.js.map → dep-13f10fc0.js.map} +1 -1
- package/{es/_chunks/dep-b0608f92.js → esm/_chunks/dep-1476f4eb.js} +4 -4
- package/esm/_chunks/{dep-b0608f92.js.map → dep-1476f4eb.js.map} +1 -1
- package/esm/_chunks/{dep-1f39069a.js → dep-14afb875.js} +3 -3
- package/esm/_chunks/{dep-1f39069a.js.map → dep-14afb875.js.map} +1 -1
- package/{es/_chunks/dep-87d24f9c.js → esm/_chunks/dep-17ee2601.js} +3 -3
- package/esm/_chunks/{dep-87d24f9c.js.map → dep-17ee2601.js.map} +1 -1
- package/{es/_chunks/dep-8fda4184.js → esm/_chunks/dep-21668e5d.js} +4 -4
- package/esm/_chunks/{dep-8fda4184.js.map → dep-21668e5d.js.map} +1 -1
- package/esm/_chunks/{dep-b19149c6.js → dep-23a54e60.js} +9 -9
- package/{es/_chunks/dep-b19149c6.js.map → esm/_chunks/dep-23a54e60.js.map} +1 -1
- package/{es/_chunks/dep-57f08aea.js → esm/_chunks/dep-264afed8.js} +8 -8
- package/esm/_chunks/{dep-57f08aea.js.map → dep-264afed8.js.map} +1 -1
- package/{es/_chunks/dep-a6f7ee47.js → esm/_chunks/dep-2bb2cfe2.js} +7 -7
- package/esm/_chunks/{dep-a6f7ee47.js.map → dep-2bb2cfe2.js.map} +1 -1
- package/{es/_chunks/dep-28ef7e25.js → esm/_chunks/dep-2c963e61.js} +3 -3
- package/esm/_chunks/{dep-28ef7e25.js.map → dep-2c963e61.js.map} +1 -1
- package/{es/_chunks/dep-8a3956e4.js → esm/_chunks/dep-2e234cb5.js} +8 -8
- package/{es/_chunks/dep-8a3956e4.js.map → esm/_chunks/dep-2e234cb5.js.map} +1 -1
- package/esm/_chunks/{dep-35137444.js → dep-30b3395d.js} +3 -3
- package/{lib/_chunks/dep-95b64cbc.js.map → esm/_chunks/dep-30b3395d.js.map} +1 -1
- package/{es/_chunks/dep-39f5cacb.js → esm/_chunks/dep-310cb9e0.js} +5 -5
- package/{es/_chunks/dep-39f5cacb.js.map → esm/_chunks/dep-310cb9e0.js.map} +1 -1
- package/esm/_chunks/{dep-8b4d9db6.js → dep-3a79d005.js} +16 -16
- package/esm/_chunks/{dep-8b4d9db6.js.map → dep-3a79d005.js.map} +1 -1
- package/esm/_chunks/{dep-31688470.js → dep-3d488df5.js} +8 -8
- package/esm/_chunks/{dep-31688470.js.map → dep-3d488df5.js.map} +1 -1
- package/{es/_chunks/dep-b69008d0.js → esm/_chunks/dep-56f67cd6.js} +5 -5
- package/{es/_chunks/dep-b69008d0.js.map → esm/_chunks/dep-56f67cd6.js.map} +1 -1
- package/{es/_chunks/dep-301990d4.js → esm/_chunks/dep-582fcce4.js} +3 -3
- package/esm/_chunks/{dep-301990d4.js.map → dep-582fcce4.js.map} +1 -1
- package/{es/_chunks/dep-9dc44d0a.js → esm/_chunks/dep-59e9e1ce.js} +8 -8
- package/esm/_chunks/{dep-9dc44d0a.js.map → dep-59e9e1ce.js.map} +1 -1
- package/esm/_chunks/{dep-eb0f021a.js → dep-6991a40e.js} +13 -13
- package/esm/_chunks/{dep-eb0f021a.js.map → dep-6991a40e.js.map} +1 -1
- package/{es/_chunks/dep-78f321a0.js → esm/_chunks/dep-740be687.js} +2 -2
- package/esm/_chunks/{dep-78f321a0.js.map → dep-740be687.js.map} +1 -1
- package/{es/_chunks/dep-6f8cc12c.js → esm/_chunks/dep-742cbdc1.js} +3 -3
- package/esm/_chunks/{dep-6f8cc12c.js.map → dep-742cbdc1.js.map} +1 -1
- package/esm/_chunks/{dep-edee984e.js → dep-75434d03.js} +3 -3
- package/esm/_chunks/{dep-edee984e.js.map → dep-75434d03.js.map} +1 -1
- package/esm/_chunks/{dep-b2f93b29.js → dep-7dd1e502.js} +5 -5
- package/{es/_chunks/dep-b2f93b29.js.map → esm/_chunks/dep-7dd1e502.js.map} +1 -1
- package/esm/_chunks/{dep-828497b4.js → dep-855ef9aa.js} +6 -6
- package/esm/_chunks/{dep-828497b4.js.map → dep-855ef9aa.js.map} +1 -1
- package/esm/_chunks/{dep-e9dbe655.js → dep-8cf5f372.js} +4 -4
- package/{es/_chunks/dep-e9dbe655.js.map → esm/_chunks/dep-8cf5f372.js.map} +1 -1
- package/{es/_chunks/dep-cec87786.js → esm/_chunks/dep-949d4b4d.js} +2 -2
- package/esm/_chunks/{dep-cec87786.js.map → dep-949d4b4d.js.map} +1 -1
- package/{es/_chunks/dep-ea3fc641.js → esm/_chunks/dep-9569073a.js} +5 -5
- package/{es/_chunks/dep-ea3fc641.js.map → esm/_chunks/dep-9569073a.js.map} +1 -1
- package/esm/_chunks/{dep-8aa2c906.js → dep-96d4434c.js} +5 -5
- package/esm/_chunks/{dep-8aa2c906.js.map → dep-96d4434c.js.map} +1 -1
- package/esm/_chunks/{dep-65b010db.js → dep-9ac32bc6.js} +6 -6
- package/esm/_chunks/{dep-65b010db.js.map → dep-9ac32bc6.js.map} +1 -1
- package/esm/_chunks/{dep-c7ea01f9.js → dep-b6aa25c5.js} +7 -7
- package/esm/_chunks/{dep-c7ea01f9.js.map → dep-b6aa25c5.js.map} +1 -1
- package/esm/_chunks/{dep-ea5f44a6.js → dep-b7b037c2.js} +4 -4
- package/esm/_chunks/{dep-ea5f44a6.js.map → dep-b7b037c2.js.map} +1 -1
- package/esm/_chunks/{dep-038c9246.js → dep-baf0f22b.js} +7 -7
- package/esm/_chunks/{dep-038c9246.js.map → dep-baf0f22b.js.map} +1 -1
- package/esm/_chunks/{dep-9bbad855.js → dep-bc10c986.js} +11 -11
- package/{es/_chunks/dep-9bbad855.js.map → esm/_chunks/dep-bc10c986.js.map} +1 -1
- package/{es/_chunks/dep-39d90b75.js → esm/_chunks/dep-bf14ea9c.js} +4 -4
- package/esm/_chunks/{dep-39d90b75.js.map → dep-bf14ea9c.js.map} +1 -1
- package/esm/_chunks/{dep-a4eea765.js → dep-c62cc7ba.js} +7 -7
- package/esm/_chunks/{dep-a4eea765.js.map → dep-c62cc7ba.js.map} +1 -1
- package/esm/_chunks/{dep-84980c30.js → dep-c98cf62b.js} +9 -9
- package/esm/_chunks/{dep-84980c30.js.map → dep-c98cf62b.js.map} +1 -1
- package/esm/_chunks/{dep-84011bbc.js → dep-cbdae73c.js} +4 -4
- package/esm/_chunks/{dep-84011bbc.js.map → dep-cbdae73c.js.map} +1 -1
- package/{es/_chunks/dep-ecabbfa7.js → esm/_chunks/dep-d1bf6304.js} +9 -9
- package/{es/_chunks/dep-ecabbfa7.js.map → esm/_chunks/dep-d1bf6304.js.map} +1 -1
- package/esm/_chunks/{dep-b6b2aed8.js → dep-d2c29c4b.js} +4 -4
- package/{es/_chunks/dep-b6b2aed8.js.map → esm/_chunks/dep-d2c29c4b.js.map} +1 -1
- package/esm/_chunks/{dep-eec95819.js → dep-d383b717.js} +4 -4
- package/esm/_chunks/{dep-eec95819.js.map → dep-d383b717.js.map} +1 -1
- package/esm/_chunks/{dep-70311a4c.js → dep-d712120d.js} +5 -5
- package/esm/_chunks/{dep-70311a4c.js.map → dep-d712120d.js.map} +1 -1
- package/esm/_chunks/dep-dc826c4a.js +8 -0
- package/esm/_chunks/dep-dc826c4a.js.map +1 -0
- package/esm/_chunks/{dep-f04b41c5.js → dep-dedd4d45.js} +6 -6
- package/{es/_chunks/dep-f04b41c5.js.map → esm/_chunks/dep-dedd4d45.js.map} +1 -1
- package/{es/_chunks/dep-4c657685.js → esm/_chunks/dep-e056f70c.js} +5 -5
- package/esm/_chunks/{dep-4c657685.js.map → dep-e056f70c.js.map} +1 -1
- package/esm/_chunks/{dep-db764550.js → dep-f192174b.js} +6 -6
- package/esm/_chunks/{dep-db764550.js.map → dep-f192174b.js.map} +1 -1
- package/esm/_chunks/{dep-9ab77a39.js → dep-f467063a.js} +2 -2
- package/esm/_chunks/dep-f467063a.js.map +1 -0
- package/{es/_chunks/dep-7103a109.js → esm/_chunks/dep-f74c7fc8.js} +16 -16
- package/esm/_chunks/{dep-7103a109.js.map → dep-f74c7fc8.js.map} +1 -1
- package/{es/_chunks/dep-e99579d9.js → esm/_chunks/dep-fcc167d3.js} +4 -4
- package/{es/_chunks/dep-e99579d9.js.map → esm/_chunks/dep-fcc167d3.js.map} +1 -1
- package/{es/_chunks/dep-c7ef814a.js → esm/_chunks/dep-fcd92a0a.js} +2 -2
- package/esm/_chunks/{dep-c7ef814a.js.map → dep-fcd92a0a.js.map} +1 -1
- package/esm/_chunks/{dep-0728d572.js → dep-fe6c95d7.js} +7 -7
- package/{es/_chunks/dep-0728d572.js.map → esm/_chunks/dep-fe6c95d7.js.map} +1 -1
- package/{es/_chunks/dep-6b2ffd1d.js → esm/_chunks/dep-fefe2718.js} +7 -7
- package/{es/_chunks/dep-6b2ffd1d.js.map → esm/_chunks/dep-fefe2718.js.map} +1 -1
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/date-picker/utils.js +15 -15
- package/esm/_common/js/global-config/default-config.js +5 -3
- package/esm/_common/js/global-config/default-config.js.map +1 -1
- package/esm/_common/js/global-config/locale/en_US.d.ts +5 -0
- package/esm/_common/js/global-config/locale/en_US.js +19 -14
- package/esm/_common/js/global-config/locale/en_US.js.map +1 -1
- package/esm/_common/js/global-config/locale/zh_CN.d.ts +6 -0
- package/esm/_common/js/global-config/locale/zh_CN.js +20 -14
- package/esm/_common/js/global-config/locale/zh_CN.js.map +1 -1
- package/esm/_common/js/loading/circle-adapter.js +5 -5
- package/esm/_common/js/log/index.js +1 -1
- package/esm/_common/js/log/log.js +1 -1
- package/esm/_common/js/log/types.js +1 -1
- package/esm/_common/js/tabs/base.d.ts +55 -0
- package/esm/_common/js/tabs/base.js +148 -0
- package/esm/_common/js/tabs/base.js.map +1 -0
- package/esm/_common/js/tree/tree-node-model.js +22 -22
- package/esm/_common/js/tree/tree-node.js +27 -27
- package/esm/_common/js/tree/tree-store.js +35 -35
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/js/upload/types.js +1 -1
- package/esm/_common/js/upload/xhr.js +3 -3
- package/esm/_common/js/upload/xhr.js.map +1 -1
- package/esm/_common/js/utils/calcTextareaHeight.js +5 -5
- package/esm/_common/js/utils/getScrollbarWidth.js +20 -0
- package/esm/_common/js/utils/getScrollbarWidth.js.map +1 -0
- package/esm/_common/js/utils/helper.js +5 -5
- package/esm/_common/js/utils/set-style.js +1 -1
- package/esm/_common/style/web/components/color-picker/_index.less +17 -2
- package/esm/_common/style/web/components/date-picker/_index.less +15 -15
- package/esm/_common/style/web/components/date-picker/_var.less +1 -0
- package/esm/_common/style/web/components/input/_index.less +0 -10
- package/esm/_common/style/web/components/input-number/_var.less +1 -1
- package/esm/_common/style/web/components/loading/_index.less +1 -1
- package/esm/_common/style/web/components/table/_index.less +438 -162
- package/esm/_common/style/web/components/table/_index_old.less +706 -0
- package/esm/_common/style/web/components/table/_mixin.less +50 -0
- package/esm/_common/style/web/components/table/_var.less +2 -0
- package/esm/_common/style/web/components/tabs/_var.less +1 -1
- package/esm/_common/style/web/components/tooltip/_index.less +33 -31
- package/esm/_common/style/web/utilities/_animation.less +4 -0
- package/esm/_util/callBoth.js +1 -1
- package/esm/_util/composeRefs.js +1 -1
- package/esm/_util/dom.js +8 -8
- package/esm/_util/easing.js +1 -1
- package/esm/_util/forwardRefWithStatics.js +1 -1
- package/esm/_util/getScrollbarWidth.js +1 -1
- package/esm/_util/hasScrollBar.js +1 -1
- package/esm/_util/helper.js +16 -16
- package/esm/_util/injectValue.js +1 -1
- package/esm/_util/insertCSS.js +1 -1
- package/esm/_util/isCallable.js +1 -1
- package/esm/_util/linearGradient.js +2 -2
- package/esm/_util/noop.js +1 -1
- package/esm/_util/number.js +1 -1
- package/esm/_util/renderTNode.js +1 -1
- package/esm/_util/setStyle.js +1 -1
- package/esm/_util/useAnimation.js +21 -21
- package/esm/_util/useClickOutside.js +1 -1
- package/esm/_util/useCommonClassName.js +21 -21
- package/esm/_util/useConfig.js +21 -21
- package/esm/_util/useDefault.js +3 -3
- package/esm/_util/useDefaultValue.js +5 -5
- package/esm/_util/useDialogEsc.js +3 -3
- package/esm/_util/useDragSorter.js +3 -3
- package/esm/_util/useLayoutEffect.js +8 -8
- package/esm/_util/useMutationObserver.js +9 -9
- package/esm/_util/usePersistFn.js +1 -1
- package/esm/_util/usePrevious.js +1 -1
- package/esm/_util/useRefAndForward.js +1 -1
- package/esm/_util/useRipple.js +22 -22
- package/esm/_util/useSetState.js +4 -4
- package/esm/_util/useSwitch.js +3 -3
- package/esm/_util/useUpdateEffect.js +8 -8
- package/esm/_util/useWindowSize.js +11 -11
- package/esm/addon/Addon.js +22 -22
- package/esm/addon/index.js +22 -22
- package/esm/affix/Affix.js +24 -24
- package/esm/affix/index.js +24 -24
- package/esm/affix/type.js +1 -1
- package/esm/alert/Alert.js +24 -24
- package/esm/alert/index.js +24 -24
- package/esm/alert/type.js +1 -1
- package/esm/anchor/Anchor.js +30 -30
- package/esm/anchor/AnchorContext.js +1 -1
- package/esm/anchor/AnchorItem.js +22 -22
- package/esm/anchor/AnchorTarget.js +28 -28
- package/esm/anchor/_util/clipboard.js +1 -1
- package/esm/anchor/_util/dom.js +1 -1
- package/esm/anchor/index.js +30 -30
- package/esm/anchor/type.js +1 -1
- package/esm/avatar/AvararGroup.js +29 -29
- package/esm/avatar/Avatar.js +29 -29
- package/esm/avatar/AvatarContext.js +1 -1
- package/esm/avatar/index.js +29 -29
- package/esm/avatar/type.js +1 -1
- package/esm/badge/Badge.js +22 -22
- package/esm/badge/index.js +22 -22
- package/esm/badge/type.js +1 -1
- package/esm/breadcrumb/Breadcrumb.js +22 -22
- package/esm/breadcrumb/BreadcrumbContext.js +1 -1
- package/esm/breadcrumb/BreadcrumbItem.js +22 -22
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +22 -22
- package/esm/breadcrumb/type.js +1 -1
- package/esm/button/Button.js +25 -25
- package/esm/button/index.js +25 -25
- package/esm/button/type.js +1 -1
- package/esm/calendar/Calendar.js +42 -42
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/index.js +42 -42
- package/esm/calendar/type.js +1 -1
- package/esm/card/type.js +1 -1
- package/esm/cascader/Cascader.js +48 -48
- package/esm/cascader/components/InputContent.js +34 -31
- package/esm/cascader/components/InputContent.js.map +1 -1
- package/esm/cascader/components/Item.js +36 -36
- package/esm/cascader/components/Item.js.map +1 -1
- package/esm/cascader/components/Panel.js +35 -35
- package/esm/cascader/index.js +48 -48
- package/esm/cascader/interface.js +27 -27
- package/esm/cascader/type.js +1 -1
- package/esm/cascader/utils/cascader.js +4 -4
- package/esm/cascader/utils/helper.js +2 -2
- package/esm/cascader/utils/inputContent.js +17 -17
- package/esm/cascader/utils/item.js +5 -5
- package/esm/cascader/utils/item.js.map +1 -1
- package/esm/cascader/utils/panel.js +9 -9
- package/esm/cascader/utils/panel.js.map +1 -1
- package/esm/checkbox/Checkbox.js +31 -31
- package/esm/checkbox/CheckboxGroup.js +31 -31
- package/esm/checkbox/index.js +31 -31
- package/esm/checkbox/type.js +1 -1
- package/esm/comment/Comment.js +21 -21
- package/esm/comment/index.js +21 -21
- package/esm/comment/type.js +1 -1
- package/esm/common/Check.js +29 -29
- package/esm/common/FakeArrow.js +21 -21
- package/esm/common/Portal.js +22 -22
- package/esm/common.js +1 -1
- package/esm/config-provider/ConfigContext.d.ts +18 -0
- package/esm/config-provider/ConfigContext.js +21 -21
- package/esm/config-provider/ConfigProvider.d.ts +6 -0
- package/esm/config-provider/ConfigProvider.js +21 -21
- package/esm/config-provider/en_US_config.js +1 -1
- package/esm/config-provider/index.js +21 -21
- package/esm/config-provider/type.js +1 -1
- package/esm/config-provider/zh_CN_config.js +1 -1
- package/esm/date-picker/DatePicker.js +35 -35
- package/esm/date-picker/base/CalendarPresets.js +25 -25
- package/esm/date-picker/base/Cell.js +21 -21
- package/esm/date-picker/base/Header.js +25 -25
- package/esm/date-picker/base/Table.js +23 -23
- package/esm/date-picker/index.js +35 -35
- package/esm/date-picker/panel/Date.js +29 -29
- package/esm/date-picker/panel/DateRange.js +29 -29
- package/esm/date-picker/type.js +1 -1
- package/esm/dialog/Dialog.js +26 -26
- package/esm/dialog/RenderDialog.js +24 -24
- package/esm/dialog/index.js +26 -26
- package/esm/dialog/plugin.js +26 -26
- package/esm/dialog/type.js +1 -1
- package/esm/divider/Divider.js +22 -22
- package/esm/divider/index.js +22 -22
- package/esm/divider/type.js +1 -1
- package/esm/drawer/Drawer.js +25 -25
- package/esm/drawer/DrawerWrapper.js +22 -22
- package/esm/drawer/index.js +25 -25
- package/esm/drawer/type.js +1 -1
- package/esm/dropdown/Dropdown.js +40 -40
- package/esm/dropdown/DropdownItem.js +30 -30
- package/esm/dropdown/DropdownMenu.js +31 -31
- package/esm/dropdown/index.js +40 -40
- package/esm/dropdown/type.js +1 -1
- package/esm/form/Form.js +46 -46
- package/esm/form/FormContext.js +1 -1
- package/esm/form/FormItem.js +48 -47
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/formModel.js +27 -27
- package/esm/form/hooks/useInstance.js +27 -27
- package/esm/form/index.js +46 -46
- package/esm/form/type.js +1 -1
- package/esm/grid/Col.js +22 -22
- package/esm/grid/Row.js +25 -25
- package/esm/grid/index.js +25 -25
- package/esm/grid/type.js +1 -1
- package/esm/index.js +58 -57
- package/esm/index.js.map +1 -1
- package/esm/input/Input.js +39 -30
- package/esm/input/Input.js.map +1 -1
- package/esm/input/InputGroup.js +22 -22
- package/esm/input/index.js +32 -29
- package/esm/input/index.js.map +1 -1
- package/esm/input/type.js +1 -1
- package/esm/input-number/InputNumber.js +38 -30
- package/esm/input-number/InputNumber.js.map +1 -1
- package/esm/input-number/StepHandler.js +25 -25
- package/esm/input-number/index.js +33 -30
- package/esm/input-number/index.js.map +1 -1
- package/esm/input-number/type.js +1 -1
- package/esm/input-number/utils/numberUtils.js +1 -1
- package/esm/input-number/utils/numberUtils.js.map +1 -1
- package/esm/layout/Aside.js +22 -22
- package/esm/layout/Layout.js +24 -24
- package/esm/layout/index.js +24 -24
- package/esm/layout/type.js +1 -1
- package/esm/list/List.js +25 -25
- package/esm/list/ListItem.js +21 -21
- package/esm/list/ListItemMeta.js +21 -21
- package/esm/list/index.js +25 -25
- package/esm/list/type.js +1 -1
- package/esm/loading/gradient.js +24 -24
- package/esm/loading/index.js +25 -25
- package/esm/loading/loading.js +29 -29
- package/esm/loading/loading.js.map +1 -1
- package/esm/loading/plugin.js +25 -25
- package/esm/loading/type.js +1 -1
- package/esm/locale/LocalReceiver.d.ts +6 -0
- package/esm/locale/LocalReceiver.js +21 -21
- package/esm/locale/en_US.js +1 -1
- package/esm/locale/zh_CN.js +1 -1
- package/esm/menu/HeadMenu.js +29 -25
- package/esm/menu/HeadMenu.js.map +1 -1
- package/esm/menu/Menu.js +29 -25
- package/esm/menu/Menu.js.map +1 -1
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.js +21 -21
- package/esm/menu/MenuItem.js +22 -22
- package/esm/menu/SubMenu.js +24 -24
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.js +1 -1
- package/esm/menu/_util/checkSubMenuActive.js +1 -1
- package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/esm/menu/_util/constant.js +1 -1
- package/esm/menu/_util/getSubMenuChildStyle.js +1 -1
- package/esm/menu/_util/type.js +1 -1
- package/esm/menu/hooks/useMenuContext.js +6 -6
- package/esm/menu/index.js +29 -25
- package/esm/menu/index.js.map +1 -1
- package/esm/menu/type.js +1 -1
- package/esm/message/Message.js +25 -25
- package/esm/message/MessageClose.js +21 -21
- package/esm/message/MessageComponent.js +25 -25
- package/esm/message/MessageIcon.js +25 -25
- package/esm/message/const.js +1 -1
- package/esm/message/index.js +25 -25
- package/esm/message/type.js +1 -1
- package/esm/message/useMessageClass.js +21 -21
- package/esm/notification/Notification.js +25 -25
- package/esm/notification/NotificationList.js +25 -25
- package/esm/notification/NotificationPlugin.js +25 -25
- package/esm/notification/index.js +25 -25
- package/esm/notification/type.js +1 -1
- package/esm/pagination/Pagination.js +46 -44
- package/esm/pagination/Pagination.js.map +1 -1
- package/esm/pagination/index.js +41 -41
- package/esm/pagination/type.js +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/PopConfirm.js +35 -29
- package/esm/popconfirm/PopConfirm.js.map +1 -1
- package/esm/popconfirm/PopContent.js +29 -26
- package/esm/popconfirm/PopContent.js.map +1 -1
- package/esm/popconfirm/index.js +34 -28
- package/esm/popconfirm/index.js.map +1 -1
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +27 -27
- package/esm/popup/hooks/useTriggerProps.js +1 -1
- package/esm/popup/index.js +27 -27
- package/esm/popup/type.js +1 -1
- package/esm/popup/utils/getTransitionParams.js +1 -1
- package/esm/progress/Progress.js +22 -22
- package/esm/progress/index.js +22 -22
- package/esm/progress/type.js +1 -1
- package/esm/radio/Radio.js +32 -32
- package/esm/radio/RadioGroup.js +32 -32
- package/esm/radio/index.js +32 -32
- package/esm/radio/type.js +1 -1
- package/esm/rate/type.js +1 -1
- package/esm/select/base/Option.js +27 -27
- package/esm/select/base/OptionGroup.js +21 -21
- package/esm/select/base/PopupContent.js +31 -31
- package/esm/select/base/Select.js +42 -41
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +41 -41
- package/esm/select/type.js +1 -1
- package/esm/select/util/helper.js +29 -29
- package/esm/select-input/SelectInput.js +42 -39
- package/esm/select-input/SelectInput.js.map +1 -1
- package/esm/select-input/index.js +42 -39
- package/esm/select-input/index.js.map +1 -1
- package/esm/select-input/type.js +1 -1
- package/esm/select-input/useMultiple.js +34 -31
- package/esm/select-input/useMultiple.js.map +1 -1
- package/esm/select-input/useOverlayStyle.js +11 -12
- package/esm/select-input/useOverlayStyle.js.map +1 -1
- package/esm/select-input/useSingle.js +40 -37
- package/esm/select-input/useSingle.js.map +1 -1
- package/esm/skeleton/Skeleton.js +31 -31
- package/esm/skeleton/index.js +31 -31
- package/esm/skeleton/type.js +1 -1
- package/esm/slider/Slider.js +35 -32
- package/esm/slider/Slider.js.map +1 -1
- package/esm/slider/SliderHandleButton.js +28 -28
- package/esm/slider/index.js +35 -32
- package/esm/slider/index.js.map +1 -1
- package/esm/slider/type.js +1 -1
- package/esm/slider/utils/handleNumber.js +1 -1
- package/esm/steps/StepItem.js +21 -21
- package/esm/steps/Steps.js +21 -21
- package/esm/steps/StepsContext.js +1 -1
- package/esm/steps/index.js +21 -21
- package/esm/steps/type.js +1 -1
- package/esm/sticky-tool/type.js +1 -1
- package/esm/swiper/Swiper.js +23 -23
- package/esm/swiper/SwiperItem.js +21 -21
- package/esm/swiper/index.js +23 -23
- package/esm/swiper/type.js +1 -1
- package/esm/switch/Switch.js +25 -25
- package/esm/switch/index.js +25 -25
- package/esm/switch/type.js +1 -1
- package/esm/table/base/Table.js +41 -41
- package/esm/table/base/TableAsyncLoadingBody.js +25 -25
- package/esm/table/base/TableBody.js +31 -31
- package/esm/table/base/TableCell.js +27 -27
- package/esm/table/base/TableColGroup.js +1 -1
- package/esm/table/base/TableContext.js +1 -1
- package/esm/table/base/TableEmptyBody.js +23 -23
- package/esm/table/base/TableFooter.js +1 -1
- package/esm/table/base/TableHeader.js +29 -29
- package/esm/table/base/TableLoadingBody.js +6 -6
- package/esm/table/base/TableRow.js +31 -31
- package/esm/table/enhanced/Table.js +43 -43
- package/esm/table/enhanced/TableContext.js +1 -1
- package/esm/table/enhanced/useTree.js +28 -28
- package/esm/table/hooks/useColumns.js +4 -4
- package/esm/table/index.js +43 -43
- package/esm/table/primary/SorterButton.js +28 -28
- package/esm/table/primary/Table.js +43 -43
- package/esm/table/primary/expand-box.js +21 -21
- package/esm/table/primary/useChange.js +2 -2
- package/esm/table/primary/useExpand.js +28 -28
- package/esm/table/primary/useFilter.js +37 -37
- package/esm/table/primary/useFilterButton.js +37 -37
- package/esm/table/primary/useSelect.js +35 -35
- package/esm/table/primary/useSorter.js +32 -32
- package/esm/table/style/index.js +1 -1
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.js +1 -1
- package/esm/tabs/TabBar.js +23 -23
- package/esm/tabs/TabNav.js +146 -117
- package/esm/tabs/TabNav.js.map +1 -1
- package/esm/tabs/TabNavItem.d.ts +1 -0
- package/esm/tabs/TabNavItem.js +25 -23
- package/esm/tabs/TabNavItem.js.map +1 -1
- package/esm/tabs/TabPanel.js +21 -21
- package/esm/tabs/Tabs.js +38 -29
- package/esm/tabs/Tabs.js.map +1 -1
- package/esm/tabs/index.js +28 -24
- package/esm/tabs/index.js.map +1 -1
- package/esm/tabs/type.js +1 -1
- package/esm/tabs/useTabClass.js +21 -21
- package/esm/tag/CheckTag.js +24 -24
- package/esm/tag/Tag.js +24 -24
- package/esm/tag/index.js +24 -24
- package/esm/tag/type.js +1 -1
- package/esm/tag-input/TagInput.js +33 -30
- package/esm/tag-input/TagInput.js.map +1 -1
- package/esm/tag-input/index.js +33 -30
- package/esm/tag-input/index.js.map +1 -1
- package/esm/tag-input/type.js +1 -1
- package/esm/tag-input/useHover.js +3 -3
- package/esm/tag-input/useTagList.js +25 -25
- package/esm/tag-input/useTagScroll.js +3 -3
- package/esm/textarea/Textarea.js +38 -36
- package/esm/textarea/Textarea.js.map +1 -1
- package/esm/textarea/index.js +29 -29
- package/esm/textarea/type.js +1 -1
- package/esm/time-picker/InputItems.js +32 -32
- package/esm/time-picker/TimePicker.js +39 -39
- package/esm/time-picker/TimeRangePicker.js +39 -39
- package/esm/time-picker/consts.js +23 -23
- package/esm/time-picker/index.js +39 -39
- package/esm/time-picker/interfaces.js +1 -1
- package/esm/time-picker/panel/SinglePanel.js +32 -32
- package/esm/time-picker/panel/TimePickerPanel.js +34 -34
- package/esm/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/esm/time-picker/type.js +1 -1
- package/esm/tooltip/Tooltip.js +28 -28
- package/esm/tooltip/index.js +28 -28
- package/esm/tooltip/type.js +1 -1
- package/esm/transfer/Transfer.js +48 -48
- package/esm/transfer/TransferList.js +46 -46
- package/esm/transfer/index.js +49 -49
- package/esm/transfer/type.js +1 -1
- package/esm/transfer/utils.js +18 -18
- package/esm/tree/Tree.js +47 -47
- package/esm/tree/TreeItem.js +32 -32
- package/esm/tree/index.js +47 -47
- package/esm/tree/interface.js +1 -1
- package/esm/tree/type.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +41 -41
- package/esm/tree/useTreeConfig.js +23 -23
- package/esm/tree-select/SelectArrow.js +21 -21
- package/esm/tree-select/TreeSelect.js +49 -49
- package/esm/tree-select/index.js +49 -49
- package/esm/tree-select/type.js +1 -1
- package/esm/tree-select/useTreeSelectLocale.js +23 -23
- package/esm/tree-select/useTreeSelectPassthoughProps.js +21 -21
- package/esm/tree-select/useTreeSelectUtils.js +35 -35
- package/esm/upload/boolean-render.js +1 -1
- package/esm/upload/dragger.js +25 -25
- package/esm/upload/hooks/useDefaultValue.js +7 -7
- package/esm/upload/hooks/useSizeLimit.js +23 -23
- package/esm/upload/index.js +40 -40
- package/esm/upload/themes/dragger-progress.js +25 -25
- package/esm/upload/themes/flow-list/file-list.js +25 -25
- package/esm/upload/themes/flow-list/img-list.js +25 -25
- package/esm/upload/themes/flow-list/index.js +25 -25
- package/esm/upload/themes/image-card.js +26 -26
- package/esm/upload/themes/single-file.js +25 -25
- package/esm/upload/tips.js +21 -21
- package/esm/upload/type.js +1 -1
- package/esm/upload/types.js +1 -1
- package/esm/upload/upload-trigger.js +25 -25
- package/esm/upload/upload.js +40 -40
- package/esm/upload/util.js +1 -1
- package/lib/_chunks/{dep-3da67813.js → dep-03872f90.js} +2 -2
- package/lib/_chunks/{dep-3da67813.js.map → dep-03872f90.js.map} +1 -1
- package/lib/_chunks/{dep-e31a808c.js → dep-09dff8ed.js} +5 -5
- package/lib/_chunks/{dep-e31a808c.js.map → dep-09dff8ed.js.map} +1 -1
- package/lib/_chunks/{dep-54aa08a9.js → dep-0be1d84c.js} +4 -4
- package/lib/_chunks/{dep-54aa08a9.js.map → dep-0be1d84c.js.map} +1 -1
- package/lib/_chunks/{dep-1cbbc224.js → dep-11897185.js} +4 -4
- package/lib/_chunks/{dep-1cbbc224.js.map → dep-11897185.js.map} +1 -1
- package/lib/_chunks/{dep-fd2f41af.js → dep-2054efa2.js} +11 -11
- package/lib/_chunks/{dep-fd2f41af.js.map → dep-2054efa2.js.map} +1 -1
- package/lib/_chunks/{dep-4ee25b1d.js → dep-20b2ed03.js} +3 -3
- package/lib/_chunks/{dep-4ee25b1d.js.map → dep-20b2ed03.js.map} +1 -1
- package/lib/_chunks/{dep-8ffd203f.js → dep-22db5d9c.js} +4 -4
- package/lib/_chunks/{dep-8ffd203f.js.map → dep-22db5d9c.js.map} +1 -1
- package/lib/_chunks/{dep-2a190560.js → dep-247b5a26.js} +3 -3
- package/lib/_chunks/{dep-2a190560.js.map → dep-247b5a26.js.map} +1 -1
- package/lib/_chunks/{dep-1243f9b2.js → dep-272e9169.js} +6 -6
- package/lib/_chunks/{dep-1243f9b2.js.map → dep-272e9169.js.map} +1 -1
- package/lib/_chunks/{dep-ad84d92a.js → dep-375fe489.js} +4 -4
- package/lib/_chunks/{dep-ad84d92a.js.map → dep-375fe489.js.map} +1 -1
- package/lib/_chunks/{dep-63a34444.js → dep-3b2f2c71.js} +4 -4
- package/lib/_chunks/{dep-63a34444.js.map → dep-3b2f2c71.js.map} +1 -1
- package/lib/_chunks/{dep-90209eca.js → dep-3bafe452.js} +2 -2
- package/lib/_chunks/{dep-90209eca.js.map → dep-3bafe452.js.map} +1 -1
- package/lib/_chunks/{dep-756f3f2b.js → dep-3c16b464.js} +3 -3
- package/lib/_chunks/{dep-756f3f2b.js.map → dep-3c16b464.js.map} +1 -1
- package/lib/_chunks/{dep-cf62d2fb.js → dep-3e978e21.js} +3 -3
- package/lib/_chunks/{dep-cf62d2fb.js.map → dep-3e978e21.js.map} +1 -1
- package/lib/_chunks/{dep-42f69132.js → dep-4286a9cc.js} +5 -5
- package/lib/_chunks/{dep-42f69132.js.map → dep-4286a9cc.js.map} +1 -1
- package/lib/_chunks/{dep-c288c861.js → dep-4ddf7a6f.js} +3 -3
- package/lib/_chunks/{dep-c288c861.js.map → dep-4ddf7a6f.js.map} +1 -1
- package/lib/_chunks/{dep-2cdb7059.js → dep-4ecb8966.js} +2 -2
- package/lib/_chunks/{dep-2cdb7059.js.map → dep-4ecb8966.js.map} +1 -1
- package/lib/_chunks/{dep-17333d0a.js → dep-515e1460.js} +5 -5
- package/lib/_chunks/{dep-17333d0a.js.map → dep-515e1460.js.map} +1 -1
- package/lib/_chunks/{dep-d0b1978d.js → dep-6c5845e7.js} +3 -3
- package/lib/_chunks/{dep-d0b1978d.js.map → dep-6c5845e7.js.map} +1 -1
- package/lib/_chunks/{dep-57ab8b66.js → dep-6d2f1713.js} +6 -6
- package/lib/_chunks/{dep-57ab8b66.js.map → dep-6d2f1713.js.map} +1 -1
- package/lib/_chunks/{dep-8b8a4f9b.js → dep-71c5b046.js} +4 -4
- package/lib/_chunks/{dep-8b8a4f9b.js.map → dep-71c5b046.js.map} +1 -1
- package/lib/_chunks/{dep-c7d8e32e.js → dep-74dae3c2.js} +5 -5
- package/lib/_chunks/{dep-c7d8e32e.js.map → dep-74dae3c2.js.map} +1 -1
- package/lib/_chunks/{dep-6916a546.js → dep-7915db67.js} +2 -2
- package/lib/_chunks/{dep-6916a546.js.map → dep-7915db67.js.map} +1 -1
- package/lib/_chunks/{dep-fcf81179.js → dep-7b434d98.js} +2 -2
- package/lib/_chunks/{dep-fcf81179.js.map → dep-7b434d98.js.map} +1 -1
- package/lib/_chunks/{dep-de2087a8.js → dep-80019f7c.js} +7 -7
- package/lib/_chunks/{dep-de2087a8.js.map → dep-80019f7c.js.map} +1 -1
- package/lib/_chunks/{dep-689d1b96.js → dep-8153ed8e.js} +6 -6
- package/lib/_chunks/{dep-689d1b96.js.map → dep-8153ed8e.js.map} +1 -1
- package/lib/_chunks/{dep-f57b7051.js → dep-846f0c9c.js} +6 -6
- package/lib/_chunks/{dep-f57b7051.js.map → dep-846f0c9c.js.map} +1 -1
- package/lib/_chunks/{dep-07951a1a.js → dep-96ecb380.js} +2 -2
- package/lib/_chunks/{dep-07951a1a.js.map → dep-96ecb380.js.map} +1 -1
- package/lib/_chunks/{dep-52ac6f5d.js → dep-9950bc6d.js} +2 -2
- package/lib/_chunks/{dep-52ac6f5d.js.map → dep-9950bc6d.js.map} +1 -1
- package/lib/_chunks/{dep-fafac164.js → dep-9a4bd6b6.js} +13 -13
- package/lib/_chunks/{dep-fafac164.js.map → dep-9a4bd6b6.js.map} +1 -1
- package/lib/_chunks/{dep-cced1c4e.js → dep-9bf86d01.js} +5 -5
- package/lib/_chunks/{dep-cced1c4e.js.map → dep-9bf86d01.js.map} +1 -1
- package/lib/_chunks/{dep-7a15609e.js → dep-a8b04f3a.js} +5 -5
- package/lib/_chunks/{dep-7a15609e.js.map → dep-a8b04f3a.js.map} +1 -1
- package/lib/_chunks/{dep-05ecc328.js → dep-a923f558.js} +7 -7
- package/lib/_chunks/{dep-05ecc328.js.map → dep-a923f558.js.map} +1 -1
- package/lib/_chunks/{dep-9b444881.js → dep-add29949.js} +6 -6
- package/lib/_chunks/{dep-9b444881.js.map → dep-add29949.js.map} +1 -1
- package/lib/_chunks/{dep-95b64cbc.js → dep-aef171e5.js} +2 -2
- package/{esm/_chunks/dep-35137444.js.map → lib/_chunks/dep-aef171e5.js.map} +1 -1
- package/lib/_chunks/{dep-d5c8d101.js → dep-af3a4674.js} +3 -3
- package/lib/_chunks/{dep-d5c8d101.js.map → dep-af3a4674.js.map} +1 -1
- package/lib/_chunks/{dep-b2292bb8.js → dep-b19235a3.js} +7 -7
- package/lib/_chunks/{dep-b2292bb8.js.map → dep-b19235a3.js.map} +1 -1
- package/lib/_chunks/{dep-71458a97.js → dep-b9b675a5.js} +3 -3
- package/lib/_chunks/{dep-71458a97.js.map → dep-b9b675a5.js.map} +1 -1
- package/lib/_chunks/{dep-00c21a76.js → dep-b9c388c8.js} +14 -14
- package/lib/_chunks/{dep-00c21a76.js.map → dep-b9c388c8.js.map} +1 -1
- package/lib/_chunks/{dep-43033ab4.js → dep-bb05d098.js} +2 -2
- package/lib/_chunks/{dep-43033ab4.js.map → dep-bb05d098.js.map} +1 -1
- package/lib/_chunks/{dep-ecbb2e42.js → dep-c197dba1.js} +6 -6
- package/lib/_chunks/{dep-ecbb2e42.js.map → dep-c197dba1.js.map} +1 -1
- package/lib/_chunks/{dep-6c140602.js → dep-c36340e2.js} +3 -3
- package/lib/_chunks/{dep-6c140602.js.map → dep-c36340e2.js.map} +1 -1
- package/lib/_chunks/{dep-34327dfc.js → dep-c7e0d0b8.js} +2 -2
- package/lib/_chunks/{dep-34327dfc.js.map → dep-c7e0d0b8.js.map} +1 -1
- package/lib/_chunks/{dep-417567ae.js → dep-c8e34165.js} +6 -6
- package/lib/_chunks/{dep-417567ae.js.map → dep-c8e34165.js.map} +1 -1
- package/lib/_chunks/{dep-edf752d2.js → dep-ccf95040.js} +9 -9
- package/lib/_chunks/{dep-edf752d2.js.map → dep-ccf95040.js.map} +1 -1
- package/lib/_chunks/{dep-95dc6d9b.js → dep-cfe33274.js} +7 -7
- package/lib/_chunks/{dep-95dc6d9b.js.map → dep-cfe33274.js.map} +1 -1
- package/lib/_chunks/{dep-a3247e7d.js → dep-d3153cff.js} +7 -7
- package/lib/_chunks/{dep-a3247e7d.js.map → dep-d3153cff.js.map} +1 -1
- package/lib/_chunks/{dep-fb9da661.js → dep-e2998653.js} +5 -5
- package/lib/_chunks/{dep-fb9da661.js.map → dep-e2998653.js.map} +1 -1
- package/lib/_chunks/{dep-e16b1a44.js → dep-e48c8014.js} +3 -3
- package/lib/_chunks/{dep-e16b1a44.js.map → dep-e48c8014.js.map} +1 -1
- package/lib/_chunks/{dep-6fb34353.js → dep-f336271d.js} +7 -7
- package/lib/_chunks/{dep-6fb34353.js.map → dep-f336271d.js.map} +1 -1
- package/lib/_chunks/{dep-1e5be1d8.js → dep-f76f2e04.js} +4 -4
- package/lib/_chunks/{dep-1e5be1d8.js.map → dep-f76f2e04.js.map} +1 -1
- package/lib/_chunks/{dep-fba5aea7.js → dep-f95f9c28.js} +3 -3
- package/lib/_chunks/{dep-fba5aea7.js.map → dep-f95f9c28.js.map} +1 -1
- package/lib/_chunks/{dep-5eb35222.js → dep-ff14c0e9.js} +5 -5
- package/lib/_chunks/{dep-5eb35222.js.map → dep-ff14c0e9.js.map} +1 -1
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/date-picker/utils.js +14 -14
- package/lib/_common/js/global-config/default-config.js +5 -3
- package/lib/_common/js/global-config/default-config.js.map +1 -1
- package/lib/_common/js/global-config/locale/en_US.d.ts +5 -0
- package/lib/_common/js/global-config/locale/en_US.js +19 -14
- package/lib/_common/js/global-config/locale/en_US.js.map +1 -1
- package/lib/_common/js/global-config/locale/zh_CN.d.ts +6 -0
- package/lib/_common/js/global-config/locale/zh_CN.js +20 -14
- package/lib/_common/js/global-config/locale/zh_CN.js.map +1 -1
- package/lib/_common/js/loading/circle-adapter.js +5 -5
- package/lib/_common/js/log/index.js +1 -1
- package/lib/_common/js/log/log.js +1 -1
- package/lib/_common/js/log/types.js +1 -1
- package/lib/_common/js/tabs/base.d.ts +55 -0
- package/lib/_common/js/tabs/base.js +152 -0
- package/lib/_common/js/tabs/base.js.map +1 -0
- package/lib/_common/js/tree/tree-node-model.js +20 -20
- package/lib/_common/js/tree/tree-node.js +25 -25
- package/lib/_common/js/tree/tree-store.js +33 -33
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_common/js/upload/types.js +1 -1
- package/lib/_common/js/upload/xhr.js +3 -3
- package/lib/_common/js/upload/xhr.js.map +1 -1
- package/lib/_common/js/utils/calcTextareaHeight.js +5 -5
- package/lib/_common/js/utils/getScrollbarWidth.js +24 -0
- package/lib/_common/js/utils/getScrollbarWidth.js.map +1 -0
- package/lib/_common/js/utils/helper.js +5 -5
- package/lib/_common/js/utils/set-style.js +1 -1
- package/lib/_util/callBoth.js +1 -1
- package/lib/_util/composeRefs.js +1 -1
- package/lib/_util/dom.js +6 -6
- package/lib/_util/easing.js +1 -1
- package/lib/_util/forwardRefWithStatics.js +1 -1
- package/lib/_util/getScrollbarWidth.js +1 -1
- package/lib/_util/hasScrollBar.js +1 -1
- package/lib/_util/helper.js +14 -14
- package/lib/_util/injectValue.js +1 -1
- package/lib/_util/insertCSS.js +1 -1
- package/lib/_util/isCallable.js +1 -1
- package/lib/_util/linearGradient.js +2 -2
- package/lib/_util/noop.js +1 -1
- package/lib/_util/number.js +1 -1
- package/lib/_util/renderTNode.js +1 -1
- package/lib/_util/setStyle.js +1 -1
- package/lib/_util/useAnimation.js +19 -19
- package/lib/_util/useClickOutside.js +1 -1
- package/lib/_util/useCommonClassName.js +19 -19
- package/lib/_util/useConfig.js +19 -19
- package/lib/_util/useDefault.js +3 -3
- package/lib/_util/useDefaultValue.js +5 -5
- package/lib/_util/useDialogEsc.js +3 -3
- package/lib/_util/useDragSorter.js +3 -3
- package/lib/_util/useLayoutEffect.js +6 -6
- package/lib/_util/useMutationObserver.js +8 -8
- package/lib/_util/usePersistFn.js +1 -1
- package/lib/_util/usePrevious.js +1 -1
- package/lib/_util/useRefAndForward.js +1 -1
- package/lib/_util/useRipple.js +20 -20
- package/lib/_util/useSetState.js +4 -4
- package/lib/_util/useSwitch.js +3 -3
- package/lib/_util/useUpdateEffect.js +6 -6
- package/lib/_util/useWindowSize.js +10 -10
- package/lib/addon/Addon.js +20 -20
- package/lib/addon/index.js +20 -20
- package/lib/affix/Affix.js +22 -22
- package/lib/affix/index.js +22 -22
- package/lib/affix/type.js +1 -1
- package/lib/alert/Alert.js +22 -22
- package/lib/alert/index.js +22 -22
- package/lib/alert/type.js +1 -1
- package/lib/anchor/Anchor.js +28 -28
- package/lib/anchor/AnchorContext.js +1 -1
- package/lib/anchor/AnchorItem.js +20 -20
- package/lib/anchor/AnchorTarget.js +26 -26
- package/lib/anchor/_util/clipboard.js +1 -1
- package/lib/anchor/_util/dom.js +1 -1
- package/lib/anchor/index.js +28 -28
- package/lib/anchor/type.js +1 -1
- package/lib/avatar/AvararGroup.js +27 -27
- package/lib/avatar/Avatar.js +27 -27
- package/lib/avatar/AvatarContext.js +1 -1
- package/lib/avatar/index.js +27 -27
- package/lib/avatar/type.js +1 -1
- package/lib/badge/Badge.js +20 -20
- package/lib/badge/index.js +20 -20
- package/lib/badge/type.js +1 -1
- package/lib/breadcrumb/Breadcrumb.js +20 -20
- package/lib/breadcrumb/BreadcrumbContext.js +1 -1
- package/lib/breadcrumb/BreadcrumbItem.js +20 -20
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +20 -20
- package/lib/breadcrumb/type.js +1 -1
- package/lib/button/Button.js +23 -23
- package/lib/button/index.js +23 -23
- package/lib/button/type.js +1 -1
- package/lib/calendar/Calendar.js +40 -40
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/index.js +40 -40
- package/lib/calendar/type.js +1 -1
- package/lib/card/type.js +1 -1
- package/lib/cascader/Cascader.js +46 -46
- package/lib/cascader/components/InputContent.js +30 -29
- package/lib/cascader/components/InputContent.js.map +1 -1
- package/lib/cascader/components/Item.js +34 -34
- package/lib/cascader/components/Item.js.map +1 -1
- package/lib/cascader/components/Panel.js +33 -33
- package/lib/cascader/index.js +46 -46
- package/lib/cascader/interface.js +25 -25
- package/lib/cascader/type.js +1 -1
- package/lib/cascader/utils/cascader.js +4 -4
- package/lib/cascader/utils/helper.js +2 -2
- package/lib/cascader/utils/inputContent.js +15 -15
- package/lib/cascader/utils/item.js +5 -5
- package/lib/cascader/utils/item.js.map +1 -1
- package/lib/cascader/utils/panel.js +8 -8
- package/lib/cascader/utils/panel.js.map +1 -1
- package/lib/checkbox/Checkbox.js +29 -29
- package/lib/checkbox/CheckboxGroup.js +29 -29
- package/lib/checkbox/index.js +29 -29
- package/lib/checkbox/type.js +1 -1
- package/lib/comment/Comment.js +19 -19
- package/lib/comment/index.js +19 -19
- package/lib/comment/type.js +1 -1
- package/lib/common/Check.js +27 -27
- package/lib/common/FakeArrow.js +19 -19
- package/lib/common/Portal.js +20 -20
- package/lib/common.js +1 -1
- package/lib/config-provider/ConfigContext.d.ts +18 -0
- package/lib/config-provider/ConfigContext.js +19 -19
- package/lib/config-provider/ConfigProvider.d.ts +6 -0
- package/lib/config-provider/ConfigProvider.js +19 -19
- package/lib/config-provider/en_US_config.js +1 -1
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/type.js +1 -1
- package/lib/config-provider/zh_CN_config.js +1 -1
- package/lib/date-picker/DatePicker.js +33 -33
- package/lib/date-picker/base/CalendarPresets.js +23 -23
- package/lib/date-picker/base/Cell.js +19 -19
- package/lib/date-picker/base/Header.js +23 -23
- package/lib/date-picker/base/Table.js +21 -21
- package/lib/date-picker/index.js +33 -33
- package/lib/date-picker/panel/Date.js +27 -27
- package/lib/date-picker/panel/DateRange.js +27 -27
- package/lib/date-picker/type.js +1 -1
- package/lib/dialog/Dialog.js +24 -24
- package/lib/dialog/RenderDialog.js +22 -22
- package/lib/dialog/index.js +24 -24
- package/lib/dialog/plugin.js +24 -24
- package/lib/dialog/type.js +1 -1
- package/lib/divider/Divider.js +20 -20
- package/lib/divider/index.js +20 -20
- package/lib/divider/type.js +1 -1
- package/lib/drawer/Drawer.js +23 -23
- package/lib/drawer/DrawerWrapper.js +20 -20
- package/lib/drawer/index.js +23 -23
- package/lib/drawer/type.js +1 -1
- package/lib/dropdown/Dropdown.js +38 -38
- package/lib/dropdown/DropdownItem.js +28 -28
- package/lib/dropdown/DropdownMenu.js +29 -29
- package/lib/dropdown/index.js +38 -38
- package/lib/dropdown/type.js +1 -1
- package/lib/form/Form.js +44 -44
- package/lib/form/FormContext.js +1 -1
- package/lib/form/FormItem.js +46 -45
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/formModel.js +25 -25
- package/lib/form/hooks/useInstance.js +25 -25
- package/lib/form/index.js +44 -44
- package/lib/form/type.js +1 -1
- package/lib/grid/Col.js +20 -20
- package/lib/grid/Row.js +23 -23
- package/lib/grid/index.js +23 -23
- package/lib/grid/type.js +1 -1
- package/lib/index-lib.js +56 -55
- package/lib/index-lib.js.map +1 -1
- package/lib/index.js +56 -55
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +35 -28
- package/lib/input/Input.js.map +1 -1
- package/lib/input/InputGroup.js +20 -20
- package/lib/input/index.js +28 -27
- package/lib/input/index.js.map +1 -1
- package/lib/input/type.js +1 -1
- package/lib/input-number/InputNumber.js +34 -28
- package/lib/input-number/InputNumber.js.map +1 -1
- package/lib/input-number/StepHandler.js +23 -23
- package/lib/input-number/index.js +29 -28
- package/lib/input-number/index.js.map +1 -1
- package/lib/input-number/type.js +1 -1
- package/lib/input-number/utils/numberUtils.js +1 -1
- package/lib/input-number/utils/numberUtils.js.map +1 -1
- package/lib/layout/Aside.js +20 -20
- package/lib/layout/Layout.js +22 -22
- package/lib/layout/index.js +22 -22
- package/lib/layout/type.js +1 -1
- package/lib/list/List.js +23 -23
- package/lib/list/ListItem.js +19 -19
- package/lib/list/ListItemMeta.js +19 -19
- package/lib/list/index.js +23 -23
- package/lib/list/type.js +1 -1
- package/lib/loading/gradient.js +22 -22
- package/lib/loading/index.js +23 -23
- package/lib/loading/loading.js +27 -27
- package/lib/loading/loading.js.map +1 -1
- package/lib/loading/plugin.js +23 -23
- package/lib/loading/type.js +1 -1
- package/lib/locale/LocalReceiver.d.ts +6 -0
- package/lib/locale/LocalReceiver.js +19 -19
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/menu/HeadMenu.js +27 -23
- package/lib/menu/HeadMenu.js.map +1 -1
- package/lib/menu/Menu.js +27 -23
- package/lib/menu/Menu.js.map +1 -1
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.js +19 -19
- package/lib/menu/MenuItem.js +20 -20
- package/lib/menu/SubMenu.js +22 -22
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.js +1 -1
- package/lib/menu/_util/checkSubMenuActive.js +1 -1
- package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/lib/menu/_util/constant.js +1 -1
- package/lib/menu/_util/getSubMenuChildStyle.js +1 -1
- package/lib/menu/_util/type.js +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.js +27 -23
- package/lib/menu/index.js.map +1 -1
- package/lib/menu/type.js +1 -1
- package/lib/message/Message.js +23 -23
- package/lib/message/MessageClose.js +19 -19
- package/lib/message/MessageComponent.js +23 -23
- package/lib/message/MessageIcon.js +23 -23
- package/lib/message/const.js +1 -1
- package/lib/message/index.js +23 -23
- package/lib/message/type.js +1 -1
- package/lib/message/useMessageClass.js +19 -19
- package/lib/notification/Notification.js +23 -23
- package/lib/notification/NotificationList.js +23 -23
- package/lib/notification/NotificationPlugin.js +23 -23
- package/lib/notification/index.js +23 -23
- package/lib/notification/type.js +1 -1
- package/lib/pagination/Pagination.js +42 -40
- package/lib/pagination/Pagination.js.map +1 -1
- package/lib/pagination/index.js +39 -39
- package/lib/pagination/type.js +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/PopConfirm.js +30 -28
- package/lib/popconfirm/PopConfirm.js.map +1 -1
- package/lib/popconfirm/PopContent.js +27 -26
- package/lib/popconfirm/PopContent.js.map +1 -1
- package/lib/popconfirm/index.js +28 -26
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +25 -25
- package/lib/popup/hooks/useTriggerProps.js +1 -1
- package/lib/popup/index.js +25 -25
- package/lib/popup/type.js +1 -1
- package/lib/popup/utils/getTransitionParams.js +1 -1
- package/lib/progress/Progress.js +20 -20
- package/lib/progress/index.js +20 -20
- package/lib/progress/type.js +1 -1
- package/lib/radio/Radio.js +30 -30
- package/lib/radio/RadioGroup.js +30 -30
- package/lib/radio/index.js +30 -30
- package/lib/radio/type.js +1 -1
- package/lib/rate/type.js +1 -1
- package/lib/select/base/Option.js +25 -25
- package/lib/select/base/OptionGroup.js +19 -19
- package/lib/select/base/PopupContent.js +29 -29
- package/lib/select/base/Select.js +40 -39
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +39 -39
- package/lib/select/type.js +1 -1
- package/lib/select/util/helper.js +27 -27
- package/lib/select-input/SelectInput.js +38 -37
- package/lib/select-input/SelectInput.js.map +1 -1
- package/lib/select-input/index.js +38 -37
- package/lib/select-input/index.js.map +1 -1
- package/lib/select-input/type.js +1 -1
- package/lib/select-input/useMultiple.js +30 -29
- package/lib/select-input/useMultiple.js.map +1 -1
- package/lib/select-input/useOverlayStyle.js +10 -11
- package/lib/select-input/useOverlayStyle.js.map +1 -1
- package/lib/select-input/useSingle.js +36 -35
- package/lib/select-input/useSingle.js.map +1 -1
- package/lib/skeleton/Skeleton.js +29 -29
- package/lib/skeleton/index.js +29 -29
- package/lib/skeleton/type.js +1 -1
- package/lib/slider/Slider.js +31 -30
- package/lib/slider/Slider.js.map +1 -1
- package/lib/slider/SliderHandleButton.js +26 -26
- package/lib/slider/index.js +31 -30
- package/lib/slider/index.js.map +1 -1
- package/lib/slider/type.js +1 -1
- package/lib/slider/utils/handleNumber.js +1 -1
- package/lib/steps/StepItem.js +19 -19
- package/lib/steps/Steps.js +19 -19
- package/lib/steps/StepsContext.js +1 -1
- package/lib/steps/index.js +19 -19
- package/lib/steps/type.js +1 -1
- package/lib/sticky-tool/type.js +1 -1
- package/lib/swiper/Swiper.js +21 -21
- package/lib/swiper/SwiperItem.js +19 -19
- package/lib/swiper/index.js +21 -21
- package/lib/swiper/type.js +1 -1
- package/lib/switch/Switch.js +23 -23
- package/lib/switch/index.js +23 -23
- package/lib/switch/type.js +1 -1
- package/lib/table/base/Table.js +39 -39
- package/lib/table/base/TableAsyncLoadingBody.js +23 -23
- package/lib/table/base/TableBody.js +29 -29
- package/lib/table/base/TableCell.js +25 -25
- package/lib/table/base/TableColGroup.js +1 -1
- package/lib/table/base/TableContext.js +1 -1
- package/lib/table/base/TableEmptyBody.js +21 -21
- package/lib/table/base/TableFooter.js +1 -1
- package/lib/table/base/TableHeader.js +27 -27
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +29 -29
- package/lib/table/enhanced/Table.js +41 -41
- package/lib/table/enhanced/TableContext.js +1 -1
- package/lib/table/enhanced/useTree.js +26 -26
- package/lib/table/hooks/useColumns.js +4 -4
- package/lib/table/index.js +41 -41
- package/lib/table/primary/SorterButton.js +26 -26
- package/lib/table/primary/Table.js +41 -41
- package/lib/table/primary/expand-box.js +19 -19
- package/lib/table/primary/useChange.js +2 -2
- package/lib/table/primary/useExpand.js +26 -26
- package/lib/table/primary/useFilter.js +33 -33
- package/lib/table/primary/useFilterButton.js +33 -33
- package/lib/table/primary/useSelect.js +33 -33
- package/lib/table/primary/useSorter.js +30 -30
- package/lib/table/type.js +1 -1
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.js +1 -1
- package/lib/tabs/TabBar.js +21 -21
- package/lib/tabs/TabNav.js +144 -115
- package/lib/tabs/TabNav.js.map +1 -1
- package/lib/tabs/TabNavItem.d.ts +1 -0
- package/lib/tabs/TabNavItem.js +23 -21
- package/lib/tabs/TabNavItem.js.map +1 -1
- package/lib/tabs/TabPanel.js +19 -19
- package/lib/tabs/Tabs.js +36 -27
- package/lib/tabs/Tabs.js.map +1 -1
- package/lib/tabs/index.js +26 -22
- package/lib/tabs/index.js.map +1 -1
- package/lib/tabs/type.js +1 -1
- package/lib/tabs/useTabClass.js +19 -19
- package/lib/tag/CheckTag.js +22 -22
- package/lib/tag/Tag.js +22 -22
- package/lib/tag/index.js +22 -22
- package/lib/tag/type.js +1 -1
- package/lib/tag-input/TagInput.js +29 -28
- package/lib/tag-input/TagInput.js.map +1 -1
- package/lib/tag-input/index.js +29 -28
- package/lib/tag-input/index.js.map +1 -1
- package/lib/tag-input/type.js +1 -1
- package/lib/tag-input/useHover.js +3 -3
- package/lib/tag-input/useTagList.js +23 -23
- package/lib/tag-input/useTagScroll.js +3 -3
- package/lib/textarea/Textarea.js +36 -34
- package/lib/textarea/Textarea.js.map +1 -1
- package/lib/textarea/index.js +27 -27
- package/lib/textarea/type.js +1 -1
- package/lib/time-picker/InputItems.js +30 -30
- package/lib/time-picker/TimePicker.js +35 -35
- package/lib/time-picker/TimeRangePicker.js +35 -35
- package/lib/time-picker/consts.js +21 -21
- package/lib/time-picker/index.js +35 -35
- package/lib/time-picker/interfaces.js +1 -1
- package/lib/time-picker/panel/SinglePanel.js +30 -30
- package/lib/time-picker/panel/TimePickerPanel.js +32 -32
- package/lib/time-picker/panel/TimePickerRangePanel.js +32 -32
- package/lib/time-picker/type.js +1 -1
- package/lib/tooltip/Tooltip.js +26 -26
- package/lib/tooltip/index.js +26 -26
- package/lib/tooltip/type.js +1 -1
- package/lib/transfer/Transfer.js +44 -44
- package/lib/transfer/TransferList.js +42 -42
- package/lib/transfer/index.js +45 -45
- package/lib/transfer/type.js +1 -1
- package/lib/transfer/utils.js +16 -16
- package/lib/tree/Tree.js +45 -45
- package/lib/tree/TreeItem.js +30 -30
- package/lib/tree/index.js +45 -45
- package/lib/tree/interface.js +1 -1
- package/lib/tree/type.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +39 -39
- package/lib/tree/useTreeConfig.js +21 -21
- package/lib/tree-select/SelectArrow.js +19 -19
- package/lib/tree-select/TreeSelect.js +47 -47
- package/lib/tree-select/index.js +47 -47
- package/lib/tree-select/type.js +1 -1
- package/lib/tree-select/useTreeSelectLocale.js +21 -21
- package/lib/tree-select/useTreeSelectPassthoughProps.js +19 -19
- package/lib/tree-select/useTreeSelectUtils.js +33 -33
- package/lib/upload/boolean-render.js +1 -1
- package/lib/upload/dragger.js +23 -23
- package/lib/upload/hooks/useDefaultValue.js +6 -6
- package/lib/upload/hooks/useSizeLimit.js +21 -21
- package/lib/upload/index.js +38 -38
- package/lib/upload/themes/dragger-progress.js +23 -23
- package/lib/upload/themes/flow-list/file-list.js +23 -23
- package/lib/upload/themes/flow-list/img-list.js +23 -23
- package/lib/upload/themes/flow-list/index.js +23 -23
- package/lib/upload/themes/image-card.js +24 -24
- package/lib/upload/themes/single-file.js +23 -23
- package/lib/upload/tips.js +19 -19
- package/lib/upload/type.js +1 -1
- package/lib/upload/types.js +1 -1
- package/lib/upload/upload-trigger.js +23 -23
- package/lib/upload/upload.js +38 -38
- package/lib/upload/util.js +1 -1
- package/package.json +1 -1
- package/es/_chunks/dep-2982e386.js +0 -8
- package/es/_chunks/dep-2982e386.js.map +0 -1
- package/es/_chunks/dep-9ab77a39.js.map +0 -1
- package/esm/_chunks/dep-2982e386.js +0 -8
- package/esm/_chunks/dep-2982e386.js.map +0 -1
- package/esm/_chunks/dep-9ab77a39.js.map +0 -1
package/dist/tdesign.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.
|
|
2
|
+
* tdesign v0.30.1
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -2788,6 +2788,7 @@
|
|
|
2788
2788
|
image: "\u70B9\u51FB\u4E0A\u4F20\u56FE\u7247",
|
|
2789
2789
|
normal: "\u70B9\u51FB\u4E0A\u4F20",
|
|
2790
2790
|
reupload: "\u91CD\u65B0\u4E0A\u4F20",
|
|
2791
|
+
continueUpload: "\u7EE7\u7EED\u4E0A\u4F20",
|
|
2791
2792
|
"delete": "\u5220\u9664"
|
|
2792
2793
|
},
|
|
2793
2794
|
dragger: {
|
|
@@ -2811,19 +2812,19 @@
|
|
|
2811
2812
|
},
|
|
2812
2813
|
form: {
|
|
2813
2814
|
errorMessage: {
|
|
2814
|
-
date: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684{name}",
|
|
2815
|
-
url: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684{name}",
|
|
2816
|
-
required: "{name}\u5FC5\u586B",
|
|
2817
|
-
max: "{name}\u5B57\u7B26\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7 {validate} \u4E2A\u5B57\u7B26\uFF0C\u4E00\u4E2A\u4E2D\u6587\u7B49\u4E8E\u4E24\u4E2A\u5B57\u7B26",
|
|
2818
|
-
min: "{name}\u5B57\u7B26\u957F\u5EA6\u4E0D\u80FD\u5C11\u4E8E {validate} \u4E2A\u5B57\u7B26\uFF0C\u4E00\u4E2A\u4E2D\u6587\u7B49\u4E8E\u4E24\u4E2A\u5B57\u7B26",
|
|
2819
|
-
len: "{name}\u5B57\u7B26\u957F\u5EA6\u5FC5\u987B\u662F {validate}",
|
|
2820
|
-
"enum": "{name}\u53EA\u80FD\u662F{validate}\u7B49",
|
|
2821
|
-
idcard: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684{name}",
|
|
2822
|
-
telnumber: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684{name}",
|
|
2823
|
-
pattern: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684{name}",
|
|
2824
|
-
validator: "{name}\u4E0D\u7B26\u5408\u8981\u6C42",
|
|
2825
|
-
"boolean": "{name}\u6570\u636E\u7C7B\u578B\u5FC5\u987B\u662F\u5E03\u5C14\u7C7B\u578B",
|
|
2826
|
-
number: "{name}\u5FC5\u987B\u662F\u6570\u5B57"
|
|
2815
|
+
date: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684${name}",
|
|
2816
|
+
url: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684${name}",
|
|
2817
|
+
required: "${name}\u5FC5\u586B",
|
|
2818
|
+
max: "${name}\u5B57\u7B26\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7 ${validate} \u4E2A\u5B57\u7B26\uFF0C\u4E00\u4E2A\u4E2D\u6587\u7B49\u4E8E\u4E24\u4E2A\u5B57\u7B26",
|
|
2819
|
+
min: "${name}\u5B57\u7B26\u957F\u5EA6\u4E0D\u80FD\u5C11\u4E8E ${validate} \u4E2A\u5B57\u7B26\uFF0C\u4E00\u4E2A\u4E2D\u6587\u7B49\u4E8E\u4E24\u4E2A\u5B57\u7B26",
|
|
2820
|
+
len: "${name}\u5B57\u7B26\u957F\u5EA6\u5FC5\u987B\u662F ${validate}",
|
|
2821
|
+
"enum": "${name}\u53EA\u80FD\u662F${validate}\u7B49",
|
|
2822
|
+
idcard: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684${name}",
|
|
2823
|
+
telnumber: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684${name}",
|
|
2824
|
+
pattern: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684${name}",
|
|
2825
|
+
validator: "${name}\u4E0D\u7B26\u5408\u8981\u6C42",
|
|
2826
|
+
"boolean": "${name}\u6570\u636E\u7C7B\u578B\u5FC5\u987B\u662F\u5E03\u5C14\u7C7B\u578B",
|
|
2827
|
+
number: "${name}\u5FC5\u987B\u662F\u6570\u5B57"
|
|
2827
2828
|
}
|
|
2828
2829
|
},
|
|
2829
2830
|
input: {
|
|
@@ -2840,6 +2841,11 @@
|
|
|
2840
2841
|
anchor: {
|
|
2841
2842
|
copySuccessText: "\u94FE\u63A5\u590D\u5236\u6210\u529F",
|
|
2842
2843
|
copyText: "\u590D\u5236\u94FE\u63A5"
|
|
2844
|
+
},
|
|
2845
|
+
colorPicker: {
|
|
2846
|
+
swatchColorTitle: "\u7CFB\u7EDF\u9884\u8BBE\u989C\u8272",
|
|
2847
|
+
recentColorTitle: "\u6700\u8FD1\u4F7F\u7528\u989C\u8272",
|
|
2848
|
+
clearConfirmText: "\u786E\u5B9A\u6E05\u7A7A\u6700\u8FD1\u4F7F\u7528\u7684\u989C\u8272\u5417\uFF1F"
|
|
2843
2849
|
}
|
|
2844
2850
|
};
|
|
2845
2851
|
|
|
@@ -3969,16 +3975,16 @@
|
|
|
3969
3975
|
if (attach) {
|
|
3970
3976
|
return /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
3971
3977
|
attach: attach
|
|
3972
|
-
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
3978
|
+
}, loading ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
3973
3979
|
className: classNames$1(name, baseClasses, fullClass, _defineProperty$2({}, overlayClass, showOverlay)),
|
|
3974
3980
|
style: calcStyles
|
|
3975
|
-
}, commonContent()));
|
|
3981
|
+
}, commonContent()) : null);
|
|
3976
3982
|
}
|
|
3977
3983
|
|
|
3978
|
-
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
3984
|
+
return loading ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
3979
3985
|
className: classNames$1(name, baseClasses),
|
|
3980
3986
|
style: calcStyles
|
|
3981
|
-
}, commonContent());
|
|
3987
|
+
}, commonContent()) : null;
|
|
3982
3988
|
};
|
|
3983
3989
|
|
|
3984
3990
|
function ownKeys$25(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -12933,11 +12939,114 @@
|
|
|
12933
12939
|
}, restProps);
|
|
12934
12940
|
}
|
|
12935
12941
|
|
|
12936
|
-
var
|
|
12942
|
+
var baseMerge = _baseMerge,
|
|
12943
|
+
createAssigner$1 = _createAssigner;
|
|
12944
|
+
/**
|
|
12945
|
+
* This method is like `_.merge` except that it accepts `customizer` which
|
|
12946
|
+
* is invoked to produce the merged values of the destination and source
|
|
12947
|
+
* properties. If `customizer` returns `undefined`, merging is handled by the
|
|
12948
|
+
* method instead. The `customizer` is invoked with six arguments:
|
|
12949
|
+
* (objValue, srcValue, key, object, source, stack).
|
|
12950
|
+
*
|
|
12951
|
+
* **Note:** This method mutates `object`.
|
|
12952
|
+
*
|
|
12953
|
+
* @static
|
|
12954
|
+
* @memberOf _
|
|
12955
|
+
* @since 4.0.0
|
|
12956
|
+
* @category Object
|
|
12957
|
+
* @param {Object} object The destination object.
|
|
12958
|
+
* @param {...Object} sources The source objects.
|
|
12959
|
+
* @param {Function} customizer The function to customize assigned values.
|
|
12960
|
+
* @returns {Object} Returns `object`.
|
|
12961
|
+
* @example
|
|
12962
|
+
*
|
|
12963
|
+
* function customizer(objValue, srcValue) {
|
|
12964
|
+
* if (_.isArray(objValue)) {
|
|
12965
|
+
* return objValue.concat(srcValue);
|
|
12966
|
+
* }
|
|
12967
|
+
* }
|
|
12968
|
+
*
|
|
12969
|
+
* var object = { 'a': [1], 'b': [2] };
|
|
12970
|
+
* var other = { 'a': [3], 'b': [4] };
|
|
12971
|
+
*
|
|
12972
|
+
* _.mergeWith(object, other, customizer);
|
|
12973
|
+
* // => { 'a': [1, 3], 'b': [2, 4] }
|
|
12974
|
+
*/
|
|
12975
|
+
|
|
12976
|
+
var mergeWith = createAssigner$1(function (object, source, srcIndex, customizer) {
|
|
12977
|
+
baseMerge(object, source, srcIndex, customizer);
|
|
12978
|
+
});
|
|
12979
|
+
var mergeWith_1 = mergeWith;
|
|
12980
|
+
|
|
12981
|
+
var merge$1 = function merge(src, config) {
|
|
12982
|
+
return mergeWith_1(src, config, function (objValue, srcValue) {
|
|
12983
|
+
if (Array.isArray(objValue)) {
|
|
12984
|
+
return srcValue;
|
|
12985
|
+
}
|
|
12986
|
+
});
|
|
12987
|
+
};
|
|
12988
|
+
function ConfigProvider(_ref) {
|
|
12989
|
+
var children = _ref.children,
|
|
12990
|
+
globalConfig = _ref.globalConfig;
|
|
12991
|
+
var mergedGlobalConfig = merge$1(defaultGlobalConfig, globalConfig);
|
|
12992
|
+
return /* @__PURE__ */React__default["default"].createElement(ConfigContext$1.Provider, {
|
|
12993
|
+
value: {
|
|
12994
|
+
globalConfig: mergedGlobalConfig
|
|
12995
|
+
}
|
|
12996
|
+
}, children);
|
|
12997
|
+
}
|
|
12998
|
+
ConfigProvider.displayName = "ConfigProvider";
|
|
12937
12999
|
|
|
12938
13000
|
function ownKeys$1s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12939
13001
|
|
|
12940
13002
|
function _objectSpread$1s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1s(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13003
|
+
function useLocaleReceiver(componentName, defaultLocale) {
|
|
13004
|
+
var _React$useContext = React__default["default"].useContext(ConfigContext$1),
|
|
13005
|
+
globalConfig = _React$useContext.globalConfig;
|
|
13006
|
+
|
|
13007
|
+
function transformLocale(pattern, placement) {
|
|
13008
|
+
var REGX = /\{\s*([\w-]+)\s*\}/g;
|
|
13009
|
+
|
|
13010
|
+
if (typeof pattern === "string") {
|
|
13011
|
+
if (!placement || !REGX.test(pattern)) return pattern;
|
|
13012
|
+
var translated = pattern.replace(REGX, function (_, key) {
|
|
13013
|
+
if (placement) return String(placement[key]);
|
|
13014
|
+
return "";
|
|
13015
|
+
});
|
|
13016
|
+
return translated;
|
|
13017
|
+
}
|
|
13018
|
+
|
|
13019
|
+
if (Array.isArray(pattern)) {
|
|
13020
|
+
return pattern.map(function (p, index) {
|
|
13021
|
+
var translated = p.replace(REGX, function (_, key) {
|
|
13022
|
+
if (placement) return String(placement[index][key]);
|
|
13023
|
+
return "";
|
|
13024
|
+
});
|
|
13025
|
+
return translated;
|
|
13026
|
+
});
|
|
13027
|
+
}
|
|
13028
|
+
|
|
13029
|
+
if (typeof pattern === "function") {
|
|
13030
|
+
return pattern(placement);
|
|
13031
|
+
}
|
|
13032
|
+
|
|
13033
|
+
return "";
|
|
13034
|
+
}
|
|
13035
|
+
|
|
13036
|
+
var componentLocale = React__default["default"].useMemo(function () {
|
|
13037
|
+
var locale = defaultLocale || {};
|
|
13038
|
+
var connectLocaleByName = globalConfig[componentName];
|
|
13039
|
+
var localeFromContext = componentName && globalConfig ? connectLocaleByName : {};
|
|
13040
|
+
return _objectSpread$1s(_objectSpread$1s({}, typeof locale === "function" ? locale() : locale), localeFromContext || {});
|
|
13041
|
+
}, [componentName, defaultLocale, globalConfig]);
|
|
13042
|
+
return [componentLocale, transformLocale];
|
|
13043
|
+
}
|
|
13044
|
+
|
|
13045
|
+
var _excluded$o = ["type", "autoWidth", "placeholder", "disabled", "status", "size", "className", "inputClass", "style", "prefixIcon", "suffixIcon", "clearable", "value", "tips", "align", "maxlength", "maxcharacter", "format", "onClick", "onChange", "onClear", "onEnter", "onKeydown", "onKeyup", "onKeypress", "onFocus", "onBlur", "onPaste", "onMouseenter", "onMouseleave", "onWheel", "onCompositionstart", "onCompositionend", "showClearIconOnEmpty", "autofocus", "autocomplete", "readonly", "label", "suffix"];
|
|
13046
|
+
|
|
13047
|
+
function ownKeys$1r(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13048
|
+
|
|
13049
|
+
function _objectSpread$1r(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1r(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1r(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12941
13050
|
|
|
12942
13051
|
var renderIcon$1 = function renderIcon(classPrefix, type, icon) {
|
|
12943
13052
|
var result = null;
|
|
@@ -12957,10 +13066,16 @@
|
|
|
12957
13066
|
var Input$1 = forwardRefWithStatics(function (props, ref) {
|
|
12958
13067
|
var _classNames;
|
|
12959
13068
|
|
|
13069
|
+
var _useLocaleReceiver = useLocaleReceiver("input"),
|
|
13070
|
+
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
13071
|
+
local = _useLocaleReceiver2[0],
|
|
13072
|
+
t = _useLocaleReceiver2[1];
|
|
13073
|
+
|
|
12960
13074
|
var _useDefaultValue = useDefaultValue$1(props, ""),
|
|
12961
13075
|
type = _useDefaultValue.type,
|
|
12962
13076
|
autoWidth = _useDefaultValue.autoWidth,
|
|
12963
|
-
|
|
13077
|
+
_useDefaultValue$plac = _useDefaultValue.placeholder,
|
|
13078
|
+
placeholder = _useDefaultValue$plac === void 0 ? t(local.placeholder) : _useDefaultValue$plac,
|
|
12964
13079
|
disabled = _useDefaultValue.disabled,
|
|
12965
13080
|
status = _useDefaultValue.status,
|
|
12966
13081
|
size = _useDefaultValue.size,
|
|
@@ -13248,7 +13363,7 @@
|
|
|
13248
13363
|
}
|
|
13249
13364
|
};
|
|
13250
13365
|
});
|
|
13251
|
-
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$
|
|
13366
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1r({
|
|
13252
13367
|
ref: wrapperRef,
|
|
13253
13368
|
style: style,
|
|
13254
13369
|
className: classNames$1(className, "".concat(classPrefix, "-input__wrap"), _defineProperty$2({}, "".concat(classPrefix, "-input--auto-width"), autoWidth))
|
|
@@ -13264,9 +13379,9 @@
|
|
|
13264
13379
|
|
|
13265
13380
|
var _excluded$n = ["prepend", "append", "children", "className"];
|
|
13266
13381
|
|
|
13267
|
-
function ownKeys$
|
|
13382
|
+
function ownKeys$1q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13268
13383
|
|
|
13269
|
-
function _objectSpread$
|
|
13384
|
+
function _objectSpread$1q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1q(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13270
13385
|
|
|
13271
13386
|
var renderAddon = function renderAddon(type, classPrefix, Content) {
|
|
13272
13387
|
var result;
|
|
@@ -13298,7 +13413,7 @@
|
|
|
13298
13413
|
className = props.className,
|
|
13299
13414
|
wrapperProps = _objectWithoutProperties$1(props, _excluded$n);
|
|
13300
13415
|
|
|
13301
|
-
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$
|
|
13416
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1q({
|
|
13302
13417
|
ref: ref,
|
|
13303
13418
|
className: classNames$1(className, "".concat(classPrefix, "-addon"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-addon--prepend"), !!prepend), _defineProperty$2(_classNames, "".concat(classPrefix, "-addon--append"), !!append), _classNames))
|
|
13304
13419
|
}, wrapperProps), renderAddon("prepend", classPrefix, prepend), children, renderAddon("append", classPrefix, append));
|
|
@@ -13307,109 +13422,6 @@
|
|
|
13307
13422
|
|
|
13308
13423
|
var Addon = Addon$1;
|
|
13309
13424
|
|
|
13310
|
-
var baseMerge = _baseMerge,
|
|
13311
|
-
createAssigner$1 = _createAssigner;
|
|
13312
|
-
/**
|
|
13313
|
-
* This method is like `_.merge` except that it accepts `customizer` which
|
|
13314
|
-
* is invoked to produce the merged values of the destination and source
|
|
13315
|
-
* properties. If `customizer` returns `undefined`, merging is handled by the
|
|
13316
|
-
* method instead. The `customizer` is invoked with six arguments:
|
|
13317
|
-
* (objValue, srcValue, key, object, source, stack).
|
|
13318
|
-
*
|
|
13319
|
-
* **Note:** This method mutates `object`.
|
|
13320
|
-
*
|
|
13321
|
-
* @static
|
|
13322
|
-
* @memberOf _
|
|
13323
|
-
* @since 4.0.0
|
|
13324
|
-
* @category Object
|
|
13325
|
-
* @param {Object} object The destination object.
|
|
13326
|
-
* @param {...Object} sources The source objects.
|
|
13327
|
-
* @param {Function} customizer The function to customize assigned values.
|
|
13328
|
-
* @returns {Object} Returns `object`.
|
|
13329
|
-
* @example
|
|
13330
|
-
*
|
|
13331
|
-
* function customizer(objValue, srcValue) {
|
|
13332
|
-
* if (_.isArray(objValue)) {
|
|
13333
|
-
* return objValue.concat(srcValue);
|
|
13334
|
-
* }
|
|
13335
|
-
* }
|
|
13336
|
-
*
|
|
13337
|
-
* var object = { 'a': [1], 'b': [2] };
|
|
13338
|
-
* var other = { 'a': [3], 'b': [4] };
|
|
13339
|
-
*
|
|
13340
|
-
* _.mergeWith(object, other, customizer);
|
|
13341
|
-
* // => { 'a': [1, 3], 'b': [2, 4] }
|
|
13342
|
-
*/
|
|
13343
|
-
|
|
13344
|
-
var mergeWith = createAssigner$1(function (object, source, srcIndex, customizer) {
|
|
13345
|
-
baseMerge(object, source, srcIndex, customizer);
|
|
13346
|
-
});
|
|
13347
|
-
var mergeWith_1 = mergeWith;
|
|
13348
|
-
|
|
13349
|
-
var merge$1 = function merge(src, config) {
|
|
13350
|
-
return mergeWith_1(src, config, function (objValue, srcValue) {
|
|
13351
|
-
if (Array.isArray(objValue)) {
|
|
13352
|
-
return srcValue;
|
|
13353
|
-
}
|
|
13354
|
-
});
|
|
13355
|
-
};
|
|
13356
|
-
function ConfigProvider(_ref) {
|
|
13357
|
-
var children = _ref.children,
|
|
13358
|
-
globalConfig = _ref.globalConfig;
|
|
13359
|
-
var mergedGlobalConfig = merge$1(defaultGlobalConfig, globalConfig);
|
|
13360
|
-
return /* @__PURE__ */React__default["default"].createElement(ConfigContext$1.Provider, {
|
|
13361
|
-
value: {
|
|
13362
|
-
globalConfig: mergedGlobalConfig
|
|
13363
|
-
}
|
|
13364
|
-
}, children);
|
|
13365
|
-
}
|
|
13366
|
-
ConfigProvider.displayName = "ConfigProvider";
|
|
13367
|
-
|
|
13368
|
-
function ownKeys$1q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13369
|
-
|
|
13370
|
-
function _objectSpread$1q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1q(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13371
|
-
function useLocaleReceiver(componentName, defaultLocale) {
|
|
13372
|
-
var _React$useContext = React__default["default"].useContext(ConfigContext$1),
|
|
13373
|
-
globalConfig = _React$useContext.globalConfig;
|
|
13374
|
-
|
|
13375
|
-
function transformLocale(pattern, placement) {
|
|
13376
|
-
var REGX = /\{\s*([\w-]+)\s*\}/g;
|
|
13377
|
-
|
|
13378
|
-
if (typeof pattern === "string") {
|
|
13379
|
-
if (!placement || !REGX.test(pattern)) return pattern;
|
|
13380
|
-
var translated = pattern.replace(REGX, function (_, key) {
|
|
13381
|
-
if (placement) return String(placement[key]);
|
|
13382
|
-
return "";
|
|
13383
|
-
});
|
|
13384
|
-
return translated;
|
|
13385
|
-
}
|
|
13386
|
-
|
|
13387
|
-
if (Array.isArray(pattern)) {
|
|
13388
|
-
return pattern.map(function (p, index) {
|
|
13389
|
-
var translated = p.replace(REGX, function (_, key) {
|
|
13390
|
-
if (placement) return String(placement[index][key]);
|
|
13391
|
-
return "";
|
|
13392
|
-
});
|
|
13393
|
-
return translated;
|
|
13394
|
-
});
|
|
13395
|
-
}
|
|
13396
|
-
|
|
13397
|
-
if (typeof pattern === "function") {
|
|
13398
|
-
return pattern(placement);
|
|
13399
|
-
}
|
|
13400
|
-
|
|
13401
|
-
return "";
|
|
13402
|
-
}
|
|
13403
|
-
|
|
13404
|
-
var componentLocale = React__default["default"].useMemo(function () {
|
|
13405
|
-
var locale = defaultLocale || {};
|
|
13406
|
-
var connectLocaleByName = globalConfig[componentName];
|
|
13407
|
-
var localeFromContext = componentName && globalConfig ? connectLocaleByName : {};
|
|
13408
|
-
return _objectSpread$1q(_objectSpread$1q({}, typeof locale === "function" ? locale() : locale), localeFromContext || {});
|
|
13409
|
-
}, [componentName, defaultLocale, globalConfig]);
|
|
13410
|
-
return [componentLocale, transformLocale];
|
|
13411
|
-
}
|
|
13412
|
-
|
|
13413
13425
|
var _excluded$m = ["message", "title", "operation", "theme", "icon", "close", "maxLine", "onClose", "className"];
|
|
13414
13426
|
|
|
13415
13427
|
function ownKeys$1p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -14374,6 +14386,11 @@
|
|
|
14374
14386
|
});
|
|
14375
14387
|
}
|
|
14376
14388
|
|
|
14389
|
+
if (inputStr.endsWith(".")) {
|
|
14390
|
+
setInternalInputValue(inputStr);
|
|
14391
|
+
return;
|
|
14392
|
+
}
|
|
14393
|
+
|
|
14377
14394
|
var filteredInputStr = strToNumber(inputStr);
|
|
14378
14395
|
|
|
14379
14396
|
if (Number.isNaN(filteredInputStr)) {
|
|
@@ -16017,7 +16034,7 @@
|
|
|
16017
16034
|
return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({
|
|
16018
16035
|
ref: inputRef
|
|
16019
16036
|
}, commonInputProps), {}, {
|
|
16020
|
-
autoWidth: props.
|
|
16037
|
+
autoWidth: props.autoWidth,
|
|
16021
16038
|
placeholder: singleValueDisplay ? "" : props.placeholder,
|
|
16022
16039
|
value: singleValueDisplay ? void 0 : displayedValue,
|
|
16023
16040
|
label: /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, props.label, singleValueDisplay),
|
|
@@ -26299,7 +26316,7 @@
|
|
|
26299
26316
|
ref: tagInputRef
|
|
26300
26317
|
}, p.commonInputProps), {}, {
|
|
26301
26318
|
readonly: !props.allowInput || props.readonly,
|
|
26302
|
-
autoWidth: props.
|
|
26319
|
+
autoWidth: props.autoWidth,
|
|
26303
26320
|
minCollapsedNum: props.minCollapsedNum,
|
|
26304
26321
|
collapsedItems: props.collapsedItems,
|
|
26305
26322
|
tag: props.tag,
|
|
@@ -26352,7 +26369,6 @@
|
|
|
26352
26369
|
var MAX_POPUP_WIDTH = 1e3;
|
|
26353
26370
|
function useOverlayStyle(props) {
|
|
26354
26371
|
var popupProps = props.popupProps,
|
|
26355
|
-
borderless = props.borderless,
|
|
26356
26372
|
autoWidth = props.autoWidth;
|
|
26357
26373
|
|
|
26358
26374
|
var _useState = React.useState(false),
|
|
@@ -26390,12 +26406,12 @@
|
|
|
26390
26406
|
|
|
26391
26407
|
if (isFunction_1(overlayStyle) || isObject_1(overlayStyle) && overlayStyle.width) {
|
|
26392
26408
|
result = overlayStyle;
|
|
26393
|
-
} else if (!
|
|
26409
|
+
} else if (!autoWidth) {
|
|
26394
26410
|
result = macthWidthFunc;
|
|
26395
26411
|
}
|
|
26396
26412
|
|
|
26397
26413
|
return result;
|
|
26398
|
-
}, [
|
|
26414
|
+
}, [autoWidth, popupProps === null || popupProps === void 0 ? void 0 : popupProps.overlayStyle]);
|
|
26399
26415
|
return {
|
|
26400
26416
|
tOverlayStyle: tOverlayStyle,
|
|
26401
26417
|
innerPopupVisible: innerPopupVisible,
|
|
@@ -26875,6 +26891,7 @@
|
|
|
26875
26891
|
};
|
|
26876
26892
|
|
|
26877
26893
|
var handleInputChange = function handleInputChange(value2) {
|
|
26894
|
+
if (selectedLabel === value2) return;
|
|
26878
26895
|
onInputChange(value2);
|
|
26879
26896
|
|
|
26880
26897
|
if (isFunction_1(onSearch)) {
|
|
@@ -27326,6 +27343,7 @@
|
|
|
27326
27343
|
}, renderPaginationBtns), theme === "simple" && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
27327
27344
|
className: "".concat(name, "__select")
|
|
27328
27345
|
}, /* @__PURE__ */React__default["default"].createElement(Select, {
|
|
27346
|
+
autoWidth: true,
|
|
27329
27347
|
size: size,
|
|
27330
27348
|
value: current,
|
|
27331
27349
|
disabled: disabled,
|
|
@@ -27352,7 +27370,8 @@
|
|
|
27352
27370
|
max: pageCount,
|
|
27353
27371
|
disabled: disabled,
|
|
27354
27372
|
onChange: onPageInputChange,
|
|
27355
|
-
onKeyup: onPageInputKeyUp
|
|
27373
|
+
onKeyup: onPageInputKeyUp,
|
|
27374
|
+
placeholder: ""
|
|
27356
27375
|
}), t(locale.page)));
|
|
27357
27376
|
};
|
|
27358
27377
|
|
|
@@ -30483,7 +30502,8 @@
|
|
|
30483
30502
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
30484
30503
|
index = props.index,
|
|
30485
30504
|
_props$onTabRemove = props.onTabRemove,
|
|
30486
|
-
onTabRemove = _props$onTabRemove === void 0 ? noop$1 : _props$onTabRemove
|
|
30505
|
+
onTabRemove = _props$onTabRemove === void 0 ? noop$1 : _props$onTabRemove,
|
|
30506
|
+
innerRef = props.innerRef;
|
|
30487
30507
|
var isCard = theme === "card";
|
|
30488
30508
|
|
|
30489
30509
|
var _useTabClass = useTabClass(),
|
|
@@ -30494,6 +30514,7 @@
|
|
|
30494
30514
|
var rippleRef = React.useRef();
|
|
30495
30515
|
useRipple(rippleRef);
|
|
30496
30516
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30517
|
+
ref: innerRef,
|
|
30497
30518
|
onClick: disabled ? noop$1 : onClick,
|
|
30498
30519
|
className: classNames$1(tdTabsClassGenerator("nav-item"), isCard ? tdTabsClassGenerator("nav--card") : "", tdSizeClassGenerator(size), isActive ? tdClassGenerator("is-active") : "", tdClassGenerator("is-".concat(placement)), disabled ? tdClassGenerator("is-disabled") : "")
|
|
30499
30520
|
}, isCard ? /* @__PURE__ */React__default["default"].createElement("span", {
|
|
@@ -30590,9 +30611,155 @@
|
|
|
30590
30611
|
|
|
30591
30612
|
TabBar.displayName = "TabBar";
|
|
30592
30613
|
|
|
30614
|
+
var getDomWidth = function getDomWidth(dom) {
|
|
30615
|
+
return (dom === null || dom === void 0 ? void 0 : dom.offsetWidth) || 0;
|
|
30616
|
+
};
|
|
30617
|
+
|
|
30618
|
+
var tabBase = {
|
|
30619
|
+
calcScrollLeft: function calcScrollLeft(elements, scrollLeft) {
|
|
30620
|
+
var container = elements.navsContainer;
|
|
30621
|
+
var wrap = elements.navsWrap;
|
|
30622
|
+
var rightOperations = elements.rightOperations;
|
|
30623
|
+
var rightOperationsZoneWidth = getDomWidth(rightOperations);
|
|
30624
|
+
if (!wrap || !container) return scrollLeft;
|
|
30625
|
+
var containerWidth = getDomWidth(container);
|
|
30626
|
+
var wrapWidth = getDomWidth(wrap);
|
|
30627
|
+
|
|
30628
|
+
if (wrapWidth <= containerWidth) {
|
|
30629
|
+
return 0;
|
|
30630
|
+
}
|
|
30631
|
+
|
|
30632
|
+
if (scrollLeft + containerWidth - rightOperationsZoneWidth > wrapWidth) {
|
|
30633
|
+
return wrapWidth + rightOperationsZoneWidth - containerWidth;
|
|
30634
|
+
}
|
|
30635
|
+
|
|
30636
|
+
return scrollLeft;
|
|
30637
|
+
},
|
|
30638
|
+
calculateCanToLeft: function calculateCanToLeft(depElement, scrollLeft, placement) {
|
|
30639
|
+
if (["left", "right"].includes(placement.toLowerCase())) {
|
|
30640
|
+
return false;
|
|
30641
|
+
}
|
|
30642
|
+
|
|
30643
|
+
var container = depElement.navsContainer,
|
|
30644
|
+
wrap = depElement.navsWrap,
|
|
30645
|
+
leftOperations = depElement.leftOperations,
|
|
30646
|
+
toLeftBtn = depElement.toLeftBtn;
|
|
30647
|
+
|
|
30648
|
+
if (!wrap || !container) {
|
|
30649
|
+
return false;
|
|
30650
|
+
}
|
|
30651
|
+
|
|
30652
|
+
var leftOperationsZoneWidth = getDomWidth(leftOperations);
|
|
30653
|
+
var leftIconWidth = getDomWidth(toLeftBtn);
|
|
30654
|
+
return scrollLeft + Math.round(leftOperationsZoneWidth - leftIconWidth) > 0;
|
|
30655
|
+
},
|
|
30656
|
+
calculateCanToRight: function calculateCanToRight(depElement, scrollLeft, placement) {
|
|
30657
|
+
if (["left", "right"].includes(placement.toLowerCase())) {
|
|
30658
|
+
return false;
|
|
30659
|
+
}
|
|
30660
|
+
|
|
30661
|
+
var container = depElement.navsContainer,
|
|
30662
|
+
wrap = depElement.navsWrap,
|
|
30663
|
+
rightOperations = depElement.rightOperations,
|
|
30664
|
+
toRightBtn = depElement.toRightBtn;
|
|
30665
|
+
|
|
30666
|
+
if (!wrap || !container) {
|
|
30667
|
+
return false;
|
|
30668
|
+
}
|
|
30669
|
+
|
|
30670
|
+
var rightOperationsZoneWidth = getDomWidth(rightOperations);
|
|
30671
|
+
var rightIconWidth = getDomWidth(toRightBtn);
|
|
30672
|
+
return scrollLeft + getDomWidth(container) - (rightOperationsZoneWidth - rightIconWidth) - getDomWidth(wrap) < -1;
|
|
30673
|
+
},
|
|
30674
|
+
moveActiveTabIntoView: function moveActiveTabIntoView(depElement, scrollLeft) {
|
|
30675
|
+
var activeTab = depElement.activeTab,
|
|
30676
|
+
container = depElement.navsContainer,
|
|
30677
|
+
navsWrap = depElement.navsWrap,
|
|
30678
|
+
leftOperations = depElement.leftOperations,
|
|
30679
|
+
toLeftBtn = depElement.toLeftBtn,
|
|
30680
|
+
rightOperations = depElement.rightOperations,
|
|
30681
|
+
toRightBtn = depElement.toRightBtn;
|
|
30682
|
+
if (!activeTab) return scrollLeft;
|
|
30683
|
+
var totalWidthBeforeActiveTab = activeTab.offsetLeft;
|
|
30684
|
+
if (!container) return scrollLeft;
|
|
30685
|
+
|
|
30686
|
+
var _getLeftCoverWidth = function _getLeftCoverWidth() {
|
|
30687
|
+
var leftOperationsZoneWidth = getDomWidth(leftOperations);
|
|
30688
|
+
var leftIconWidth = getDomWidth(toLeftBtn);
|
|
30689
|
+
|
|
30690
|
+
if (totalWidthBeforeActiveTab === 0) {
|
|
30691
|
+
return leftOperationsZoneWidth - leftIconWidth;
|
|
30692
|
+
}
|
|
30693
|
+
|
|
30694
|
+
return leftOperationsZoneWidth;
|
|
30695
|
+
};
|
|
30696
|
+
|
|
30697
|
+
var leftCoverWidth = _getLeftCoverWidth();
|
|
30698
|
+
|
|
30699
|
+
var isCurrentTabHiddenInLeftZone = scrollLeft + leftCoverWidth > totalWidthBeforeActiveTab;
|
|
30700
|
+
|
|
30701
|
+
if (isCurrentTabHiddenInLeftZone) {
|
|
30702
|
+
return totalWidthBeforeActiveTab - leftCoverWidth;
|
|
30703
|
+
}
|
|
30704
|
+
|
|
30705
|
+
var activeTabWidth = activeTab.offsetWidth;
|
|
30706
|
+
if (!container || !navsWrap) return scrollLeft;
|
|
30707
|
+
var containerWidth = getDomWidth(container);
|
|
30708
|
+
|
|
30709
|
+
var _getRightCoverWidth = function _getRightCoverWidth() {
|
|
30710
|
+
var rightOperationsZoneWidth = getDomWidth(rightOperations);
|
|
30711
|
+
var rightIconWidth = getDomWidth(toRightBtn);
|
|
30712
|
+
var wrapWidth = getDomWidth(navsWrap);
|
|
30713
|
+
|
|
30714
|
+
if (Math.abs(totalWidthBeforeActiveTab + activeTabWidth - wrapWidth) < 1) {
|
|
30715
|
+
return rightOperationsZoneWidth - rightIconWidth;
|
|
30716
|
+
}
|
|
30717
|
+
|
|
30718
|
+
return rightOperationsZoneWidth;
|
|
30719
|
+
};
|
|
30720
|
+
|
|
30721
|
+
var rightCoverWidth = _getRightCoverWidth();
|
|
30722
|
+
|
|
30723
|
+
var isHiddenInRightZone = scrollLeft + containerWidth - rightCoverWidth < totalWidthBeforeActiveTab + activeTabWidth;
|
|
30724
|
+
|
|
30725
|
+
if (isHiddenInRightZone) {
|
|
30726
|
+
return totalWidthBeforeActiveTab + activeTabWidth - containerWidth + rightCoverWidth;
|
|
30727
|
+
}
|
|
30728
|
+
|
|
30729
|
+
return scrollLeft;
|
|
30730
|
+
},
|
|
30731
|
+
scrollToLeft: function scrollToLeft(depElement, scrollLeft) {
|
|
30732
|
+
var container = depElement.navsContainer,
|
|
30733
|
+
leftOperations = depElement.leftOperations,
|
|
30734
|
+
toLeftBtn = depElement.toLeftBtn;
|
|
30735
|
+
if (!container) return 0;
|
|
30736
|
+
var leftOperationsZoneWidth = getDomWidth(leftOperations);
|
|
30737
|
+
var leftIconWidth = getDomWidth(toLeftBtn);
|
|
30738
|
+
var containerWidth = getDomWidth(container);
|
|
30739
|
+
return Math.max(-(leftOperationsZoneWidth - leftIconWidth), scrollLeft - containerWidth);
|
|
30740
|
+
},
|
|
30741
|
+
scrollToRight: function scrollToRight(depElement, scrollLeft) {
|
|
30742
|
+
var container = depElement.navsContainer,
|
|
30743
|
+
wrap = depElement.navsWrap,
|
|
30744
|
+
rightOperations = depElement.rightOperations,
|
|
30745
|
+
toRightBtn = depElement.toRightBtn;
|
|
30746
|
+
var rightOperationsZoneWidth = getDomWidth(rightOperations);
|
|
30747
|
+
var rightIconWidth = getDomWidth(toRightBtn);
|
|
30748
|
+
var containerWidth = getDomWidth(container);
|
|
30749
|
+
var wrapWidth = getDomWidth(wrap);
|
|
30750
|
+
return Math.min(scrollLeft + containerWidth, wrapWidth - containerWidth + rightOperationsZoneWidth - rightIconWidth);
|
|
30751
|
+
}
|
|
30752
|
+
};
|
|
30753
|
+
|
|
30593
30754
|
function ownKeys$N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
30594
30755
|
|
|
30595
30756
|
function _objectSpread$N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$N(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
30757
|
+
var moveActiveTabIntoView = tabBase.moveActiveTabIntoView,
|
|
30758
|
+
calcScrollLeft = tabBase.calcScrollLeft,
|
|
30759
|
+
scrollToLeft = tabBase.scrollToLeft,
|
|
30760
|
+
scrollToRight = tabBase.scrollToRight,
|
|
30761
|
+
calculateCanToLeft = tabBase.calculateCanToLeft,
|
|
30762
|
+
calculateCanToRight = tabBase.calculateCanToRight;
|
|
30596
30763
|
|
|
30597
30764
|
var TabNav = function TabNav(props) {
|
|
30598
30765
|
var _props$placement = props.placement,
|
|
@@ -30619,107 +30786,120 @@
|
|
|
30619
30786
|
tdClassGenerator = _useTabClass.tdClassGenerator,
|
|
30620
30787
|
tdSizeClassGenerator = _useTabClass.tdSizeClassGenerator;
|
|
30621
30788
|
|
|
30622
|
-
var
|
|
30789
|
+
var navsContainerRef = React.useRef(null);
|
|
30790
|
+
var navsWrapRef = React.useRef(null);
|
|
30623
30791
|
var getIndex = React.useCallback(function (value) {
|
|
30624
|
-
var index =
|
|
30625
|
-
|
|
30626
|
-
if (v.value === value) {
|
|
30627
|
-
index = i;
|
|
30628
|
-
}
|
|
30792
|
+
var index = itemList.findIndex(function (item) {
|
|
30793
|
+
return item.value === value;
|
|
30629
30794
|
});
|
|
30630
|
-
return index;
|
|
30795
|
+
return index > -1 ? index : 0;
|
|
30631
30796
|
}, [itemList]);
|
|
30632
30797
|
var activeIndex = getIndex(activeValue);
|
|
30633
30798
|
|
|
30634
30799
|
var _useState = React.useState(false),
|
|
30635
30800
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30636
|
-
|
|
30637
|
-
|
|
30801
|
+
canToLeft = _useState2[0],
|
|
30802
|
+
setToLeftBtnVisible = _useState2[1];
|
|
30638
30803
|
|
|
30639
30804
|
var _useState3 = React.useState(false),
|
|
30640
30805
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
30641
|
-
|
|
30642
|
-
|
|
30643
|
-
|
|
30644
|
-
var _useState5 = React.useState(false),
|
|
30645
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
30646
|
-
rightScrollBtnVisible = _useState6[0],
|
|
30647
|
-
setRightScrollBtnVisible = _useState6[1];
|
|
30806
|
+
canToRight = _useState4[0],
|
|
30807
|
+
setToRightBtnVisible = _useState4[1];
|
|
30648
30808
|
|
|
30649
30809
|
var scrollBarRef = React.useRef(null);
|
|
30650
|
-
var
|
|
30651
|
-
var
|
|
30652
|
-
|
|
30653
|
-
var
|
|
30654
|
-
var scrollLeft = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : void 0;
|
|
30655
|
-
|
|
30656
|
-
if (!scrollBarRef.current || !navContainerRef.current) {
|
|
30657
|
-
console.error("[tdesign-tabs]\u6EDA\u52A8\u6761\u548C\u5185\u5BB9\u533A dom \u7ED3\u6784\u5F02\u5E38");
|
|
30658
|
-
return [false, false, false];
|
|
30659
|
-
}
|
|
30660
|
-
|
|
30661
|
-
var innerScrollLeft = scrollBarRef.current.scrollLeft;
|
|
30662
|
-
|
|
30663
|
-
if (scrollLeft !== void 0) {
|
|
30664
|
-
innerScrollLeft = scrollLeft;
|
|
30665
|
-
}
|
|
30666
|
-
|
|
30667
|
-
var isScrollVisible2 = scrollBarRef.current.clientWidth < navContainerRef.current.clientWidth;
|
|
30668
|
-
var leftVisible = innerScrollLeft > 0;
|
|
30669
|
-
var rightVisible = isScrollVisible2 && innerScrollLeft < navContainerRef.current.clientWidth - scrollBarRef.current.clientWidth;
|
|
30670
|
-
return [isScrollVisible2, leftVisible, rightVisible];
|
|
30671
|
-
};
|
|
30672
|
-
|
|
30673
|
-
var setScrollBtnVisibleHandler = function setScrollBtnVisibleHandler() {
|
|
30674
|
-
var scrollLeft = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : void 0;
|
|
30675
|
-
|
|
30676
|
-
var _getScrollBtnVisible = getScrollBtnVisible(scrollLeft),
|
|
30677
|
-
_getScrollBtnVisible2 = _slicedToArray(_getScrollBtnVisible, 3),
|
|
30678
|
-
isScrollVisible2 = _getScrollBtnVisible2[0],
|
|
30679
|
-
leftVisible = _getScrollBtnVisible2[1],
|
|
30680
|
-
rightVisible = _getScrollBtnVisible2[2];
|
|
30681
|
-
|
|
30682
|
-
setIsScrollVisible(isScrollVisible2);
|
|
30683
|
-
setLeftScrollBtnVisible(leftVisible);
|
|
30684
|
-
setRightScrollBtnVisible(rightVisible);
|
|
30685
|
-
};
|
|
30686
|
-
|
|
30687
|
-
var scrollClickHandler = function scrollClickHandler(position) {
|
|
30688
|
-
var _leftScrollBtnRef$cur, _rightScrollBtnRef$cu;
|
|
30810
|
+
var leftOperationsRef = React.useRef(null);
|
|
30811
|
+
var rightOperationsRef = React.useRef(null);
|
|
30812
|
+
var toLeftBtnRef = React.useRef(null);
|
|
30813
|
+
var toRightBtnRef = React.useRef(null);
|
|
30689
30814
|
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30815
|
+
var _useState5 = React.useState(0),
|
|
30816
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
30817
|
+
scrollLeft = _useState6[0],
|
|
30818
|
+
setScrollLeft = _useState6[1];
|
|
30693
30819
|
|
|
30694
|
-
|
|
30695
|
-
|
|
30696
|
-
|
|
30697
|
-
|
|
30698
|
-
behavior: "smooth"
|
|
30699
|
-
});
|
|
30700
|
-
setScrollBtnVisibleHandler(scrollLeft);
|
|
30701
|
-
}
|
|
30702
|
-
};
|
|
30820
|
+
var _useState7 = React.useState(null),
|
|
30821
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
30822
|
+
activeTab = _useState8[0],
|
|
30823
|
+
setActiveTab = _useState8[1];
|
|
30703
30824
|
|
|
30704
|
-
|
|
30705
|
-
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
|
|
30710
|
-
|
|
30711
|
-
|
|
30712
|
-
|
|
30825
|
+
React.useEffect(function () {
|
|
30826
|
+
var left = moveActiveTabIntoView({
|
|
30827
|
+
activeTab: activeTab,
|
|
30828
|
+
navsContainer: navsContainerRef.current,
|
|
30829
|
+
navsWrap: navsWrapRef.current,
|
|
30830
|
+
toLeftBtn: toLeftBtnRef.current,
|
|
30831
|
+
toRightBtn: toRightBtnRef.current,
|
|
30832
|
+
leftOperations: leftOperationsRef.current,
|
|
30833
|
+
rightOperations: rightOperationsRef.current
|
|
30834
|
+
}, scrollLeft);
|
|
30835
|
+
setScrollLeft(left);
|
|
30836
|
+
}, [activeTab, scrollLeft]);
|
|
30837
|
+
var setScrollBtnVisibleHandler = React.useCallback(function () {
|
|
30838
|
+
var canToleft = calculateCanToLeft({
|
|
30839
|
+
navsContainer: navsContainerRef.current,
|
|
30840
|
+
navsWrap: navsWrapRef.current,
|
|
30841
|
+
leftOperations: leftOperationsRef.current,
|
|
30842
|
+
toLeftBtn: toLeftBtnRef.current
|
|
30843
|
+
}, scrollLeft, placement);
|
|
30844
|
+
var canToRight2 = calculateCanToRight({
|
|
30845
|
+
navsContainer: navsContainerRef.current,
|
|
30846
|
+
navsWrap: navsWrapRef.current,
|
|
30847
|
+
rightOperations: rightOperationsRef.current,
|
|
30848
|
+
toRightBtn: toRightBtnRef.current
|
|
30849
|
+
}, scrollLeft, placement);
|
|
30850
|
+
setToLeftBtnVisible(canToleft);
|
|
30851
|
+
setToRightBtnVisible(canToRight2);
|
|
30852
|
+
}, [scrollLeft, placement]);
|
|
30853
|
+
|
|
30854
|
+
var handleScroll = function handleScroll(position) {
|
|
30855
|
+
var val = position === "left" ? scrollToLeft({
|
|
30856
|
+
navsContainer: navsContainerRef.current,
|
|
30857
|
+
leftOperations: leftOperationsRef.current,
|
|
30858
|
+
toLeftBtn: toLeftBtnRef.current
|
|
30859
|
+
}, scrollLeft) : scrollToRight({
|
|
30860
|
+
navsWrap: navsWrapRef.current,
|
|
30861
|
+
navsContainer: navsContainerRef.current,
|
|
30862
|
+
rightOperations: rightOperationsRef.current,
|
|
30863
|
+
toRightBtn: toRightBtnRef.current
|
|
30864
|
+
}, scrollLeft);
|
|
30865
|
+
setScrollLeft(val);
|
|
30713
30866
|
};
|
|
30714
30867
|
|
|
30868
|
+
React.useEffect(function () {
|
|
30869
|
+
var onResize = debounce_1(function () {
|
|
30870
|
+
if (["top", "bottom"].includes(placement.toLowerCase())) {
|
|
30871
|
+
var left = calcScrollLeft({
|
|
30872
|
+
navsContainer: navsContainerRef.current,
|
|
30873
|
+
navsWrap: navsWrapRef.current,
|
|
30874
|
+
rightOperations: rightOperationsRef.current
|
|
30875
|
+
}, scrollLeft);
|
|
30876
|
+
setScrollLeft(left);
|
|
30877
|
+
setScrollBtnVisibleHandler();
|
|
30878
|
+
}
|
|
30879
|
+
}, 300);
|
|
30880
|
+
window.addEventListener("resize", onResize);
|
|
30881
|
+
return function () {
|
|
30882
|
+
window.removeEventListener("resize", onResize);
|
|
30883
|
+
};
|
|
30884
|
+
});
|
|
30885
|
+
React.useEffect(function () {
|
|
30886
|
+
if (["top", "bottom"].includes(placement.toLowerCase())) {
|
|
30887
|
+
var left = calcScrollLeft({
|
|
30888
|
+
navsContainer: navsContainerRef.current,
|
|
30889
|
+
navsWrap: navsWrapRef.current,
|
|
30890
|
+
rightOperations: rightOperationsRef.current
|
|
30891
|
+
}, scrollLeft);
|
|
30892
|
+
setScrollLeft(left);
|
|
30893
|
+
}
|
|
30894
|
+
}, [itemList.length, scrollLeft, placement]);
|
|
30715
30895
|
var TabBarCom = isCard ? null : /* @__PURE__ */React__default["default"].createElement(TabBar, {
|
|
30716
30896
|
tabPosition: placement,
|
|
30717
30897
|
activeId: activeIndex,
|
|
30718
|
-
containerRef:
|
|
30898
|
+
containerRef: navsWrapRef
|
|
30719
30899
|
});
|
|
30720
30900
|
React.useEffect(function () {
|
|
30721
30901
|
setScrollBtnVisibleHandler();
|
|
30722
|
-
}, [
|
|
30902
|
+
}, [setScrollBtnVisibleHandler]);
|
|
30723
30903
|
|
|
30724
30904
|
var handleTabItemRemove = function handleTabItemRemove(removeItem) {
|
|
30725
30905
|
var removeValue = removeItem.value,
|
|
@@ -30743,45 +30923,46 @@
|
|
|
30743
30923
|
onAdd({
|
|
30744
30924
|
e: e
|
|
30745
30925
|
});
|
|
30746
|
-
setTimeout(function () {
|
|
30747
|
-
scrollToRightEnd();
|
|
30748
|
-
}, 0);
|
|
30749
30926
|
};
|
|
30750
30927
|
|
|
30751
30928
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30752
|
-
|
|
30753
|
-
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30929
|
+
ref: navsContainerRef,
|
|
30754
30930
|
className: classNames$1(tdTabsClassGenerator("nav")),
|
|
30755
30931
|
style: {
|
|
30756
30932
|
minHeight: 48
|
|
30757
30933
|
}
|
|
30758
30934
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30935
|
+
ref: leftOperationsRef,
|
|
30759
30936
|
className: classNames$1(tdTabsClassGenerator("operations"), tdTabsClassGenerator("operations--left"))
|
|
30760
|
-
},
|
|
30937
|
+
}, canToLeft ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30761
30938
|
onClick: function onClick() {
|
|
30762
|
-
|
|
30939
|
+
handleScroll("left");
|
|
30763
30940
|
},
|
|
30764
30941
|
className: classNames$1(tdTabsClassGenerator("btn"), tdTabsClassGenerator("btn--left"), tdSizeClassGenerator(size)),
|
|
30765
|
-
ref:
|
|
30942
|
+
ref: toLeftBtnRef
|
|
30766
30943
|
}, /* @__PURE__ */React__default["default"].createElement(ChevronLeftIcon, null)) : null), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30944
|
+
ref: rightOperationsRef,
|
|
30767
30945
|
className: classNames$1(tdTabsClassGenerator("operations"), tdTabsClassGenerator("operations--right"))
|
|
30768
|
-
},
|
|
30946
|
+
}, canToRight ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30769
30947
|
onClick: function onClick() {
|
|
30770
|
-
|
|
30948
|
+
handleScroll("right");
|
|
30771
30949
|
},
|
|
30772
30950
|
className: classNames$1(tdTabsClassGenerator("btn"), tdTabsClassGenerator("btn--right"), tdSizeClassGenerator(size)),
|
|
30773
|
-
ref:
|
|
30951
|
+
ref: toRightBtnRef
|
|
30774
30952
|
}, /* @__PURE__ */React__default["default"].createElement(ChevronRightIcon, null)) : null, addable ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30775
30953
|
className: classNames$1(tdTabsClassGenerator("add-btn"), tdTabsClassGenerator("btn"), tdSizeClassGenerator(size)),
|
|
30776
30954
|
onClick: handleTabAdd
|
|
30777
30955
|
}, /* @__PURE__ */React__default["default"].createElement(AddIcon, null)) : null), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30778
30956
|
className: classNames$1(tdTabsClassGenerator("nav-container"), isCard ? tdTabsClassGenerator("nav--card") : "", tdClassGenerator("is-".concat(placement)), addable ? tdClassGenerator("is-addable") : "")
|
|
30779
30957
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30780
|
-
className: classNames$1(tdTabsClassGenerator("nav-scroll"),
|
|
30958
|
+
className: classNames$1(tdTabsClassGenerator("nav-scroll"), canToLeft || canToRight ? tdClassGenerator("is-scrollable") : ""),
|
|
30781
30959
|
ref: scrollBarRef
|
|
30782
30960
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30783
|
-
className: classNames$1(tdTabsClassGenerator("nav-wrap"), ["left", "right"].includes(placement) ? tdClassGenerator("is-vertical") : ""),
|
|
30784
|
-
|
|
30961
|
+
className: classNames$1(tdTabsClassGenerator("nav-wrap"), ["left", "right"].includes(placement) ? tdClassGenerator("is-vertical") : "", tdClassGenerator("is-smooth")),
|
|
30962
|
+
style: {
|
|
30963
|
+
transform: "translate(".concat(-scrollLeft, "px, 0)")
|
|
30964
|
+
},
|
|
30965
|
+
ref: navsWrapRef
|
|
30785
30966
|
}, placement !== "bottom" ? TabBarCom : null, !isCard && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30786
30967
|
className: classNames$1(tdTabsClassGenerator("bar"), tdClassGenerator("is-".concat(placement)))
|
|
30787
30968
|
}), itemList.map(function (v, index) {
|
|
@@ -30797,9 +30978,14 @@
|
|
|
30797
30978
|
onClick: function onClick() {
|
|
30798
30979
|
return handleTabItemClick(v);
|
|
30799
30980
|
},
|
|
30800
|
-
onTabRemove: handleTabItemRemove
|
|
30981
|
+
onTabRemove: handleTabItemRemove,
|
|
30982
|
+
innerRef: function innerRef(ref) {
|
|
30983
|
+
if (activeValue === v.value) {
|
|
30984
|
+
setActiveTab(ref);
|
|
30985
|
+
}
|
|
30986
|
+
}
|
|
30801
30987
|
}));
|
|
30802
|
-
}), placement === "bottom" ? TabBarCom : null))))
|
|
30988
|
+
}), placement === "bottom" ? TabBarCom : null))));
|
|
30803
30989
|
};
|
|
30804
30990
|
|
|
30805
30991
|
TabNav.displayName = "TabNav";
|
|
@@ -30870,21 +31056,23 @@
|
|
|
30870
31056
|
}
|
|
30871
31057
|
};
|
|
30872
31058
|
|
|
30873
|
-
var
|
|
30874
|
-
return /* @__PURE__ */React__default["default"].createElement(
|
|
31059
|
+
var renderHeader = function renderHeader() {
|
|
31060
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31061
|
+
className: classNames$1(tdTabsClassGenerator("header"), tdClassGenerator("is-".concat(placement)))
|
|
31062
|
+
}, /* @__PURE__ */React__default["default"].createElement(TabNav, _objectSpread$M(_objectSpread$M({}, props), {}, {
|
|
30875
31063
|
activeValue: value,
|
|
30876
31064
|
onRemove: onRemove,
|
|
30877
31065
|
itemList: itemList,
|
|
30878
31066
|
tabClick: handleClickTab,
|
|
30879
31067
|
onChange: handleChange
|
|
30880
|
-
}));
|
|
31068
|
+
})));
|
|
30881
31069
|
};
|
|
30882
31070
|
|
|
30883
31071
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30884
31072
|
ref: ref,
|
|
30885
31073
|
className: classNames$1(tdTabsClassPrefix, className),
|
|
30886
31074
|
style: style
|
|
30887
|
-
}, placement !== "bottom" ?
|
|
31075
|
+
}, placement !== "bottom" ? renderHeader() : null, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
30888
31076
|
className: classNames$1(tdTabsClassGenerator("content"), tdClassGenerator("is-".concat(placement)))
|
|
30889
31077
|
}, React__default["default"].Children.map(children, function (child) {
|
|
30890
31078
|
if (child && child.type === TabPanel$1) {
|
|
@@ -30902,11 +31090,14 @@
|
|
|
30902
31090
|
}
|
|
30903
31091
|
|
|
30904
31092
|
return null;
|
|
30905
|
-
})), placement === "bottom" ?
|
|
31093
|
+
})), placement === "bottom" ? renderHeader() : null);
|
|
30906
31094
|
}, {
|
|
30907
31095
|
TabPanel: TabPanel$1
|
|
30908
31096
|
});
|
|
30909
31097
|
Tabs$1.displayName = "Tabs";
|
|
31098
|
+
Tabs$1.defaultProps = {
|
|
31099
|
+
placement: "top"
|
|
31100
|
+
};
|
|
30910
31101
|
|
|
30911
31102
|
var Tabs = Tabs$1;
|
|
30912
31103
|
|
|
@@ -42203,7 +42394,7 @@
|
|
|
42203
42394
|
onError = _ref.onError,
|
|
42204
42395
|
onProgress = _ref.onProgress,
|
|
42205
42396
|
onSuccess = _ref.onSuccess;
|
|
42206
|
-
var innerFiles =
|
|
42397
|
+
var innerFiles = files || [];
|
|
42207
42398
|
var xhr2 = new XMLHttpRequest();
|
|
42208
42399
|
|
|
42209
42400
|
if (withCredentials) {
|
|
@@ -42216,7 +42407,7 @@
|
|
|
42216
42407
|
formData.append(key, data[key]);
|
|
42217
42408
|
});
|
|
42218
42409
|
innerFiles.forEach(function (f) {
|
|
42219
|
-
formData.append(name, f.raw);
|
|
42410
|
+
formData.append(name, f && f.raw);
|
|
42220
42411
|
});
|
|
42221
42412
|
xhr2.open(method, action, true);
|
|
42222
42413
|
Object.keys(headers).forEach(function (key) {
|
|
@@ -44761,7 +44952,7 @@
|
|
|
44761
44952
|
var labelStyle = {};
|
|
44762
44953
|
var contentStyle = {};
|
|
44763
44954
|
|
|
44764
|
-
if (labelWidth && labelAlign !== "top") {
|
|
44955
|
+
if (label && labelWidth && labelAlign !== "top") {
|
|
44765
44956
|
if (typeof labelWidth === "number") {
|
|
44766
44957
|
labelStyle = {
|
|
44767
44958
|
width: "".concat(labelWidth, "px")
|
|
@@ -45006,6 +45197,7 @@
|
|
|
45006
45197
|
filterRules.length && validate$1("change");
|
|
45007
45198
|
}, [formValue]);
|
|
45008
45199
|
React.useEffect(function () {
|
|
45200
|
+
if (!name) return;
|
|
45009
45201
|
formItemsRef.current.push(currentFormItemRef);
|
|
45010
45202
|
return function () {
|
|
45011
45203
|
var index = formItemsRef.current.indexOf(currentFormItemRef);
|
|
@@ -45016,7 +45208,7 @@
|
|
|
45016
45208
|
(_formItemsRef$current = formItemsRef.current) === null || _formItemsRef$current === void 0 ? void 0 : _formItemsRef$current.splice(index, 1);
|
|
45017
45209
|
}
|
|
45018
45210
|
};
|
|
45019
|
-
}, []);
|
|
45211
|
+
}, [name]);
|
|
45020
45212
|
React.useImperativeHandle(currentFormItemRef, function () {
|
|
45021
45213
|
return {
|
|
45022
45214
|
name: name,
|
|
@@ -45869,7 +46061,7 @@
|
|
|
45869
46061
|
return null;
|
|
45870
46062
|
}
|
|
45871
46063
|
|
|
45872
|
-
return /* @__PURE__ */React__default["default"].createElement(Button
|
|
46064
|
+
return /* @__PURE__ */React__default["default"].createElement(Button, {
|
|
45873
46065
|
size: "small",
|
|
45874
46066
|
variant: "outline",
|
|
45875
46067
|
onClick: function onClick(e) {
|
|
@@ -45903,7 +46095,7 @@
|
|
|
45903
46095
|
return null;
|
|
45904
46096
|
}
|
|
45905
46097
|
|
|
45906
|
-
return /* @__PURE__ */React__default["default"].createElement(Button
|
|
46098
|
+
return /* @__PURE__ */React__default["default"].createElement(Button, {
|
|
45907
46099
|
size: "small",
|
|
45908
46100
|
theme: "primary",
|
|
45909
46101
|
onClick: function onClick(e) {
|
|
@@ -45957,7 +46149,7 @@
|
|
|
45957
46149
|
visible = _useDefault2[0],
|
|
45958
46150
|
setVisible = _useDefault2[1];
|
|
45959
46151
|
|
|
45960
|
-
return /* @__PURE__ */React__default["default"].createElement(Popup
|
|
46152
|
+
return /* @__PURE__ */React__default["default"].createElement(Popup, _objectSpread$h(_objectSpread$h({
|
|
45961
46153
|
ref: ref
|
|
45962
46154
|
}, props), {}, {
|
|
45963
46155
|
visible: visible,
|
|
@@ -46134,11 +46326,6 @@
|
|
|
46134
46326
|
setTextareaStyle(calcTextareaHeight(textareaRef.current));
|
|
46135
46327
|
} else if (_typeof(autosize) === "object") {
|
|
46136
46328
|
setTextareaStyle(calcTextareaHeight(textareaRef.current, autosize === null || autosize === void 0 ? void 0 : autosize.minRows, autosize === null || autosize === void 0 ? void 0 : autosize.maxRows));
|
|
46137
|
-
} else {
|
|
46138
|
-
setTextareaStyle({
|
|
46139
|
-
height: "auto",
|
|
46140
|
-
minHeight: "auto"
|
|
46141
|
-
});
|
|
46142
46329
|
}
|
|
46143
46330
|
}, [autosize]);
|
|
46144
46331
|
|
|
@@ -46154,12 +46341,19 @@
|
|
|
46154
46341
|
setValue(val, {
|
|
46155
46342
|
e: e
|
|
46156
46343
|
});
|
|
46157
|
-
adjustTextareaHeight();
|
|
46158
46344
|
}
|
|
46159
46345
|
|
|
46346
|
+
React.useEffect(function () {
|
|
46347
|
+
if (autosize === false) {
|
|
46348
|
+
setTextareaStyle({
|
|
46349
|
+
height: "auto",
|
|
46350
|
+
minHeight: "auto"
|
|
46351
|
+
});
|
|
46352
|
+
}
|
|
46353
|
+
}, [adjustTextareaHeight, autosize]);
|
|
46160
46354
|
React.useEffect(function () {
|
|
46161
46355
|
adjustTextareaHeight();
|
|
46162
|
-
}, [adjustTextareaHeight]);
|
|
46356
|
+
}, [adjustTextareaHeight, value]);
|
|
46163
46357
|
React.useImperativeHandle(ref, function () {
|
|
46164
46358
|
return {
|
|
46165
46359
|
currentElement: wrapperRef.current,
|
|
@@ -47180,7 +47374,7 @@
|
|
|
47180
47374
|
setExpend = cascaderContext.setExpend,
|
|
47181
47375
|
value = cascaderContext.value,
|
|
47182
47376
|
max = cascaderContext.max;
|
|
47183
|
-
var isDisabled = node.disabled || multiple && value.length >= max && max !== 0;
|
|
47377
|
+
var isDisabled = node.disabled || multiple && value && value.length >= max && max !== 0;
|
|
47184
47378
|
if (isDisabled) return;
|
|
47185
47379
|
|
|
47186
47380
|
if (propsTrigger === trigger && !node.isLeaf()) {
|
|
@@ -47281,7 +47475,7 @@
|
|
|
47281
47475
|
max = cascaderContext.max;
|
|
47282
47476
|
var expandedActive = !checkStrictly && node.expanded && (multiple ? !node.isLeaf() : true);
|
|
47283
47477
|
var isLeaf = node.isLeaf();
|
|
47284
|
-
var isDisabled = node.disabled || multiple && value.length >= max && max !== 0;
|
|
47478
|
+
var isDisabled = node.disabled || multiple && value && value.length >= max && max !== 0;
|
|
47285
47479
|
var isSelected = node.checked || multiple && !checkStrictly && node.expanded && !isLeaf;
|
|
47286
47480
|
return [(_ref = {}, _defineProperty$2(_ref, CLASSNAMES.STATUS.selected, !isDisabled && isSelected), _defineProperty$2(_ref, CLASSNAMES.STATUS.expanded, !isDisabled && expandedActive), _defineProperty$2(_ref, CLASSNAMES.STATUS.disabled, isDisabled), _ref)];
|
|
47287
47481
|
}
|
|
@@ -47389,7 +47583,7 @@
|
|
|
47389
47583
|
return /* @__PURE__ */React__default["default"].createElement(Checkbox$1, _objectSpread$a(_objectSpread$a({}, checkProps), {}, {
|
|
47390
47584
|
checked: node.checked,
|
|
47391
47585
|
indeterminate: node.indeterminate,
|
|
47392
|
-
disabled: node.isDisabled() || value.length >= max && max !== 0,
|
|
47586
|
+
disabled: node.isDisabled() || value && value.length >= max && max !== 0,
|
|
47393
47587
|
name: node.value,
|
|
47394
47588
|
onChange: handleChange
|
|
47395
47589
|
}), label);
|