tdesign-react 0.30.3-alpha.1 → 0.31.0
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 +30 -0
- package/README.md +3 -0
- package/dist/tdesign.css +20 -21
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +725 -281
- 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/{esm/_chunks/dep-d603f605.js → es/_chunks/dep-072baf8c.js} +4 -4
- package/es/_chunks/{dep-d603f605.js.map → dep-072baf8c.js.map} +1 -1
- package/es/_chunks/{dep-39a53ffe.js → dep-0755f1a3.js} +6 -6
- package/es/_chunks/{dep-39a53ffe.js.map → dep-0755f1a3.js.map} +1 -1
- package/{esm/_chunks/dep-bd2c9bb8.js → es/_chunks/dep-0f8ec039.js} +2 -2
- package/es/_chunks/dep-0f8ec039.js.map +1 -0
- package/{esm/_chunks/dep-b377f35d.js → es/_chunks/dep-1176e557.js} +13 -13
- package/{esm/_chunks/dep-b377f35d.js.map → es/_chunks/dep-1176e557.js.map} +1 -1
- package/es/_chunks/{dep-4dc58149.js → dep-129ff077.js} +6 -6
- package/es/_chunks/{dep-4dc58149.js.map → dep-129ff077.js.map} +1 -1
- package/es/_chunks/{dep-9a0852c5.js → dep-1417823e.js} +6 -6
- package/es/_chunks/{dep-9a0852c5.js.map → dep-1417823e.js.map} +1 -1
- package/es/_chunks/{dep-0e01ec74.js → dep-15f6fb4d.js} +3 -3
- package/es/_chunks/{dep-0e01ec74.js.map → dep-15f6fb4d.js.map} +1 -1
- package/es/_chunks/dep-176b2312.js +1159 -0
- package/es/_chunks/dep-176b2312.js.map +1 -0
- package/{esm/_chunks/dep-759cadc5.js → es/_chunks/dep-19835a4d.js} +4 -4
- package/es/_chunks/{dep-759cadc5.js.map → dep-19835a4d.js.map} +1 -1
- package/{esm/_chunks/dep-8a187be9.js → es/_chunks/dep-294bd3c6.js} +2 -2
- package/es/_chunks/{dep-8a187be9.js.map → dep-294bd3c6.js.map} +1 -1
- package/{esm/_chunks/dep-b60d5f17.js → es/_chunks/dep-3177d29b.js} +7 -7
- package/{esm/_chunks/dep-b60d5f17.js.map → es/_chunks/dep-3177d29b.js.map} +1 -1
- package/{esm/_chunks/dep-4422c60e.js → es/_chunks/dep-323d3ce6.js} +8 -8
- package/{esm/_chunks/dep-4422c60e.js.map → es/_chunks/dep-323d3ce6.js.map} +1 -1
- package/es/_chunks/{dep-464ed8b6.js → dep-36ed10f2.js} +5 -5
- package/{esm/_chunks/dep-464ed8b6.js.map → es/_chunks/dep-36ed10f2.js.map} +1 -1
- package/es/_chunks/{dep-1ccef307.js → dep-386a1865.js} +5 -5
- package/es/_chunks/{dep-1ccef307.js.map → dep-386a1865.js.map} +1 -1
- package/es/_chunks/{dep-cd70212b.js → dep-3f12c54e.js} +7 -7
- package/{esm/_chunks/dep-cd70212b.js.map → es/_chunks/dep-3f12c54e.js.map} +1 -1
- package/es/_chunks/{dep-bb9acae2.js → dep-496e681f.js} +4 -4
- package/{esm/_chunks/dep-bb9acae2.js.map → es/_chunks/dep-496e681f.js.map} +1 -1
- package/{esm/_chunks/dep-e01fb320.js → es/_chunks/dep-4ba534c6.js} +2 -2
- package/es/_chunks/{dep-e01fb320.js.map → dep-4ba534c6.js.map} +1 -1
- package/{esm/_chunks/dep-64446d41.js → es/_chunks/dep-4c10c324.js} +6 -6
- package/{esm/_chunks/dep-64446d41.js.map → es/_chunks/dep-4c10c324.js.map} +1 -1
- package/{esm/_chunks/dep-5fab3fa2.js → es/_chunks/dep-5298a67c.js} +6 -6
- package/es/_chunks/{dep-5fab3fa2.js.map → dep-5298a67c.js.map} +1 -1
- package/es/_chunks/{dep-bc3f92e6.js → dep-54e10717.js} +8 -8
- package/es/_chunks/{dep-bc3f92e6.js.map → dep-54e10717.js.map} +1 -1
- package/es/_chunks/{dep-ec3e0f58.js → dep-552a517d.js} +7 -7
- package/es/_chunks/{dep-ec3e0f58.js.map → dep-552a517d.js.map} +1 -1
- package/es/_chunks/{dep-55eaf1f1.js → dep-576e1c8f.js} +7 -7
- package/es/_chunks/{dep-55eaf1f1.js.map → dep-576e1c8f.js.map} +1 -1
- package/es/_chunks/{dep-f2ad53dd.js → dep-577dd0ce.js} +8 -8
- package/es/_chunks/{dep-f2ad53dd.js.map → dep-577dd0ce.js.map} +1 -1
- package/{esm/_chunks/dep-a6419069.js → es/_chunks/dep-5966dcb6.js} +5 -5
- package/{esm/_chunks/dep-a6419069.js.map → es/_chunks/dep-5966dcb6.js.map} +1 -1
- package/{esm/_chunks/dep-8fe2354d.js → es/_chunks/dep-5c35ad73.js} +5 -5
- package/es/_chunks/{dep-8fe2354d.js.map → dep-5c35ad73.js.map} +1 -1
- package/es/_chunks/{dep-e4ace7f5.js → dep-5c6c5f21.js} +5 -5
- package/es/_chunks/{dep-e4ace7f5.js.map → dep-5c6c5f21.js.map} +1 -1
- package/{esm/_chunks/dep-0bb44e7d.js → es/_chunks/dep-5ca2152b.js} +4 -4
- package/{esm/_chunks/dep-0bb44e7d.js.map → es/_chunks/dep-5ca2152b.js.map} +1 -1
- package/es/_chunks/{dep-1a24f012.js → dep-652c9f14.js} +16 -16
- package/es/_chunks/{dep-1a24f012.js.map → dep-652c9f14.js.map} +1 -1
- package/es/_chunks/{dep-70a44309.js → dep-6d14bf59.js} +5 -5
- package/es/_chunks/{dep-70a44309.js.map → dep-6d14bf59.js.map} +1 -1
- package/{esm/_chunks/dep-12df9a79.js → es/_chunks/dep-72db5864.js} +4 -4
- package/es/_chunks/{dep-12df9a79.js.map → dep-72db5864.js.map} +1 -1
- package/{esm/_chunks/dep-2a1a3deb.js → es/_chunks/dep-7b7828a1.js} +16 -16
- package/{esm/_chunks/dep-2a1a3deb.js.map → es/_chunks/dep-7b7828a1.js.map} +1 -1
- package/{esm/_chunks/dep-dfbc3981.js → es/_chunks/dep-894d5c2a.js} +4 -4
- package/es/_chunks/{dep-dfbc3981.js.map → dep-894d5c2a.js.map} +1 -1
- package/{esm/_chunks/dep-faeee2ac.js → es/_chunks/dep-8f2b962e.js} +7 -7
- package/{esm/_chunks/dep-faeee2ac.js.map → es/_chunks/dep-8f2b962e.js.map} +1 -1
- package/{esm/_chunks/dep-55b995c9.js → es/_chunks/dep-93b2bdd9.js} +3 -3
- package/es/_chunks/{dep-55b995c9.js.map → dep-93b2bdd9.js.map} +1 -1
- package/es/_chunks/{dep-a206143b.js → dep-9718a4b2.js} +3 -3
- package/es/_chunks/{dep-a206143b.js.map → dep-9718a4b2.js.map} +1 -1
- package/es/_chunks/{dep-ffa73cb9.js → dep-9ebae56e.js} +9 -9
- package/es/_chunks/{dep-ffa73cb9.js.map → dep-9ebae56e.js.map} +1 -1
- package/es/_chunks/{dep-eb0ab295.js → dep-a662eb07.js} +3 -3
- package/es/_chunks/{dep-eb0ab295.js.map → dep-a662eb07.js.map} +1 -1
- package/es/_chunks/dep-a786d118.js +8 -0
- package/es/_chunks/dep-a786d118.js.map +1 -0
- package/{esm/_chunks/dep-ad1e7307.js → es/_chunks/dep-b484980e.js} +3 -3
- package/es/_chunks/{dep-ad1e7307.js.map → dep-b484980e.js.map} +1 -1
- package/{esm/_chunks/dep-d3bd157e.js → es/_chunks/dep-b5b027fa.js} +2 -2
- package/{esm/_chunks/dep-d3bd157e.js.map → es/_chunks/dep-b5b027fa.js.map} +1 -1
- package/es/_chunks/{dep-3c7fe8d5.js → dep-b6d5c746.js} +4 -4
- package/es/_chunks/{dep-3c7fe8d5.js.map → dep-b6d5c746.js.map} +1 -1
- package/{esm/_chunks/dep-9665219c.js → es/_chunks/dep-b7706ce0.js} +11 -11
- package/es/_chunks/{dep-9665219c.js.map → dep-b7706ce0.js.map} +1 -1
- package/{esm/_chunks/dep-7f571f72.js → es/_chunks/dep-ba66c10b.js} +8 -8
- package/es/_chunks/{dep-7f571f72.js.map → dep-ba66c10b.js.map} +1 -1
- package/es/_chunks/{dep-da3536b2.js → dep-bb7dadfb.js} +5 -5
- package/{esm/_chunks/dep-da3536b2.js.map → es/_chunks/dep-bb7dadfb.js.map} +1 -1
- package/es/_chunks/{dep-3d507187.js → dep-bd7b9053.js} +2 -2
- package/es/_chunks/{dep-3d507187.js.map → dep-bd7b9053.js.map} +1 -1
- package/es/_chunks/{dep-05050386.js → dep-c59bef13.js} +9 -9
- package/{esm/_chunks/dep-05050386.js.map → es/_chunks/dep-c59bef13.js.map} +1 -1
- package/es/_chunks/{dep-b550d3cd.js → dep-c8624742.js} +9 -9
- package/{esm/_chunks/dep-b550d3cd.js.map → es/_chunks/dep-c8624742.js.map} +1 -1
- package/es/_chunks/{dep-d428cfe6.js → dep-ce76803f.js} +4 -4
- package/{esm/_chunks/dep-d428cfe6.js.map → es/_chunks/dep-ce76803f.js.map} +1 -1
- package/{esm/_chunks/dep-a0c41d5e.js → es/_chunks/dep-d4cab034.js} +3 -3
- package/es/_chunks/{dep-a0c41d5e.js.map → dep-d4cab034.js.map} +1 -1
- package/{esm/_chunks/dep-d9dfcbc9.js → es/_chunks/dep-e3454659.js} +3 -3
- package/es/_chunks/{dep-d9dfcbc9.js.map → dep-e3454659.js.map} +1 -1
- package/{esm/_chunks/dep-749661f4.js → es/_chunks/dep-e3beefba.js} +4 -4
- package/es/_chunks/{dep-749661f4.js.map → dep-e3beefba.js.map} +1 -1
- package/{esm/_chunks/dep-5c1ad008.js → es/_chunks/dep-e3e80bd2.js} +7 -7
- package/es/_chunks/{dep-5c1ad008.js.map → dep-e3e80bd2.js.map} +1 -1
- package/{esm/_chunks/dep-2d042826.js → es/_chunks/dep-e94bb956.js} +4 -4
- package/es/_chunks/{dep-2d042826.js.map → dep-e94bb956.js.map} +1 -1
- package/es/_chunks/{dep-fc922a1e.js → dep-eb7ba11f.js} +5 -5
- package/es/_chunks/{dep-fc922a1e.js.map → dep-eb7ba11f.js.map} +1 -1
- package/es/_chunks/{dep-1d152e93.js → dep-ec3f24b3.js} +4 -4
- package/{esm/_chunks/dep-1d152e93.js.map → es/_chunks/dep-ec3f24b3.js.map} +1 -1
- package/{esm/_chunks/dep-5001c2c2.js → es/_chunks/dep-ef10228a.js} +2 -2
- package/es/_chunks/{dep-5001c2c2.js.map → dep-ef10228a.js.map} +1 -1
- package/es/_common/js/color-picker/cmyk.js +1 -1
- package/es/_common/js/color-picker/color.js +5 -5
- package/es/_common/js/color-picker/draggable.js +3 -3
- package/es/_common/js/color-picker/gradient.js +1 -1
- package/es/_common/js/color-picker/index.js +5 -5
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/date-picker/utils.d.ts +2 -2
- package/es/_common/js/date-picker/utils.js +26 -16
- package/es/_common/js/date-picker/utils.js.map +1 -1
- package/es/_common/js/global-config/default-config.js +1 -1
- package/es/_common/js/global-config/locale/en_US.js +1 -1
- package/es/_common/js/global-config/locale/zh_CN.js +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.js +1 -1
- 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/utils.js +2 -2
- package/es/_common/js/upload/xhr.js +1 -1
- package/es/_common/js/utils/calcTextareaHeight.js +5 -5
- package/es/_common/js/utils/getScrollbarWidth.js +1 -1
- package/es/_common/js/utils/helper.js +5 -5
- package/es/_common/js/utils/observe.js +1 -1
- 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.d.ts +3 -3
- package/es/_util/number.js +27 -36
- package/es/_util/number.js.map +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.d.ts +2 -2
- package/es/_util/useConfig.js +21 -21
- package/es/_util/useConfig.js.map +1 -1
- 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 +26 -25
- package/es/breadcrumb/Breadcrumb.js.map +1 -1
- package/es/breadcrumb/BreadcrumbContext.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +25 -24
- package/es/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +23 -23
- 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 +32 -31
- package/es/cascader/components/InputContent.js.map +1 -1
- package/es/cascader/components/Item.js +46 -52
- 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.d.ts +5 -0
- package/es/cascader/utils/helper.js +6 -3
- package/es/cascader/utils/helper.js.map +1 -1
- package/es/cascader/utils/inputContent.js +21 -25
- package/es/cascader/utils/inputContent.js.map +1 -1
- package/es/cascader/utils/item.d.ts +2 -2
- package/es/cascader/utils/item.js +6 -6
- package/es/cascader/utils/item.js.map +1 -1
- package/es/cascader/utils/panel.js +8 -8
- 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.css +1 -1
- 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.d.ts +4 -0
- package/es/common/Portal.js +26 -25
- package/es/common/Portal.js.map +1 -1
- package/es/common.js +1 -1
- package/es/config-provider/ConfigContext.d.ts +5 -370
- package/es/config-provider/ConfigContext.js +21 -21
- package/es/config-provider/ConfigProvider.d.ts +3 -185
- package/es/config-provider/ConfigProvider.js +21 -21
- package/es/config-provider/ConfigProvider.js.map +1 -1
- package/es/config-provider/en_US_config.js +1 -1
- package/es/config-provider/index.js +21 -21
- package/es/config-provider/type.d.ts +1 -1
- 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.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +37 -29
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/RenderDialog.d.ts +1 -1
- package/es/dialog/RenderDialog.js +44 -30
- package/es/dialog/RenderDialog.js.map +1 -1
- package/es/dialog/index.js +26 -26
- package/es/dialog/plugin.js +33 -28
- package/es/dialog/plugin.js.map +1 -1
- 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.d.ts +5 -1
- package/es/form/Form.js +56 -57
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.d.ts +14 -5
- package/es/form/FormContext.js +12 -5
- package/es/form/FormContext.js.map +1 -1
- package/es/form/FormItem.d.ts +16 -1
- package/es/form/FormItem.js +56 -1089
- package/es/form/FormItem.js.map +1 -1
- package/es/form/FormList.d.ts +7 -0
- package/es/form/FormList.js +280 -0
- package/es/form/FormList.js.map +1 -0
- package/es/form/formModel.js +27 -27
- package/es/form/hooks/useFormItemStyle.d.ts +7 -0
- package/es/form/hooks/useFormItemStyle.js +123 -0
- package/es/form/hooks/useFormItemStyle.js.map +1 -0
- package/es/form/hooks/useInstance.d.ts +2 -1
- package/es/form/hooks/useInstance.js +89 -89
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/index.d.ts +5 -1
- package/es/form/index.js +48 -47
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +6 -16
- package/es/form/style/index.js +1 -1
- package/es/form/type.d.ts +33 -7
- 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 +59 -59
- package/es/input/Input.js +29 -29
- package/es/input/InputGroup.js +22 -22
- package/es/input/index.js +29 -29
- package/es/input/style/index.css +1 -1
- package/es/input/style/index.js +1 -1
- package/es/input/type.js +1 -1
- package/es/input-number/InputNumber.js +30 -30
- package/es/input-number/StepHandler.js +25 -25
- package/es/input-number/index.js +30 -30
- 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/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/Loading.js +25 -25
- package/es/loading/gradient.js +24 -24
- package/es/loading/index.js +25 -25
- package/es/loading/plugin.js +25 -25
- package/es/loading/style/index.js +1 -1
- package/es/loading/type.js +1 -1
- package/es/locale/LocalReceiver.js +25 -25
- package/es/locale/LocalReceiver.js.map +1 -1
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/menu/HeadMenu.js +28 -28
- package/es/menu/Menu.d.ts +4 -1
- package/es/menu/Menu.js +28 -28
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.d.ts +5 -1
- package/es/menu/MenuGroup.js +33 -23
- package/es/menu/MenuGroup.js.map +1 -1
- package/es/menu/MenuItem.js +22 -22
- package/es/menu/SubMenu.js +51 -31
- package/es/menu/SubMenu.js.map +1 -1
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.d.ts +1 -0
- package/es/menu/_util/checkMenuType.js +6 -2
- package/es/menu/_util/checkMenuType.js.map +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 +4 -3
- package/es/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/es/menu/_util/type.d.ts +2 -1
- package/es/menu/_util/type.js +2 -1
- package/es/menu/_util/type.js.map +1 -1
- package/es/menu/hooks/useMenuContext.js +6 -6
- package/es/menu/index.d.ts +4 -1
- package/es/menu/index.js +28 -28
- package/es/menu/style/index.css +6 -3
- 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 +41 -41
- 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 +28 -28
- package/es/popconfirm/Popcontent.js +25 -25
- package/es/popconfirm/index.d.ts +0 -1
- package/es/popconfirm/index.js +29 -31
- 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 +32 -31
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/hooks/useTriggerProps.d.ts +2 -2
- package/es/popup/hooks/useTriggerProps.js +15 -3
- package/es/popup/hooks/useTriggerProps.js.map +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.css +3 -0
- 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 +41 -41
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +41 -41
- package/es/select/style/index.css +3 -0
- 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 +39 -39
- package/es/select-input/index.js +39 -39
- package/es/select-input/style/index.js +1 -1
- package/es/select-input/type.js +1 -1
- package/es/select-input/useMultiple.js +30 -30
- package/es/select-input/useOverlayStyle.js +9 -9
- package/es/select-input/useSingle.js +36 -36
- 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 +32 -32
- package/es/slider/SliderHandleButton.js +28 -28
- package/es/slider/index.js +32 -32
- 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 +45 -45
- package/es/table/base/Table.js.map +1 -1
- 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 +35 -35
- package/es/table/primary/useFilterButton.js +35 -35
- 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.d.ts +2 -0
- package/es/table/util/index.js +15 -2
- package/es/table/util/index.js.map +1 -1
- package/es/tabs/TabBar.js +23 -23
- package/es/tabs/TabNav.js +27 -27
- package/es/tabs/TabNavItem.js +22 -22
- package/es/tabs/TabPanel.js +21 -21
- package/es/tabs/Tabs.js +27 -27
- package/es/tabs/index.js +27 -27
- 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 +30 -30
- package/es/tag-input/index.js +30 -30
- 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 +29 -29
- 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 +36 -36
- package/es/time-picker/TimeRangePicker.js +36 -36
- package/es/time-picker/consts.js +23 -23
- package/es/time-picker/index.js +36 -36
- 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.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +46 -46
- package/es/transfer/TransferList.js +44 -44
- package/es/transfer/index.js +46 -46
- 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/{es/_chunks/dep-d603f605.js → esm/_chunks/dep-072baf8c.js} +4 -4
- package/esm/_chunks/{dep-d603f605.js.map → dep-072baf8c.js.map} +1 -1
- package/esm/_chunks/{dep-39a53ffe.js → dep-0755f1a3.js} +6 -6
- package/esm/_chunks/{dep-39a53ffe.js.map → dep-0755f1a3.js.map} +1 -1
- package/{es/_chunks/dep-bd2c9bb8.js → esm/_chunks/dep-0f8ec039.js} +2 -2
- package/esm/_chunks/dep-0f8ec039.js.map +1 -0
- package/{es/_chunks/dep-b377f35d.js → esm/_chunks/dep-1176e557.js} +13 -13
- package/{es/_chunks/dep-b377f35d.js.map → esm/_chunks/dep-1176e557.js.map} +1 -1
- package/esm/_chunks/{dep-4dc58149.js → dep-129ff077.js} +6 -6
- package/esm/_chunks/{dep-4dc58149.js.map → dep-129ff077.js.map} +1 -1
- package/esm/_chunks/{dep-9a0852c5.js → dep-1417823e.js} +6 -6
- package/esm/_chunks/{dep-9a0852c5.js.map → dep-1417823e.js.map} +1 -1
- package/esm/_chunks/{dep-0e01ec74.js → dep-15f6fb4d.js} +3 -3
- package/esm/_chunks/{dep-0e01ec74.js.map → dep-15f6fb4d.js.map} +1 -1
- package/{es/_chunks/dep-759cadc5.js → esm/_chunks/dep-19835a4d.js} +4 -4
- package/esm/_chunks/{dep-759cadc5.js.map → dep-19835a4d.js.map} +1 -1
- package/{es/_chunks/dep-8a187be9.js → esm/_chunks/dep-294bd3c6.js} +2 -2
- package/esm/_chunks/{dep-8a187be9.js.map → dep-294bd3c6.js.map} +1 -1
- package/{es/_chunks/dep-b60d5f17.js → esm/_chunks/dep-3177d29b.js} +7 -7
- package/{es/_chunks/dep-b60d5f17.js.map → esm/_chunks/dep-3177d29b.js.map} +1 -1
- package/{es/_chunks/dep-4422c60e.js → esm/_chunks/dep-323d3ce6.js} +8 -8
- package/{es/_chunks/dep-4422c60e.js.map → esm/_chunks/dep-323d3ce6.js.map} +1 -1
- package/esm/_chunks/{dep-464ed8b6.js → dep-36ed10f2.js} +5 -5
- package/{es/_chunks/dep-464ed8b6.js.map → esm/_chunks/dep-36ed10f2.js.map} +1 -1
- package/esm/_chunks/{dep-1ccef307.js → dep-386a1865.js} +5 -5
- package/esm/_chunks/{dep-1ccef307.js.map → dep-386a1865.js.map} +1 -1
- package/esm/_chunks/{dep-cd70212b.js → dep-3f12c54e.js} +7 -7
- package/{es/_chunks/dep-cd70212b.js.map → esm/_chunks/dep-3f12c54e.js.map} +1 -1
- package/esm/_chunks/{dep-bb9acae2.js → dep-496e681f.js} +4 -4
- package/{es/_chunks/dep-bb9acae2.js.map → esm/_chunks/dep-496e681f.js.map} +1 -1
- package/{es/_chunks/dep-e01fb320.js → esm/_chunks/dep-4ba534c6.js} +2 -2
- package/esm/_chunks/{dep-e01fb320.js.map → dep-4ba534c6.js.map} +1 -1
- package/{es/_chunks/dep-64446d41.js → esm/_chunks/dep-4c10c324.js} +6 -6
- package/{es/_chunks/dep-64446d41.js.map → esm/_chunks/dep-4c10c324.js.map} +1 -1
- package/{es/_chunks/dep-5fab3fa2.js → esm/_chunks/dep-5298a67c.js} +6 -6
- package/esm/_chunks/{dep-5fab3fa2.js.map → dep-5298a67c.js.map} +1 -1
- package/esm/_chunks/{dep-bc3f92e6.js → dep-54e10717.js} +8 -8
- package/esm/_chunks/{dep-bc3f92e6.js.map → dep-54e10717.js.map} +1 -1
- package/esm/_chunks/{dep-ec3e0f58.js → dep-552a517d.js} +7 -7
- package/esm/_chunks/{dep-ec3e0f58.js.map → dep-552a517d.js.map} +1 -1
- package/esm/_chunks/{dep-55eaf1f1.js → dep-576e1c8f.js} +7 -7
- package/esm/_chunks/{dep-55eaf1f1.js.map → dep-576e1c8f.js.map} +1 -1
- package/esm/_chunks/{dep-f2ad53dd.js → dep-577dd0ce.js} +8 -8
- package/esm/_chunks/{dep-f2ad53dd.js.map → dep-577dd0ce.js.map} +1 -1
- package/{es/_chunks/dep-a6419069.js → esm/_chunks/dep-5966dcb6.js} +5 -5
- package/{es/_chunks/dep-a6419069.js.map → esm/_chunks/dep-5966dcb6.js.map} +1 -1
- package/{es/_chunks/dep-8fe2354d.js → esm/_chunks/dep-5c35ad73.js} +5 -5
- package/esm/_chunks/{dep-8fe2354d.js.map → dep-5c35ad73.js.map} +1 -1
- package/esm/_chunks/{dep-e4ace7f5.js → dep-5c6c5f21.js} +5 -5
- package/esm/_chunks/{dep-e4ace7f5.js.map → dep-5c6c5f21.js.map} +1 -1
- package/{es/_chunks/dep-0bb44e7d.js → esm/_chunks/dep-5ca2152b.js} +4 -4
- package/{es/_chunks/dep-0bb44e7d.js.map → esm/_chunks/dep-5ca2152b.js.map} +1 -1
- package/esm/_chunks/{dep-1a24f012.js → dep-652c9f14.js} +16 -16
- package/esm/_chunks/{dep-1a24f012.js.map → dep-652c9f14.js.map} +1 -1
- package/esm/_chunks/{dep-70a44309.js → dep-6d14bf59.js} +5 -5
- package/esm/_chunks/{dep-70a44309.js.map → dep-6d14bf59.js.map} +1 -1
- package/{es/_chunks/dep-12df9a79.js → esm/_chunks/dep-72db5864.js} +4 -4
- package/esm/_chunks/{dep-12df9a79.js.map → dep-72db5864.js.map} +1 -1
- package/{es/_chunks/dep-2a1a3deb.js → esm/_chunks/dep-7b7828a1.js} +16 -16
- package/{es/_chunks/dep-2a1a3deb.js.map → esm/_chunks/dep-7b7828a1.js.map} +1 -1
- package/{es/_chunks/dep-dfbc3981.js → esm/_chunks/dep-894d5c2a.js} +4 -4
- package/esm/_chunks/{dep-dfbc3981.js.map → dep-894d5c2a.js.map} +1 -1
- package/{es/_chunks/dep-faeee2ac.js → esm/_chunks/dep-8f2b962e.js} +7 -7
- package/{es/_chunks/dep-faeee2ac.js.map → esm/_chunks/dep-8f2b962e.js.map} +1 -1
- package/{es/_chunks/dep-55b995c9.js → esm/_chunks/dep-93b2bdd9.js} +3 -3
- package/esm/_chunks/{dep-55b995c9.js.map → dep-93b2bdd9.js.map} +1 -1
- package/esm/_chunks/{dep-a206143b.js → dep-9718a4b2.js} +3 -3
- package/esm/_chunks/{dep-a206143b.js.map → dep-9718a4b2.js.map} +1 -1
- package/esm/_chunks/{dep-ffa73cb9.js → dep-9ebae56e.js} +9 -9
- package/esm/_chunks/{dep-ffa73cb9.js.map → dep-9ebae56e.js.map} +1 -1
- package/esm/_chunks/{dep-eb0ab295.js → dep-a662eb07.js} +3 -3
- package/esm/_chunks/{dep-eb0ab295.js.map → dep-a662eb07.js.map} +1 -1
- package/esm/_chunks/dep-a786d118.js +8 -0
- package/esm/_chunks/dep-a786d118.js.map +1 -0
- package/{es/_chunks/dep-ad1e7307.js → esm/_chunks/dep-b484980e.js} +3 -3
- package/esm/_chunks/{dep-ad1e7307.js.map → dep-b484980e.js.map} +1 -1
- package/{es/_chunks/dep-d3bd157e.js → esm/_chunks/dep-b5b027fa.js} +2 -2
- package/{es/_chunks/dep-d3bd157e.js.map → esm/_chunks/dep-b5b027fa.js.map} +1 -1
- package/esm/_chunks/{dep-3c7fe8d5.js → dep-b6d5c746.js} +4 -4
- package/esm/_chunks/{dep-3c7fe8d5.js.map → dep-b6d5c746.js.map} +1 -1
- package/{es/_chunks/dep-9665219c.js → esm/_chunks/dep-b7706ce0.js} +11 -11
- package/esm/_chunks/{dep-9665219c.js.map → dep-b7706ce0.js.map} +1 -1
- package/{es/_chunks/dep-7f571f72.js → esm/_chunks/dep-ba66c10b.js} +8 -8
- package/esm/_chunks/{dep-7f571f72.js.map → dep-ba66c10b.js.map} +1 -1
- package/esm/_chunks/dep-bb138eba.js +1159 -0
- package/esm/_chunks/dep-bb138eba.js.map +1 -0
- package/esm/_chunks/{dep-da3536b2.js → dep-bb7dadfb.js} +5 -5
- package/{es/_chunks/dep-da3536b2.js.map → esm/_chunks/dep-bb7dadfb.js.map} +1 -1
- package/esm/_chunks/{dep-3d507187.js → dep-bd7b9053.js} +2 -2
- package/esm/_chunks/{dep-3d507187.js.map → dep-bd7b9053.js.map} +1 -1
- package/esm/_chunks/{dep-05050386.js → dep-c59bef13.js} +9 -9
- package/{es/_chunks/dep-05050386.js.map → esm/_chunks/dep-c59bef13.js.map} +1 -1
- package/esm/_chunks/{dep-b550d3cd.js → dep-c8624742.js} +9 -9
- package/{es/_chunks/dep-b550d3cd.js.map → esm/_chunks/dep-c8624742.js.map} +1 -1
- package/esm/_chunks/{dep-d428cfe6.js → dep-ce76803f.js} +4 -4
- package/{es/_chunks/dep-d428cfe6.js.map → esm/_chunks/dep-ce76803f.js.map} +1 -1
- package/{es/_chunks/dep-a0c41d5e.js → esm/_chunks/dep-d4cab034.js} +3 -3
- package/esm/_chunks/{dep-a0c41d5e.js.map → dep-d4cab034.js.map} +1 -1
- package/{es/_chunks/dep-d9dfcbc9.js → esm/_chunks/dep-e3454659.js} +3 -3
- package/{lib/_chunks/dep-5c914c6b.js.map → esm/_chunks/dep-e3454659.js.map} +1 -1
- package/{es/_chunks/dep-749661f4.js → esm/_chunks/dep-e3beefba.js} +4 -4
- package/esm/_chunks/{dep-749661f4.js.map → dep-e3beefba.js.map} +1 -1
- package/{es/_chunks/dep-5c1ad008.js → esm/_chunks/dep-e3e80bd2.js} +7 -7
- package/esm/_chunks/{dep-5c1ad008.js.map → dep-e3e80bd2.js.map} +1 -1
- package/{es/_chunks/dep-2d042826.js → esm/_chunks/dep-e94bb956.js} +4 -4
- package/esm/_chunks/{dep-2d042826.js.map → dep-e94bb956.js.map} +1 -1
- package/esm/_chunks/{dep-fc922a1e.js → dep-eb7ba11f.js} +5 -5
- package/esm/_chunks/{dep-fc922a1e.js.map → dep-eb7ba11f.js.map} +1 -1
- package/esm/_chunks/{dep-1d152e93.js → dep-ec3f24b3.js} +4 -4
- package/{es/_chunks/dep-1d152e93.js.map → esm/_chunks/dep-ec3f24b3.js.map} +1 -1
- package/{es/_chunks/dep-5001c2c2.js → esm/_chunks/dep-ef10228a.js} +2 -2
- package/esm/_chunks/{dep-5001c2c2.js.map → dep-ef10228a.js.map} +1 -1
- package/esm/_common/js/color-picker/cmyk.js +1 -1
- package/esm/_common/js/color-picker/color.js +5 -5
- package/esm/_common/js/color-picker/draggable.js +3 -3
- package/esm/_common/js/color-picker/gradient.js +1 -1
- package/esm/_common/js/color-picker/index.js +5 -5
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/date-picker/utils.d.ts +2 -2
- package/esm/_common/js/date-picker/utils.js +26 -16
- package/esm/_common/js/date-picker/utils.js.map +1 -1
- package/esm/_common/js/global-config/default-config.js +1 -1
- package/esm/_common/js/global-config/locale/en_US.js +1 -1
- package/esm/_common/js/global-config/locale/zh_CN.js +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.js +1 -1
- 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/utils.js +2 -2
- package/esm/_common/js/upload/xhr.js +1 -1
- package/esm/_common/js/utils/calcTextareaHeight.js +5 -5
- package/esm/_common/js/utils/getScrollbarWidth.js +1 -1
- package/esm/_common/js/utils/helper.js +5 -5
- package/esm/_common/js/utils/observe.js +1 -1
- package/esm/_common/js/utils/set-style.js +1 -1
- package/esm/_common/style/web/components/_docs.less +1 -1
- package/esm/_common/style/web/components/_index.less +1 -1
- package/esm/_common/style/web/components/card/_index.less +50 -19
- package/esm/_common/style/web/components/card/_var.less +8 -13
- package/esm/_common/style/web/components/comment/_var.less +1 -1
- package/esm/_common/style/web/components/form/_index.less +10 -23
- package/esm/_common/style/web/components/form/_var.less +4 -3
- package/esm/_common/style/web/components/input/_var.less +1 -1
- package/esm/_common/style/web/components/menu/_index.less +3 -1
- package/esm/_common/style/web/components/menu/_var.less +1 -1
- package/esm/_common/style/web/components/radio/_index.less +1 -0
- package/esm/_common/style/web/components/select/_index.less +3 -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.d.ts +3 -3
- package/esm/_util/number.js +27 -36
- package/esm/_util/number.js.map +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.d.ts +2 -2
- package/esm/_util/useConfig.js +21 -21
- package/esm/_util/useConfig.js.map +1 -1
- 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 +26 -25
- package/esm/breadcrumb/Breadcrumb.js.map +1 -1
- package/esm/breadcrumb/BreadcrumbContext.js +1 -1
- package/esm/breadcrumb/BreadcrumbItem.js +25 -24
- package/esm/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +23 -23
- 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 +32 -31
- package/esm/cascader/components/InputContent.js.map +1 -1
- package/esm/cascader/components/Item.js +46 -52
- 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.d.ts +5 -0
- package/esm/cascader/utils/helper.js +6 -3
- package/esm/cascader/utils/helper.js.map +1 -1
- package/esm/cascader/utils/inputContent.js +21 -25
- package/esm/cascader/utils/inputContent.js.map +1 -1
- package/esm/cascader/utils/item.d.ts +2 -2
- package/esm/cascader/utils/item.js +6 -6
- package/esm/cascader/utils/item.js.map +1 -1
- package/esm/cascader/utils/panel.js +8 -8
- 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.d.ts +4 -0
- package/esm/common/Portal.js +26 -25
- package/esm/common/Portal.js.map +1 -1
- package/esm/common.js +1 -1
- package/esm/config-provider/ConfigContext.d.ts +5 -370
- package/esm/config-provider/ConfigContext.js +21 -21
- package/esm/config-provider/ConfigProvider.d.ts +3 -185
- package/esm/config-provider/ConfigProvider.js +21 -21
- package/esm/config-provider/ConfigProvider.js.map +1 -1
- package/esm/config-provider/en_US_config.js +1 -1
- package/esm/config-provider/index.js +21 -21
- package/esm/config-provider/type.d.ts +1 -1
- 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 +37 -29
- package/esm/dialog/Dialog.js.map +1 -1
- package/esm/dialog/RenderDialog.d.ts +1 -1
- package/esm/dialog/RenderDialog.js +44 -30
- package/esm/dialog/RenderDialog.js.map +1 -1
- package/esm/dialog/index.js +26 -26
- package/esm/dialog/plugin.js +33 -28
- package/esm/dialog/plugin.js.map +1 -1
- 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.d.ts +5 -1
- package/esm/form/Form.js +56 -57
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.d.ts +14 -5
- package/esm/form/FormContext.js +12 -5
- package/esm/form/FormContext.js.map +1 -1
- package/esm/form/FormItem.d.ts +16 -1
- package/esm/form/FormItem.js +56 -1089
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/FormList.d.ts +7 -0
- package/esm/form/FormList.js +280 -0
- package/esm/form/FormList.js.map +1 -0
- package/esm/form/formModel.js +27 -27
- package/esm/form/hooks/useFormItemStyle.d.ts +7 -0
- package/esm/form/hooks/useFormItemStyle.js +128 -0
- package/esm/form/hooks/useFormItemStyle.js.map +1 -0
- package/esm/form/hooks/useInstance.d.ts +2 -1
- package/esm/form/hooks/useInstance.js +89 -89
- package/esm/form/hooks/useInstance.js.map +1 -1
- package/esm/form/index.d.ts +5 -1
- package/esm/form/index.js +48 -47
- package/esm/form/index.js.map +1 -1
- package/esm/form/type.d.ts +33 -7
- 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 +59 -59
- package/esm/input/Input.js +29 -29
- package/esm/input/InputGroup.js +22 -22
- package/esm/input/index.js +29 -29
- package/esm/input/type.js +1 -1
- package/esm/input-number/InputNumber.js +30 -30
- package/esm/input-number/StepHandler.js +25 -25
- package/esm/input-number/index.js +30 -30
- package/esm/input-number/type.js +1 -1
- package/esm/input-number/utils/numberUtils.js +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/Loading.js +25 -25
- package/esm/loading/gradient.js +24 -24
- package/esm/loading/index.js +25 -25
- package/esm/loading/plugin.js +25 -25
- package/esm/loading/type.js +1 -1
- package/esm/locale/LocalReceiver.js +25 -25
- package/esm/locale/LocalReceiver.js.map +1 -1
- package/esm/locale/en_US.js +1 -1
- package/esm/locale/zh_CN.js +1 -1
- package/esm/menu/HeadMenu.js +28 -28
- package/esm/menu/Menu.d.ts +4 -1
- package/esm/menu/Menu.js +28 -28
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.d.ts +5 -1
- package/esm/menu/MenuGroup.js +33 -23
- package/esm/menu/MenuGroup.js.map +1 -1
- package/esm/menu/MenuItem.js +22 -22
- package/esm/menu/SubMenu.js +51 -31
- package/esm/menu/SubMenu.js.map +1 -1
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.d.ts +1 -0
- package/esm/menu/_util/checkMenuType.js +6 -2
- package/esm/menu/_util/checkMenuType.js.map +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 +4 -3
- package/esm/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/esm/menu/_util/type.d.ts +2 -1
- package/esm/menu/_util/type.js +2 -1
- package/esm/menu/_util/type.js.map +1 -1
- package/esm/menu/hooks/useMenuContext.js +6 -6
- package/esm/menu/index.d.ts +4 -1
- package/esm/menu/index.js +28 -28
- 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 +41 -41
- 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 +28 -28
- package/esm/popconfirm/Popcontent.js +25 -25
- package/esm/popconfirm/index.d.ts +0 -1
- package/esm/popconfirm/index.js +29 -31
- package/esm/popconfirm/index.js.map +1 -1
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +32 -31
- package/esm/popup/Popup.js.map +1 -1
- package/esm/popup/hooks/useTriggerProps.d.ts +2 -2
- package/esm/popup/hooks/useTriggerProps.js +15 -3
- package/esm/popup/hooks/useTriggerProps.js.map +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 +41 -41
- 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 +39 -39
- package/esm/select-input/index.js +39 -39
- package/esm/select-input/type.js +1 -1
- package/esm/select-input/useMultiple.js +30 -30
- package/esm/select-input/useOverlayStyle.js +9 -9
- package/esm/select-input/useSingle.js +36 -36
- 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 +32 -32
- package/esm/slider/SliderHandleButton.js +28 -28
- package/esm/slider/index.js +32 -32
- 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 +45 -45
- package/esm/table/base/Table.js.map +1 -1
- 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 +35 -35
- package/esm/table/primary/useFilterButton.js +35 -35
- package/esm/table/primary/useSelect.js +35 -35
- package/esm/table/primary/useSorter.js +32 -32
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.d.ts +2 -0
- package/esm/table/util/index.js +15 -2
- package/esm/table/util/index.js.map +1 -1
- package/esm/tabs/TabBar.js +23 -23
- package/esm/tabs/TabNav.js +27 -27
- package/esm/tabs/TabNavItem.js +22 -22
- package/esm/tabs/TabPanel.js +21 -21
- package/esm/tabs/Tabs.js +27 -27
- package/esm/tabs/index.js +27 -27
- 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 +30 -30
- package/esm/tag-input/index.js +30 -30
- 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 +29 -29
- 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 +36 -36
- package/esm/time-picker/TimeRangePicker.js +36 -36
- package/esm/time-picker/consts.js +23 -23
- package/esm/time-picker/index.js +36 -36
- 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 +46 -46
- package/esm/transfer/TransferList.js +44 -44
- package/esm/transfer/index.js +46 -46
- 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-ac71022d.js → dep-0ac7284e.js} +3 -3
- package/lib/_chunks/{dep-ac71022d.js.map → dep-0ac7284e.js.map} +1 -1
- package/lib/_chunks/{dep-6df5ed3c.js → dep-0c7146a1.js} +2 -2
- package/lib/_chunks/{dep-6df5ed3c.js.map → dep-0c7146a1.js.map} +1 -1
- package/lib/_chunks/{dep-ee053271.js → dep-0fee38a9.js} +2 -2
- package/lib/_chunks/{dep-ee053271.js.map → dep-0fee38a9.js.map} +1 -1
- package/lib/_chunks/{dep-01d0e8d3.js → dep-125056cf.js} +7 -7
- package/lib/_chunks/{dep-01d0e8d3.js.map → dep-125056cf.js.map} +1 -1
- package/lib/_chunks/{dep-3b07c4de.js → dep-1609c4b4.js} +3 -3
- package/lib/_chunks/{dep-3b07c4de.js.map → dep-1609c4b4.js.map} +1 -1
- package/lib/_chunks/{dep-d8fb27fc.js → dep-1c5bc663.js} +14 -14
- package/lib/_chunks/{dep-d8fb27fc.js.map → dep-1c5bc663.js.map} +1 -1
- package/lib/_chunks/{dep-2f29b8a7.js → dep-1fa64865.js} +2 -2
- package/lib/_chunks/{dep-2f29b8a7.js.map → dep-1fa64865.js.map} +1 -1
- package/lib/_chunks/{dep-3840a54f.js → dep-291d4777.js} +4 -4
- package/lib/_chunks/{dep-3840a54f.js.map → dep-291d4777.js.map} +1 -1
- package/lib/_chunks/{dep-6853280d.js → dep-3cbc9113.js} +2 -2
- package/lib/_chunks/{dep-6853280d.js.map → dep-3cbc9113.js.map} +1 -1
- package/lib/_chunks/{dep-427344e4.js → dep-42ec9ab8.js} +5 -5
- package/lib/_chunks/{dep-427344e4.js.map → dep-42ec9ab8.js.map} +1 -1
- package/lib/_chunks/{dep-0f162f6d.js → dep-4766bb99.js} +4 -4
- package/lib/_chunks/{dep-0f162f6d.js.map → dep-4766bb99.js.map} +1 -1
- package/lib/_chunks/{dep-5c914c6b.js → dep-54c85111.js} +2 -2
- package/{esm/_chunks/dep-d9dfcbc9.js.map → lib/_chunks/dep-54c85111.js.map} +1 -1
- package/lib/_chunks/{dep-c8d8ea79.js → dep-552ce9cb.js} +2 -2
- package/lib/_chunks/{dep-c8d8ea79.js.map → dep-552ce9cb.js.map} +1 -1
- package/lib/_chunks/{dep-3ca370f1.js → dep-5f4b3394.js} +3 -3
- package/lib/_chunks/{dep-3ca370f1.js.map → dep-5f4b3394.js.map} +1 -1
- package/lib/_chunks/{dep-96c48f48.js → dep-6384192e.js} +3 -3
- package/lib/_chunks/{dep-96c48f48.js.map → dep-6384192e.js.map} +1 -1
- package/lib/_chunks/{dep-5246f8a1.js → dep-64baa6c7.js} +6 -6
- package/lib/_chunks/{dep-5246f8a1.js.map → dep-64baa6c7.js.map} +1 -1
- package/lib/_chunks/{dep-dcf932ff.js → dep-68620b7b.js} +4 -4
- package/lib/_chunks/{dep-dcf932ff.js.map → dep-68620b7b.js.map} +1 -1
- package/lib/_chunks/{dep-c397b26c.js → dep-690c44e4.js} +4 -4
- package/lib/_chunks/{dep-c397b26c.js.map → dep-690c44e4.js.map} +1 -1
- package/lib/_chunks/{dep-6fce6b73.js → dep-698d9625.js} +9 -9
- package/lib/_chunks/{dep-6fce6b73.js.map → dep-698d9625.js.map} +1 -1
- package/lib/_chunks/{dep-76030773.js → dep-76d31f29.js} +4 -4
- package/lib/_chunks/{dep-76030773.js.map → dep-76d31f29.js.map} +1 -1
- package/lib/_chunks/{dep-a21fea7a.js → dep-76ed7f47.js} +2 -2
- package/lib/_chunks/{dep-a21fea7a.js.map → dep-76ed7f47.js.map} +1 -1
- package/lib/_chunks/{dep-58ae7ec2.js → dep-7b86e0cb.js} +5 -5
- package/lib/_chunks/{dep-58ae7ec2.js.map → dep-7b86e0cb.js.map} +1 -1
- package/lib/_chunks/{dep-68251d41.js → dep-7e72d67b.js} +7 -7
- package/lib/_chunks/{dep-68251d41.js.map → dep-7e72d67b.js.map} +1 -1
- package/lib/_chunks/{dep-1238af0f.js → dep-851c0527.js} +6 -6
- package/lib/_chunks/{dep-1238af0f.js.map → dep-851c0527.js.map} +1 -1
- package/lib/_chunks/{dep-b608ec19.js → dep-851dca2f.js} +2 -2
- package/lib/_chunks/{dep-b608ec19.js.map → dep-851dca2f.js.map} +1 -1
- package/lib/_chunks/{dep-c9c1de65.js → dep-87681cb3.js} +7 -7
- package/lib/_chunks/{dep-c9c1de65.js.map → dep-87681cb3.js.map} +1 -1
- package/lib/_chunks/{dep-8aced10d.js → dep-87f74a05.js} +3 -3
- package/lib/_chunks/{dep-8aced10d.js.map → dep-87f74a05.js.map} +1 -1
- package/lib/_chunks/{dep-65e68b42.js → dep-89c416a1.js} +6 -6
- package/lib/_chunks/{dep-65e68b42.js.map → dep-89c416a1.js.map} +1 -1
- package/lib/_chunks/{dep-5045d921.js → dep-8a4b9694.js} +5 -5
- package/lib/_chunks/{dep-5045d921.js.map → dep-8a4b9694.js.map} +1 -1
- package/lib/_chunks/{dep-1da15e36.js → dep-8dcd4b3b.js} +5 -5
- package/lib/_chunks/{dep-1da15e36.js.map → dep-8dcd4b3b.js.map} +1 -1
- package/lib/_chunks/{dep-37b88f54.js → dep-90453921.js} +3 -3
- package/lib/_chunks/{dep-37b88f54.js.map → dep-90453921.js.map} +1 -1
- package/lib/_chunks/{dep-6b1da10b.js → dep-933a42ef.js} +6 -6
- package/lib/_chunks/{dep-6b1da10b.js.map → dep-933a42ef.js.map} +1 -1
- package/lib/_chunks/{dep-b9b707bc.js → dep-9742ea03.js} +2 -2
- package/lib/_chunks/{dep-b9b707bc.js.map → dep-9742ea03.js.map} +1 -1
- package/lib/_chunks/{dep-7688fae5.js → dep-98c5a4a1.js} +4 -4
- package/lib/_chunks/{dep-7688fae5.js.map → dep-98c5a4a1.js.map} +1 -1
- package/lib/_chunks/{dep-59dfd3d9.js → dep-9b4bf1a3.js} +3 -3
- package/lib/_chunks/{dep-59dfd3d9.js.map → dep-9b4bf1a3.js.map} +1 -1
- package/lib/_chunks/{dep-01a01db8.js → dep-9b54e16d.js} +2 -2
- package/lib/_chunks/{dep-01a01db8.js.map → dep-9b54e16d.js.map} +1 -1
- package/lib/_chunks/{dep-50a6fd84.js → dep-9deac244.js} +13 -13
- package/lib/_chunks/{dep-50a6fd84.js.map → dep-9deac244.js.map} +1 -1
- package/lib/_chunks/{dep-7d1c93e3.js → dep-9e882f72.js} +6 -6
- package/lib/_chunks/{dep-7d1c93e3.js.map → dep-9e882f72.js.map} +1 -1
- package/lib/_chunks/{dep-dee8d9f8.js → dep-a62b278b.js} +7 -7
- package/lib/_chunks/{dep-dee8d9f8.js.map → dep-a62b278b.js.map} +1 -1
- package/lib/_chunks/{dep-8629fef7.js → dep-a8aeffa7.js} +5 -5
- package/lib/_chunks/{dep-8629fef7.js.map → dep-a8aeffa7.js.map} +1 -1
- package/lib/_chunks/{dep-dc8dbdc8.js → dep-ac53cfaa.js} +2 -2
- package/lib/_chunks/{dep-dc8dbdc8.js.map → dep-ac53cfaa.js.map} +1 -1
- package/lib/_chunks/{dep-5b731d9b.js → dep-b132e68c.js} +3 -3
- package/lib/_chunks/{dep-5b731d9b.js.map → dep-b132e68c.js.map} +1 -1
- package/lib/_chunks/{dep-ef5991ef.js → dep-cad15495.js} +5 -5
- package/lib/_chunks/{dep-ef5991ef.js.map → dep-cad15495.js.map} +1 -1
- package/lib/_chunks/{dep-db8e24ad.js → dep-d3b0f84e.js} +6 -6
- package/lib/_chunks/{dep-db8e24ad.js.map → dep-d3b0f84e.js.map} +1 -1
- package/lib/_chunks/dep-d458df40.js +1167 -0
- package/lib/_chunks/dep-d458df40.js.map +1 -0
- package/lib/_chunks/{dep-9ed08527.js → dep-d57fd109.js} +3 -3
- package/lib/_chunks/{dep-9ed08527.js.map → dep-d57fd109.js.map} +1 -1
- package/lib/_chunks/{dep-27bdeef4.js → dep-dc159b18.js} +5 -5
- package/lib/_chunks/{dep-27bdeef4.js.map → dep-dc159b18.js.map} +1 -1
- package/lib/_chunks/{dep-95f3f70e.js → dep-dc7453f3.js} +6 -6
- package/lib/_chunks/{dep-95f3f70e.js.map → dep-dc7453f3.js.map} +1 -1
- package/lib/_chunks/{dep-1fc3219a.js → dep-e3ee76d0.js} +11 -11
- package/lib/_chunks/{dep-1fc3219a.js.map → dep-e3ee76d0.js.map} +1 -1
- package/lib/_chunks/{dep-2cf41fb6.js → dep-e49a05f7.js} +7 -7
- package/lib/_chunks/{dep-2cf41fb6.js.map → dep-e49a05f7.js.map} +1 -1
- package/lib/_chunks/{dep-7e522a05.js → dep-e72f513b.js} +5 -5
- package/lib/_chunks/{dep-7e522a05.js.map → dep-e72f513b.js.map} +1 -1
- package/lib/_chunks/{dep-15827890.js → dep-f4831484.js} +3 -3
- package/lib/_chunks/{dep-15827890.js.map → dep-f4831484.js.map} +1 -1
- package/lib/_chunks/{dep-93866a5e.js → dep-f8be6757.js} +4 -4
- package/lib/_chunks/{dep-93866a5e.js.map → dep-f8be6757.js.map} +1 -1
- package/lib/_chunks/{dep-43d80a4a.js → dep-fda925cc.js} +3 -3
- package/lib/_chunks/{dep-43d80a4a.js.map → dep-fda925cc.js.map} +1 -1
- package/lib/_common/js/color-picker/cmyk.js +1 -1
- package/lib/_common/js/color-picker/color.js +5 -5
- package/lib/_common/js/color-picker/draggable.js +3 -3
- package/lib/_common/js/color-picker/gradient.js +1 -1
- package/lib/_common/js/color-picker/index.js +5 -5
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/date-picker/utils.d.ts +2 -2
- package/lib/_common/js/date-picker/utils.js +25 -15
- package/lib/_common/js/date-picker/utils.js.map +1 -1
- package/lib/_common/js/global-config/default-config.js +1 -1
- package/lib/_common/js/global-config/locale/en_US.js +1 -1
- package/lib/_common/js/global-config/locale/zh_CN.js +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.js +1 -1
- 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/utils.js +2 -2
- package/lib/_common/js/upload/xhr.js +1 -1
- package/lib/_common/js/utils/calcTextareaHeight.js +5 -5
- package/lib/_common/js/utils/getScrollbarWidth.js +1 -1
- package/lib/_common/js/utils/helper.js +5 -5
- package/lib/_common/js/utils/observe.js +1 -1
- 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.d.ts +3 -3
- package/lib/_util/number.js +27 -36
- package/lib/_util/number.js.map +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.d.ts +2 -2
- package/lib/_util/useConfig.js +19 -19
- package/lib/_util/useConfig.js.map +1 -1
- 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 +25 -23
- package/lib/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/breadcrumb/BreadcrumbContext.js +1 -1
- package/lib/breadcrumb/BreadcrumbItem.js +23 -22
- package/lib/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +21 -21
- 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 +44 -50
- 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.d.ts +5 -0
- package/lib/cascader/utils/helper.js +6 -2
- package/lib/cascader/utils/helper.js.map +1 -1
- package/lib/cascader/utils/inputContent.js +19 -23
- package/lib/cascader/utils/inputContent.js.map +1 -1
- package/lib/cascader/utils/item.d.ts +2 -2
- package/lib/cascader/utils/item.js +6 -6
- package/lib/cascader/utils/item.js.map +1 -1
- package/lib/cascader/utils/panel.js +7 -7
- 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.d.ts +4 -0
- package/lib/common/Portal.js +24 -23
- package/lib/common/Portal.js.map +1 -1
- package/lib/common.js +1 -1
- package/lib/config-provider/ConfigContext.d.ts +5 -370
- package/lib/config-provider/ConfigContext.js +19 -19
- package/lib/config-provider/ConfigProvider.d.ts +3 -185
- package/lib/config-provider/ConfigProvider.js +19 -19
- package/lib/config-provider/ConfigProvider.js.map +1 -1
- package/lib/config-provider/en_US_config.js +1 -1
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/type.d.ts +1 -1
- 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 +34 -26
- package/lib/dialog/Dialog.js.map +1 -1
- package/lib/dialog/RenderDialog.d.ts +1 -1
- package/lib/dialog/RenderDialog.js +41 -27
- package/lib/dialog/RenderDialog.js.map +1 -1
- package/lib/dialog/index.js +24 -24
- package/lib/dialog/plugin.js +31 -26
- package/lib/dialog/plugin.js.map +1 -1
- 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.d.ts +5 -1
- package/lib/form/Form.js +54 -55
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.d.ts +14 -5
- package/lib/form/FormContext.js +13 -4
- package/lib/form/FormContext.js.map +1 -1
- package/lib/form/FormItem.d.ts +16 -1
- package/lib/form/FormItem.js +56 -1082
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/FormList.d.ts +7 -0
- package/lib/form/FormList.js +288 -0
- package/lib/form/FormList.js.map +1 -0
- package/lib/form/formModel.js +25 -25
- package/lib/form/hooks/useFormItemStyle.d.ts +7 -0
- package/lib/form/hooks/useFormItemStyle.js +119 -0
- package/lib/form/hooks/useFormItemStyle.js.map +1 -0
- package/lib/form/hooks/useInstance.d.ts +2 -1
- package/lib/form/hooks/useInstance.js +87 -87
- package/lib/form/hooks/useInstance.js.map +1 -1
- package/lib/form/index.d.ts +5 -1
- package/lib/form/index.js +46 -45
- package/lib/form/index.js.map +1 -1
- package/lib/form/type.d.ts +33 -7
- 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 -57
- package/lib/index-lib.js.map +1 -1
- package/lib/index.js +56 -57
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +27 -27
- package/lib/input/InputGroup.js +20 -20
- package/lib/input/index.js +27 -27
- package/lib/input/type.js +1 -1
- package/lib/input-number/InputNumber.js +28 -28
- package/lib/input-number/StepHandler.js +23 -23
- package/lib/input-number/index.js +28 -28
- package/lib/input-number/type.js +1 -1
- package/lib/input-number/utils/numberUtils.js +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/Loading.js +23 -23
- package/lib/loading/gradient.js +22 -22
- package/lib/loading/index.js +23 -23
- package/lib/loading/plugin.js +23 -23
- package/lib/loading/type.js +1 -1
- package/lib/locale/LocalReceiver.js +23 -23
- package/lib/locale/LocalReceiver.js.map +1 -1
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/menu/HeadMenu.js +26 -26
- package/lib/menu/Menu.d.ts +4 -1
- package/lib/menu/Menu.js +26 -26
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.d.ts +5 -1
- package/lib/menu/MenuGroup.js +31 -21
- package/lib/menu/MenuGroup.js.map +1 -1
- package/lib/menu/MenuItem.js +20 -20
- package/lib/menu/SubMenu.js +48 -28
- package/lib/menu/SubMenu.js.map +1 -1
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.d.ts +1 -0
- package/lib/menu/_util/checkMenuType.js +6 -1
- package/lib/menu/_util/checkMenuType.js.map +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 +4 -3
- package/lib/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/lib/menu/_util/type.d.ts +2 -1
- package/lib/menu/_util/type.js +2 -1
- package/lib/menu/_util/type.js.map +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.d.ts +4 -1
- package/lib/menu/index.js +26 -26
- 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 +39 -39
- 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 +26 -26
- package/lib/popconfirm/Popcontent.js +23 -23
- package/lib/popconfirm/index.d.ts +0 -1
- package/lib/popconfirm/index.js +26 -29
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +30 -29
- package/lib/popup/Popup.js.map +1 -1
- package/lib/popup/hooks/useTriggerProps.d.ts +2 -2
- package/lib/popup/hooks/useTriggerProps.js +15 -3
- package/lib/popup/hooks/useTriggerProps.js.map +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 +39 -39
- 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 +37 -37
- package/lib/select-input/index.js +37 -37
- package/lib/select-input/type.js +1 -1
- package/lib/select-input/useMultiple.js +28 -28
- package/lib/select-input/useOverlayStyle.js +8 -8
- package/lib/select-input/useSingle.js +34 -34
- 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 +30 -30
- package/lib/slider/SliderHandleButton.js +26 -26
- package/lib/slider/index.js +30 -30
- 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 +42 -42
- package/lib/table/base/Table.js.map +1 -1
- 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.d.ts +2 -0
- package/lib/table/util/index.js +16 -1
- package/lib/table/util/index.js.map +1 -1
- package/lib/tabs/TabBar.js +21 -21
- package/lib/tabs/TabNav.js +25 -25
- package/lib/tabs/TabNavItem.js +20 -20
- package/lib/tabs/TabPanel.js +19 -19
- package/lib/tabs/Tabs.js +25 -25
- package/lib/tabs/index.js +25 -25
- 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 +28 -28
- package/lib/tag-input/index.js +28 -28
- 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 +27 -27
- 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 +34 -34
- package/lib/time-picker/TimeRangePicker.js +34 -34
- package/lib/time-picker/consts.js +21 -21
- package/lib/time-picker/index.js +34 -34
- 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 +44 -44
- 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-436e4458.js +0 -8
- package/es/_chunks/dep-436e4458.js.map +0 -1
- package/es/_chunks/dep-bd2c9bb8.js.map +0 -1
- package/es/popconfirm/PopConfirm-old.d.ts +0 -2
- package/es/popconfirm/PopConfirm-old.js +0 -82
- package/es/popconfirm/PopConfirm-old.js.map +0 -1
- package/esm/_chunks/dep-436e4458.js +0 -8
- package/esm/_chunks/dep-436e4458.js.map +0 -1
- package/esm/_chunks/dep-bd2c9bb8.js.map +0 -1
- package/esm/popconfirm/PopConfirm-old.d.ts +0 -2
- package/esm/popconfirm/PopConfirm-old.js +0 -84
- package/esm/popconfirm/PopConfirm-old.js.map +0 -1
- package/lib/popconfirm/PopConfirm-old.d.ts +0 -2
- package/lib/popconfirm/PopConfirm-old.js +0 -78
- package/lib/popconfirm/PopConfirm-old.js.map +0 -1
package/dist/tdesign.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.
|
|
2
|
+
* tdesign v0.31.0
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
return _arr;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function _arrayLikeToArray$
|
|
81
|
+
function _arrayLikeToArray$5(arr, len) {
|
|
82
82
|
if (len == null || len > arr.length) len = arr.length;
|
|
83
83
|
|
|
84
84
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
return arr2;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function _unsupportedIterableToArray$
|
|
91
|
+
function _unsupportedIterableToArray$5(o, minLen) {
|
|
92
92
|
if (!o) return;
|
|
93
|
-
if (typeof o === "string") return _arrayLikeToArray$
|
|
93
|
+
if (typeof o === "string") return _arrayLikeToArray$5(o, minLen);
|
|
94
94
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
95
95
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
96
96
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
97
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$
|
|
97
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
function _nonIterableRest() {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
function _slicedToArray(arr, i) {
|
|
105
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$
|
|
105
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$5(arr, i) || _nonIterableRest();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
function _defineProperty$2(obj, key, value) {
|
|
@@ -3712,7 +3712,8 @@
|
|
|
3712
3712
|
}
|
|
3713
3713
|
var Portal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3714
3714
|
var attach = props.attach,
|
|
3715
|
-
children = props.children
|
|
3715
|
+
children = props.children,
|
|
3716
|
+
triggerNode = props.triggerNode;
|
|
3716
3717
|
|
|
3717
3718
|
var _useConfig = useConfig$1(),
|
|
3718
3719
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -3728,7 +3729,7 @@
|
|
|
3728
3729
|
var el = null;
|
|
3729
3730
|
|
|
3730
3731
|
if (typeof attach === "function") {
|
|
3731
|
-
el = attach();
|
|
3732
|
+
el = attach(triggerNode);
|
|
3732
3733
|
} else if (typeof attach === "string") {
|
|
3733
3734
|
el = document.querySelector(attach);
|
|
3734
3735
|
}
|
|
@@ -3743,7 +3744,7 @@
|
|
|
3743
3744
|
|
|
3744
3745
|
(_parentElement = parentElement) === null || _parentElement === void 0 ? void 0 : _parentElement.removeChild(container);
|
|
3745
3746
|
};
|
|
3746
|
-
}, [container, attach]);
|
|
3747
|
+
}, [container, attach, triggerNode]);
|
|
3747
3748
|
React.useImperativeHandle(ref, function () {
|
|
3748
3749
|
return container;
|
|
3749
3750
|
});
|
|
@@ -8803,11 +8804,11 @@
|
|
|
8803
8804
|
};
|
|
8804
8805
|
}
|
|
8805
8806
|
|
|
8806
|
-
function _createForOfIteratorHelper$
|
|
8807
|
+
function _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8807
8808
|
|
|
8808
|
-
function _unsupportedIterableToArray$
|
|
8809
|
+
function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
|
|
8809
8810
|
|
|
8810
|
-
function _arrayLikeToArray$
|
|
8811
|
+
function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8811
8812
|
|
|
8812
8813
|
function composeRefs() {
|
|
8813
8814
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -8815,7 +8816,7 @@
|
|
|
8815
8816
|
}
|
|
8816
8817
|
|
|
8817
8818
|
return function (instance) {
|
|
8818
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8819
|
+
var _iterator = _createForOfIteratorHelper$4(refs),
|
|
8819
8820
|
_step;
|
|
8820
8821
|
|
|
8821
8822
|
try {
|
|
@@ -8861,17 +8862,19 @@
|
|
|
8861
8862
|
}, [refs, handler]);
|
|
8862
8863
|
}
|
|
8863
8864
|
|
|
8864
|
-
function _createForOfIteratorHelper$
|
|
8865
|
+
function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8865
8866
|
|
|
8866
|
-
function _unsupportedIterableToArray$
|
|
8867
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
8867
8868
|
|
|
8868
|
-
function _arrayLikeToArray$
|
|
8869
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8869
8870
|
var ESC_KEY = "Escape";
|
|
8870
8871
|
function useTriggerProps(ref, triggerNode, triggers, visible, setVisible) {
|
|
8871
8872
|
var disabled = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
8872
8873
|
var originTrigger = arguments.length > 6 ? arguments[6] : undefined;
|
|
8873
8874
|
var triggerProps = {};
|
|
8874
8875
|
var popupProps = {};
|
|
8876
|
+
var hasPopupMouseDown = React.useRef(false);
|
|
8877
|
+
var mouseDownTimer = React.useRef();
|
|
8875
8878
|
|
|
8876
8879
|
var toggle = function toggle(e, trigger) {
|
|
8877
8880
|
return setVisible(!visible, {
|
|
@@ -8895,13 +8898,13 @@
|
|
|
8895
8898
|
};
|
|
8896
8899
|
|
|
8897
8900
|
useClickOutside([ref, triggerNode], function (e) {
|
|
8898
|
-
if (visible && (triggers.includes("click") || triggers.includes("context-menu"))) {
|
|
8901
|
+
if (visible && (triggers.includes("click") || triggers.includes("context-menu")) && !hasPopupMouseDown.current) {
|
|
8899
8902
|
hide(e, "trigger-element-blur");
|
|
8900
8903
|
}
|
|
8901
8904
|
});
|
|
8902
8905
|
if (disabled) return [triggerProps, popupProps];
|
|
8903
8906
|
|
|
8904
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8907
|
+
var _iterator = _createForOfIteratorHelper$3(triggers),
|
|
8905
8908
|
_step;
|
|
8906
8909
|
|
|
8907
8910
|
try {
|
|
@@ -8911,6 +8914,7 @@
|
|
|
8911
8914
|
onClick = _originTrigger$props.onClick,
|
|
8912
8915
|
onMouseEnter = _originTrigger$props.onMouseEnter,
|
|
8913
8916
|
onMouseLeave = _originTrigger$props.onMouseLeave,
|
|
8917
|
+
onMouseDown = _originTrigger$props.onMouseDown,
|
|
8914
8918
|
onFocus = _originTrigger$props.onFocus,
|
|
8915
8919
|
onBlur = _originTrigger$props.onBlur,
|
|
8916
8920
|
onContextMenu = _originTrigger$props.onContextMenu,
|
|
@@ -8962,6 +8966,15 @@
|
|
|
8962
8966
|
};
|
|
8963
8967
|
}
|
|
8964
8968
|
|
|
8969
|
+
popupProps.onMouseDown = function (e) {
|
|
8970
|
+
clearTimeout(mouseDownTimer.current);
|
|
8971
|
+
hasPopupMouseDown.current = true;
|
|
8972
|
+
mouseDownTimer.current = window.setTimeout(function () {
|
|
8973
|
+
hasPopupMouseDown.current = false;
|
|
8974
|
+
});
|
|
8975
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
8976
|
+
};
|
|
8977
|
+
|
|
8965
8978
|
triggerProps.onKeyDown = function (e) {
|
|
8966
8979
|
if (e.key === ESC_KEY) hide(e, "keydown-esc");
|
|
8967
8980
|
onKeyDown && onKeyDown(e);
|
|
@@ -9498,15 +9511,15 @@
|
|
|
9498
9511
|
var referenceElmBottom = window.innerHeight - bottom;
|
|
9499
9512
|
var referenceElmRight = window.innerWidth - right;
|
|
9500
9513
|
var _contentRef$current = contentRef.current,
|
|
9501
|
-
|
|
9514
|
+
contentOffsetHeight = _contentRef$current.offsetHeight,
|
|
9502
9515
|
contentOffsetWidth = _contentRef$current.offsetWidth;
|
|
9503
9516
|
var newPlacement = state.options.placement;
|
|
9504
9517
|
|
|
9505
|
-
if (referenceElmBottom <
|
|
9518
|
+
if (referenceElmBottom < contentOffsetHeight && referenceElmTop >= contentOffsetHeight) {
|
|
9506
9519
|
newPlacement = state.options.placement.replace("bottom", "top");
|
|
9507
9520
|
}
|
|
9508
9521
|
|
|
9509
|
-
if (referenceElmTop <
|
|
9522
|
+
if (referenceElmTop < contentOffsetHeight && referenceElmBottom >= contentOffsetHeight) {
|
|
9510
9523
|
newPlacement = state.options.placement.replace("top", "bottom");
|
|
9511
9524
|
}
|
|
9512
9525
|
|
|
@@ -9533,7 +9546,7 @@
|
|
|
9533
9546
|
var defaultStyles = React.useMemo(function () {
|
|
9534
9547
|
if (triggerRef && typeof overlayStyle === "function") return _objectSpread$24({}, overlayStyle(triggerRef, overlayRef));
|
|
9535
9548
|
return _objectSpread$24({}, overlayStyle);
|
|
9536
|
-
}, [overlayStyle, triggerRef, overlayRef]);
|
|
9549
|
+
}, [overlayStyle, triggerRef, overlayRef, visible]);
|
|
9537
9550
|
var overlayVisibleStyle = defaultStyles;
|
|
9538
9551
|
var triggerNodeTemp = React.useMemo(function () {
|
|
9539
9552
|
var _React$Children$toArr = React__default["default"].Children.toArray(children),
|
|
@@ -9593,6 +9606,7 @@
|
|
|
9593
9606
|
onEnter: handleEnter,
|
|
9594
9607
|
onExited: handleExited
|
|
9595
9608
|
}, /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
9609
|
+
triggerNode: triggerRef,
|
|
9596
9610
|
attach: attach,
|
|
9597
9611
|
ref: portalRef
|
|
9598
9612
|
}, /* @__PURE__ */React__default["default"].createElement(CSSTransition$1, _objectSpread$24({
|
|
@@ -13016,11 +13030,11 @@
|
|
|
13016
13030
|
globalConfig = _React$useContext.globalConfig;
|
|
13017
13031
|
|
|
13018
13032
|
function transformLocale(pattern, placement) {
|
|
13019
|
-
var
|
|
13033
|
+
var REGEXP = /\{\s*([\w-]+)\s*\}/g;
|
|
13020
13034
|
|
|
13021
13035
|
if (typeof pattern === "string") {
|
|
13022
|
-
if (!placement || !
|
|
13023
|
-
var translated = pattern.replace(
|
|
13036
|
+
if (!placement || !REGEXP.test(pattern)) return pattern;
|
|
13037
|
+
var translated = pattern.replace(REGEXP, function (_, key) {
|
|
13024
13038
|
if (placement) return String(placement[key]);
|
|
13025
13039
|
return "";
|
|
13026
13040
|
});
|
|
@@ -13029,7 +13043,7 @@
|
|
|
13029
13043
|
|
|
13030
13044
|
if (Array.isArray(pattern)) {
|
|
13031
13045
|
return pattern.map(function (p, index) {
|
|
13032
|
-
var translated = p.replace(
|
|
13046
|
+
var translated = p.replace(REGEXP, function (_, key) {
|
|
13033
13047
|
if (placement) return String(placement[index][key]);
|
|
13034
13048
|
return "";
|
|
13035
13049
|
});
|
|
@@ -15392,7 +15406,7 @@
|
|
|
15392
15406
|
var get_1 = get$1;
|
|
15393
15407
|
|
|
15394
15408
|
function _arrayWithoutHoles(arr) {
|
|
15395
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
15409
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$5(arr);
|
|
15396
15410
|
}
|
|
15397
15411
|
|
|
15398
15412
|
function _iterableToArray(iter) {
|
|
@@ -15404,7 +15418,7 @@
|
|
|
15404
15418
|
}
|
|
15405
15419
|
|
|
15406
15420
|
function _toConsumableArray(arr) {
|
|
15407
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$
|
|
15421
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread();
|
|
15408
15422
|
}
|
|
15409
15423
|
|
|
15410
15424
|
function ownKeys$1e(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; }
|
|
@@ -27443,6 +27457,19 @@
|
|
|
27443
27457
|
return direction;
|
|
27444
27458
|
};
|
|
27445
27459
|
|
|
27460
|
+
function percentPxToNumber(a) {
|
|
27461
|
+
if (typeof a === "undefined") return 0;
|
|
27462
|
+
if (/%/.test(a)) return Number(a.replace("%", "")) * 0.01;
|
|
27463
|
+
return Number(a.replace("px", ""));
|
|
27464
|
+
}
|
|
27465
|
+
|
|
27466
|
+
var getStyleHeight = function getStyleHeight(height) {
|
|
27467
|
+
return isNaN(Number(height)) ? height : "".concat(Number(height), "px");
|
|
27468
|
+
};
|
|
27469
|
+
var calHeight = function calHeight(height) {
|
|
27470
|
+
return isNaN(Number(height)) ? percentPxToNumber(height) : Number(height);
|
|
27471
|
+
};
|
|
27472
|
+
|
|
27446
27473
|
function TableEmptyBody$1(props) {
|
|
27447
27474
|
var _useConfig = useConfig$1(),
|
|
27448
27475
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -28398,7 +28425,7 @@
|
|
|
28398
28425
|
scrollBarWidth = _useState6[0],
|
|
28399
28426
|
setScrollBarWidth = _useState6[1];
|
|
28400
28427
|
|
|
28401
|
-
var fixedHeader = height > 0 || maxHeight > 0;
|
|
28428
|
+
var fixedHeader = calHeight(height) > 0 || calHeight(maxHeight) > 0;
|
|
28402
28429
|
var hasFixedColumns = columns.some(function (_ref) {
|
|
28403
28430
|
var fixed = _ref.fixed;
|
|
28404
28431
|
return ["left", "right"].includes(fixed);
|
|
@@ -28563,8 +28590,8 @@
|
|
|
28563
28590
|
ref: scrollBodyRef,
|
|
28564
28591
|
className: "".concat(classPrefix, "-table__body"),
|
|
28565
28592
|
style: {
|
|
28566
|
-
height:
|
|
28567
|
-
maxHeight:
|
|
28593
|
+
height: getStyleHeight(height),
|
|
28594
|
+
maxHeight: getStyleHeight(maxHeight),
|
|
28568
28595
|
width: hasFixedColumns ? "100%" : void 0
|
|
28569
28596
|
}
|
|
28570
28597
|
}, hasFixedColumns ? {
|
|
@@ -28843,11 +28870,11 @@
|
|
|
28843
28870
|
}, renderSortIcons()));
|
|
28844
28871
|
};
|
|
28845
28872
|
|
|
28846
|
-
function _createForOfIteratorHelper$
|
|
28873
|
+
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
28847
28874
|
|
|
28848
|
-
function _unsupportedIterableToArray$
|
|
28875
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
28849
28876
|
|
|
28850
|
-
function _arrayLikeToArray$
|
|
28877
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
28851
28878
|
|
|
28852
28879
|
function ownKeys$W(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; }
|
|
28853
28880
|
|
|
@@ -29056,7 +29083,7 @@
|
|
|
29056
29083
|
|
|
29057
29084
|
function comparer(sorts) {
|
|
29058
29085
|
return function (a, b) {
|
|
29059
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29086
|
+
var _iterator = _createForOfIteratorHelper$2(sorts),
|
|
29060
29087
|
_step;
|
|
29061
29088
|
|
|
29062
29089
|
try {
|
|
@@ -31499,6 +31526,7 @@
|
|
|
31499
31526
|
MenuBlockType2["MenuItem"] = "MenuItem";
|
|
31500
31527
|
MenuBlockType2["SubMenu"] = "SubMenu";
|
|
31501
31528
|
MenuBlockType2["MenuItemGroup"] = "MenuItemGroup";
|
|
31529
|
+
MenuBlockType2["MenuGroup"] = "MenuGroup";
|
|
31502
31530
|
return MenuBlockType2;
|
|
31503
31531
|
}(MenuBlockType || {});
|
|
31504
31532
|
|
|
@@ -31604,6 +31632,10 @@
|
|
|
31604
31632
|
var displayName = child.type.displayName;
|
|
31605
31633
|
return displayName === MenuBlockType.MenuItem;
|
|
31606
31634
|
};
|
|
31635
|
+
var checkIsMenuGroup = function checkIsMenuGroup(child) {
|
|
31636
|
+
var displayName = child.type.displayName;
|
|
31637
|
+
return displayName === MenuBlockType.MenuGroup;
|
|
31638
|
+
};
|
|
31607
31639
|
|
|
31608
31640
|
var checkSubMenuChildrenActive = function checkSubMenuChildrenActive(children, active) {
|
|
31609
31641
|
var activeFlag = false;
|
|
@@ -31691,7 +31723,7 @@
|
|
|
31691
31723
|
var getSubMenuChildCount = function getSubMenuChildCount(children) {
|
|
31692
31724
|
var count = 0;
|
|
31693
31725
|
React__default["default"].Children.forEach(children, function (child) {
|
|
31694
|
-
if (child
|
|
31726
|
+
if (checkIsSubMenu(child) || checkIsMenuGroup(child)) {
|
|
31695
31727
|
count += getSubMenuChildCount(child.props.children) + 1;
|
|
31696
31728
|
} else {
|
|
31697
31729
|
count += 1;
|
|
@@ -31849,7 +31881,9 @@
|
|
|
31849
31881
|
var fakeArrowStyle = level > 1 ? {
|
|
31850
31882
|
transform: "rotate(-90deg)"
|
|
31851
31883
|
} : {};
|
|
31852
|
-
var
|
|
31884
|
+
var submenuMaxHeight = getSubMenuMaxHeight(children);
|
|
31885
|
+
var popupMaxHeight = ((_popRef$current = popRef.current) === null || _popRef$current === void 0 ? void 0 : _popRef$current.getBoundingClientRect().height) || submenuMaxHeight;
|
|
31886
|
+
var showPopup = isPopUp && submenuMaxHeight > 0;
|
|
31853
31887
|
return /* @__PURE__ */React__default["default"].createElement("li", {
|
|
31854
31888
|
className: classNames$1(className, "".concat(classPrefix, "-submenu"), _defineProperty$2({}, "".concat(classPrefix, "-is-opened"), open)),
|
|
31855
31889
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -31863,10 +31897,10 @@
|
|
|
31863
31897
|
className: classNames$1("".concat(classPrefix, "-menu__item"), (_classNames6 = {}, _defineProperty$2(_classNames6, "".concat(classPrefix, "-is-active"), isActive), _defineProperty$2(_classNames6, "".concat(classPrefix, "-is-opened"), open), _classNames6)),
|
|
31864
31898
|
onClick: handleClick,
|
|
31865
31899
|
style: style
|
|
31866
|
-
}, /* @__PURE__ */React__default["default"].createElement("span", null, title),
|
|
31900
|
+
}, /* @__PURE__ */React__default["default"].createElement("span", null, title), showPopup && /* @__PURE__ */React__default["default"].createElement(FakeArrow, {
|
|
31867
31901
|
style: fakeArrowStyle,
|
|
31868
31902
|
isActive: open
|
|
31869
|
-
})),
|
|
31903
|
+
})), showPopup && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31870
31904
|
className: classNames$1("".concat(classPrefix, "-menu__popup"), _defineProperty$2({}, "".concat(classPrefix, "-is-opened"), open)),
|
|
31871
31905
|
style: {
|
|
31872
31906
|
"--popup-max-height": "".concat(popupMaxHeight, "px")
|
|
@@ -31884,10 +31918,28 @@
|
|
|
31884
31918
|
var children = props.children,
|
|
31885
31919
|
_props$level2 = props.level,
|
|
31886
31920
|
level = _props$level2 === void 0 ? 1 : _props$level2;
|
|
31921
|
+
|
|
31922
|
+
var changeItemLevel = function changeItemLevel(item) {
|
|
31923
|
+
if (checkIsSubMenu(item)) {
|
|
31924
|
+
return /*#__PURE__*/React__default["default"].cloneElement(item, {
|
|
31925
|
+
level: level + 1
|
|
31926
|
+
});
|
|
31927
|
+
}
|
|
31928
|
+
|
|
31929
|
+
if (checkIsMenuGroup(item)) {
|
|
31930
|
+
var groupChidren = React__default["default"].Children.map(item.props.children, function (item2) {
|
|
31931
|
+
return changeItemLevel(item2);
|
|
31932
|
+
});
|
|
31933
|
+
return /*#__PURE__*/React__default["default"].cloneElement(item, {
|
|
31934
|
+
level: level + 1
|
|
31935
|
+
}, groupChidren);
|
|
31936
|
+
}
|
|
31937
|
+
|
|
31938
|
+
return item;
|
|
31939
|
+
};
|
|
31940
|
+
|
|
31887
31941
|
var childElement = React__default["default"].Children.map(children, function (item) {
|
|
31888
|
-
return
|
|
31889
|
-
level: level + 1
|
|
31890
|
-
}) : item;
|
|
31942
|
+
return changeItemLevel(item);
|
|
31891
31943
|
});
|
|
31892
31944
|
if (mode === "accordion") return /* @__PURE__ */React__default["default"].createElement(SubAccordion, _objectSpread$I({}, props), childElement);
|
|
31893
31945
|
if (mode === "title") return /* @__PURE__ */React__default["default"].createElement(SubTitleMenu, _objectSpread$I({}, props), childElement);
|
|
@@ -31959,18 +32011,27 @@
|
|
|
31959
32011
|
|
|
31960
32012
|
var MenuGroup = function MenuGroup(_ref) {
|
|
31961
32013
|
var title = _ref.title,
|
|
31962
|
-
children = _ref.children
|
|
32014
|
+
children = _ref.children,
|
|
32015
|
+
_ref$level = _ref.level,
|
|
32016
|
+
level = _ref$level === void 0 ? 1 : _ref$level;
|
|
31963
32017
|
|
|
31964
32018
|
var _useConfig = useConfig$1(),
|
|
31965
32019
|
classPrefix = _useConfig.classPrefix;
|
|
31966
32020
|
|
|
32021
|
+
var itemAndGroupPaddingBias = 28;
|
|
32022
|
+
var menuPaddingLeft = cacularPaddingLeft(level - 1) - itemAndGroupPaddingBias;
|
|
31967
32023
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31968
32024
|
className: classNames$1("".concat(classPrefix, "-menu-group"))
|
|
31969
32025
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31970
|
-
className: classNames$1("".concat(classPrefix, "-menu-group__title"))
|
|
32026
|
+
className: classNames$1("".concat(classPrefix, "-menu-group__title")),
|
|
32027
|
+
style: {
|
|
32028
|
+
paddingLeft: "".concat(menuPaddingLeft, "px")
|
|
32029
|
+
}
|
|
31971
32030
|
}, title), children);
|
|
31972
32031
|
};
|
|
31973
32032
|
|
|
32033
|
+
MenuGroup.displayName = "MenuGroup";
|
|
32034
|
+
|
|
31974
32035
|
function ownKeys$G(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; }
|
|
31975
32036
|
|
|
31976
32037
|
function _objectSpread$G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$G(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -32076,7 +32137,7 @@
|
|
|
32076
32137
|
document.documentElement.addEventListener("click", getClickPosition, true);
|
|
32077
32138
|
}
|
|
32078
32139
|
|
|
32079
|
-
var RenderDialog = function
|
|
32140
|
+
var RenderDialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
32080
32141
|
var prefixCls = props.prefixCls,
|
|
32081
32142
|
attach = props.attach,
|
|
32082
32143
|
visible = props.visible,
|
|
@@ -32098,16 +32159,22 @@
|
|
|
32098
32159
|
_props$closeOnEscKeyd = props.closeOnEscKeydown,
|
|
32099
32160
|
closeOnEscKeydown = _props$closeOnEscKeyd === void 0 ? true : _props$closeOnEscKeyd,
|
|
32100
32161
|
_props$closeOnOverlay = props.closeOnOverlayClick,
|
|
32101
|
-
closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay
|
|
32162
|
+
closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay,
|
|
32163
|
+
_props$destroyOnClose = props.destroyOnClose,
|
|
32164
|
+
destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose;
|
|
32102
32165
|
var wrap = React.useRef();
|
|
32103
32166
|
var dialog = React.useRef();
|
|
32104
32167
|
var maskRef = React.useRef();
|
|
32168
|
+
var domRef = React.useRef();
|
|
32105
32169
|
var bodyOverflow = React.useRef();
|
|
32106
32170
|
var bodyCssTextRef = React.useRef();
|
|
32107
32171
|
var isModal = mode === "modal";
|
|
32108
32172
|
var canDraggable = props.draggable && mode === "modeless";
|
|
32109
32173
|
var dialogOpenClass = "".concat(prefixCls, "__open");
|
|
32110
32174
|
useDialogEsc(visible, wrap);
|
|
32175
|
+
React.useImperativeHandle(ref, function () {
|
|
32176
|
+
return domRef.current;
|
|
32177
|
+
});
|
|
32111
32178
|
useIsomorphicLayoutEffect(function () {
|
|
32112
32179
|
bodyOverflow.current = document.body.style.overflow;
|
|
32113
32180
|
bodyCssTextRef.current = document.body.style.cssText;
|
|
@@ -32173,6 +32240,12 @@
|
|
|
32173
32240
|
style.top = "50%";
|
|
32174
32241
|
}
|
|
32175
32242
|
|
|
32243
|
+
if (destroyOnClose) {
|
|
32244
|
+
var _domRef$current, _domRef$current$paren;
|
|
32245
|
+
|
|
32246
|
+
(_domRef$current = domRef.current) === null || _domRef$current === void 0 ? void 0 : (_domRef$current$paren = _domRef$current.parentNode) === null || _domRef$current$paren === void 0 ? void 0 : _domRef$current$paren.removeChild(domRef.current);
|
|
32247
|
+
}
|
|
32248
|
+
|
|
32176
32249
|
onClosed && onClosed();
|
|
32177
32250
|
};
|
|
32178
32251
|
|
|
@@ -32309,7 +32382,7 @@
|
|
|
32309
32382
|
"in": props.visible,
|
|
32310
32383
|
appear: true,
|
|
32311
32384
|
mountOnEnter: true,
|
|
32312
|
-
unmountOnExit:
|
|
32385
|
+
unmountOnExit: destroyOnClose,
|
|
32313
32386
|
timeout: transitionTime,
|
|
32314
32387
|
classNames: "".concat(prefixCls, "-zoom"),
|
|
32315
32388
|
onEntered: props.onOpened,
|
|
@@ -32365,9 +32438,11 @@
|
|
|
32365
32438
|
if (visible || wrap.current) {
|
|
32366
32439
|
if (!attach) {
|
|
32367
32440
|
dom = dialog2;
|
|
32441
|
+
domRef.current = dom;
|
|
32368
32442
|
} else {
|
|
32369
32443
|
dom = /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
32370
|
-
attach: attach
|
|
32444
|
+
attach: attach,
|
|
32445
|
+
ref: domRef
|
|
32371
32446
|
}, dialog2);
|
|
32372
32447
|
}
|
|
32373
32448
|
}
|
|
@@ -32376,7 +32451,7 @@
|
|
|
32376
32451
|
};
|
|
32377
32452
|
|
|
32378
32453
|
return render();
|
|
32379
|
-
};
|
|
32454
|
+
});
|
|
32380
32455
|
|
|
32381
32456
|
function ownKeys$E(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; }
|
|
32382
32457
|
|
|
@@ -32411,6 +32486,8 @@
|
|
|
32411
32486
|
var _useConfig = useConfig$1(),
|
|
32412
32487
|
classPrefix = _useConfig.classPrefix;
|
|
32413
32488
|
|
|
32489
|
+
var dialogDom = React.useRef();
|
|
32490
|
+
|
|
32414
32491
|
var _useSetState = useSetState(_objectSpread$D({
|
|
32415
32492
|
width: 520,
|
|
32416
32493
|
visible: false,
|
|
@@ -32489,7 +32566,12 @@
|
|
|
32489
32566
|
visible: false
|
|
32490
32567
|
});
|
|
32491
32568
|
},
|
|
32492
|
-
destroy:
|
|
32569
|
+
destroy: function destroy() {
|
|
32570
|
+
setState({
|
|
32571
|
+
visible: false,
|
|
32572
|
+
destroyOnClose: true
|
|
32573
|
+
});
|
|
32574
|
+
},
|
|
32493
32575
|
update: function update(newOptions) {
|
|
32494
32576
|
setState(function (prevState) {
|
|
32495
32577
|
return _objectSpread$D(_objectSpread$D({}, prevState), newOptions);
|
|
@@ -32573,7 +32655,8 @@
|
|
|
32573
32655
|
closeBtn: renderCloseIcon(),
|
|
32574
32656
|
classPrefix: classPrefix,
|
|
32575
32657
|
onClose: onClose,
|
|
32576
|
-
footer: footer === void 0 ? defaultFooter() : footer
|
|
32658
|
+
footer: footer === void 0 ? defaultFooter() : footer,
|
|
32659
|
+
ref: dialogDom
|
|
32577
32660
|
}));
|
|
32578
32661
|
});
|
|
32579
32662
|
Dialog$1.displayName = "Dialog";
|
|
@@ -32607,11 +32690,13 @@
|
|
|
32607
32690
|
show: function show() {
|
|
32608
32691
|
var _dialogRef$current;
|
|
32609
32692
|
|
|
32693
|
+
container.appendChild(div);
|
|
32610
32694
|
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 ? void 0 : _dialogRef$current.show();
|
|
32611
32695
|
},
|
|
32612
32696
|
hide: function hide() {
|
|
32613
|
-
var _dialogRef$current2;
|
|
32697
|
+
var _div$parentNode, _dialogRef$current2;
|
|
32614
32698
|
|
|
32699
|
+
div === null || div === void 0 ? void 0 : (_div$parentNode = div.parentNode) === null || _div$parentNode === void 0 ? void 0 : _div$parentNode.removeChild(div);
|
|
32615
32700
|
(_dialogRef$current2 = dialogRef.current) === null || _dialogRef$current2 === void 0 ? void 0 : _dialogRef$current2.hide();
|
|
32616
32701
|
},
|
|
32617
32702
|
update: function update(updateOptions) {
|
|
@@ -32620,7 +32705,10 @@
|
|
|
32620
32705
|
(_dialogRef$current3 = dialogRef.current) === null || _dialogRef$current3 === void 0 ? void 0 : _dialogRef$current3.update(updateOptions);
|
|
32621
32706
|
},
|
|
32622
32707
|
destroy: function destroy() {
|
|
32623
|
-
|
|
32708
|
+
var _dialogRef$current4, _div$parentNode2;
|
|
32709
|
+
|
|
32710
|
+
(_dialogRef$current4 = dialogRef.current) === null || _dialogRef$current4 === void 0 ? void 0 : _dialogRef$current4.destroy();
|
|
32711
|
+
div === null || div === void 0 ? void 0 : (_div$parentNode2 = div.parentNode) === null || _div$parentNode2 === void 0 ? void 0 : _div$parentNode2.removeChild(div);
|
|
32624
32712
|
}
|
|
32625
32713
|
};
|
|
32626
32714
|
return dialogNode;
|
|
@@ -40328,10 +40416,12 @@
|
|
|
40328
40416
|
|
|
40329
40417
|
var Calendar = Calendar$1;
|
|
40330
40418
|
|
|
40331
|
-
function
|
|
40419
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
40332
40420
|
|
|
40333
|
-
function
|
|
40334
|
-
|
|
40421
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
40422
|
+
|
|
40423
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
40424
|
+
function useInstance(props, formRef, formMapRef) {
|
|
40335
40425
|
var _useConfig = useConfig$1(),
|
|
40336
40426
|
classPrefix = _useConfig.classPrefix;
|
|
40337
40427
|
|
|
@@ -40341,20 +40431,6 @@
|
|
|
40341
40431
|
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
40342
40432
|
onSubmit = props.onSubmit;
|
|
40343
40433
|
|
|
40344
|
-
function getFormItemsMap() {
|
|
40345
|
-
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
40346
|
-
var currItem = _ref.current;
|
|
40347
|
-
|
|
40348
|
-
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
40349
|
-
var name = currItem.name;
|
|
40350
|
-
return _objectSpread$o(_objectSpread$o({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
40351
|
-
}
|
|
40352
|
-
|
|
40353
|
-
return acc;
|
|
40354
|
-
}, {});
|
|
40355
|
-
return formItemsMap;
|
|
40356
|
-
}
|
|
40357
|
-
|
|
40358
40434
|
function getFirstError(r) {
|
|
40359
40435
|
var _r$firstKey$;
|
|
40360
40436
|
|
|
@@ -40403,18 +40479,21 @@
|
|
|
40403
40479
|
return fields2.indexOf(name) !== -1;
|
|
40404
40480
|
}
|
|
40405
40481
|
|
|
40406
|
-
var
|
|
40407
|
-
fields =
|
|
40408
|
-
|
|
40409
|
-
trigger =
|
|
40482
|
+
var _ref = param || {},
|
|
40483
|
+
fields = _ref.fields,
|
|
40484
|
+
_ref$trigger = _ref.trigger,
|
|
40485
|
+
trigger = _ref$trigger === void 0 ? "all" : _ref$trigger;
|
|
40486
|
+
|
|
40487
|
+
var list = _toConsumableArray(formMapRef.current.values()).filter(function (formItemRef) {
|
|
40488
|
+
var _formItemRef$current, _formItemRef$current2;
|
|
40410
40489
|
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40415
|
-
|
|
40416
|
-
return formItemRef.validate(trigger);
|
|
40490
|
+
return isFunction_1((_formItemRef$current = formItemRef.current) === null || _formItemRef$current === void 0 ? void 0 : _formItemRef$current.validate) && needValidate((_formItemRef$current2 = formItemRef.current) === null || _formItemRef$current2 === void 0 ? void 0 : _formItemRef$current2.name, fields);
|
|
40491
|
+
}).map(function (formItemRef) {
|
|
40492
|
+
var _formItemRef$current3;
|
|
40493
|
+
|
|
40494
|
+
return (_formItemRef$current3 = formItemRef.current) === null || _formItemRef$current3 === void 0 ? void 0 : _formItemRef$current3.validate(trigger);
|
|
40417
40495
|
});
|
|
40496
|
+
|
|
40418
40497
|
return new Promise(function (resolve) {
|
|
40419
40498
|
Promise.all(flatten_1(list)).then(function (arr) {
|
|
40420
40499
|
var r = arr.reduce(function (r2, err) {
|
|
@@ -40435,32 +40514,36 @@
|
|
|
40435
40514
|
}
|
|
40436
40515
|
|
|
40437
40516
|
function getFieldValue(name) {
|
|
40438
|
-
var _target$current;
|
|
40439
|
-
|
|
40440
40517
|
if (!name) return null;
|
|
40441
|
-
var
|
|
40442
|
-
|
|
40443
|
-
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
40444
|
-
});
|
|
40445
|
-
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
40518
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40519
|
+
return formItemRef.current.value;
|
|
40446
40520
|
}
|
|
40447
40521
|
|
|
40448
40522
|
function getFieldsValue(nameList) {
|
|
40449
40523
|
var fieldsValue = {};
|
|
40450
|
-
var formItemsMap = getFormItemsMap();
|
|
40451
40524
|
|
|
40452
40525
|
if (nameList === true) {
|
|
40453
|
-
|
|
40454
|
-
|
|
40526
|
+
var _iterator = _createForOfIteratorHelper$1(formMapRef.current.entries()),
|
|
40527
|
+
_step;
|
|
40455
40528
|
|
|
40456
|
-
|
|
40457
|
-
|
|
40529
|
+
try {
|
|
40530
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
40531
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
40532
|
+
name = _step$value[0],
|
|
40533
|
+
formItemRef = _step$value[1];
|
|
40534
|
+
|
|
40535
|
+
fieldsValue[name] = formItemRef.current.value;
|
|
40458
40536
|
}
|
|
40459
|
-
})
|
|
40537
|
+
} catch (err) {
|
|
40538
|
+
_iterator.e(err);
|
|
40539
|
+
} finally {
|
|
40540
|
+
_iterator.f();
|
|
40541
|
+
}
|
|
40460
40542
|
} else {
|
|
40461
40543
|
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40462
40544
|
nameList.forEach(function (name) {
|
|
40463
|
-
|
|
40545
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40546
|
+
if (formItemRef) fieldsValue[name] = formItemRef.current.value;
|
|
40464
40547
|
});
|
|
40465
40548
|
}
|
|
40466
40549
|
|
|
@@ -40469,25 +40552,25 @@
|
|
|
40469
40552
|
|
|
40470
40553
|
function setFieldsValue() {
|
|
40471
40554
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
40472
|
-
var formItemsMap = getFormItemsMap();
|
|
40473
40555
|
Object.keys(fields).forEach(function (key) {
|
|
40474
|
-
var
|
|
40556
|
+
var _formItemRef$current4, _formItemRef$current5;
|
|
40475
40557
|
|
|
40476
|
-
|
|
40558
|
+
var formItemRef = formMapRef.current.get(key);
|
|
40559
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current4 = formItemRef.current) === null || _formItemRef$current4 === void 0 ? void 0 : (_formItemRef$current5 = _formItemRef$current4.setValue) === null || _formItemRef$current5 === void 0 ? void 0 : _formItemRef$current5.call(_formItemRef$current4, fields[key]);
|
|
40477
40560
|
});
|
|
40478
40561
|
}
|
|
40479
40562
|
|
|
40480
40563
|
function setFields() {
|
|
40481
40564
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
40482
40565
|
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40483
|
-
var formItemsMap = getFormItemsMap();
|
|
40484
40566
|
fields.forEach(function (field) {
|
|
40485
|
-
var
|
|
40567
|
+
var _formItemRef$current6;
|
|
40486
40568
|
|
|
40487
40569
|
var name = field.name,
|
|
40488
40570
|
value = field.value,
|
|
40489
40571
|
status = field.status;
|
|
40490
|
-
|
|
40572
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40573
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current6 = formItemRef.current) === null || _formItemRef$current6 === void 0 ? void 0 : _formItemRef$current6.setField({
|
|
40491
40574
|
value: value,
|
|
40492
40575
|
status: status
|
|
40493
40576
|
});
|
|
@@ -40496,45 +40579,49 @@
|
|
|
40496
40579
|
|
|
40497
40580
|
function reset(params) {
|
|
40498
40581
|
if (typeof params === "undefined") {
|
|
40499
|
-
|
|
40500
|
-
var
|
|
40501
|
-
|
|
40582
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
40583
|
+
var _formItemRef$current7;
|
|
40584
|
+
|
|
40585
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current7 = formItemRef.current) === null || _formItemRef$current7 === void 0 ? void 0 : _formItemRef$current7.resetField();
|
|
40502
40586
|
});
|
|
40503
40587
|
} else {
|
|
40504
40588
|
var _params$type = params.type,
|
|
40505
40589
|
type = _params$type === void 0 ? "initial" : _params$type,
|
|
40506
40590
|
_params$fields = params.fields,
|
|
40507
40591
|
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
40508
|
-
var formItemsMap = getFormItemsMap();
|
|
40509
40592
|
fields.forEach(function (name) {
|
|
40510
|
-
var
|
|
40593
|
+
var _formItemRef$current8;
|
|
40511
40594
|
|
|
40512
|
-
|
|
40595
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40596
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current8 = formItemRef.current) === null || _formItemRef$current8 === void 0 ? void 0 : _formItemRef$current8.resetField(type);
|
|
40513
40597
|
});
|
|
40514
40598
|
}
|
|
40515
40599
|
}
|
|
40516
40600
|
|
|
40517
40601
|
function clearValidate(fields) {
|
|
40518
40602
|
if (typeof fields === "undefined") {
|
|
40519
|
-
|
|
40520
|
-
var
|
|
40521
|
-
|
|
40603
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
40604
|
+
var _formItemRef$current9;
|
|
40605
|
+
|
|
40606
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current9 = formItemRef.current) === null || _formItemRef$current9 === void 0 ? void 0 : _formItemRef$current9.resetValidate();
|
|
40522
40607
|
});
|
|
40523
40608
|
} else {
|
|
40524
40609
|
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40525
|
-
var formItemsMap = getFormItemsMap();
|
|
40526
40610
|
fields.forEach(function (name) {
|
|
40527
|
-
var
|
|
40611
|
+
var _formItemRef$current10;
|
|
40528
40612
|
|
|
40529
|
-
|
|
40613
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40614
|
+
(_formItemRef$current10 = formItemRef.current) === null || _formItemRef$current10 === void 0 ? void 0 : _formItemRef$current10.resetValidate();
|
|
40530
40615
|
});
|
|
40531
40616
|
}
|
|
40532
40617
|
}
|
|
40533
40618
|
|
|
40534
40619
|
function setValidateMessage(message) {
|
|
40535
|
-
var formItemsMap = getFormItemsMap();
|
|
40536
40620
|
Object.keys(message).forEach(function (name) {
|
|
40537
|
-
|
|
40621
|
+
var _formItemRef$current11;
|
|
40622
|
+
|
|
40623
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40624
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current11 = formItemRef.current) === null || _formItemRef$current11 === void 0 ? void 0 : _formItemRef$current11.setValidateMessage(message[name]);
|
|
40538
40625
|
});
|
|
40539
40626
|
}
|
|
40540
40627
|
|
|
@@ -40552,10 +40639,9 @@
|
|
|
40552
40639
|
}
|
|
40553
40640
|
|
|
40554
40641
|
var FormContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40555
|
-
labelWidth: "
|
|
40642
|
+
labelWidth: "100px",
|
|
40556
40643
|
labelAlign: "right",
|
|
40557
40644
|
layout: "vertical",
|
|
40558
|
-
size: "medium",
|
|
40559
40645
|
colon: false,
|
|
40560
40646
|
requiredMark: true,
|
|
40561
40647
|
scrollToFirstError: void 0,
|
|
@@ -40566,11 +40652,19 @@
|
|
|
40566
40652
|
errorMessage: void 0,
|
|
40567
40653
|
statusIcon: false,
|
|
40568
40654
|
onFormItemValueChange: void 0,
|
|
40569
|
-
|
|
40655
|
+
formMapRef: void 0
|
|
40570
40656
|
});
|
|
40571
40657
|
var useFormContext = function useFormContext() {
|
|
40572
40658
|
return React__default["default"].useContext(FormContext);
|
|
40573
40659
|
};
|
|
40660
|
+
var FormListContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40661
|
+
name: void 0,
|
|
40662
|
+
rules: void 0,
|
|
40663
|
+
formListMapRef: void 0
|
|
40664
|
+
});
|
|
40665
|
+
var useFormListContext = function useFormListContext() {
|
|
40666
|
+
return React__default["default"].useContext(FormListContext);
|
|
40667
|
+
};
|
|
40574
40668
|
|
|
40575
40669
|
var copyObject$1 = _copyObject,
|
|
40576
40670
|
createAssigner = _createAssigner,
|
|
@@ -42914,9 +43008,9 @@
|
|
|
42914
43008
|
|
|
42915
43009
|
var _excluded$6 = ["value", "defaultFiles", "files", "onChange"];
|
|
42916
43010
|
|
|
42917
|
-
function ownKeys$
|
|
43011
|
+
function ownKeys$o(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; }
|
|
42918
43012
|
|
|
42919
|
-
function _objectSpread$
|
|
43013
|
+
function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
42920
43014
|
function useDefaultValue(props, defaultDefaultValue) {
|
|
42921
43015
|
var value = props.value,
|
|
42922
43016
|
defaultFiles = props.defaultFiles,
|
|
@@ -42935,7 +43029,7 @@
|
|
|
42935
43029
|
finalValue = _useDefault2[0],
|
|
42936
43030
|
finalOnChange = _useDefault2[1];
|
|
42937
43031
|
|
|
42938
|
-
return _objectSpread$
|
|
43032
|
+
return _objectSpread$o({
|
|
42939
43033
|
files: finalValue,
|
|
42940
43034
|
onChange: finalOnChange
|
|
42941
43035
|
}, restProps);
|
|
@@ -42994,9 +43088,9 @@
|
|
|
42994
43088
|
|
|
42995
43089
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
42996
43090
|
|
|
42997
|
-
function ownKeys$
|
|
43091
|
+
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; }
|
|
42998
43092
|
|
|
42999
|
-
function _objectSpread$
|
|
43093
|
+
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; }
|
|
43000
43094
|
|
|
43001
43095
|
var Upload$1 = function Upload(props, ref) {
|
|
43002
43096
|
var _useDefaultValue = useDefaultValue(props, []),
|
|
@@ -43218,7 +43312,7 @@
|
|
|
43218
43312
|
_ref3$type = _ref3.type,
|
|
43219
43313
|
type = _ref3$type === void 0 ? "mock" : _ref3$type;
|
|
43220
43314
|
|
|
43221
|
-
var tmpFile = _objectSpread$
|
|
43315
|
+
var tmpFile = _objectSpread$n({}, file);
|
|
43222
43316
|
|
|
43223
43317
|
tmpFile.percent = percent;
|
|
43224
43318
|
var progressCtx = {
|
|
@@ -43253,7 +43347,7 @@
|
|
|
43253
43347
|
var r = res.response || {};
|
|
43254
43348
|
onError({
|
|
43255
43349
|
file: file,
|
|
43256
|
-
response: _objectSpread$
|
|
43350
|
+
response: _objectSpread$n(_objectSpread$n({}, r), {}, {
|
|
43257
43351
|
error: res.error
|
|
43258
43352
|
})
|
|
43259
43353
|
});
|
|
@@ -43267,7 +43361,7 @@
|
|
|
43267
43361
|
while (1) {
|
|
43268
43362
|
switch (_context.prev = _context.next) {
|
|
43269
43363
|
case 0:
|
|
43270
|
-
file = _objectSpread$
|
|
43364
|
+
file = _objectSpread$n({}, uploadFile);
|
|
43271
43365
|
|
|
43272
43366
|
if (!(file.status !== "waiting")) {
|
|
43273
43367
|
_context.next = 3;
|
|
@@ -43353,7 +43447,7 @@
|
|
|
43353
43447
|
|
|
43354
43448
|
var file = typeof format === "function" ? format(fileRaw) : fileRaw;
|
|
43355
43449
|
|
|
43356
|
-
var uploadFile = _objectSpread$
|
|
43450
|
+
var uploadFile = _objectSpread$n({
|
|
43357
43451
|
raw: fileRaw,
|
|
43358
43452
|
lastModified: fileRaw.lastModified,
|
|
43359
43453
|
name: fileRaw.name,
|
|
@@ -44646,9 +44740,9 @@
|
|
|
44646
44740
|
|
|
44647
44741
|
var isURL = /*@__PURE__*/getDefaultExportFromCjs(isURL$1.exports);
|
|
44648
44742
|
|
|
44649
|
-
function ownKeys$
|
|
44743
|
+
function ownKeys$m(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; }
|
|
44650
44744
|
|
|
44651
|
-
function _objectSpread$
|
|
44745
|
+
function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
44652
44746
|
function isValueEmpty(val) {
|
|
44653
44747
|
var type = Object.prototype.toString.call(val);
|
|
44654
44748
|
var typeMap = {
|
|
@@ -44777,7 +44871,7 @@
|
|
|
44777
44871
|
break;
|
|
44778
44872
|
}
|
|
44779
44873
|
|
|
44780
|
-
return _context.abrupt("return", _objectSpread$
|
|
44874
|
+
return _context.abrupt("return", _objectSpread$m(_objectSpread$m({}, rule), {}, {
|
|
44781
44875
|
result: validateResult
|
|
44782
44876
|
}));
|
|
44783
44877
|
|
|
@@ -44833,10 +44927,87 @@
|
|
|
44833
44927
|
return _validate.apply(this, arguments);
|
|
44834
44928
|
}
|
|
44835
44929
|
|
|
44836
|
-
function
|
|
44930
|
+
function useFormItemStyle(props) {
|
|
44931
|
+
var _classNames, _classNames2;
|
|
44837
44932
|
|
|
44838
|
-
|
|
44933
|
+
var _useConfig = useConfig$1(),
|
|
44934
|
+
classPrefix = _useConfig.classPrefix;
|
|
44935
|
+
|
|
44936
|
+
var className = props.className,
|
|
44937
|
+
help = props.help,
|
|
44938
|
+
name = props.name,
|
|
44939
|
+
successBorder = props.successBorder,
|
|
44940
|
+
errorList = props.errorList,
|
|
44941
|
+
layout = props.layout,
|
|
44942
|
+
verifyStatus = props.verifyStatus,
|
|
44943
|
+
colon = props.colon,
|
|
44944
|
+
label = props.label,
|
|
44945
|
+
labelWidth = props.labelWidth,
|
|
44946
|
+
labelAlign = props.labelAlign,
|
|
44947
|
+
requiredMark = props.requiredMark,
|
|
44948
|
+
showErrorMessage = props.showErrorMessage,
|
|
44949
|
+
innerRules = props.innerRules,
|
|
44950
|
+
renderTipsInfo = props.renderTipsInfo;
|
|
44951
|
+
var renderName = Array.isArray(name) ? name.join("-") : name;
|
|
44952
|
+
var formItemClass = classNames$1(className, "".concat(classPrefix, "-form__item"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-form-item__").concat(renderName), renderName), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-help"), help), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-extra"), renderTipsInfo()), _classNames));
|
|
44953
|
+
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44954
|
+
return rule.required;
|
|
44955
|
+
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
|
|
44956
|
+
|
|
44957
|
+
var contentClass = function contentClass() {
|
|
44958
|
+
var _classNames4;
|
|
44959
|
+
|
|
44960
|
+
var controlCls = "".concat(classPrefix, "-form__controls");
|
|
44961
|
+
if (!showErrorMessage) return controlCls;
|
|
44962
|
+
var isSuccess = verifyStatus === VALIDATE_STATUS.SUCCESS;
|
|
44963
|
+
|
|
44964
|
+
if (isSuccess) {
|
|
44965
|
+
return classNames$1(controlCls, "".concat(classPrefix, "-is-success"), _defineProperty$2({}, "".concat(classPrefix, "-form--success-border"), successBorder));
|
|
44966
|
+
}
|
|
44967
|
+
|
|
44968
|
+
var firstErrorType = errorList.length && (errorList[0].type || "error");
|
|
44969
|
+
return classNames$1(controlCls, (_classNames4 = {}, _defineProperty$2(_classNames4, "".concat(classPrefix, "-is-warning"), firstErrorType === "warning"), _defineProperty$2(_classNames4, "".concat(classPrefix, "-is-error"), firstErrorType === "error"), _classNames4));
|
|
44970
|
+
};
|
|
44971
|
+
|
|
44972
|
+
var labelStyle = {};
|
|
44973
|
+
var contentStyle = {};
|
|
44839
44974
|
|
|
44975
|
+
if (label && labelWidth && labelAlign !== "top") {
|
|
44976
|
+
if (typeof labelWidth === "number") {
|
|
44977
|
+
labelStyle = {
|
|
44978
|
+
width: "".concat(labelWidth, "px")
|
|
44979
|
+
};
|
|
44980
|
+
contentStyle = {
|
|
44981
|
+
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44982
|
+
};
|
|
44983
|
+
} else {
|
|
44984
|
+
labelStyle = {
|
|
44985
|
+
width: labelWidth
|
|
44986
|
+
};
|
|
44987
|
+
contentStyle = {
|
|
44988
|
+
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44989
|
+
};
|
|
44990
|
+
}
|
|
44991
|
+
}
|
|
44992
|
+
|
|
44993
|
+
return {
|
|
44994
|
+
formItemClass: formItemClass,
|
|
44995
|
+
formItemLabelClass: formItemLabelClass,
|
|
44996
|
+
contentClass: contentClass,
|
|
44997
|
+
labelStyle: labelStyle,
|
|
44998
|
+
contentStyle: contentStyle
|
|
44999
|
+
};
|
|
45000
|
+
}
|
|
45001
|
+
|
|
45002
|
+
function ownKeys$l(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; }
|
|
45003
|
+
|
|
45004
|
+
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45005
|
+
var VALIDATE_STATUS = /* @__PURE__ */function (VALIDATE_STATUS2) {
|
|
45006
|
+
VALIDATE_STATUS2["TO_BE_VALIDATED"] = "not";
|
|
45007
|
+
VALIDATE_STATUS2["SUCCESS"] = "success";
|
|
45008
|
+
VALIDATE_STATUS2["FAIL"] = "fail";
|
|
45009
|
+
return VALIDATE_STATUS2;
|
|
45010
|
+
}(VALIDATE_STATUS || {});
|
|
44840
45011
|
var ctrlKeyMap = /* @__PURE__ */new Map();
|
|
44841
45012
|
ctrlKeyMap.set(Checkbox, "checked");
|
|
44842
45013
|
ctrlKeyMap.set(Tag.CheckTag, "checked");
|
|
@@ -44858,8 +45029,6 @@
|
|
|
44858
45029
|
}
|
|
44859
45030
|
|
|
44860
45031
|
var FormItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
44861
|
-
var _classNames, _classNames2;
|
|
44862
|
-
|
|
44863
45032
|
var _useConfig = useConfig$1(),
|
|
44864
45033
|
classPrefix = _useConfig.classPrefix;
|
|
44865
45034
|
|
|
@@ -44875,9 +45044,14 @@
|
|
|
44875
45044
|
rulesFromContext = _useFormContext.rules,
|
|
44876
45045
|
statusIconFromContext = _useFormContext.statusIcon,
|
|
44877
45046
|
errorMessage = _useFormContext.errorMessage,
|
|
44878
|
-
|
|
45047
|
+
formMapRef = _useFormContext.formMapRef,
|
|
44879
45048
|
onFormItemValueChange = _useFormContext.onFormItemValueChange;
|
|
44880
45049
|
|
|
45050
|
+
var _useFormListContext = useFormListContext(),
|
|
45051
|
+
formListName = _useFormListContext.name,
|
|
45052
|
+
formListRules = _useFormListContext.rules,
|
|
45053
|
+
formListMapRef = _useFormListContext.formListMapRef;
|
|
45054
|
+
|
|
44881
45055
|
var children = props.children,
|
|
44882
45056
|
style = props.style,
|
|
44883
45057
|
label = props.label,
|
|
@@ -44889,7 +45063,7 @@
|
|
|
44889
45063
|
_props$statusIcon = props.statusIcon,
|
|
44890
45064
|
statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
|
|
44891
45065
|
_props$rules = props.rules,
|
|
44892
|
-
innerRules = _props$rules === void 0 ? (
|
|
45066
|
+
innerRules = _props$rules === void 0 ? getInnerRules(name, rulesFromContext, formListName, formListRules) : _props$rules,
|
|
44893
45067
|
_props$labelWidth = props.labelWidth,
|
|
44894
45068
|
labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
|
|
44895
45069
|
_props$labelAlign = props.labelAlign,
|
|
@@ -44935,64 +45109,60 @@
|
|
|
44935
45109
|
var innerFormItemsRef = React.useRef([]);
|
|
44936
45110
|
var shouldValidate = React.useRef(null);
|
|
44937
45111
|
var isMounted = React.useRef(false);
|
|
44938
|
-
var formItemClass = classNames$1(className, "".concat(classPrefix, "-form__item"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-form-item__").concat(name), name), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-help"), help), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-extra"), renderTipsInfo()), _classNames));
|
|
44939
|
-
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44940
|
-
return rule.required;
|
|
44941
|
-
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
|
|
44942
|
-
|
|
44943
|
-
var contentClass = function contentClass() {
|
|
44944
|
-
var _classNames4;
|
|
44945
45112
|
|
|
44946
|
-
|
|
44947
|
-
|
|
44948
|
-
|
|
44949
|
-
|
|
44950
|
-
|
|
45113
|
+
var _useFormItemStyle = useFormItemStyle({
|
|
45114
|
+
className: className,
|
|
45115
|
+
help: help,
|
|
45116
|
+
name: name,
|
|
45117
|
+
successBorder: successBorder,
|
|
45118
|
+
errorList: errorList,
|
|
45119
|
+
layout: layout,
|
|
45120
|
+
verifyStatus: verifyStatus,
|
|
45121
|
+
colon: colon,
|
|
45122
|
+
label: label,
|
|
45123
|
+
labelWidth: labelWidth,
|
|
45124
|
+
labelAlign: labelAlign,
|
|
45125
|
+
requiredMark: requiredMark,
|
|
45126
|
+
showErrorMessage: showErrorMessage,
|
|
45127
|
+
innerRules: innerRules,
|
|
45128
|
+
renderTipsInfo: renderTipsInfo
|
|
45129
|
+
}),
|
|
45130
|
+
formItemClass = _useFormItemStyle.formItemClass,
|
|
45131
|
+
formItemLabelClass = _useFormItemStyle.formItemLabelClass,
|
|
45132
|
+
contentClass = _useFormItemStyle.contentClass,
|
|
45133
|
+
labelStyle = _useFormItemStyle.labelStyle,
|
|
45134
|
+
contentStyle = _useFormItemStyle.contentStyle;
|
|
44951
45135
|
|
|
44952
|
-
|
|
44953
|
-
|
|
44954
|
-
|
|
45136
|
+
function getInnerRules(name2, formRules, formListName2, formListRules2) {
|
|
45137
|
+
if (Array.isArray(name2)) {
|
|
45138
|
+
var _formRules$formListNa;
|
|
44955
45139
|
|
|
44956
|
-
|
|
44957
|
-
|
|
44958
|
-
};
|
|
45140
|
+
var _name = _slicedToArray(name2, 2),
|
|
45141
|
+
itemKey = _name[1];
|
|
44959
45142
|
|
|
44960
|
-
|
|
44961
|
-
var contentStyle = {};
|
|
44962
|
-
|
|
44963
|
-
if (label && labelWidth && labelAlign !== "top") {
|
|
44964
|
-
if (typeof labelWidth === "number") {
|
|
44965
|
-
labelStyle = {
|
|
44966
|
-
width: "".concat(labelWidth, "px")
|
|
44967
|
-
};
|
|
44968
|
-
contentStyle = {
|
|
44969
|
-
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44970
|
-
};
|
|
44971
|
-
} else {
|
|
44972
|
-
labelStyle = {
|
|
44973
|
-
width: labelWidth
|
|
44974
|
-
};
|
|
44975
|
-
contentStyle = {
|
|
44976
|
-
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44977
|
-
};
|
|
45143
|
+
return (formRules === null || formRules === void 0 ? void 0 : (_formRules$formListNa = formRules[formListName2]) === null || _formRules$formListNa === void 0 ? void 0 : _formRules$formListNa[itemKey]) || (formListRules2 === null || formListRules2 === void 0 ? void 0 : formListRules2[itemKey]) || [];
|
|
44978
45144
|
}
|
|
45145
|
+
|
|
45146
|
+
return (formRules === null || formRules === void 0 ? void 0 : formRules[name2]) || formListRules2 || [];
|
|
44979
45147
|
}
|
|
44980
45148
|
|
|
44981
45149
|
function renderTipsInfo() {
|
|
44982
|
-
var helpNode =
|
|
45150
|
+
var helpNode = name ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45151
|
+
className: "".concat(classPrefix, "-input__extra")
|
|
45152
|
+
}) : "";
|
|
44983
45153
|
if (help) helpNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44984
|
-
className: "".concat(classPrefix, "-
|
|
45154
|
+
className: "".concat(classPrefix, "-input__extra")
|
|
44985
45155
|
}, renderTNode(help));
|
|
44986
45156
|
var list = errorList;
|
|
44987
45157
|
|
|
44988
45158
|
if (showErrorMessage && list && list[0] && list[0].message) {
|
|
44989
|
-
return /* @__PURE__ */React__default["default"].createElement("
|
|
45159
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44990
45160
|
className: "".concat(classPrefix, "-input__extra")
|
|
44991
45161
|
}, list[0].message);
|
|
44992
45162
|
}
|
|
44993
45163
|
|
|
44994
45164
|
if (successList.length) {
|
|
44995
|
-
return /* @__PURE__ */React__default["default"].createElement("
|
|
45165
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44996
45166
|
className: "".concat(classPrefix, "-input__extra")
|
|
44997
45167
|
}, successList[0].message);
|
|
44998
45168
|
}
|
|
@@ -45037,7 +45207,7 @@
|
|
|
45037
45207
|
};
|
|
45038
45208
|
|
|
45039
45209
|
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIcon)) {
|
|
45040
|
-
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$
|
|
45210
|
+
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$l({
|
|
45041
45211
|
style: {
|
|
45042
45212
|
color: "unset"
|
|
45043
45213
|
}
|
|
@@ -45128,7 +45298,7 @@
|
|
|
45128
45298
|
}
|
|
45129
45299
|
|
|
45130
45300
|
function resetField(type) {
|
|
45131
|
-
if (
|
|
45301
|
+
if (typeof name === "undefined") return;
|
|
45132
45302
|
var resetType = type || resetTypeFromContext;
|
|
45133
45303
|
var resetValue = getResetValue(resetType);
|
|
45134
45304
|
|
|
@@ -45189,50 +45359,72 @@
|
|
|
45189
45359
|
}
|
|
45190
45360
|
|
|
45191
45361
|
React.useEffect(function () {
|
|
45192
|
-
if (isMounted.current) {
|
|
45193
|
-
name && onFormItemValueChange(_defineProperty$2({}, name, formValue));
|
|
45194
|
-
}
|
|
45195
|
-
|
|
45196
45362
|
if (!shouldValidate.current || !isMounted.current) {
|
|
45197
45363
|
isMounted.current = true;
|
|
45198
45364
|
shouldValidate.current = true;
|
|
45199
45365
|
return;
|
|
45200
45366
|
}
|
|
45201
45367
|
|
|
45368
|
+
if (typeof name !== "undefined") {
|
|
45369
|
+
if (formListName) {
|
|
45370
|
+
var formListValue = [];
|
|
45371
|
+
|
|
45372
|
+
if (Array.isArray(name)) {
|
|
45373
|
+
var _name2 = _slicedToArray(name, 2),
|
|
45374
|
+
index = _name2[0],
|
|
45375
|
+
itemKey = _name2[1];
|
|
45376
|
+
|
|
45377
|
+
formListValue[index] = _defineProperty$2({}, itemKey, formValue);
|
|
45378
|
+
} else {
|
|
45379
|
+
formListValue[name] = formValue;
|
|
45380
|
+
}
|
|
45381
|
+
|
|
45382
|
+
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty$2({}, formListName, formListValue));
|
|
45383
|
+
} else {
|
|
45384
|
+
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty$2({}, name, formValue));
|
|
45385
|
+
}
|
|
45386
|
+
}
|
|
45387
|
+
|
|
45202
45388
|
var filterRules = innerRules.filter(function (item) {
|
|
45203
45389
|
return (item.trigger || "change") === "change";
|
|
45204
45390
|
});
|
|
45205
45391
|
filterRules.length && validate$1("change");
|
|
45206
45392
|
}, [formValue]);
|
|
45207
45393
|
React.useEffect(function () {
|
|
45208
|
-
if (
|
|
45209
|
-
formItemsRef.current.push(currentFormItemRef);
|
|
45210
|
-
return function () {
|
|
45211
|
-
var index = formItemsRef.current.indexOf(currentFormItemRef);
|
|
45394
|
+
if (typeof name === "undefined") return;
|
|
45212
45395
|
|
|
45213
|
-
|
|
45214
|
-
|
|
45396
|
+
if (formListName) {
|
|
45397
|
+
formListMapRef.current.set(name, currentFormItemRef);
|
|
45398
|
+
return function () {
|
|
45399
|
+
formListMapRef.current["delete"](name);
|
|
45400
|
+
};
|
|
45401
|
+
}
|
|
45215
45402
|
|
|
45216
|
-
|
|
45217
|
-
|
|
45403
|
+
if (!formMapRef) return;
|
|
45404
|
+
formMapRef.current.set(name, currentFormItemRef);
|
|
45405
|
+
return function () {
|
|
45406
|
+
formMapRef.current["delete"](name);
|
|
45218
45407
|
};
|
|
45219
|
-
}, [name]);
|
|
45408
|
+
}, [name, formListName]);
|
|
45409
|
+
var instance = {
|
|
45410
|
+
name: name,
|
|
45411
|
+
value: formValue,
|
|
45412
|
+
setValue: setFormValue,
|
|
45413
|
+
setField: setField,
|
|
45414
|
+
validate: validate$1,
|
|
45415
|
+
resetField: resetField,
|
|
45416
|
+
setValidateMessage: setValidateMessage,
|
|
45417
|
+
resetValidate: resetHandler
|
|
45418
|
+
};
|
|
45419
|
+
React.useImperativeHandle(ref, function () {
|
|
45420
|
+
return instance;
|
|
45421
|
+
});
|
|
45220
45422
|
React.useImperativeHandle(currentFormItemRef, function () {
|
|
45221
|
-
return
|
|
45222
|
-
name: name,
|
|
45223
|
-
value: formValue,
|
|
45224
|
-
setValue: setFormValue,
|
|
45225
|
-
setField: setField,
|
|
45226
|
-
validate: validate$1,
|
|
45227
|
-
resetField: resetField,
|
|
45228
|
-
setValidateMessage: setValidateMessage,
|
|
45229
|
-
resetValidate: resetHandler
|
|
45230
|
-
};
|
|
45423
|
+
return instance;
|
|
45231
45424
|
});
|
|
45232
45425
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45233
45426
|
className: formItemClass,
|
|
45234
|
-
style: style
|
|
45235
|
-
ref: ref
|
|
45427
|
+
style: style
|
|
45236
45428
|
}, label && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45237
45429
|
className: formItemLabelClass,
|
|
45238
45430
|
style: labelStyle
|
|
@@ -45280,7 +45472,7 @@
|
|
|
45280
45472
|
ctrlKey = ctrlKeyMap.get(child.type) || "value";
|
|
45281
45473
|
}
|
|
45282
45474
|
|
|
45283
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$
|
|
45475
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$l(_objectSpread$l({
|
|
45284
45476
|
disabled: disabledFromContext
|
|
45285
45477
|
}, child.props), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, ctrlKey, formValue), _defineProperty$2(_objectSpread2, "onChange", function onChange(value) {
|
|
45286
45478
|
onChangeFromProps.call(null, value);
|
|
@@ -45294,6 +45486,272 @@
|
|
|
45294
45486
|
return child;
|
|
45295
45487
|
}), renderSuffixIcon()), renderTipsInfo()));
|
|
45296
45488
|
});
|
|
45489
|
+
FormItem.displayName = "FormItem";
|
|
45490
|
+
|
|
45491
|
+
function ownKeys$k(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; }
|
|
45492
|
+
|
|
45493
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45494
|
+
var key = 0;
|
|
45495
|
+
|
|
45496
|
+
var FormList = function FormList(props) {
|
|
45497
|
+
var _useFormContext = useFormContext(),
|
|
45498
|
+
formMapRef = _useFormContext.formMapRef;
|
|
45499
|
+
|
|
45500
|
+
var name = props.name,
|
|
45501
|
+
_props$initialData = props.initialData,
|
|
45502
|
+
initialData = _props$initialData === void 0 ? [] : _props$initialData,
|
|
45503
|
+
rules = props.rules,
|
|
45504
|
+
children = props.children;
|
|
45505
|
+
|
|
45506
|
+
var _useState = React.useState(initialData),
|
|
45507
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45508
|
+
initialValue = _useState2[0],
|
|
45509
|
+
setInitialValue = _useState2[1];
|
|
45510
|
+
|
|
45511
|
+
var _useState3 = React.useState([]),
|
|
45512
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45513
|
+
fields = _useState4[0],
|
|
45514
|
+
setFields = _useState4[1];
|
|
45515
|
+
|
|
45516
|
+
var formListMapRef = React.useRef( /* @__PURE__ */new Map());
|
|
45517
|
+
var formListRef = React.useRef();
|
|
45518
|
+
var operation = {
|
|
45519
|
+
add: function add(defaultValue, insertIndex) {
|
|
45520
|
+
var cloneFields = _toConsumableArray(fields);
|
|
45521
|
+
|
|
45522
|
+
var index = insertIndex !== null && insertIndex !== void 0 ? insertIndex : cloneFields.length;
|
|
45523
|
+
cloneFields.splice(index, 0, {
|
|
45524
|
+
key: key += 1,
|
|
45525
|
+
name: index,
|
|
45526
|
+
isListField: true
|
|
45527
|
+
});
|
|
45528
|
+
cloneFields.forEach(function (field, index2) {
|
|
45529
|
+
return Object.assign(field, {
|
|
45530
|
+
name: index2
|
|
45531
|
+
});
|
|
45532
|
+
});
|
|
45533
|
+
setFields(cloneFields);
|
|
45534
|
+
|
|
45535
|
+
if (typeof defaultValue !== "undefined") {
|
|
45536
|
+
var nextInitialValue = _toConsumableArray(initialValue);
|
|
45537
|
+
|
|
45538
|
+
nextInitialValue[index] = defaultValue;
|
|
45539
|
+
setInitialValue(nextInitialValue);
|
|
45540
|
+
}
|
|
45541
|
+
},
|
|
45542
|
+
remove: function remove(index) {
|
|
45543
|
+
var nextFields = fields.filter(function (_, i) {
|
|
45544
|
+
if (Array.isArray(index)) return !index.includes(i);
|
|
45545
|
+
return i !== index;
|
|
45546
|
+
}).map(function (field, index2) {
|
|
45547
|
+
return Object.assign(field, {
|
|
45548
|
+
name: index2
|
|
45549
|
+
});
|
|
45550
|
+
});
|
|
45551
|
+
setFields(nextFields);
|
|
45552
|
+
},
|
|
45553
|
+
move: function move(from, to) {
|
|
45554
|
+
var cloneFields = _toConsumableArray(fields);
|
|
45555
|
+
|
|
45556
|
+
var fromItem = _objectSpread$k({}, cloneFields[from]);
|
|
45557
|
+
|
|
45558
|
+
var toItem = _objectSpread$k({}, cloneFields[to]);
|
|
45559
|
+
|
|
45560
|
+
cloneFields[to] = fromItem;
|
|
45561
|
+
cloneFields[from] = toItem;
|
|
45562
|
+
setFields(cloneFields);
|
|
45563
|
+
}
|
|
45564
|
+
};
|
|
45565
|
+
React.useEffect(function () {
|
|
45566
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45567
|
+
var _formItemRef$current = formItemRef.current,
|
|
45568
|
+
name2 = _formItemRef$current.name,
|
|
45569
|
+
value = _formItemRef$current.value;
|
|
45570
|
+
if (value) return;
|
|
45571
|
+
var data;
|
|
45572
|
+
|
|
45573
|
+
if (Array.isArray(name2)) {
|
|
45574
|
+
var _initialValue$index;
|
|
45575
|
+
|
|
45576
|
+
var _name = _slicedToArray(name2, 2),
|
|
45577
|
+
index = _name[0],
|
|
45578
|
+
itemKey = _name[1];
|
|
45579
|
+
|
|
45580
|
+
data = initialValue === null || initialValue === void 0 ? void 0 : (_initialValue$index = initialValue[index]) === null || _initialValue$index === void 0 ? void 0 : _initialValue$index[itemKey];
|
|
45581
|
+
} else {
|
|
45582
|
+
data = initialValue === null || initialValue === void 0 ? void 0 : initialValue[name2];
|
|
45583
|
+
}
|
|
45584
|
+
|
|
45585
|
+
formItemRef.current.setField({
|
|
45586
|
+
value: data,
|
|
45587
|
+
status: "not"
|
|
45588
|
+
});
|
|
45589
|
+
});
|
|
45590
|
+
}, [fields, initialValue]);
|
|
45591
|
+
React.useEffect(function () {
|
|
45592
|
+
if (!name || !formMapRef) return;
|
|
45593
|
+
formMapRef.current.set(name, formListRef);
|
|
45594
|
+
return function () {
|
|
45595
|
+
formMapRef.current["delete"](name);
|
|
45596
|
+
};
|
|
45597
|
+
}, [name]);
|
|
45598
|
+
React.useImperativeHandle(formListRef, function () {
|
|
45599
|
+
return {
|
|
45600
|
+
name: name,
|
|
45601
|
+
|
|
45602
|
+
get value() {
|
|
45603
|
+
var formListValue = [];
|
|
45604
|
+
|
|
45605
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45606
|
+
var _formItemRef$current2 = formItemRef.current,
|
|
45607
|
+
name2 = _formItemRef$current2.name,
|
|
45608
|
+
value = _formItemRef$current2.value;
|
|
45609
|
+
|
|
45610
|
+
if (Array.isArray(name2)) {
|
|
45611
|
+
var _name2 = _slicedToArray(name2, 2),
|
|
45612
|
+
index = _name2[0],
|
|
45613
|
+
itemKey = _name2[1];
|
|
45614
|
+
|
|
45615
|
+
if (!formListValue[index]) {
|
|
45616
|
+
formListValue[index] = _defineProperty$2({}, itemKey, value);
|
|
45617
|
+
} else {
|
|
45618
|
+
formListValue[index][itemKey] = value;
|
|
45619
|
+
}
|
|
45620
|
+
} else {
|
|
45621
|
+
formListValue[name2] = value;
|
|
45622
|
+
}
|
|
45623
|
+
});
|
|
45624
|
+
|
|
45625
|
+
return formListValue;
|
|
45626
|
+
},
|
|
45627
|
+
|
|
45628
|
+
validate: function validate() {
|
|
45629
|
+
var trigger = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "all";
|
|
45630
|
+
var resultList = [];
|
|
45631
|
+
|
|
45632
|
+
var validates = _toConsumableArray(formListMapRef.current.values()).map(function (formItemRef) {
|
|
45633
|
+
return formItemRef.current.validate(trigger);
|
|
45634
|
+
});
|
|
45635
|
+
|
|
45636
|
+
return new Promise(function (resolve) {
|
|
45637
|
+
Promise.all(validates).then(function (validateResult) {
|
|
45638
|
+
validateResult.forEach(function (result) {
|
|
45639
|
+
var errorKey = Object.keys(result)[0];
|
|
45640
|
+
var errorValue = Object.values(result)[0];
|
|
45641
|
+
|
|
45642
|
+
var _errorKey$split = errorKey.split(","),
|
|
45643
|
+
_errorKey$split2 = _slicedToArray(_errorKey$split, 2),
|
|
45644
|
+
index = _errorKey$split2[0],
|
|
45645
|
+
itemKey = _errorKey$split2[1];
|
|
45646
|
+
|
|
45647
|
+
if (itemKey) {
|
|
45648
|
+
resultList[index] = _defineProperty$2({}, itemKey, errorValue);
|
|
45649
|
+
} else {
|
|
45650
|
+
resultList[index] = errorValue;
|
|
45651
|
+
}
|
|
45652
|
+
});
|
|
45653
|
+
var errorItems = validateResult.filter(function (item) {
|
|
45654
|
+
return Object.values(item)[0] !== true;
|
|
45655
|
+
});
|
|
45656
|
+
|
|
45657
|
+
if (errorItems.length) {
|
|
45658
|
+
resolve(_defineProperty$2({}, name, resultList));
|
|
45659
|
+
} else {
|
|
45660
|
+
resolve(_defineProperty$2({}, name, true));
|
|
45661
|
+
}
|
|
45662
|
+
});
|
|
45663
|
+
});
|
|
45664
|
+
},
|
|
45665
|
+
setValue: function setValue(fieldData) {
|
|
45666
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45667
|
+
var name2 = formItemRef.current.name;
|
|
45668
|
+
var data;
|
|
45669
|
+
|
|
45670
|
+
if (Array.isArray(name2)) {
|
|
45671
|
+
var _fieldData$index;
|
|
45672
|
+
|
|
45673
|
+
var _name3 = _slicedToArray(name2, 2),
|
|
45674
|
+
index = _name3[0],
|
|
45675
|
+
itemKey = _name3[1];
|
|
45676
|
+
|
|
45677
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index = fieldData[index]) === null || _fieldData$index === void 0 ? void 0 : _fieldData$index[itemKey];
|
|
45678
|
+
} else {
|
|
45679
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45680
|
+
}
|
|
45681
|
+
|
|
45682
|
+
formItemRef.current.setValue(data);
|
|
45683
|
+
});
|
|
45684
|
+
},
|
|
45685
|
+
setField: function setField(fieldData) {
|
|
45686
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45687
|
+
var name2 = formItemRef.current.name;
|
|
45688
|
+
var data;
|
|
45689
|
+
|
|
45690
|
+
if (Array.isArray(name2)) {
|
|
45691
|
+
var _fieldData$index2;
|
|
45692
|
+
|
|
45693
|
+
var _name4 = _slicedToArray(name2, 2),
|
|
45694
|
+
index = _name4[0],
|
|
45695
|
+
itemKey = _name4[1];
|
|
45696
|
+
|
|
45697
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index2 = fieldData[index]) === null || _fieldData$index2 === void 0 ? void 0 : _fieldData$index2[itemKey];
|
|
45698
|
+
} else {
|
|
45699
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45700
|
+
}
|
|
45701
|
+
|
|
45702
|
+
formItemRef.current.setField(data);
|
|
45703
|
+
});
|
|
45704
|
+
},
|
|
45705
|
+
resetField: function resetField() {
|
|
45706
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45707
|
+
formItemRef.current.resetField();
|
|
45708
|
+
});
|
|
45709
|
+
|
|
45710
|
+
setInitialValue([]);
|
|
45711
|
+
},
|
|
45712
|
+
setValidateMessage: function setValidateMessage(fieldData) {
|
|
45713
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45714
|
+
var name2 = formItemRef.current.name;
|
|
45715
|
+
var data;
|
|
45716
|
+
|
|
45717
|
+
if (Array.isArray(name2)) {
|
|
45718
|
+
var _fieldData$index3;
|
|
45719
|
+
|
|
45720
|
+
var _name5 = _slicedToArray(name2, 2),
|
|
45721
|
+
index = _name5[0],
|
|
45722
|
+
itemKey = _name5[1];
|
|
45723
|
+
|
|
45724
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index3 = fieldData[index]) === null || _fieldData$index3 === void 0 ? void 0 : _fieldData$index3[itemKey];
|
|
45725
|
+
} else {
|
|
45726
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45727
|
+
}
|
|
45728
|
+
|
|
45729
|
+
formItemRef.current.setValidateMessage(data);
|
|
45730
|
+
});
|
|
45731
|
+
},
|
|
45732
|
+
resetValidate: function resetValidate() {
|
|
45733
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45734
|
+
formItemRef.current.resetValidate();
|
|
45735
|
+
});
|
|
45736
|
+
}
|
|
45737
|
+
};
|
|
45738
|
+
});
|
|
45739
|
+
|
|
45740
|
+
if (typeof children !== "function") {
|
|
45741
|
+
console.error("FormList's children must be a function!");
|
|
45742
|
+
return null;
|
|
45743
|
+
}
|
|
45744
|
+
|
|
45745
|
+
return /* @__PURE__ */React__default["default"].createElement(FormListContext.Provider, {
|
|
45746
|
+
value: {
|
|
45747
|
+
name: name,
|
|
45748
|
+
rules: rules,
|
|
45749
|
+
formListMapRef: formListMapRef
|
|
45750
|
+
}
|
|
45751
|
+
}, children(fields, operation));
|
|
45752
|
+
};
|
|
45753
|
+
|
|
45754
|
+
FormList.displayName = "FormList";
|
|
45297
45755
|
|
|
45298
45756
|
var Form$1 = forwardRefWithStatics(function (props, ref) {
|
|
45299
45757
|
var _useConfig = useConfig$1(),
|
|
@@ -45309,8 +45767,6 @@
|
|
|
45309
45767
|
labelAlign = _props$labelAlign === void 0 ? "right" : _props$labelAlign,
|
|
45310
45768
|
_props$layout = props.layout,
|
|
45311
45769
|
layout = _props$layout === void 0 ? "vertical" : _props$layout,
|
|
45312
|
-
_props$size = props.size,
|
|
45313
|
-
size = _props$size === void 0 ? "medium" : _props$size,
|
|
45314
45770
|
_props$colon = props.colon,
|
|
45315
45771
|
colon = _props$colon === void 0 ? false : _props$colon,
|
|
45316
45772
|
_props$requiredMark = props.requiredMark,
|
|
@@ -45332,9 +45788,9 @@
|
|
|
45332
45788
|
onValuesChange = _props$onValuesChange === void 0 ? noop$1 : _props$onValuesChange;
|
|
45333
45789
|
var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
|
|
45334
45790
|
var formRef = React.useRef();
|
|
45335
|
-
var
|
|
45791
|
+
var formMapRef = React.useRef( /* @__PURE__ */new Map());
|
|
45336
45792
|
|
|
45337
|
-
var _useInstance = useInstance(props, formRef,
|
|
45793
|
+
var _useInstance = useInstance(props, formRef, formMapRef),
|
|
45338
45794
|
submit = _useInstance.submit,
|
|
45339
45795
|
reset = _useInstance.reset,
|
|
45340
45796
|
getFieldValue = _useInstance.getFieldValue,
|
|
@@ -45368,10 +45824,10 @@
|
|
|
45368
45824
|
(_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
45369
45825
|
}
|
|
45370
45826
|
|
|
45371
|
-
|
|
45372
|
-
|
|
45373
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
45827
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
45828
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.current.resetField();
|
|
45374
45829
|
});
|
|
45830
|
+
|
|
45375
45831
|
onReset === null || onReset === void 0 ? void 0 : onReset({
|
|
45376
45832
|
e: e
|
|
45377
45833
|
});
|
|
@@ -45397,7 +45853,6 @@
|
|
|
45397
45853
|
statusIcon: statusIcon,
|
|
45398
45854
|
labelAlign: labelAlign,
|
|
45399
45855
|
layout: layout,
|
|
45400
|
-
size: size,
|
|
45401
45856
|
colon: colon,
|
|
45402
45857
|
requiredMark: requiredMark,
|
|
45403
45858
|
errorMessage: errorMessage,
|
|
@@ -45406,7 +45861,7 @@
|
|
|
45406
45861
|
resetType: resetType,
|
|
45407
45862
|
rules: rules,
|
|
45408
45863
|
disabled: disabled,
|
|
45409
|
-
|
|
45864
|
+
formMapRef: formMapRef,
|
|
45410
45865
|
onFormItemValueChange: onFormItemValueChange
|
|
45411
45866
|
}
|
|
45412
45867
|
}, /* @__PURE__ */React__default["default"].createElement("form", {
|
|
@@ -45418,7 +45873,8 @@
|
|
|
45418
45873
|
onKeyDown: onKeyDownHandler
|
|
45419
45874
|
}, children));
|
|
45420
45875
|
}, {
|
|
45421
|
-
FormItem: FormItem
|
|
45876
|
+
FormItem: FormItem,
|
|
45877
|
+
FormList: FormList
|
|
45422
45878
|
});
|
|
45423
45879
|
Form$1.displayName = "Form";
|
|
45424
45880
|
|
|
@@ -46185,10 +46641,7 @@
|
|
|
46185
46641
|
theme: "default"
|
|
46186
46642
|
};
|
|
46187
46643
|
|
|
46188
|
-
console.error("PopConfirm \u5DF2\u6539\u540D\u4E3A Popconfirm\uFF0C\u5C3D\u5FEB\u8C03\u6574\u4E3A Popconfirm!");
|
|
46189
|
-
|
|
46190
46644
|
var Popconfirm = Popconfirm$1;
|
|
46191
|
-
var PopConfirm = Popconfirm$1;
|
|
46192
46645
|
|
|
46193
46646
|
var TEXTAREA_STYLE = "\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n";
|
|
46194
46647
|
var hiddenTextarea;
|
|
@@ -46418,7 +46871,7 @@
|
|
|
46418
46871
|
separator: null
|
|
46419
46872
|
});
|
|
46420
46873
|
|
|
46421
|
-
var _excluded$3 = ["children", "separator", "disabled", "maxItemWidth", "maxWidth", "href", "to", "target", "router", "replace"];
|
|
46874
|
+
var _excluded$3 = ["children", "separator", "disabled", "maxItemWidth", "maxWidth", "href", "to", "target", "router", "replace", "className"];
|
|
46422
46875
|
|
|
46423
46876
|
function ownKeys$f(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; }
|
|
46424
46877
|
|
|
@@ -46434,6 +46887,7 @@
|
|
|
46434
46887
|
target = props.target,
|
|
46435
46888
|
router = props.router,
|
|
46436
46889
|
replace = props.replace,
|
|
46890
|
+
className = props.className,
|
|
46437
46891
|
restProps = _objectWithoutProperties$1(props, _excluded$3);
|
|
46438
46892
|
|
|
46439
46893
|
var _useContext = React.useContext(BreadcrumbContext),
|
|
@@ -46484,7 +46938,7 @@
|
|
|
46484
46938
|
}
|
|
46485
46939
|
});
|
|
46486
46940
|
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$f({
|
|
46487
|
-
className: classNames$1(breadcrumbItemClassNames, theme),
|
|
46941
|
+
className: classNames$1(breadcrumbItemClassNames, theme, className),
|
|
46488
46942
|
ref: ref
|
|
46489
46943
|
}, restProps), itemContent, /* @__PURE__ */React__default["default"].createElement("span", {
|
|
46490
46944
|
className: separatorClassName
|
|
@@ -46492,7 +46946,7 @@
|
|
|
46492
46946
|
});
|
|
46493
46947
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
46494
46948
|
|
|
46495
|
-
var _excluded$2 = ["children", "options", "separator", "maxItemWidth", "theme"];
|
|
46949
|
+
var _excluded$2 = ["children", "options", "separator", "maxItemWidth", "theme", "className"];
|
|
46496
46950
|
|
|
46497
46951
|
function ownKeys$e(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; }
|
|
46498
46952
|
|
|
@@ -46503,6 +46957,7 @@
|
|
|
46503
46957
|
separator = props.separator,
|
|
46504
46958
|
maxItemWidth = props.maxItemWidth,
|
|
46505
46959
|
theme = props.theme,
|
|
46960
|
+
className = props.className,
|
|
46506
46961
|
restProps = _objectWithoutProperties$1(props, _excluded$2);
|
|
46507
46962
|
|
|
46508
46963
|
var _useConfig = useConfig$1(),
|
|
@@ -46535,7 +46990,7 @@
|
|
|
46535
46990
|
}
|
|
46536
46991
|
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$e({
|
|
46537
46992
|
ref: ref,
|
|
46538
|
-
className: "".concat(classPrefix, "-breadcrumb")
|
|
46993
|
+
className: classNames$1("".concat(classPrefix, "-breadcrumb"), className)
|
|
46539
46994
|
}, restProps), content));
|
|
46540
46995
|
}, {
|
|
46541
46996
|
BreadcrumbItem: BreadcrumbItem
|
|
@@ -47080,43 +47535,31 @@
|
|
|
47080
47535
|
}, toolTipProps), handleNode);
|
|
47081
47536
|
};
|
|
47082
47537
|
|
|
47083
|
-
function accAdd(
|
|
47084
|
-
var
|
|
47085
|
-
|
|
47086
|
-
|
|
47087
|
-
var newArg2 = arg2;
|
|
47088
|
-
|
|
47089
|
-
try {
|
|
47090
|
-
r1 = arg1.toString().split(".")[1].length;
|
|
47091
|
-
} catch (e) {
|
|
47092
|
-
r1 = 0;
|
|
47093
|
-
}
|
|
47094
|
-
|
|
47095
|
-
try {
|
|
47096
|
-
r2 = arg2.toString().split(".")[1].length;
|
|
47097
|
-
} catch (e) {
|
|
47098
|
-
r2 = 0;
|
|
47099
|
-
}
|
|
47538
|
+
function accAdd(num1, num2) {
|
|
47539
|
+
var isFloat = function isFloat(n) {
|
|
47540
|
+
return typeof n === "number" && !Number.isInteger(n);
|
|
47541
|
+
};
|
|
47100
47542
|
|
|
47101
|
-
|
|
47102
|
-
|
|
47543
|
+
if (isFloat(num1) && isFloat(num2)) {
|
|
47544
|
+
var _String$split = String(num1).split("."),
|
|
47545
|
+
_String$split2 = _slicedToArray(_String$split, 2),
|
|
47546
|
+
integer1 = _String$split2[0],
|
|
47547
|
+
precision1 = _String$split2[1];
|
|
47103
47548
|
|
|
47104
|
-
|
|
47105
|
-
|
|
47549
|
+
var _String$split3 = String(num2).split("."),
|
|
47550
|
+
_String$split4 = _slicedToArray(_String$split3, 2),
|
|
47551
|
+
integer2 = _String$split4[0],
|
|
47552
|
+
precision2 = _String$split4[1];
|
|
47106
47553
|
|
|
47107
|
-
|
|
47108
|
-
|
|
47109
|
-
|
|
47110
|
-
|
|
47111
|
-
|
|
47112
|
-
|
|
47113
|
-
}
|
|
47114
|
-
} else {
|
|
47115
|
-
newArg1 = Number(arg1.toString().replace(".", ""));
|
|
47116
|
-
newArg2 = Number(arg2.toString().replace(".", ""));
|
|
47554
|
+
var maxPrecisionLen = Math.max(precision1.length, precision2.length);
|
|
47555
|
+
var wholePrecision1 = Number(precision1.padEnd(maxPrecisionLen, "0"));
|
|
47556
|
+
var wholePrecision2 = Number(precision2.padEnd(maxPrecisionLen, "0"));
|
|
47557
|
+
var precisionVal = (wholePrecision1 + wholePrecision2) / Math.pow(10, maxPrecisionLen);
|
|
47558
|
+
var integerVal = Number(integer1) + Number(integer2);
|
|
47559
|
+
return integerVal + precisionVal;
|
|
47117
47560
|
}
|
|
47118
47561
|
|
|
47119
|
-
return
|
|
47562
|
+
return num1 + num2;
|
|
47120
47563
|
}
|
|
47121
47564
|
|
|
47122
47565
|
function ownKeys$b(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; }
|
|
@@ -47473,13 +47916,13 @@
|
|
|
47473
47916
|
setValue(checked, "check", node.getModel());
|
|
47474
47917
|
}
|
|
47475
47918
|
|
|
47476
|
-
function getLabelIsEllipsis(
|
|
47919
|
+
function getLabelIsEllipsis(label, size) {
|
|
47477
47920
|
var sizeMap = {
|
|
47478
47921
|
small: 11,
|
|
47479
47922
|
medium: 9,
|
|
47480
47923
|
large: 8
|
|
47481
47924
|
};
|
|
47482
|
-
return sizeMap[size] <
|
|
47925
|
+
return sizeMap[size] < label.length;
|
|
47483
47926
|
}
|
|
47484
47927
|
function getNodeStatusClass(node, CLASSNAMES, cascaderContext) {
|
|
47485
47928
|
var _ref;
|
|
@@ -47530,6 +47973,9 @@
|
|
|
47530
47973
|
|
|
47531
47974
|
return treeValue;
|
|
47532
47975
|
};
|
|
47976
|
+
function isInPage(node) {
|
|
47977
|
+
return node === document.body ? false : document.body.contains(node);
|
|
47978
|
+
}
|
|
47533
47979
|
|
|
47534
47980
|
function ownKeys$a(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; }
|
|
47535
47981
|
|
|
@@ -47539,6 +47985,13 @@
|
|
|
47539
47985
|
var filterActive = cascaderContext.filterActive,
|
|
47540
47986
|
inputVal = cascaderContext.inputVal;
|
|
47541
47987
|
var labelText = filterActive ? getFullPathLabel(node) : node.label;
|
|
47988
|
+
var isEllipsis = getLabelIsEllipsis(labelText, cascaderContext.size);
|
|
47989
|
+
var EllipsisNode = isEllipsis ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
47990
|
+
className: "".concat(name, "-label--ellipsis")
|
|
47991
|
+
}, /* @__PURE__ */React__default["default"].createElement(Tooltip$1, {
|
|
47992
|
+
content: labelText,
|
|
47993
|
+
placement: "top-left"
|
|
47994
|
+
})) : null;
|
|
47542
47995
|
|
|
47543
47996
|
if (filterActive) {
|
|
47544
47997
|
var texts = labelText.split(inputVal);
|
|
@@ -47555,10 +48008,10 @@
|
|
|
47555
48008
|
}, inputVal));
|
|
47556
48009
|
}
|
|
47557
48010
|
|
|
47558
|
-
return doms;
|
|
48011
|
+
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, doms, EllipsisNode);
|
|
47559
48012
|
}
|
|
47560
48013
|
|
|
47561
|
-
return labelText;
|
|
48014
|
+
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, labelText, EllipsisNode);
|
|
47562
48015
|
};
|
|
47563
48016
|
|
|
47564
48017
|
var RenderLabelContent = function RenderLabelContent(node, cascaderContext) {
|
|
@@ -47567,22 +48020,9 @@
|
|
|
47567
48020
|
|
|
47568
48021
|
var name = "".concat(prefix, "-cascader__item");
|
|
47569
48022
|
var label = RenderLabelInner(name, node, cascaderContext);
|
|
47570
|
-
var isEllipsis = getLabelIsEllipsis(node, cascaderContext.size);
|
|
47571
|
-
|
|
47572
|
-
if (isEllipsis) {
|
|
47573
|
-
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
47574
|
-
className: "".concat(name, "-label"),
|
|
47575
|
-
role: "label"
|
|
47576
|
-
}, label, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
47577
|
-
className: "".concat(name, "-label--ellipsis")
|
|
47578
|
-
}, /* @__PURE__ */React__default["default"].createElement(Tooltip$1, {
|
|
47579
|
-
content: node.label,
|
|
47580
|
-
placement: "top-left"
|
|
47581
|
-
})));
|
|
47582
|
-
}
|
|
47583
|
-
|
|
47584
48023
|
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
47585
|
-
className: "".concat(name, "-label")
|
|
48024
|
+
className: "".concat(name, "-label"),
|
|
48025
|
+
role: "label"
|
|
47586
48026
|
}, label);
|
|
47587
48027
|
};
|
|
47588
48028
|
|
|
@@ -47823,14 +48263,9 @@
|
|
|
47823
48263
|
function outerClickListenerEffect(ref, cascaderContext, event) {
|
|
47824
48264
|
var visible = cascaderContext.visible,
|
|
47825
48265
|
setVisible = cascaderContext.setVisible;
|
|
47826
|
-
|
|
47827
|
-
if (!ref || ref.contains(
|
|
47828
|
-
|
|
47829
|
-
}
|
|
47830
|
-
|
|
47831
|
-
if (visible) {
|
|
47832
|
-
setVisible(false);
|
|
47833
|
-
}
|
|
48266
|
+
var target = event.target;
|
|
48267
|
+
if (!visible || !ref || ref.contains(target) || !isInPage(target)) return;
|
|
48268
|
+
setVisible(false);
|
|
47834
48269
|
}
|
|
47835
48270
|
function closeIconClickEffect(cascaderContext) {
|
|
47836
48271
|
var setVisible = cascaderContext.setVisible,
|
|
@@ -50215,7 +50650,17 @@
|
|
|
50215
50650
|
var _num = num;
|
|
50216
50651
|
if (num < 0) _num = 0;
|
|
50217
50652
|
var newDate = new Date(date);
|
|
50218
|
-
|
|
50653
|
+
var year = date.getFullYear();
|
|
50654
|
+
|
|
50655
|
+
var month = date.getMonth() + _num;
|
|
50656
|
+
|
|
50657
|
+
var day = newDate.getDate();
|
|
50658
|
+
newDate.setDate(1);
|
|
50659
|
+
newDate.setMonth(month);
|
|
50660
|
+
newDate.setDate(Math.min(day, getDaysInMonth({
|
|
50661
|
+
year: year,
|
|
50662
|
+
month: month
|
|
50663
|
+
})));
|
|
50219
50664
|
return newDate;
|
|
50220
50665
|
}
|
|
50221
50666
|
function getWeeks(_ref5, _ref6) {
|
|
@@ -53090,7 +53535,6 @@
|
|
|
53090
53535
|
exports.Notification = Notification;
|
|
53091
53536
|
exports.NotificationPlugin = NotificationPlugin;
|
|
53092
53537
|
exports.Pagination = Pagination;
|
|
53093
|
-
exports.PopConfirm = PopConfirm;
|
|
53094
53538
|
exports.Popconfirm = Popconfirm;
|
|
53095
53539
|
exports.Popup = Popup;
|
|
53096
53540
|
exports.Progress = Progress;
|