doui-react 1.0.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/LICENSE +21 -0
- package/README.md +28 -0
- package/es/api/component/class-name.d.ts +3 -0
- package/es/api/component/class-name.js +15 -0
- package/es/api/component/common.d.ts +22 -0
- package/es/api/component/common.js +144 -0
- package/es/api/component/dom.d.ts +2 -0
- package/es/api/component/dom.js +7 -0
- package/es/api/component/global-style.d.ts +3 -0
- package/es/api/component/global-style.js +16 -0
- package/es/api/component/index.d.ts +9 -0
- package/es/api/component/index.js +9 -0
- package/es/api/component/react-dom.d.ts +3 -0
- package/es/api/component/react-dom.js +72 -0
- package/es/api/component/sort.d.ts +2 -0
- package/es/api/component/sort.js +20 -0
- package/es/api/component/style.d.ts +4 -0
- package/es/api/component/style.js +33 -0
- package/es/api/component/url.d.ts +33 -0
- package/es/api/component/url.js +126 -0
- package/es/api/component/validate-input.d.ts +8 -0
- package/es/api/component/validate-input.js +16 -0
- package/es/api/index.d.ts +2 -0
- package/es/api/index.js +2 -0
- package/es/api/type/common.d.ts +24 -0
- package/es/api/type/common.js +1 -0
- package/es/api/type/index.d.ts +5 -0
- package/es/api/type/index.js +2 -0
- package/es/button/component/index.d.ts +2 -0
- package/es/button/component/index.js +87 -0
- package/es/button/index.d.ts +2 -0
- package/es/button/index.js +2 -0
- package/es/button/type/index.d.ts +31 -0
- package/es/button/type/index.js +1 -0
- package/es/checkbox/component/checkbox-group.d.ts +2 -0
- package/es/checkbox/component/checkbox-group.js +66 -0
- package/es/checkbox/component/checkbox.d.ts +2 -0
- package/es/checkbox/component/checkbox.js +8 -0
- package/es/checkbox/component/index.d.ts +2 -0
- package/es/checkbox/component/index.js +10 -0
- package/es/checkbox/component/use-checkbox.d.ts +12 -0
- package/es/checkbox/component/use-checkbox.js +43 -0
- package/es/checkbox/component/utils.d.ts +13 -0
- package/es/checkbox/component/utils.js +40 -0
- package/es/checkbox/index.d.ts +2 -0
- package/es/checkbox/index.js +2 -0
- package/es/checkbox/style/index.d.ts +5 -0
- package/es/checkbox/style/index.js +11 -0
- package/es/checkbox/type/index.d.ts +18 -0
- package/es/checkbox/type/index.js +1 -0
- package/es/config/index.d.ts +0 -0
- package/es/config/index.js +0 -0
- package/es/date-picker/component/index.d.ts +3 -0
- package/es/date-picker/component/index.js +38 -0
- package/es/date-picker/index.d.ts +2 -0
- package/es/date-picker/index.js +2 -0
- package/es/date-picker/style/index.d.ts +4 -0
- package/es/date-picker/style/index.js +7 -0
- package/es/date-picker/type/index.d.ts +21 -0
- package/es/date-picker/type/index.js +1 -0
- package/es/empty/component/index.d.ts +2 -0
- package/es/empty/component/index.js +17 -0
- package/es/empty/index.d.ts +2 -0
- package/es/empty/index.js +2 -0
- package/es/empty/type/index.d.ts +9 -0
- package/es/empty/type/index.js +1 -0
- package/es/form/component/constant.d.ts +15 -0
- package/es/form/component/constant.js +15 -0
- package/es/form/component/form-content.d.ts +10 -0
- package/es/form/component/form-content.js +280 -0
- package/es/form/component/form-item-map.d.ts +40 -0
- package/es/form/component/form-item-map.js +120 -0
- package/es/form/component/form-item.d.ts +7 -0
- package/es/form/component/form-item.js +219 -0
- package/es/form/component/form-list.d.ts +36 -0
- package/es/form/component/form-list.js +190 -0
- package/es/form/component/form.d.ts +2 -0
- package/es/form/component/form.js +40 -0
- package/es/form/component/index.d.ts +15 -0
- package/es/form/component/index.js +14 -0
- package/es/form/component/submit-button.d.ts +2 -0
- package/es/form/component/submit-button.js +47 -0
- package/es/form/component/use-debug.d.ts +1 -0
- package/es/form/component/use-debug.js +16 -0
- package/es/form/component/utils.d.ts +95 -0
- package/es/form/component/utils.js +435 -0
- package/es/form/component/validator-item.d.ts +7 -0
- package/es/form/component/validator-item.js +53 -0
- package/es/form/hook/index.d.ts +16 -0
- package/es/form/hook/index.js +116 -0
- package/es/form/hook/list-provider.d.ts +6 -0
- package/es/form/hook/list-provider.js +16 -0
- package/es/form/hook/provider.d.ts +23 -0
- package/es/form/hook/provider.js +21 -0
- package/es/form/hook/use-form.d.ts +2 -0
- package/es/form/hook/use-form.js +335 -0
- package/es/form/index.d.ts +3 -0
- package/es/form/index.js +3 -0
- package/es/form/style/form-item.d.ts +3 -0
- package/es/form/style/form-item.js +38 -0
- package/es/form/style/index.d.ts +7 -0
- package/es/form/style/index.js +13 -0
- package/es/form/type/form-item.d.ts +141 -0
- package/es/form/type/form-item.js +1 -0
- package/es/form/type/form-list.d.ts +91 -0
- package/es/form/type/form-list.js +1 -0
- package/es/form/type/index.d.ts +134 -0
- package/es/form/type/index.js +3 -0
- package/es/grid/component/index.d.ts +2 -0
- package/es/grid/component/index.js +76 -0
- package/es/grid/component/pagination.d.ts +50 -0
- package/es/grid/component/pagination.js +54 -0
- package/es/grid/component/utils.d.ts +2 -0
- package/es/grid/component/utils.js +7 -0
- package/es/grid/index.d.ts +2 -0
- package/es/grid/index.js +2 -0
- package/es/grid/style/index.d.ts +11 -0
- package/es/grid/style/index.js +26 -0
- package/es/grid/type/index.d.ts +67 -0
- package/es/grid/type/index.js +1 -0
- package/es/highlight-text/component/index.d.ts +2 -0
- package/es/highlight-text/component/index.js +71 -0
- package/es/highlight-text/index.d.ts +2 -0
- package/es/highlight-text/index.js +2 -0
- package/es/highlight-text/style/index.d.ts +4 -0
- package/es/highlight-text/style/index.js +7 -0
- package/es/highlight-text/type/index.d.ts +18 -0
- package/es/highlight-text/type/index.js +1 -0
- package/es/hooks/hook/common.d.ts +1 -0
- package/es/hooks/hook/common.js +12 -0
- package/es/hooks/hook/index.d.ts +7 -0
- package/es/hooks/hook/index.js +7 -0
- package/es/hooks/hook/use-debounce.d.ts +4 -0
- package/es/hooks/hook/use-debounce.js +23 -0
- package/es/hooks/hook/use-deep.d.ts +9 -0
- package/es/hooks/hook/use-deep.js +64 -0
- package/es/hooks/hook/use-fetch.d.ts +8 -0
- package/es/hooks/hook/use-fetch.js +164 -0
- package/es/hooks/hook/use-list-operation.d.ts +5 -0
- package/es/hooks/hook/use-list-operation.js +70 -0
- package/es/hooks/hook/use-loading.d.ts +7 -0
- package/es/hooks/hook/use-loading.js +59 -0
- package/es/hooks/hook/use-window-resize.d.ts +5 -0
- package/es/hooks/hook/use-window-resize.js +16 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/type/index.d.ts +2 -0
- package/es/hooks/type/index.js +2 -0
- package/es/hooks/type/use-fetch.d.ts +31 -0
- package/es/hooks/type/use-fetch.js +1 -0
- package/es/hooks/type/use-list-operation.d.ts +34 -0
- package/es/hooks/type/use-list-operation.js +1 -0
- package/es/icon/component/down.d.ts +2 -0
- package/es/icon/component/down.js +42 -0
- package/es/icon/component/index.d.ts +2 -0
- package/es/icon/component/index.js +5 -0
- package/es/icon/component/up.d.ts +2 -0
- package/es/icon/component/up.js +41 -0
- package/es/icon/hook/index.d.ts +477 -0
- package/es/icon/hook/index.js +60 -0
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.js +2 -0
- package/es/icon/style/index.d.ts +4 -0
- package/es/icon/style/index.js +10 -0
- package/es/icon/type/index.d.ts +14 -0
- package/es/icon/type/index.js +1 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +25 -0
- package/es/input/component/index.d.ts +12 -0
- package/es/input/component/index.js +25 -0
- package/es/input/component/input.d.ts +2 -0
- package/es/input/component/input.js +8 -0
- package/es/input/component/number.d.ts +4 -0
- package/es/input/component/number.js +50 -0
- package/es/input/component/password.d.ts +2 -0
- package/es/input/component/password.js +8 -0
- package/es/input/component/text-area.d.ts +2 -0
- package/es/input/component/text-area.js +16 -0
- package/es/input/component/utils.d.ts +15 -0
- package/es/input/component/utils.js +102 -0
- package/es/input/index.d.ts +2 -0
- package/es/input/index.js +2 -0
- package/es/input/style/index.d.ts +6 -0
- package/es/input/style/index.js +11 -0
- package/es/input/type/index.d.ts +41 -0
- package/es/input/type/index.js +1 -0
- package/es/modal-prompt/component/index.d.ts +5 -0
- package/es/modal-prompt/component/index.js +60 -0
- package/es/modal-prompt/component/open-loading.d.ts +2 -0
- package/es/modal-prompt/component/open-loading.js +21 -0
- package/es/modal-prompt/component/utils.d.ts +4 -0
- package/es/modal-prompt/component/utils.js +49 -0
- package/es/modal-prompt/index.d.ts +2 -0
- package/es/modal-prompt/index.js +2 -0
- package/es/modal-prompt/style/index.d.ts +5 -0
- package/es/modal-prompt/style/index.js +9 -0
- package/es/modal-prompt/type/index.d.ts +36 -0
- package/es/modal-prompt/type/index.js +1 -0
- package/es/open-modal/component/constant.d.ts +1 -0
- package/es/open-modal/component/constant.js +3 -0
- package/es/open-modal/component/footer.d.ts +2 -0
- package/es/open-modal/component/footer.js +34 -0
- package/es/open-modal/component/index.d.ts +4 -0
- package/es/open-modal/component/index.js +9 -0
- package/es/open-modal/component/modal.d.ts +10 -0
- package/es/open-modal/component/modal.js +37 -0
- package/es/open-modal/component/title.d.ts +6 -0
- package/es/open-modal/component/title.js +12 -0
- package/es/open-modal/component/use-modal.d.ts +14 -0
- package/es/open-modal/component/use-modal.js +177 -0
- package/es/open-modal/component/utils.d.ts +11 -0
- package/es/open-modal/component/utils.js +109 -0
- package/es/open-modal/hook/index.d.ts +7 -0
- package/es/open-modal/hook/index.js +17 -0
- package/es/open-modal/hook/use-modal.d.ts +6 -0
- package/es/open-modal/hook/use-modal.js +27 -0
- package/es/open-modal/index.d.ts +3 -0
- package/es/open-modal/index.js +3 -0
- package/es/open-modal/style/index.d.ts +5 -0
- package/es/open-modal/style/index.js +18 -0
- package/es/open-modal/style/wrap.d.ts +2 -0
- package/es/open-modal/style/wrap.js +6 -0
- package/es/open-modal/type/index.d.ts +91 -0
- package/es/open-modal/type/index.js +1 -0
- package/es/portal/component/index.d.ts +2 -0
- package/es/portal/component/index.js +40 -0
- package/es/portal/index.d.ts +2 -0
- package/es/portal/index.js +2 -0
- package/es/portal/type/index.d.ts +13 -0
- package/es/portal/type/index.js +1 -0
- package/es/radio/component/abstract-box.d.ts +380 -0
- package/es/radio/component/abstract-box.js +90 -0
- package/es/radio/component/index.d.ts +2 -0
- package/es/radio/component/index.js +10 -0
- package/es/radio/component/radio.d.ts +2 -0
- package/es/radio/component/radio.js +10 -0
- package/es/radio/component/redio-group.d.ts +2 -0
- package/es/radio/component/redio-group.js +50 -0
- package/es/radio/component/use-box-options.d.ts +6 -0
- package/es/radio/component/use-box-options.js +20 -0
- package/es/radio/component/use-radio.d.ts +23 -0
- package/es/radio/component/use-radio.js +21 -0
- package/es/radio/component/utils.d.ts +7 -0
- package/es/radio/component/utils.js +25 -0
- package/es/radio/index.d.ts +2 -0
- package/es/radio/index.js +2 -0
- package/es/radio/style/index.d.ts +7 -0
- package/es/radio/style/index.js +15 -0
- package/es/radio/type/index.d.ts +32 -0
- package/es/radio/type/index.js +1 -0
- package/es/select/component/constant.d.ts +1 -0
- package/es/select/component/constant.js +1 -0
- package/es/select/component/index.d.ts +3 -0
- package/es/select/component/index.js +16 -0
- package/es/select/component/loading.d.ts +1 -0
- package/es/select/component/loading.js +13 -0
- package/es/select/component/use-select-options.d.ts +11 -0
- package/es/select/component/use-select-options.js +80 -0
- package/es/select/component/use-select.d.ts +2 -0
- package/es/select/component/use-select.js +136 -0
- package/es/select/component/utils.d.ts +14 -0
- package/es/select/component/utils.js +142 -0
- package/es/select/index.d.ts +2 -0
- package/es/select/index.js +2 -0
- package/es/select/style/index.d.ts +4 -0
- package/es/select/style/index.js +7 -0
- package/es/select/type/index.d.ts +105 -0
- package/es/select/type/index.js +1 -0
- package/es/stack/component/center-stack.d.ts +2 -0
- package/es/stack/component/center-stack.js +32 -0
- package/es/stack/component/h-stack.d.ts +2 -0
- package/es/stack/component/h-stack.js +39 -0
- package/es/stack/component/index.d.ts +3 -0
- package/es/stack/component/index.js +3 -0
- package/es/stack/component/v-stack.d.ts +2 -0
- package/es/stack/component/v-stack.js +36 -0
- package/es/stack/index.d.ts +2 -0
- package/es/stack/index.js +2 -0
- package/es/stack/style/index.d.ts +21 -0
- package/es/stack/style/index.js +49 -0
- package/es/stack/type/index.d.ts +54 -0
- package/es/stack/type/index.js +1 -0
- package/es/switch/component/index.d.ts +2 -0
- package/es/switch/component/index.js +60 -0
- package/es/switch/index.d.ts +2 -0
- package/es/switch/index.js +2 -0
- package/es/switch/style/index.d.ts +5 -0
- package/es/switch/style/index.js +13 -0
- package/es/switch/type/index.d.ts +27 -0
- package/es/switch/type/index.js +1 -0
- package/es/table/component/action-button.d.ts +2 -0
- package/es/table/component/action-button.js +95 -0
- package/es/table/component/actions.d.ts +2 -0
- package/es/table/component/actions.js +35 -0
- package/es/table/component/constant.d.ts +1 -0
- package/es/table/component/constant.js +5 -0
- package/es/table/component/editor.d.ts +2 -0
- package/es/table/component/editor.js +35 -0
- package/es/table/component/filter.d.ts +3 -0
- package/es/table/component/filter.js +55 -0
- package/es/table/component/index.d.ts +7 -0
- package/es/table/component/index.js +4 -0
- package/es/table/component/link.d.ts +2 -0
- package/es/table/component/link.js +20 -0
- package/es/table/component/sort.d.ts +6 -0
- package/es/table/component/sort.js +17 -0
- package/es/table/component/switch.d.ts +2 -0
- package/es/table/component/switch.js +27 -0
- package/es/table/component/table-body.d.ts +6 -0
- package/es/table/component/table-body.js +88 -0
- package/es/table/component/table.d.ts +10 -0
- package/es/table/component/table.js +235 -0
- package/es/table/component/time.d.ts +2 -0
- package/es/table/component/time.js +12 -0
- package/es/table/component/utils.d.ts +120 -0
- package/es/table/component/utils.js +222 -0
- package/es/table/component/wrapper.d.ts +6 -0
- package/es/table/component/wrapper.js +30 -0
- package/es/table/hook/index.d.ts +7 -0
- package/es/table/hook/index.js +17 -0
- package/es/table/hook/search.d.ts +5 -0
- package/es/table/hook/search.js +131 -0
- package/es/table/index.d.ts +3 -0
- package/es/table/index.js +3 -0
- package/es/table/style/index.d.ts +9 -0
- package/es/table/style/index.js +16 -0
- package/es/table/type/action.d.ts +48 -0
- package/es/table/type/action.js +1 -0
- package/es/table/type/column.d.ts +110 -0
- package/es/table/type/column.js +1 -0
- package/es/table/type/index.d.ts +113 -0
- package/es/table/type/index.js +11 -0
- package/es/tabs/component/constant.d.ts +2 -0
- package/es/tabs/component/constant.js +2 -0
- package/es/tabs/component/index.d.ts +2 -0
- package/es/tabs/component/index.js +18 -0
- package/es/tabs/component/utils.d.ts +24 -0
- package/es/tabs/component/utils.js +55 -0
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +2 -0
- package/es/tabs/style/index.d.ts +5 -0
- package/es/tabs/style/index.js +10 -0
- package/es/tabs/type/index.d.ts +20 -0
- package/es/tabs/type/index.js +1 -0
- package/es/text/component/index.d.ts +3 -0
- package/es/text/component/index.js +57 -0
- package/es/text/component/use-text.d.ts +4 -0
- package/es/text/component/use-text.js +24 -0
- package/es/text/component/utils.d.ts +3 -0
- package/es/text/component/utils.js +9 -0
- package/es/text/index.d.ts +2 -0
- package/es/text/index.js +2 -0
- package/es/text/style/index.d.ts +5 -0
- package/es/text/style/index.js +8 -0
- package/es/text/type/index.d.ts +19 -0
- package/es/text/type/index.js +1 -0
- package/es/tooltip/component/index.d.ts +48 -0
- package/es/tooltip/component/index.js +19 -0
- package/es/tooltip/index.d.ts +2 -0
- package/es/tooltip/index.js +2 -0
- package/es/tooltip/type/index.d.ts +8 -0
- package/es/tooltip/type/index.js +1 -0
- package/es/tree/component/index.d.ts +2 -0
- package/es/tree/component/index.js +23 -0
- package/es/tree/component/utils.d.ts +1 -0
- package/es/tree/component/utils.js +3 -0
- package/es/tree/index.d.ts +2 -0
- package/es/tree/index.js +2 -0
- package/es/tree/style/index.d.ts +4 -0
- package/es/tree/style/index.js +7 -0
- package/es/tree/type/index.d.ts +2 -0
- package/es/tree/type/index.js +1 -0
- package/es/tree-select/component/index.d.ts +2 -0
- package/es/tree-select/component/index.js +15 -0
- package/es/tree-select/component/use-tree-select.d.ts +2 -0
- package/es/tree-select/component/use-tree-select.js +59 -0
- package/es/tree-select/index.d.ts +2 -0
- package/es/tree-select/index.js +2 -0
- package/es/tree-select/style/index.d.ts +5 -0
- package/es/tree-select/style/index.js +15 -0
- package/es/tree-select/type/index.d.ts +23 -0
- package/es/tree-select/type/index.js +1 -0
- package/es/virtual-list/component/index.d.ts +2 -0
- package/es/virtual-list/component/index.js +28 -0
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +2 -0
- package/es/virtual-list/type/index.d.ts +17 -0
- package/es/virtual-list/type/index.js +1 -0
- package/lib/api/component/class-name.d.ts +3 -0
- package/lib/api/component/class-name.js +23 -0
- package/lib/api/component/common.d.ts +22 -0
- package/lib/api/component/common.js +163 -0
- package/lib/api/component/dom.d.ts +2 -0
- package/lib/api/component/dom.js +14 -0
- package/lib/api/component/global-style.d.ts +3 -0
- package/lib/api/component/global-style.js +23 -0
- package/lib/api/component/index.d.ts +9 -0
- package/lib/api/component/index.js +104 -0
- package/lib/api/component/react-dom.d.ts +3 -0
- package/lib/api/component/react-dom.js +80 -0
- package/lib/api/component/sort.d.ts +2 -0
- package/lib/api/component/sort.js +28 -0
- package/lib/api/component/style.d.ts +4 -0
- package/lib/api/component/style.js +43 -0
- package/lib/api/component/url.d.ts +33 -0
- package/lib/api/component/url.js +133 -0
- package/lib/api/component/validate-input.d.ts +8 -0
- package/lib/api/component/validate-input.js +24 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +27 -0
- package/lib/api/type/common.d.ts +24 -0
- package/lib/api/type/common.js +5 -0
- package/lib/api/type/index.d.ts +5 -0
- package/lib/api/type/index.js +16 -0
- package/lib/button/component/index.d.ts +2 -0
- package/lib/button/component/index.js +94 -0
- package/lib/button/index.d.ts +2 -0
- package/lib/button/index.js +27 -0
- package/lib/button/type/index.d.ts +31 -0
- package/lib/button/type/index.js +5 -0
- package/lib/checkbox/component/checkbox-group.d.ts +2 -0
- package/lib/checkbox/component/checkbox-group.js +73 -0
- package/lib/checkbox/component/checkbox.d.ts +2 -0
- package/lib/checkbox/component/checkbox.js +15 -0
- package/lib/checkbox/component/index.d.ts +2 -0
- package/lib/checkbox/component/index.js +17 -0
- package/lib/checkbox/component/use-checkbox.d.ts +12 -0
- package/lib/checkbox/component/use-checkbox.js +50 -0
- package/lib/checkbox/component/utils.d.ts +13 -0
- package/lib/checkbox/component/utils.js +47 -0
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox/index.js +27 -0
- package/lib/checkbox/style/index.d.ts +5 -0
- package/lib/checkbox/style/index.js +18 -0
- package/lib/checkbox/type/index.d.ts +18 -0
- package/lib/checkbox/type/index.js +5 -0
- package/lib/config/index.d.ts +0 -0
- package/lib/config/index.js +1 -0
- package/lib/date-picker/component/index.d.ts +3 -0
- package/lib/date-picker/component/index.js +46 -0
- package/lib/date-picker/index.d.ts +2 -0
- package/lib/date-picker/index.js +27 -0
- package/lib/date-picker/style/index.d.ts +4 -0
- package/lib/date-picker/style/index.js +14 -0
- package/lib/date-picker/type/index.d.ts +21 -0
- package/lib/date-picker/type/index.js +5 -0
- package/lib/empty/component/index.d.ts +2 -0
- package/lib/empty/component/index.js +24 -0
- package/lib/empty/index.d.ts +2 -0
- package/lib/empty/index.js +27 -0
- package/lib/empty/type/index.d.ts +9 -0
- package/lib/empty/type/index.js +5 -0
- package/lib/form/component/constant.d.ts +15 -0
- package/lib/form/component/constant.js +21 -0
- package/lib/form/component/form-content.d.ts +10 -0
- package/lib/form/component/form-content.js +288 -0
- package/lib/form/component/form-item-map.d.ts +40 -0
- package/lib/form/component/form-item-map.js +128 -0
- package/lib/form/component/form-item.d.ts +7 -0
- package/lib/form/component/form-item.js +227 -0
- package/lib/form/component/form-list.d.ts +36 -0
- package/lib/form/component/form-list.js +201 -0
- package/lib/form/component/form.d.ts +2 -0
- package/lib/form/component/form.js +47 -0
- package/lib/form/component/index.d.ts +15 -0
- package/lib/form/component/index.js +20 -0
- package/lib/form/component/submit-button.d.ts +2 -0
- package/lib/form/component/submit-button.js +54 -0
- package/lib/form/component/use-debug.d.ts +1 -0
- package/lib/form/component/use-debug.js +22 -0
- package/lib/form/component/utils.d.ts +95 -0
- package/lib/form/component/utils.js +467 -0
- package/lib/form/component/validator-item.d.ts +7 -0
- package/lib/form/component/validator-item.js +60 -0
- package/lib/form/hook/index.d.ts +16 -0
- package/lib/form/hook/index.js +163 -0
- package/lib/form/hook/list-provider.d.ts +6 -0
- package/lib/form/hook/list-provider.js +24 -0
- package/lib/form/hook/provider.d.ts +23 -0
- package/lib/form/hook/provider.js +30 -0
- package/lib/form/hook/use-form.d.ts +2 -0
- package/lib/form/hook/use-form.js +342 -0
- package/lib/form/index.d.ts +3 -0
- package/lib/form/index.js +38 -0
- package/lib/form/style/form-item.d.ts +3 -0
- package/lib/form/style/form-item.js +46 -0
- package/lib/form/style/index.d.ts +7 -0
- package/lib/form/style/index.js +32 -0
- package/lib/form/type/form-item.d.ts +141 -0
- package/lib/form/type/form-item.js +5 -0
- package/lib/form/type/form-list.d.ts +91 -0
- package/lib/form/type/form-list.js +5 -0
- package/lib/form/type/index.d.ts +134 -0
- package/lib/form/type/index.js +27 -0
- package/lib/grid/component/index.d.ts +2 -0
- package/lib/grid/component/index.js +83 -0
- package/lib/grid/component/pagination.d.ts +50 -0
- package/lib/grid/component/pagination.js +62 -0
- package/lib/grid/component/utils.d.ts +2 -0
- package/lib/grid/component/utils.js +14 -0
- package/lib/grid/index.d.ts +2 -0
- package/lib/grid/index.js +27 -0
- package/lib/grid/style/index.d.ts +11 -0
- package/lib/grid/style/index.js +33 -0
- package/lib/grid/type/index.d.ts +67 -0
- package/lib/grid/type/index.js +5 -0
- package/lib/highlight-text/component/index.d.ts +2 -0
- package/lib/highlight-text/component/index.js +78 -0
- package/lib/highlight-text/index.d.ts +2 -0
- package/lib/highlight-text/index.js +27 -0
- package/lib/highlight-text/style/index.d.ts +4 -0
- package/lib/highlight-text/style/index.js +14 -0
- package/lib/highlight-text/type/index.d.ts +18 -0
- package/lib/highlight-text/type/index.js +5 -0
- package/lib/hooks/hook/common.d.ts +1 -0
- package/lib/hooks/hook/common.js +18 -0
- package/lib/hooks/hook/index.d.ts +7 -0
- package/lib/hooks/hook/index.js +82 -0
- package/lib/hooks/hook/use-debounce.d.ts +4 -0
- package/lib/hooks/hook/use-debounce.js +32 -0
- package/lib/hooks/hook/use-deep.d.ts +9 -0
- package/lib/hooks/hook/use-deep.js +76 -0
- package/lib/hooks/hook/use-fetch.d.ts +8 -0
- package/lib/hooks/hook/use-fetch.js +171 -0
- package/lib/hooks/hook/use-list-operation.d.ts +5 -0
- package/lib/hooks/hook/use-list-operation.js +80 -0
- package/lib/hooks/hook/use-loading.d.ts +7 -0
- package/lib/hooks/hook/use-loading.js +66 -0
- package/lib/hooks/hook/use-window-resize.d.ts +5 -0
- package/lib/hooks/hook/use-window-resize.js +22 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +27 -0
- package/lib/hooks/type/index.d.ts +2 -0
- package/lib/hooks/type/index.js +27 -0
- package/lib/hooks/type/use-fetch.d.ts +31 -0
- package/lib/hooks/type/use-fetch.js +5 -0
- package/lib/hooks/type/use-list-operation.d.ts +34 -0
- package/lib/hooks/type/use-list-operation.js +5 -0
- package/lib/icon/component/down.d.ts +2 -0
- package/lib/icon/component/down.js +50 -0
- package/lib/icon/component/index.d.ts +2 -0
- package/lib/icon/component/index.js +27 -0
- package/lib/icon/component/up.d.ts +2 -0
- package/lib/icon/component/up.js +49 -0
- package/lib/icon/hook/index.d.ts +477 -0
- package/lib/icon/hook/index.js +67 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +27 -0
- package/lib/icon/style/index.d.ts +4 -0
- package/lib/icon/style/index.js +17 -0
- package/lib/icon/type/index.d.ts +14 -0
- package/lib/icon/type/index.js +5 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.js +345 -0
- package/lib/input/component/index.d.ts +12 -0
- package/lib/input/component/index.js +33 -0
- package/lib/input/component/input.d.ts +2 -0
- package/lib/input/component/input.js +15 -0
- package/lib/input/component/number.d.ts +4 -0
- package/lib/input/component/number.js +57 -0
- package/lib/input/component/password.d.ts +2 -0
- package/lib/input/component/password.js +15 -0
- package/lib/input/component/text-area.d.ts +2 -0
- package/lib/input/component/text-area.js +23 -0
- package/lib/input/component/utils.d.ts +15 -0
- package/lib/input/component/utils.js +114 -0
- package/lib/input/index.d.ts +2 -0
- package/lib/input/index.js +27 -0
- package/lib/input/style/index.d.ts +6 -0
- package/lib/input/style/index.js +18 -0
- package/lib/input/type/index.d.ts +41 -0
- package/lib/input/type/index.js +5 -0
- package/lib/modal-prompt/component/index.d.ts +5 -0
- package/lib/modal-prompt/component/index.js +85 -0
- package/lib/modal-prompt/component/open-loading.d.ts +2 -0
- package/lib/modal-prompt/component/open-loading.js +28 -0
- package/lib/modal-prompt/component/utils.d.ts +4 -0
- package/lib/modal-prompt/component/utils.js +57 -0
- package/lib/modal-prompt/index.d.ts +2 -0
- package/lib/modal-prompt/index.js +27 -0
- package/lib/modal-prompt/style/index.d.ts +5 -0
- package/lib/modal-prompt/style/index.js +16 -0
- package/lib/modal-prompt/type/index.d.ts +36 -0
- package/lib/modal-prompt/type/index.js +5 -0
- package/lib/open-modal/component/constant.d.ts +1 -0
- package/lib/open-modal/component/constant.js +10 -0
- package/lib/open-modal/component/footer.d.ts +2 -0
- package/lib/open-modal/component/footer.js +41 -0
- package/lib/open-modal/component/index.d.ts +4 -0
- package/lib/open-modal/component/index.js +30 -0
- package/lib/open-modal/component/modal.d.ts +10 -0
- package/lib/open-modal/component/modal.js +44 -0
- package/lib/open-modal/component/title.d.ts +6 -0
- package/lib/open-modal/component/title.js +18 -0
- package/lib/open-modal/component/use-modal.d.ts +14 -0
- package/lib/open-modal/component/use-modal.js +184 -0
- package/lib/open-modal/component/utils.d.ts +11 -0
- package/lib/open-modal/component/utils.js +117 -0
- package/lib/open-modal/hook/index.d.ts +7 -0
- package/lib/open-modal/hook/index.js +40 -0
- package/lib/open-modal/hook/use-modal.d.ts +6 -0
- package/lib/open-modal/hook/use-modal.js +34 -0
- package/lib/open-modal/index.d.ts +3 -0
- package/lib/open-modal/index.js +38 -0
- package/lib/open-modal/style/index.d.ts +5 -0
- package/lib/open-modal/style/index.js +25 -0
- package/lib/open-modal/style/wrap.d.ts +2 -0
- package/lib/open-modal/style/wrap.js +13 -0
- package/lib/open-modal/type/index.d.ts +91 -0
- package/lib/open-modal/type/index.js +5 -0
- package/lib/portal/component/index.d.ts +2 -0
- package/lib/portal/component/index.js +47 -0
- package/lib/portal/index.d.ts +2 -0
- package/lib/portal/index.js +27 -0
- package/lib/portal/type/index.d.ts +13 -0
- package/lib/portal/type/index.js +5 -0
- package/lib/radio/component/abstract-box.d.ts +380 -0
- package/lib/radio/component/abstract-box.js +98 -0
- package/lib/radio/component/index.d.ts +2 -0
- package/lib/radio/component/index.js +17 -0
- package/lib/radio/component/radio.d.ts +2 -0
- package/lib/radio/component/radio.js +17 -0
- package/lib/radio/component/redio-group.d.ts +2 -0
- package/lib/radio/component/redio-group.js +57 -0
- package/lib/radio/component/use-box-options.d.ts +6 -0
- package/lib/radio/component/use-box-options.js +27 -0
- package/lib/radio/component/use-radio.d.ts +23 -0
- package/lib/radio/component/use-radio.js +28 -0
- package/lib/radio/component/utils.d.ts +7 -0
- package/lib/radio/component/utils.js +33 -0
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio/index.js +27 -0
- package/lib/radio/style/index.d.ts +7 -0
- package/lib/radio/style/index.js +22 -0
- package/lib/radio/type/index.d.ts +32 -0
- package/lib/radio/type/index.js +5 -0
- package/lib/select/component/constant.d.ts +1 -0
- package/lib/select/component/constant.js +7 -0
- package/lib/select/component/index.d.ts +3 -0
- package/lib/select/component/index.js +29 -0
- package/lib/select/component/loading.d.ts +1 -0
- package/lib/select/component/loading.js +20 -0
- package/lib/select/component/use-select-options.d.ts +11 -0
- package/lib/select/component/use-select-options.js +88 -0
- package/lib/select/component/use-select.d.ts +2 -0
- package/lib/select/component/use-select.js +143 -0
- package/lib/select/component/utils.d.ts +14 -0
- package/lib/select/component/utils.js +152 -0
- package/lib/select/index.d.ts +2 -0
- package/lib/select/index.js +27 -0
- package/lib/select/style/index.d.ts +4 -0
- package/lib/select/style/index.js +14 -0
- package/lib/select/type/index.d.ts +105 -0
- package/lib/select/type/index.js +5 -0
- package/lib/stack/component/center-stack.d.ts +2 -0
- package/lib/stack/component/center-stack.js +39 -0
- package/lib/stack/component/h-stack.d.ts +2 -0
- package/lib/stack/component/h-stack.js +46 -0
- package/lib/stack/component/index.d.ts +3 -0
- package/lib/stack/component/index.js +38 -0
- package/lib/stack/component/v-stack.d.ts +2 -0
- package/lib/stack/component/v-stack.js +43 -0
- package/lib/stack/index.d.ts +2 -0
- package/lib/stack/index.js +27 -0
- package/lib/stack/style/index.d.ts +21 -0
- package/lib/stack/style/index.js +59 -0
- package/lib/stack/type/index.d.ts +54 -0
- package/lib/stack/type/index.js +5 -0
- package/lib/switch/component/index.d.ts +2 -0
- package/lib/switch/component/index.js +67 -0
- package/lib/switch/index.d.ts +2 -0
- package/lib/switch/index.js +27 -0
- package/lib/switch/style/index.d.ts +5 -0
- package/lib/switch/style/index.js +20 -0
- package/lib/switch/type/index.d.ts +27 -0
- package/lib/switch/type/index.js +5 -0
- package/lib/table/component/action-button.d.ts +2 -0
- package/lib/table/component/action-button.js +102 -0
- package/lib/table/component/actions.d.ts +2 -0
- package/lib/table/component/actions.js +42 -0
- package/lib/table/component/constant.d.ts +1 -0
- package/lib/table/component/constant.js +12 -0
- package/lib/table/component/editor.d.ts +2 -0
- package/lib/table/component/editor.js +42 -0
- package/lib/table/component/filter.d.ts +3 -0
- package/lib/table/component/filter.js +62 -0
- package/lib/table/component/index.d.ts +7 -0
- package/lib/table/component/index.js +10 -0
- package/lib/table/component/link.d.ts +2 -0
- package/lib/table/component/link.js +27 -0
- package/lib/table/component/sort.d.ts +6 -0
- package/lib/table/component/sort.js +24 -0
- package/lib/table/component/switch.d.ts +2 -0
- package/lib/table/component/switch.js +34 -0
- package/lib/table/component/table-body.d.ts +6 -0
- package/lib/table/component/table-body.js +95 -0
- package/lib/table/component/table.d.ts +10 -0
- package/lib/table/component/table.js +243 -0
- package/lib/table/component/time.d.ts +2 -0
- package/lib/table/component/time.js +19 -0
- package/lib/table/component/utils.d.ts +120 -0
- package/lib/table/component/utils.js +235 -0
- package/lib/table/component/wrapper.d.ts +6 -0
- package/lib/table/component/wrapper.js +37 -0
- package/lib/table/hook/index.d.ts +7 -0
- package/lib/table/hook/index.js +40 -0
- package/lib/table/hook/search.d.ts +5 -0
- package/lib/table/hook/search.js +138 -0
- package/lib/table/index.d.ts +3 -0
- package/lib/table/index.js +38 -0
- package/lib/table/style/index.d.ts +9 -0
- package/lib/table/style/index.js +23 -0
- package/lib/table/type/action.d.ts +48 -0
- package/lib/table/type/action.js +5 -0
- package/lib/table/type/column.d.ts +110 -0
- package/lib/table/type/column.js +5 -0
- package/lib/table/type/index.d.ts +113 -0
- package/lib/table/type/index.js +27 -0
- package/lib/tabs/component/constant.d.ts +2 -0
- package/lib/tabs/component/constant.js +8 -0
- package/lib/tabs/component/index.d.ts +2 -0
- package/lib/tabs/component/index.js +25 -0
- package/lib/tabs/component/utils.d.ts +24 -0
- package/lib/tabs/component/utils.js +63 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +27 -0
- package/lib/tabs/style/index.d.ts +5 -0
- package/lib/tabs/style/index.js +17 -0
- package/lib/tabs/type/index.d.ts +20 -0
- package/lib/tabs/type/index.js +5 -0
- package/lib/text/component/index.d.ts +3 -0
- package/lib/text/component/index.js +78 -0
- package/lib/text/component/use-text.d.ts +4 -0
- package/lib/text/component/use-text.js +31 -0
- package/lib/text/component/utils.d.ts +3 -0
- package/lib/text/component/utils.js +15 -0
- package/lib/text/index.d.ts +2 -0
- package/lib/text/index.js +27 -0
- package/lib/text/style/index.d.ts +5 -0
- package/lib/text/style/index.js +15 -0
- package/lib/text/type/index.d.ts +19 -0
- package/lib/text/type/index.js +5 -0
- package/lib/tooltip/component/index.d.ts +48 -0
- package/lib/tooltip/component/index.js +28 -0
- package/lib/tooltip/index.d.ts +2 -0
- package/lib/tooltip/index.js +27 -0
- package/lib/tooltip/type/index.d.ts +8 -0
- package/lib/tooltip/type/index.js +5 -0
- package/lib/tree/component/index.d.ts +2 -0
- package/lib/tree/component/index.js +30 -0
- package/lib/tree/component/utils.d.ts +1 -0
- package/lib/tree/component/utils.js +9 -0
- package/lib/tree/index.d.ts +2 -0
- package/lib/tree/index.js +27 -0
- package/lib/tree/style/index.d.ts +4 -0
- package/lib/tree/style/index.js +14 -0
- package/lib/tree/type/index.d.ts +2 -0
- package/lib/tree/type/index.js +5 -0
- package/lib/tree-select/component/index.d.ts +2 -0
- package/lib/tree-select/component/index.js +22 -0
- package/lib/tree-select/component/use-tree-select.d.ts +2 -0
- package/lib/tree-select/component/use-tree-select.js +66 -0
- package/lib/tree-select/index.d.ts +2 -0
- package/lib/tree-select/index.js +27 -0
- package/lib/tree-select/style/index.d.ts +5 -0
- package/lib/tree-select/style/index.js +22 -0
- package/lib/tree-select/type/index.d.ts +23 -0
- package/lib/tree-select/type/index.js +5 -0
- package/lib/virtual-list/component/index.d.ts +2 -0
- package/lib/virtual-list/component/index.js +35 -0
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +27 -0
- package/lib/virtual-list/type/index.d.ts +17 -0
- package/lib/virtual-list/type/index.js +5 -0
- package/package.json +147 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["type", "placeholder"];
|
|
4
|
+
import { Input as EInput } from "./input";
|
|
5
|
+
import { Number } from "./number";
|
|
6
|
+
import { Password } from "./password";
|
|
7
|
+
import { Textarea } from "./text-area";
|
|
8
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
|
+
export var inputMap = {
|
|
10
|
+
input: EInput,
|
|
11
|
+
textarea: Textarea,
|
|
12
|
+
number: Number,
|
|
13
|
+
password: Password
|
|
14
|
+
};
|
|
15
|
+
export function Input(_ref) {
|
|
16
|
+
var _ref$type = _ref.type,
|
|
17
|
+
type = _ref$type === void 0 ? 'input' : _ref$type,
|
|
18
|
+
_ref$placeholder = _ref.placeholder,
|
|
19
|
+
placeholder = _ref$placeholder === void 0 ? 'Input' : _ref$placeholder,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
var Component = inputMap[type];
|
|
22
|
+
return _jsx(Component, _objectSpread({
|
|
23
|
+
placeholder: placeholder
|
|
24
|
+
}, props));
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { Input as AntdInput } from 'antd';
|
|
3
|
+
import { useInputValidate } from "./utils";
|
|
4
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
5
|
+
export function Input(props) {
|
|
6
|
+
var params = useInputValidate(props);
|
|
7
|
+
return _jsx(AntdInput, _objectSpread({}, params));
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InputNumberProps } from 'antd/lib/input-number';
|
|
2
|
+
import { InputProps } from '../type';
|
|
3
|
+
export declare function useNumber({ validate, onBlur, refs, allowResetOnEmpty, ...props }: InputProps): InputNumberProps;
|
|
4
|
+
export declare function Number(props: InputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["validate", "onBlur", "refs", "allowResetOnEmpty"];
|
|
4
|
+
import { mergeFunction } from "../../api";
|
|
5
|
+
import { InputNumber } from 'antd';
|
|
6
|
+
import _ from 'lodash';
|
|
7
|
+
import { usePrevious } from 'react-use';
|
|
8
|
+
import style from "../style";
|
|
9
|
+
import { formatNumber, useResetOnEmpty } from "./utils";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 前提条件: 1. 输入的内容为 1.1.1 2. precision 为 0 时
|
|
13
|
+
* Bug: Blur 后 Antd 会自动将显示的值 format 为 1,但 value 还是 1.1,导致真实值和显示的值不同
|
|
14
|
+
*/
|
|
15
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
16
|
+
function useChangeWhenHasPrecision(_ref) {
|
|
17
|
+
var value = _ref.value,
|
|
18
|
+
precision = _ref.precision,
|
|
19
|
+
onChange = _ref.onChange;
|
|
20
|
+
var prevValue = usePrevious(value);
|
|
21
|
+
function onBlur() {
|
|
22
|
+
if (prevValue === value || _.isNil(value) || _.isNil(precision)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
var numberValue = formatNumber(+value, precision);
|
|
26
|
+
onChange === null || onChange === void 0 || onChange(numberValue);
|
|
27
|
+
}
|
|
28
|
+
return onBlur;
|
|
29
|
+
}
|
|
30
|
+
export function useNumber(_ref2) {
|
|
31
|
+
var validate = _ref2.validate,
|
|
32
|
+
onBlur = _ref2.onBlur,
|
|
33
|
+
refs = _ref2.refs,
|
|
34
|
+
allowResetOnEmpty = _ref2.allowResetOnEmpty,
|
|
35
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
36
|
+
var changeOnBlur = useChangeWhenHasPrecision(props);
|
|
37
|
+
var resetOnEmpty = useResetOnEmpty(_objectSpread(_objectSpread({}, props), {}, {
|
|
38
|
+
allowResetOnEmpty: allowResetOnEmpty
|
|
39
|
+
}));
|
|
40
|
+
return _objectSpread({
|
|
41
|
+
ref: refs,
|
|
42
|
+
onBlur: mergeFunction(changeOnBlur, onBlur, resetOnEmpty)
|
|
43
|
+
}, props);
|
|
44
|
+
}
|
|
45
|
+
export function Number(props) {
|
|
46
|
+
var params = useNumber(props);
|
|
47
|
+
return _jsx(InputNumber, _objectSpread({
|
|
48
|
+
css: style.number
|
|
49
|
+
}, params));
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { Input } from 'antd';
|
|
3
|
+
import { useInputValidate } from "./utils";
|
|
4
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
5
|
+
export function Password(props) {
|
|
6
|
+
var params = useInputValidate(props);
|
|
7
|
+
return _jsx(Input.Password, _objectSpread({}, params));
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["resize"];
|
|
4
|
+
import { Input } from 'antd';
|
|
5
|
+
import style from "../style";
|
|
6
|
+
import { useInputValidate } from "./utils";
|
|
7
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
8
|
+
export function Textarea(_ref) {
|
|
9
|
+
var _ref$resize = _ref.resize,
|
|
10
|
+
resize = _ref$resize === void 0 ? true : _ref$resize,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
var params = useInputValidate(props);
|
|
13
|
+
return _jsx(Input.TextArea, _objectSpread({
|
|
14
|
+
css: style.textArea(resize)
|
|
15
|
+
}, params));
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { validateScript, validateString } from "../../api";
|
|
2
|
+
import { InputProps } from "..";
|
|
3
|
+
export declare const validateTypeMap: {
|
|
4
|
+
default: typeof validateString;
|
|
5
|
+
script: typeof validateScript;
|
|
6
|
+
};
|
|
7
|
+
export declare function validateInput(value: string, validate?: InputProps['validate']): boolean;
|
|
8
|
+
export declare function validateEnter(value: any, allowEnter: boolean): boolean;
|
|
9
|
+
export declare function useInputValidate({ value, onChange, onBlur, validate, refs, allowEnter, allowResetOnEmpty, ...props }: InputProps): any;
|
|
10
|
+
export declare function formatNumber(value: number, precision: number): number;
|
|
11
|
+
interface ResetOnEmptyProps extends InputProps {
|
|
12
|
+
validate?: (value: string | number) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function useResetOnEmpty({ name, allowResetOnEmpty, validate }: ResetOnEmptyProps): () => Promise<void>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["value", "onChange", "onBlur", "validate", "refs", "allowEnter", "allowResetOnEmpty"];
|
|
6
|
+
import { mergeFunction, validateScript, validateString } from "../../api";
|
|
7
|
+
import { useFormContext } from "../../form";
|
|
8
|
+
import { transformPathToName } from "../../form/component/utils";
|
|
9
|
+
import delay from 'delay';
|
|
10
|
+
import _ from 'lodash';
|
|
11
|
+
export var validateTypeMap = {
|
|
12
|
+
default: validateString,
|
|
13
|
+
script: validateScript
|
|
14
|
+
};
|
|
15
|
+
export function validateInput(value) {
|
|
16
|
+
var validate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
17
|
+
if (_.isFunction(validate)) {
|
|
18
|
+
return validate(value);
|
|
19
|
+
}
|
|
20
|
+
if (_.isRegExp(validate)) {
|
|
21
|
+
return validate.test(value);
|
|
22
|
+
}
|
|
23
|
+
var validateFn = validateTypeMap[validate] || validateTypeMap.default;
|
|
24
|
+
return validateFn(value);
|
|
25
|
+
}
|
|
26
|
+
export function validateEnter(value, allowEnter) {
|
|
27
|
+
return allowEnter || !_.includes(value, '\n');
|
|
28
|
+
}
|
|
29
|
+
export function useInputValidate(_ref) {
|
|
30
|
+
var value = _ref.value,
|
|
31
|
+
onChange = _ref.onChange,
|
|
32
|
+
onBlur = _ref.onBlur,
|
|
33
|
+
validate = _ref.validate,
|
|
34
|
+
refs = _ref.refs,
|
|
35
|
+
_ref$allowEnter = _ref.allowEnter,
|
|
36
|
+
allowEnter = _ref$allowEnter === void 0 ? true : _ref$allowEnter,
|
|
37
|
+
allowResetOnEmpty = _ref.allowResetOnEmpty,
|
|
38
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
+
var resetOnEmpty = useResetOnEmpty(_objectSpread(_objectSpread({}, props), {}, {
|
|
40
|
+
allowResetOnEmpty: allowResetOnEmpty,
|
|
41
|
+
validate: function validate(value) {
|
|
42
|
+
return !value;
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
var handleChange = function handleChange(e) {
|
|
46
|
+
var value = e.target.value;
|
|
47
|
+
if (validateInput(value, validate) && validateEnter(value, allowEnter)) {
|
|
48
|
+
onChange === null || onChange === void 0 || onChange(value);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return _objectSpread(_objectSpread({
|
|
52
|
+
maxLength: 255
|
|
53
|
+
}, props), {}, {
|
|
54
|
+
ref: refs,
|
|
55
|
+
autoComplete: 'off',
|
|
56
|
+
value: _.isNil(value) ? '' : value,
|
|
57
|
+
onChange: handleChange,
|
|
58
|
+
onBlur: mergeFunction(onBlur, resetOnEmpty)
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
export function formatNumber(value, precision) {
|
|
62
|
+
return +value.toFixed(precision);
|
|
63
|
+
}
|
|
64
|
+
export function useResetOnEmpty(_ref2) {
|
|
65
|
+
var name = _ref2.name,
|
|
66
|
+
allowResetOnEmpty = _ref2.allowResetOnEmpty,
|
|
67
|
+
validate = _ref2.validate;
|
|
68
|
+
var _useFormContext = useFormContext(),
|
|
69
|
+
form = _useFormContext.form;
|
|
70
|
+
function onBlur() {
|
|
71
|
+
return _onBlur.apply(this, arguments);
|
|
72
|
+
}
|
|
73
|
+
function _onBlur() {
|
|
74
|
+
_onBlur = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
75
|
+
var namePath, value;
|
|
76
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
77
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78
|
+
case 0:
|
|
79
|
+
if (!(!form || !allowResetOnEmpty)) {
|
|
80
|
+
_context.next = 2;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
return _context.abrupt("return");
|
|
84
|
+
case 2:
|
|
85
|
+
_context.next = 4;
|
|
86
|
+
return delay(20);
|
|
87
|
+
case 4:
|
|
88
|
+
namePath = transformPathToName(name);
|
|
89
|
+
value = form.getValue(namePath);
|
|
90
|
+
if (_.isNil(value) || validate !== null && validate !== void 0 && validate(value)) {
|
|
91
|
+
form.reset(namePath);
|
|
92
|
+
}
|
|
93
|
+
case 7:
|
|
94
|
+
case "end":
|
|
95
|
+
return _context.stop();
|
|
96
|
+
}
|
|
97
|
+
}, _callee);
|
|
98
|
+
}));
|
|
99
|
+
return _onBlur.apply(this, arguments);
|
|
100
|
+
}
|
|
101
|
+
return onBlur;
|
|
102
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
var style = {
|
|
5
|
+
wrapper: css(_templateObject || (_templateObject = _taggedTemplateLiteral([""]))),
|
|
6
|
+
number: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "]))),
|
|
7
|
+
textArea: function textArea(resize) {
|
|
8
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n resize: ", ";\n "])), !resize && 'none');
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export default style;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseComponentProps } from "../../api";
|
|
2
|
+
import { inputMap } from "../component";
|
|
3
|
+
import { validateTypeMap } from "../component/utils";
|
|
4
|
+
import { InputProps as AntdInputProps } from 'antd';
|
|
5
|
+
import { InputNumberProps } from 'antd/lib/input-number';
|
|
6
|
+
import { PasswordProps } from 'antd/lib/input/Password';
|
|
7
|
+
import { TextAreaProps } from 'antd/lib/input/TextArea';
|
|
8
|
+
type UnionType = BaseComponentProps & AntdInputProps & TextAreaProps & InputNumberProps & PasswordProps;
|
|
9
|
+
export interface InputProps extends Omit<UnionType, 'form' | 'onChange'> {
|
|
10
|
+
/**
|
|
11
|
+
* @description 输入框类型
|
|
12
|
+
* @default input
|
|
13
|
+
*/
|
|
14
|
+
type?: keyof typeof inputMap;
|
|
15
|
+
/**
|
|
16
|
+
* @description 校验规则,可以支持正则表达式或函数
|
|
17
|
+
* @default default
|
|
18
|
+
*/
|
|
19
|
+
validate?: keyof typeof validateTypeMap | RegExp | ((value: string) => boolean);
|
|
20
|
+
/**
|
|
21
|
+
* @description 是否允许输入框拉伸(当 `type` 为 `textarea` 时生效)
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
resize?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @description 是否允许输入换行(当 `type` 为 `textarea` 时生效)
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
allowEnter?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @description 当值为空时,是否重置输入框
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
allowResetOnEmpty?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @description 输入框值改变的回调
|
|
37
|
+
*/
|
|
38
|
+
onChange?(value?: string | number): void;
|
|
39
|
+
name?: string;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ConfirmModalProps, ModalFuncProps } from '../type';
|
|
2
|
+
export * from './open-loading';
|
|
3
|
+
export declare function openConfirm({ showCancel, ...props }: ConfirmModalProps): Promise<boolean>;
|
|
4
|
+
export declare function openSuccess(props: ModalFuncProps): Promise<void>;
|
|
5
|
+
export declare function openError(props: ModalFuncProps): Promise<void>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["showCancel"];
|
|
4
|
+
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled } from '@ant-design/icons';
|
|
5
|
+
import { Modal } from 'antd';
|
|
6
|
+
import { openModalFunction } from "./utils";
|
|
7
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
8
|
+
export * from "./open-loading";
|
|
9
|
+
export function openConfirm(_ref) {
|
|
10
|
+
var _ref$showCancel = _ref.showCancel,
|
|
11
|
+
showCancel = _ref$showCancel === void 0 ? true : _ref$showCancel,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var mergedProps = _objectSpread({
|
|
14
|
+
icon: _jsx(ExclamationCircleFilled, {
|
|
15
|
+
style: {
|
|
16
|
+
fontSize: 18
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
style: {
|
|
20
|
+
top: '30vh'
|
|
21
|
+
},
|
|
22
|
+
keyboard: false,
|
|
23
|
+
autoFocusButton: null,
|
|
24
|
+
cancelButtonProps: {
|
|
25
|
+
style: {
|
|
26
|
+
display: showCancel ? 'unset' : 'none'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, props);
|
|
30
|
+
return new Promise(function (resolve) {
|
|
31
|
+
Modal.confirm(_objectSpread(_objectSpread({}, mergedProps), {}, {
|
|
32
|
+
onOk: function onOk() {
|
|
33
|
+
return resolve(true);
|
|
34
|
+
},
|
|
35
|
+
onCancel: function onCancel() {
|
|
36
|
+
return resolve(false);
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export function openSuccess(props) {
|
|
42
|
+
return openModalFunction(_objectSpread({
|
|
43
|
+
type: 'success',
|
|
44
|
+
icon: _jsx(CheckCircleFilled, {
|
|
45
|
+
style: {
|
|
46
|
+
fontSize: 20
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
}, props));
|
|
50
|
+
}
|
|
51
|
+
export function openError(props) {
|
|
52
|
+
return openModalFunction(_objectSpread({
|
|
53
|
+
type: 'error',
|
|
54
|
+
icon: _jsx(CloseCircleFilled, {
|
|
55
|
+
style: {
|
|
56
|
+
fontSize: 20
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
}, props));
|
|
60
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["maskStyle"];
|
|
4
|
+
import { mountComponent } from "../../api";
|
|
5
|
+
import { CenterStack } from "../../stack";
|
|
6
|
+
import { Spin } from 'antd';
|
|
7
|
+
import style from "../style";
|
|
8
|
+
import { generateSpinProps } from "./utils";
|
|
9
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
10
|
+
function LoadingContainer(props) {
|
|
11
|
+
var _generateSpinProps = generateSpinProps(props),
|
|
12
|
+
maskStyle = _generateSpinProps.maskStyle,
|
|
13
|
+
spinProps = _objectWithoutProperties(_generateSpinProps, _excluded);
|
|
14
|
+
return _jsx(CenterStack, {
|
|
15
|
+
css: style.wrapper(maskStyle),
|
|
16
|
+
children: _jsx(Spin, _objectSpread({}, spinProps))
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export function openLoading(props) {
|
|
20
|
+
return mountComponent(LoadingContainer, props);
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["showOk", "duration"],
|
|
4
|
+
_excluded2 = ["type", "duration"];
|
|
5
|
+
import { Modal } from 'antd';
|
|
6
|
+
import _ from 'lodash';
|
|
7
|
+
function mergeProps(props) {
|
|
8
|
+
var showOk = props.showOk,
|
|
9
|
+
_props$duration = props.duration,
|
|
10
|
+
duration = _props$duration === void 0 ? 3000 : _props$duration,
|
|
11
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
12
|
+
return _.merge({
|
|
13
|
+
style: {
|
|
14
|
+
top: '56px'
|
|
15
|
+
},
|
|
16
|
+
keyboard: false,
|
|
17
|
+
closable: true,
|
|
18
|
+
className: showOk ? '' : '',
|
|
19
|
+
okButtonProps: {
|
|
20
|
+
style: {
|
|
21
|
+
display: showOk ? 'unset' : 'none'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
duration: showOk ? 0 : duration
|
|
25
|
+
}, restProps);
|
|
26
|
+
}
|
|
27
|
+
export function openModalFunction(props) {
|
|
28
|
+
var _mergeProps = mergeProps(props),
|
|
29
|
+
_mergeProps$type = _mergeProps.type,
|
|
30
|
+
type = _mergeProps$type === void 0 ? 'info' : _mergeProps$type,
|
|
31
|
+
duration = _mergeProps.duration,
|
|
32
|
+
restProps = _objectWithoutProperties(_mergeProps, _excluded2);
|
|
33
|
+
return new Promise(function (resolve) {
|
|
34
|
+
var modal = Modal[type](_objectSpread(_objectSpread({}, restProps), {}, {
|
|
35
|
+
onOk: function onOk() {
|
|
36
|
+
return resolve();
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
if (duration) {
|
|
40
|
+
setTimeout(function () {
|
|
41
|
+
modal.destroy();
|
|
42
|
+
resolve();
|
|
43
|
+
}, duration);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export function generateSpinProps(props) {
|
|
48
|
+
return _.omit(props, ['unmount', 'getContainer']);
|
|
49
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
var style = {
|
|
5
|
+
wrapper: function wrapper(maskStyle) {
|
|
6
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n z-index: 99999;\n inset: 0;\n\n ", ";\n "])), maskStyle);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
export default style;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ModalFuncProps as AntdModalFuncProps } from 'antd/lib/modal/Modal';
|
|
2
|
+
import { SpinProps } from 'antd/lib/spin';
|
|
3
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
export interface ConfirmModalProps extends AntdModalFuncProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description 弹窗标题
|
|
7
|
+
*/
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* @description 是否显示取消按钮
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
showCancel?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ModalFuncProps extends AntdModalFuncProps {
|
|
16
|
+
/**
|
|
17
|
+
* @description 弹窗标题
|
|
18
|
+
*/
|
|
19
|
+
title: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* @description 是否显示确定按钮,当 `showOk` 为 `true` 时,弹框不会自动关闭
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
showOk?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @description 显示时长,单位为毫秒,超时后自动关闭,设置为 `0` 或 `false` 则不会自动关闭
|
|
27
|
+
* @default 3000
|
|
28
|
+
*/
|
|
29
|
+
duration?: number | false;
|
|
30
|
+
}
|
|
31
|
+
export interface OpenLoadingProps extends SpinProps {
|
|
32
|
+
/**
|
|
33
|
+
* @description 遮罩样式
|
|
34
|
+
*/
|
|
35
|
+
maskStyle?: CSSProperties;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formPropsKeys: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import { antdFormPropsKeys } from "../../form/component/constant";
|
|
3
|
+
export var formPropsKeys = [].concat(_toConsumableArray(antdFormPropsKeys), ['children', 'content', 'footer', 'onValidate', 'onMount', 'validateOnMount', 'focusFirstOnMount', 'initialContext', 'formItemMarginBottom', 'loading', 'debug']);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["className", "children"];
|
|
4
|
+
import { useFormContext } from "../../form";
|
|
5
|
+
import { Portal } from "../../portal";
|
|
6
|
+
import { HStack } from "../../stack";
|
|
7
|
+
import { cx } from '@emotion/css';
|
|
8
|
+
import _ from 'lodash';
|
|
9
|
+
import { useMount } from 'react-use';
|
|
10
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
+
export function Footer(_ref) {
|
|
12
|
+
var className = _ref.className,
|
|
13
|
+
Children = _ref.children,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
var _useFormContext = useFormContext(),
|
|
16
|
+
setModalProps = _useFormContext.setModalProps;
|
|
17
|
+
useMount(function () {
|
|
18
|
+
setModalProps({
|
|
19
|
+
footer: null
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var component = _.isFunction(Children) ? _jsx(Children, {}) : Children;
|
|
23
|
+
return _jsx(Portal, {
|
|
24
|
+
container: function container(current) {
|
|
25
|
+
return current.closest('.ant-modal-content');
|
|
26
|
+
},
|
|
27
|
+
children: _jsx(HStack, _objectSpread(_objectSpread({
|
|
28
|
+
className: cx('ant-modal-footer', className),
|
|
29
|
+
justify: "right"
|
|
30
|
+
}, props), {}, {
|
|
31
|
+
children: component
|
|
32
|
+
}))
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { OpenModalProps } from '../type';
|
|
3
|
+
import { Footer } from './footer';
|
|
4
|
+
import { Title } from './title';
|
|
5
|
+
export declare const Modal: ModalType;
|
|
6
|
+
type ModalType = FC<OpenModalProps> & {
|
|
7
|
+
Footer: typeof Footer;
|
|
8
|
+
Title: typeof Title;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { Form } from "../../form";
|
|
3
|
+
import { Text } from "../../text";
|
|
4
|
+
import { Modal as AntdModal } from 'antd';
|
|
5
|
+
import { ModalProvider } from "../hook";
|
|
6
|
+
import { Footer } from "./footer";
|
|
7
|
+
import { Title } from "./title";
|
|
8
|
+
import { useModal } from "./use-modal";
|
|
9
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
10
|
+
export var Modal = function Modal(props) {
|
|
11
|
+
var _useModal = useModal(props),
|
|
12
|
+
context = _useModal.context,
|
|
13
|
+
open = _useModal.open,
|
|
14
|
+
modalProps = _useModal.modalProps,
|
|
15
|
+
formProps = _useModal.formProps;
|
|
16
|
+
var confirmLoading = context.confirmLoading,
|
|
17
|
+
ok = context.ok,
|
|
18
|
+
close = context.close;
|
|
19
|
+
return _jsx(ModalProvider, _objectSpread(_objectSpread({}, context), {}, {
|
|
20
|
+
children: _jsx(AntdModal, _objectSpread(_objectSpread({
|
|
21
|
+
open: open,
|
|
22
|
+
destroyOnClose: true
|
|
23
|
+
}, modalProps), {}, {
|
|
24
|
+
title: _jsx(Text, {
|
|
25
|
+
children: modalProps.title
|
|
26
|
+
}),
|
|
27
|
+
confirmLoading: confirmLoading,
|
|
28
|
+
onCancel: close,
|
|
29
|
+
onOk: ok,
|
|
30
|
+
children: _jsx(Form, _objectSpread(_objectSpread({}, formProps), {}, {
|
|
31
|
+
context: context
|
|
32
|
+
}))
|
|
33
|
+
}))
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
Modal.Footer = Footer;
|
|
37
|
+
Modal.Title = Title;
|