@sheinx/hooks 3.0.0-alpha.2 → 3.0.0-alpha.20
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/cjs/common/type.d.ts +2 -0
- package/cjs/common/type.d.ts.map +1 -1
- package/cjs/common/use-click-away/index.js +1 -0
- package/cjs/common/use-default-value/index.js +1 -0
- package/cjs/common/use-drag-mock/index.d.ts +3 -11
- package/cjs/common/use-drag-mock/index.d.ts.map +1 -1
- package/cjs/common/use-drag-mock/index.js +28 -56
- package/cjs/common/use-drag-mock/use-drag-mock.d.ts +11 -0
- package/cjs/common/use-drag-mock/use-drag-mock.d.ts.map +1 -0
- package/cjs/common/use-drag-mock/use-drag-mock.js +61 -0
- package/cjs/common/use-drag-mock/use-drag-move.d.ts +11 -0
- package/cjs/common/use-drag-mock/use-drag-move.d.ts.map +1 -0
- package/cjs/common/use-drag-mock/use-drag-move.js +73 -0
- package/cjs/common/use-drag-mock/use-drag-resize.d.ts +15 -0
- package/cjs/common/use-drag-mock/use-drag-resize.d.ts.map +1 -0
- package/cjs/common/use-drag-mock/use-drag-resize.js +89 -0
- package/cjs/common/use-filter/index.d.ts +2 -0
- package/cjs/common/use-filter/index.d.ts.map +1 -0
- package/cjs/common/use-filter/index.js +20 -0
- package/cjs/common/use-filter/use-filter.d.ts +21 -0
- package/cjs/common/use-filter/use-filter.d.ts.map +1 -0
- package/cjs/common/use-filter/use-filter.js +163 -0
- package/cjs/common/use-filter/use-filter.type.d.ts +18 -0
- package/cjs/common/use-filter/use-filter.type.d.ts.map +1 -0
- package/cjs/common/use-fork-ref/index.js +1 -0
- package/cjs/common/use-fork-ref/setRef.d.ts +0 -1
- package/cjs/common/use-fork-ref/setRef.d.ts.map +1 -1
- package/cjs/common/use-fork-ref/setRef.js +0 -1
- package/cjs/common/use-func-change/index.js +1 -0
- package/cjs/common/use-func-change/use-func-change.d.ts.map +1 -1
- package/cjs/common/use-func-change/use-func-change.js +1 -1
- package/cjs/common/use-input-able/index.js +1 -0
- package/cjs/common/use-key-event/index.js +1 -0
- package/cjs/common/use-latest-obj/index.js +1 -0
- package/cjs/common/use-list-select/index.js +1 -0
- package/cjs/common/use-pagination-list/index.js +1 -0
- package/cjs/common/use-persist-fn/index.js +1 -0
- package/cjs/common/use-position-style/get-position-style.d.ts +1 -0
- package/cjs/common/use-position-style/get-position-style.d.ts.map +1 -1
- package/cjs/common/use-position-style/get-position-style.js +6 -2
- package/cjs/common/use-position-style/index.d.ts +3 -3
- package/cjs/common/use-position-style/index.d.ts.map +1 -1
- package/cjs/common/use-position-style/index.js +38 -26
- package/cjs/common/use-previous/index.js +1 -0
- package/cjs/common/use-render/index.js +1 -0
- package/cjs/common/use-resize/index.js +1 -0
- package/cjs/common/use-safe-state/index.js +1 -0
- package/cjs/common/use-style/index.js +1 -0
- package/cjs/common/use-toggle/index.js +1 -0
- package/cjs/common/use-transform/index.js +1 -0
- package/cjs/common/use-unmounted-ref/index.js +1 -0
- package/cjs/components/use-button/index.js +1 -0
- package/cjs/components/use-button/use-button.d.ts +1 -1
- package/cjs/components/use-button/use-button.d.ts.map +1 -1
- package/cjs/components/use-button/use-button.js +2 -2
- package/cjs/components/use-button/use-button.type.d.ts +55 -0
- package/cjs/components/use-button/use-button.type.d.ts.map +1 -1
- package/cjs/components/use-carousel/index.js +1 -0
- package/cjs/components/use-cascader/index.d.ts +3 -0
- package/cjs/components/use-cascader/index.d.ts.map +1 -0
- package/cjs/components/use-cascader/index.js +20 -0
- package/cjs/components/use-cascader/use-cascader.d.ts +36 -0
- package/cjs/components/use-cascader/use-cascader.d.ts.map +1 -0
- package/cjs/components/use-cascader/use-cascader.js +47 -0
- package/cjs/components/use-cascader/use-cascader.type.d.ts +16 -0
- package/cjs/components/use-cascader/use-cascader.type.d.ts.map +1 -0
- package/cjs/components/use-check/index.js +1 -0
- package/cjs/components/use-check/use-check.type.d.ts +25 -0
- package/cjs/components/use-check/use-check.type.d.ts.map +1 -1
- package/cjs/components/use-collapse/index.d.ts +5 -0
- package/cjs/components/use-collapse/index.d.ts.map +1 -0
- package/cjs/components/use-collapse/index.js +27 -0
- package/cjs/components/use-collapse/use-collapse-item.d.ts +22 -0
- package/cjs/components/use-collapse/use-collapse-item.d.ts.map +1 -0
- package/cjs/components/use-collapse/use-collapse-item.js +72 -0
- package/cjs/components/use-collapse/use-collapse-item.type.d.ts +29 -0
- package/cjs/components/use-collapse/use-collapse-item.type.d.ts.map +1 -0
- package/cjs/components/use-collapse/use-collapse-item.type.js +5 -0
- package/cjs/components/use-collapse/use-collapse.d.ts +8 -0
- package/cjs/components/use-collapse/use-collapse.d.ts.map +1 -0
- package/cjs/components/use-collapse/use-collapse.js +51 -0
- package/cjs/components/use-collapse/use-collapse.type.d.ts +21 -0
- package/cjs/components/use-collapse/use-collapse.type.d.ts.map +1 -0
- package/cjs/components/use-collapse/use-collapse.type.js +5 -0
- package/cjs/components/use-datepicker/index.js +1 -0
- package/cjs/components/use-datepicker/use-datepicker-format.js +1 -1
- package/cjs/components/use-datepicker/use-time.js +1 -1
- package/cjs/components/use-descriptions/index.d.ts +3 -0
- package/cjs/components/use-descriptions/index.d.ts.map +1 -0
- package/cjs/components/use-descriptions/index.js +20 -0
- package/cjs/components/use-descriptions/use-descriptions.d.ts +6 -0
- package/cjs/components/use-descriptions/use-descriptions.d.ts.map +1 -0
- package/cjs/components/use-descriptions/use-descriptions.js +77 -0
- package/cjs/components/use-descriptions/use-descriptions.type.d.ts +65 -0
- package/cjs/components/use-descriptions/use-descriptions.type.d.ts.map +1 -0
- package/cjs/components/use-descriptions/use-descriptions.type.js +5 -0
- package/cjs/components/use-form/form-bind-context.d.ts.map +1 -1
- package/cjs/components/use-form/form-bind-context.js +1 -0
- package/cjs/components/use-form/form-config-context.d.ts.map +1 -1
- package/cjs/components/use-form/form-config-context.js +1 -0
- package/cjs/components/use-form/form-func-context.d.ts.map +1 -1
- package/cjs/components/use-form/form-func-context.js +1 -0
- package/cjs/components/use-form/index.js +1 -0
- package/cjs/components/use-form/use-form-control/index.js +1 -0
- package/cjs/components/use-form/use-form-fieldset/fieldset-context.d.ts.map +1 -1
- package/cjs/components/use-form/use-form-fieldset/fieldset-context.js +1 -0
- package/cjs/components/use-form/use-form-fieldset/index.js +1 -0
- package/cjs/components/use-form/use-form-flow/index.js +1 -0
- package/cjs/components/use-form/use-form-item/form-item-context.d.ts.map +1 -1
- package/cjs/components/use-form/use-form-item/form-item-context.js +1 -0
- package/cjs/components/use-form/use-form-item/index.js +1 -0
- package/cjs/components/use-form/use-form-item/use-form-item.js +1 -1
- package/cjs/components/use-form/use-form.d.ts.map +1 -1
- package/cjs/components/use-form/use-form.js +9 -2
- package/cjs/components/use-form/use-form.type.d.ts +1 -0
- package/cjs/components/use-form/use-form.type.d.ts.map +1 -1
- package/cjs/components/use-image/index.js +1 -0
- package/cjs/components/use-image/use-image.type.d.ts +76 -0
- package/cjs/components/use-image/use-image.type.d.ts.map +1 -1
- package/cjs/components/use-input/index.js +1 -0
- package/cjs/components/use-input/use-input-format.type.d.ts +25 -5
- package/cjs/components/use-input/use-input-format.type.d.ts.map +1 -1
- package/cjs/components/use-input/use-input-number.d.ts +1 -1
- package/cjs/components/use-input/use-input-number.d.ts.map +1 -1
- package/cjs/components/use-input/use-input-number.js +1 -0
- package/cjs/components/use-input/use-input-number.type.d.ts +17 -0
- package/cjs/components/use-input/use-input-number.type.d.ts.map +1 -1
- package/cjs/components/use-input/use-input-password.type.d.ts +21 -0
- package/cjs/components/use-input/use-input-password.type.d.ts.map +1 -1
- package/cjs/components/use-input/use-input.d.ts.map +1 -1
- package/cjs/components/use-input/use-input.js +9 -3
- package/cjs/components/use-input/use-input.type.d.ts +44 -0
- package/cjs/components/use-input/use-input.type.d.ts.map +1 -1
- package/cjs/components/use-menu/index.js +1 -0
- package/cjs/components/use-pagination/index.js +1 -0
- package/cjs/components/use-popup/index.js +1 -0
- package/cjs/components/use-popup/popup-context.d.ts.map +1 -1
- package/cjs/components/use-popup/popup-context.js +1 -0
- package/cjs/components/use-popup/use-popup.d.ts.map +1 -1
- package/cjs/components/use-popup/use-popup.js +4 -1
- package/cjs/components/use-select/index.d.ts +1 -0
- package/cjs/components/use-select/index.d.ts.map +1 -1
- package/cjs/components/use-select/index.js +9 -1
- package/cjs/components/use-select/use-select-group.d.ts +7 -0
- package/cjs/components/use-select/use-select-group.d.ts.map +1 -0
- package/cjs/components/use-select/use-select-group.js +51 -0
- package/cjs/components/use-select/use-select-group.type.d.ts +5 -0
- package/cjs/components/use-select/use-select-group.type.d.ts.map +1 -0
- package/cjs/components/use-select/use-select-group.type.js +5 -0
- package/cjs/components/use-select/use-select.d.ts.map +1 -1
- package/cjs/components/use-select/use-select.js +4 -4
- package/cjs/components/use-select/use-select.type.d.ts +41 -1
- package/cjs/components/use-select/use-select.type.d.ts.map +1 -1
- package/cjs/components/use-slider/index.js +1 -0
- package/cjs/components/use-slider/use-slider.d.ts +2 -2
- package/cjs/components/use-slider/use-slider.js +4 -4
- package/cjs/components/use-table/index.js +1 -0
- package/cjs/components/use-table/use-table-columns.js +9 -12
- package/cjs/components/use-table/use-table-layout.d.ts +1 -0
- package/cjs/components/use-table/use-table-layout.d.ts.map +1 -1
- package/cjs/components/use-table/use-table-layout.js +26 -13
- package/cjs/components/use-table/use-table-virtual.d.ts.map +1 -1
- package/cjs/components/use-table/use-table-virtual.js +12 -2
- package/cjs/components/use-tabs/context.d.ts.map +1 -1
- package/cjs/components/use-tabs/context.js +1 -0
- package/cjs/components/use-tabs/context.type.d.ts +25 -0
- package/cjs/components/use-tabs/context.type.d.ts.map +1 -1
- package/cjs/components/use-tabs/index.js +1 -0
- package/cjs/components/use-tabs/use-tabs.type.d.ts +9 -0
- package/cjs/components/use-tabs/use-tabs.type.d.ts.map +1 -1
- package/cjs/components/use-textarea/index.js +1 -0
- package/cjs/components/use-textarea/use-textarea.type.d.ts +29 -0
- package/cjs/components/use-textarea/use-textarea.type.d.ts.map +1 -1
- package/cjs/components/use-transfer/index.js +1 -0
- package/cjs/components/use-transfer/use-transfer.type.d.ts +53 -0
- package/cjs/components/use-transfer/use-transfer.type.d.ts.map +1 -1
- package/cjs/components/use-tree/index.d.ts +1 -2
- package/cjs/components/use-tree/index.d.ts.map +1 -1
- package/cjs/components/use-tree/index.js +2 -8
- package/cjs/components/use-tree/use-tree-node.d.ts +2 -1
- package/cjs/components/use-tree/use-tree-node.d.ts.map +1 -1
- package/cjs/components/use-tree/use-tree-node.js +7 -7
- package/cjs/components/use-tree/use-tree-node.type.d.ts +2 -2
- package/cjs/components/use-tree/use-tree-node.type.d.ts.map +1 -1
- package/cjs/components/use-tree/use-tree.d.ts +25 -2
- package/cjs/components/use-tree/use-tree.d.ts.map +1 -1
- package/cjs/components/use-tree/use-tree.js +96 -44
- package/cjs/components/use-tree/use-tree.type.d.ts +69 -4
- package/cjs/components/use-tree/use-tree.type.d.ts.map +1 -1
- package/cjs/components/use-treeselect/index.d.ts +4 -0
- package/cjs/components/use-treeselect/index.d.ts.map +1 -0
- package/cjs/components/use-treeselect/index.js +27 -0
- package/cjs/components/use-treeselect/use-tiled.d.ts +13 -0
- package/cjs/components/use-treeselect/use-tiled.d.ts.map +1 -0
- package/cjs/components/use-treeselect/use-tiled.js +99 -0
- package/cjs/components/use-treeselect/use-tiled.type.d.ts +15 -0
- package/cjs/components/use-treeselect/use-tiled.type.d.ts.map +1 -0
- package/cjs/components/use-treeselect/use-tiled.type.js +5 -0
- package/cjs/components/use-treeselect/use-treeselect.d.ts +7 -0
- package/cjs/components/use-treeselect/use-treeselect.d.ts.map +1 -0
- package/cjs/components/use-treeselect/use-treeselect.js +29 -0
- package/cjs/components/use-treeselect/use-treeselect.type.d.ts +9 -0
- package/cjs/components/use-treeselect/use-treeselect.type.d.ts.map +1 -0
- package/cjs/components/use-treeselect/use-treeselect.type.js +5 -0
- package/cjs/components/use-upload/index.js +1 -0
- package/cjs/components/use-upload/use-upload.js +8 -8
- package/cjs/components/use-upload/use-upload.type.d.ts +5 -1
- package/cjs/components/use-upload/use-upload.type.d.ts.map +1 -1
- package/cjs/components/use-validate/index.js +1 -0
- package/cjs/index.d.ts +5 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +61 -0
- package/cjs/utils/attribute.d.ts +1 -1
- package/cjs/utils/attribute.d.ts.map +1 -1
- package/cjs/utils/attribute.js +3 -1
- package/cjs/utils/document.d.ts.map +1 -1
- package/cjs/utils/document.js +8 -1
- package/cjs/utils/dom/element.d.ts +2 -1
- package/cjs/utils/dom/element.d.ts.map +1 -1
- package/cjs/utils/dom/element.js +18 -7
- package/cjs/utils/dom/index.d.ts +3 -0
- package/cjs/utils/dom/index.d.ts.map +1 -1
- package/cjs/utils/dom/index.js +32 -10
- package/cjs/utils/dom/ready.d.ts.map +1 -1
- package/cjs/utils/dom/ready.js +2 -0
- package/cjs/utils/dom/responsiveObserve.d.ts +13 -0
- package/cjs/utils/dom/responsiveObserve.d.ts.map +1 -0
- package/cjs/utils/dom/responsiveObserve.js +89 -0
- package/cjs/utils/dom/responsiveObserve.type.d.ts +5 -0
- package/cjs/utils/dom/responsiveObserve.type.d.ts.map +1 -0
- package/cjs/utils/dom/responsiveObserve.type.js +5 -0
- package/cjs/utils/immer.d.ts +10 -0
- package/cjs/utils/immer.d.ts.map +1 -0
- package/cjs/utils/immer.js +21 -0
- package/cjs/utils/index.d.ts +2 -0
- package/cjs/utils/index.d.ts.map +1 -1
- package/cjs/utils/index.js +24 -0
- package/cjs/utils/is.d.ts +2 -0
- package/cjs/utils/is.d.ts.map +1 -1
- package/cjs/utils/is.js +15 -4
- package/cjs/utils/render.d.ts.map +1 -1
- package/cjs/utils/tree.d.ts +14 -0
- package/cjs/utils/tree.d.ts.map +1 -0
- package/cjs/utils/tree.js +93 -0
- package/cjs/utils/uid.js +2 -2
- package/esm/common/type.d.ts +2 -0
- package/esm/common/type.d.ts.map +1 -1
- package/esm/common/use-click-away/index.js +1 -0
- package/esm/common/use-default-value/index.js +1 -0
- package/esm/common/use-drag-mock/index.d.ts +3 -11
- package/esm/common/use-drag-mock/index.d.ts.map +1 -1
- package/esm/common/use-drag-mock/index.js +28 -56
- package/esm/common/use-drag-mock/use-drag-mock.d.ts +11 -0
- package/esm/common/use-drag-mock/use-drag-mock.d.ts.map +1 -0
- package/esm/common/use-drag-mock/use-drag-mock.js +61 -0
- package/esm/common/use-drag-mock/use-drag-move.d.ts +11 -0
- package/esm/common/use-drag-mock/use-drag-move.d.ts.map +1 -0
- package/esm/common/use-drag-mock/use-drag-move.js +73 -0
- package/esm/common/use-drag-mock/use-drag-resize.d.ts +15 -0
- package/esm/common/use-drag-mock/use-drag-resize.d.ts.map +1 -0
- package/esm/common/use-drag-mock/use-drag-resize.js +89 -0
- package/esm/common/use-filter/index.d.ts +2 -0
- package/esm/common/use-filter/index.d.ts.map +1 -0
- package/esm/common/use-filter/index.js +20 -0
- package/esm/common/use-filter/use-filter.d.ts +21 -0
- package/esm/common/use-filter/use-filter.d.ts.map +1 -0
- package/esm/common/use-filter/use-filter.js +163 -0
- package/esm/common/use-filter/use-filter.type.d.ts +18 -0
- package/esm/common/use-filter/use-filter.type.d.ts.map +1 -0
- package/esm/common/use-filter/use-filter.type.js +5 -0
- package/esm/common/use-fork-ref/index.js +1 -0
- package/esm/common/use-fork-ref/setRef.d.ts +0 -1
- package/esm/common/use-fork-ref/setRef.d.ts.map +1 -1
- package/esm/common/use-fork-ref/setRef.js +0 -1
- package/esm/common/use-func-change/index.js +1 -0
- package/esm/common/use-func-change/use-func-change.d.ts.map +1 -1
- package/esm/common/use-func-change/use-func-change.js +1 -1
- package/esm/common/use-input-able/index.js +1 -0
- package/esm/common/use-key-event/index.js +1 -0
- package/esm/common/use-latest-obj/index.js +1 -0
- package/esm/common/use-list-select/index.js +1 -0
- package/esm/common/use-pagination-list/index.js +1 -0
- package/esm/common/use-persist-fn/index.js +1 -0
- package/esm/common/use-position-style/get-position-style.d.ts +1 -0
- package/esm/common/use-position-style/get-position-style.d.ts.map +1 -1
- package/esm/common/use-position-style/get-position-style.js +6 -2
- package/esm/common/use-position-style/index.d.ts +3 -3
- package/esm/common/use-position-style/index.d.ts.map +1 -1
- package/esm/common/use-position-style/index.js +38 -26
- package/esm/common/use-previous/index.js +1 -0
- package/esm/common/use-render/index.js +1 -0
- package/esm/common/use-resize/index.js +1 -0
- package/esm/common/use-safe-state/index.js +1 -0
- package/esm/common/use-style/index.js +1 -0
- package/esm/common/use-toggle/index.js +1 -0
- package/esm/common/use-transform/index.js +1 -0
- package/esm/common/use-unmounted-ref/index.js +1 -0
- package/esm/components/use-button/index.js +1 -0
- package/esm/components/use-button/use-button.d.ts +1 -1
- package/esm/components/use-button/use-button.d.ts.map +1 -1
- package/esm/components/use-button/use-button.js +2 -2
- package/esm/components/use-button/use-button.type.d.ts +55 -0
- package/esm/components/use-button/use-button.type.d.ts.map +1 -1
- package/esm/components/use-carousel/index.js +1 -0
- package/esm/components/use-cascader/index.d.ts +3 -0
- package/esm/components/use-cascader/index.d.ts.map +1 -0
- package/esm/components/use-cascader/index.js +20 -0
- package/esm/components/use-cascader/use-cascader.d.ts +36 -0
- package/esm/components/use-cascader/use-cascader.d.ts.map +1 -0
- package/esm/components/use-cascader/use-cascader.js +47 -0
- package/esm/components/use-cascader/use-cascader.type.d.ts +16 -0
- package/esm/components/use-cascader/use-cascader.type.d.ts.map +1 -0
- package/esm/components/use-cascader/use-cascader.type.js +5 -0
- package/esm/components/use-check/index.js +1 -0
- package/esm/components/use-check/use-check.type.d.ts +25 -0
- package/esm/components/use-check/use-check.type.d.ts.map +1 -1
- package/esm/components/use-collapse/index.d.ts +5 -0
- package/esm/components/use-collapse/index.d.ts.map +1 -0
- package/esm/components/use-collapse/index.js +27 -0
- package/esm/components/use-collapse/use-collapse-item.d.ts +22 -0
- package/esm/components/use-collapse/use-collapse-item.d.ts.map +1 -0
- package/esm/components/use-collapse/use-collapse-item.js +72 -0
- package/esm/components/use-collapse/use-collapse-item.type.d.ts +29 -0
- package/esm/components/use-collapse/use-collapse-item.type.d.ts.map +1 -0
- package/esm/components/use-collapse/use-collapse-item.type.js +5 -0
- package/esm/components/use-collapse/use-collapse.d.ts +8 -0
- package/esm/components/use-collapse/use-collapse.d.ts.map +1 -0
- package/esm/components/use-collapse/use-collapse.js +51 -0
- package/esm/components/use-collapse/use-collapse.type.d.ts +21 -0
- package/esm/components/use-collapse/use-collapse.type.d.ts.map +1 -0
- package/esm/components/use-collapse/use-collapse.type.js +5 -0
- package/esm/components/use-datepicker/index.js +1 -0
- package/esm/components/use-datepicker/use-datepicker-format.js +1 -1
- package/esm/components/use-datepicker/use-time.js +1 -1
- package/esm/components/use-descriptions/index.d.ts +3 -0
- package/esm/components/use-descriptions/index.d.ts.map +1 -0
- package/esm/components/use-descriptions/index.js +20 -0
- package/esm/components/use-descriptions/use-descriptions.d.ts +6 -0
- package/esm/components/use-descriptions/use-descriptions.d.ts.map +1 -0
- package/esm/components/use-descriptions/use-descriptions.js +77 -0
- package/esm/components/use-descriptions/use-descriptions.type.d.ts +65 -0
- package/esm/components/use-descriptions/use-descriptions.type.d.ts.map +1 -0
- package/esm/components/use-descriptions/use-descriptions.type.js +5 -0
- package/esm/components/use-form/form-bind-context.d.ts.map +1 -1
- package/esm/components/use-form/form-bind-context.js +1 -0
- package/esm/components/use-form/form-config-context.d.ts.map +1 -1
- package/esm/components/use-form/form-config-context.js +1 -0
- package/esm/components/use-form/form-func-context.d.ts.map +1 -1
- package/esm/components/use-form/form-func-context.js +1 -0
- package/esm/components/use-form/index.js +1 -0
- package/esm/components/use-form/use-form-control/index.js +1 -0
- package/esm/components/use-form/use-form-fieldset/fieldset-context.d.ts.map +1 -1
- package/esm/components/use-form/use-form-fieldset/fieldset-context.js +1 -0
- package/esm/components/use-form/use-form-fieldset/index.js +1 -0
- package/esm/components/use-form/use-form-flow/index.js +1 -0
- package/esm/components/use-form/use-form-item/form-item-context.d.ts.map +1 -1
- package/esm/components/use-form/use-form-item/form-item-context.js +1 -0
- package/esm/components/use-form/use-form-item/index.js +1 -0
- package/esm/components/use-form/use-form-item/use-form-item.js +1 -1
- package/esm/components/use-form/use-form.d.ts.map +1 -1
- package/esm/components/use-form/use-form.js +9 -2
- package/esm/components/use-form/use-form.type.d.ts +1 -0
- package/esm/components/use-form/use-form.type.d.ts.map +1 -1
- package/esm/components/use-image/index.js +1 -0
- package/esm/components/use-image/use-image.type.d.ts +76 -0
- package/esm/components/use-image/use-image.type.d.ts.map +1 -1
- package/esm/components/use-input/index.js +1 -0
- package/esm/components/use-input/use-input-format.type.d.ts +25 -5
- package/esm/components/use-input/use-input-format.type.d.ts.map +1 -1
- package/esm/components/use-input/use-input-number.d.ts +1 -1
- package/esm/components/use-input/use-input-number.d.ts.map +1 -1
- package/esm/components/use-input/use-input-number.js +1 -0
- package/esm/components/use-input/use-input-number.type.d.ts +17 -0
- package/esm/components/use-input/use-input-number.type.d.ts.map +1 -1
- package/esm/components/use-input/use-input-password.type.d.ts +21 -0
- package/esm/components/use-input/use-input-password.type.d.ts.map +1 -1
- package/esm/components/use-input/use-input.d.ts.map +1 -1
- package/esm/components/use-input/use-input.js +9 -3
- package/esm/components/use-input/use-input.type.d.ts +44 -0
- package/esm/components/use-input/use-input.type.d.ts.map +1 -1
- package/esm/components/use-menu/index.js +1 -0
- package/esm/components/use-pagination/index.js +1 -0
- package/esm/components/use-popup/index.js +1 -0
- package/esm/components/use-popup/popup-context.d.ts.map +1 -1
- package/esm/components/use-popup/popup-context.js +1 -0
- package/esm/components/use-popup/use-popup.d.ts.map +1 -1
- package/esm/components/use-popup/use-popup.js +4 -1
- package/esm/components/use-select/index.d.ts +1 -0
- package/esm/components/use-select/index.d.ts.map +1 -1
- package/esm/components/use-select/index.js +9 -1
- package/esm/components/use-select/use-select-group.d.ts +7 -0
- package/esm/components/use-select/use-select-group.d.ts.map +1 -0
- package/esm/components/use-select/use-select-group.js +51 -0
- package/esm/components/use-select/use-select-group.type.d.ts +5 -0
- package/esm/components/use-select/use-select-group.type.d.ts.map +1 -0
- package/esm/components/use-select/use-select-group.type.js +5 -0
- package/esm/components/use-select/use-select.d.ts.map +1 -1
- package/esm/components/use-select/use-select.js +4 -4
- package/esm/components/use-select/use-select.type.d.ts +41 -1
- package/esm/components/use-select/use-select.type.d.ts.map +1 -1
- package/esm/components/use-slider/index.js +1 -0
- package/esm/components/use-slider/use-slider.d.ts +2 -2
- package/esm/components/use-slider/use-slider.js +4 -4
- package/esm/components/use-table/index.js +1 -0
- package/esm/components/use-table/use-table-columns.js +9 -12
- package/esm/components/use-table/use-table-layout.d.ts +1 -0
- package/esm/components/use-table/use-table-layout.d.ts.map +1 -1
- package/esm/components/use-table/use-table-layout.js +26 -13
- package/esm/components/use-table/use-table-virtual.d.ts.map +1 -1
- package/esm/components/use-table/use-table-virtual.js +12 -2
- package/esm/components/use-tabs/context.d.ts.map +1 -1
- package/esm/components/use-tabs/context.js +1 -0
- package/esm/components/use-tabs/context.type.d.ts +25 -0
- package/esm/components/use-tabs/context.type.d.ts.map +1 -1
- package/esm/components/use-tabs/index.js +1 -0
- package/esm/components/use-tabs/use-tabs.type.d.ts +9 -0
- package/esm/components/use-tabs/use-tabs.type.d.ts.map +1 -1
- package/esm/components/use-textarea/index.js +1 -0
- package/esm/components/use-textarea/use-textarea.type.d.ts +29 -0
- package/esm/components/use-textarea/use-textarea.type.d.ts.map +1 -1
- package/esm/components/use-transfer/index.js +1 -0
- package/esm/components/use-transfer/use-transfer.type.d.ts +53 -0
- package/esm/components/use-transfer/use-transfer.type.d.ts.map +1 -1
- package/esm/components/use-tree/index.d.ts +1 -2
- package/esm/components/use-tree/index.d.ts.map +1 -1
- package/esm/components/use-tree/index.js +2 -8
- package/esm/components/use-tree/use-tree-node.d.ts +2 -1
- package/esm/components/use-tree/use-tree-node.d.ts.map +1 -1
- package/esm/components/use-tree/use-tree-node.js +7 -7
- package/esm/components/use-tree/use-tree-node.type.d.ts +2 -2
- package/esm/components/use-tree/use-tree-node.type.d.ts.map +1 -1
- package/esm/components/use-tree/use-tree.d.ts +25 -2
- package/esm/components/use-tree/use-tree.d.ts.map +1 -1
- package/esm/components/use-tree/use-tree.js +96 -44
- package/esm/components/use-tree/use-tree.type.d.ts +69 -4
- package/esm/components/use-tree/use-tree.type.d.ts.map +1 -1
- package/esm/components/use-treeselect/index.d.ts +4 -0
- package/esm/components/use-treeselect/index.d.ts.map +1 -0
- package/esm/components/use-treeselect/index.js +27 -0
- package/esm/components/use-treeselect/use-tiled.d.ts +13 -0
- package/esm/components/use-treeselect/use-tiled.d.ts.map +1 -0
- package/esm/components/use-treeselect/use-tiled.js +99 -0
- package/esm/components/use-treeselect/use-tiled.type.d.ts +15 -0
- package/esm/components/use-treeselect/use-tiled.type.d.ts.map +1 -0
- package/esm/components/use-treeselect/use-tiled.type.js +5 -0
- package/esm/components/use-treeselect/use-treeselect.d.ts +7 -0
- package/esm/components/use-treeselect/use-treeselect.d.ts.map +1 -0
- package/esm/components/use-treeselect/use-treeselect.js +29 -0
- package/esm/components/use-treeselect/use-treeselect.type.d.ts +9 -0
- package/esm/components/use-treeselect/use-treeselect.type.d.ts.map +1 -0
- package/esm/components/use-treeselect/use-treeselect.type.js +5 -0
- package/esm/components/use-upload/index.js +1 -0
- package/esm/components/use-upload/use-upload.js +8 -8
- package/esm/components/use-upload/use-upload.type.d.ts +5 -1
- package/esm/components/use-upload/use-upload.type.d.ts.map +1 -1
- package/esm/components/use-validate/index.js +1 -0
- package/esm/index.d.ts +5 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +61 -0
- package/esm/utils/attribute.d.ts +1 -1
- package/esm/utils/attribute.d.ts.map +1 -1
- package/esm/utils/attribute.js +3 -1
- package/esm/utils/document.d.ts.map +1 -1
- package/esm/utils/document.js +8 -1
- package/esm/utils/dom/element.d.ts +2 -1
- package/esm/utils/dom/element.d.ts.map +1 -1
- package/esm/utils/dom/element.js +18 -7
- package/esm/utils/dom/index.d.ts +3 -0
- package/esm/utils/dom/index.d.ts.map +1 -1
- package/esm/utils/dom/index.js +32 -10
- package/esm/utils/dom/ready.d.ts.map +1 -1
- package/esm/utils/dom/ready.js +2 -0
- package/esm/utils/dom/responsiveObserve.d.ts +13 -0
- package/esm/utils/dom/responsiveObserve.d.ts.map +1 -0
- package/esm/utils/dom/responsiveObserve.js +89 -0
- package/esm/utils/dom/responsiveObserve.type.d.ts +5 -0
- package/esm/utils/dom/responsiveObserve.type.d.ts.map +1 -0
- package/esm/utils/dom/responsiveObserve.type.js +5 -0
- package/esm/utils/immer.d.ts +10 -0
- package/esm/utils/immer.d.ts.map +1 -0
- package/esm/utils/immer.js +21 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +24 -0
- package/esm/utils/is.d.ts +2 -0
- package/esm/utils/is.d.ts.map +1 -1
- package/esm/utils/is.js +15 -4
- package/esm/utils/render.d.ts.map +1 -1
- package/esm/utils/tree.d.ts +14 -0
- package/esm/utils/tree.d.ts.map +1 -0
- package/esm/utils/tree.js +93 -0
- package/esm/utils/uid.js +2 -2
- package/package.json +5 -3
- package/cjs/components/use-tree/use-placement.d.ts +0 -6
- package/cjs/components/use-tree/use-placement.d.ts.map +0 -1
- package/cjs/components/use-tree/use-placement.js +0 -25
- package/cjs/components/use-tree/use-placement.type.d.ts +0 -4
- package/cjs/components/use-tree/use-placement.type.d.ts.map +0 -1
- package/esm/components/use-tree/use-placement.d.ts +0 -6
- package/esm/components/use-tree/use-placement.d.ts.map +0 -1
- package/esm/components/use-tree/use-placement.js +0 -25
- package/esm/components/use-tree/use-placement.type.d.ts +0 -4
- package/esm/components/use-tree/use-placement.type.d.ts.map +0 -1
- /package/cjs/{components/use-tree/use-placement.type.js → common/use-filter/use-filter.type.js} +0 -0
- /package/{esm/components/use-tree/use-placement.type.js → cjs/components/use-cascader/use-cascader.type.js} +0 -0
@@ -17,7 +17,7 @@ var _formItemContext = require("./form-item-context");
|
|
17
17
|
var _formConfigContext = require("../form-config-context");
|
18
18
|
var _usePersistFn = _interopRequireDefault(require("../../../common/use-persist-fn"));
|
19
19
|
var _attribute = require("../../../utils/attribute");
|
20
|
-
var _immer = require("immer");
|
20
|
+
var _immer = require("../../../utils/immer");
|
21
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
23
|
var UseFormItem = function UseFormItem() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["use-form.ts"],"names":[],"mappings":";AAsBA,OAAO,EAAe,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI5D,QAAA,MAAM,OAAO;;;;;;;;;
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["use-form.ts"],"names":[],"mappings":";AAsBA,OAAO,EAAe,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI5D,QAAA,MAAM,OAAO;;;;;;;;;wBAqJ8B;gBAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;aAAE;8BARzB,MAAM;oCAsCD,OAAO;;6BALb,MAAM,KAAK,KAAK,GAAG,SAAS;;;sCA5EnB,MAAM,GAAG,MAAM,EAAE,mBAAgB,QAAQ,IAAI,CAAC;;;;;;oBAmDnD;YAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;SAAE;0BARzB,MAAM;gCAsCD,OAAO;;yBALb,MAAM,KAAK,KAAK,GAAG,SAAS;;;kCA5EnB,MAAM,GAAG,MAAM,EAAE,mBAAgB,QAAQ,IAAI,CAAC;;CA6S7F,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -25,7 +25,7 @@ var _Provider = require("./Provider");
|
|
25
25
|
var _useLatestObj = _interopRequireDefault(require("../../common/use-latest-obj"));
|
26
26
|
var _usePersistFn = _interopRequireDefault(require("../../common/use-persist-fn"));
|
27
27
|
var _attribute = require("../../utils/attribute");
|
28
|
-
var _immer = require("immer");
|
28
|
+
var _immer = require("../../utils/immer");
|
29
29
|
var _utils = require("../../utils");
|
30
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
31
31
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -70,7 +70,8 @@ var useForm = function useForm(props) {
|
|
70
70
|
serverErrors: {},
|
71
71
|
lastValue: props.value || emptyObj,
|
72
72
|
resetTime: 0,
|
73
|
-
mounted: false
|
73
|
+
mounted: false,
|
74
|
+
unmounted: false
|
74
75
|
}),
|
75
76
|
context = _React$useRef.current;
|
76
77
|
var update = function update(name) {
|
@@ -154,6 +155,7 @@ var useForm = function useForm(props) {
|
|
154
155
|
});
|
155
156
|
var remove = function remove() {
|
156
157
|
if (!context.removeArr.size) return;
|
158
|
+
if (context.unmounted) return;
|
157
159
|
onChange(function (v) {
|
158
160
|
context.removeArr.forEach(function (n) {
|
159
161
|
(0, _utils.deepRemove)(v, n);
|
@@ -411,6 +413,11 @@ var useForm = function useForm(props) {
|
|
411
413
|
}, [props.value]);
|
412
414
|
React.useEffect(function () {
|
413
415
|
context.mounted = true;
|
416
|
+
context.unmounted = false;
|
417
|
+
return function () {
|
418
|
+
context.mounted = false;
|
419
|
+
context.unmounted = true;
|
420
|
+
};
|
414
421
|
}, []);
|
415
422
|
return {
|
416
423
|
getFormProps: getFormProps,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-form.type.d.ts","sourceRoot":"","sources":["use-form.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE;QACL,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;QACnD,IAAI,EAAE,CACJ,CAAC,EAAE,MAAM,E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,MAAM,GAAG,KAAK,CAAC,CAAC;CACpC;AAED,oBAAY,YAAY,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE/C,oBAAY,WAAW,GAAG;IACxB,aAAa,EAAE,UAAU,CAAC;IAC1B,WAAW,EAAE,UAAU,CAAC;IAExB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAEvB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;IACtC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,UAAU,GAAG,SAAS,CAAC;IAElC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IAEjB,SAAS,EAAE,UAAU,CAAC;IAEtB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;IACrC,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACtC,YAAY,EAAE,UAAU,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,oBAAY,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,UAAU,CACzE,mBAAmB,EACnB,MAAM,CACP,CAAC"}
|
@@ -18,27 +18,58 @@ export interface BaseImageProps {
|
|
18
18
|
* @default -
|
19
19
|
*
|
20
20
|
*/
|
21
|
+
/**
|
22
|
+
* @en Image fill type
|
23
|
+
* @cn 图片填充方式
|
24
|
+
*/
|
21
25
|
fit?: ImageFitType;
|
22
26
|
/**
|
23
27
|
* @title 懒加载容器
|
24
28
|
* @description 指定懒加载的容器,如: #id
|
25
29
|
* @default -
|
26
30
|
*/
|
31
|
+
/**
|
32
|
+
* @en Lazy load container
|
33
|
+
* @cn 懒加载容器
|
34
|
+
*/
|
27
35
|
container?: string | HTMLElement;
|
28
36
|
/**
|
29
37
|
* @title 自定义错误内容
|
30
38
|
* @description 当图片加载失败时,允许自定义渲染对应的的内容。
|
31
39
|
* @default -
|
32
40
|
*/
|
41
|
+
/**
|
42
|
+
* @en Custom error content
|
43
|
+
* @cn 自定义错误内容
|
44
|
+
*/
|
33
45
|
error?: React.ReactNode;
|
46
|
+
/**
|
47
|
+
* @en Original picture address
|
48
|
+
* @cn 原始图片地址
|
49
|
+
*/
|
34
50
|
href?: string;
|
51
|
+
/**
|
52
|
+
* @en Whether to delay loading, number to set lazy offset
|
53
|
+
* @cn 是否延迟加载,如果为数字则表示懒加载偏移量
|
54
|
+
* @default false
|
55
|
+
*/
|
35
56
|
lazy?: boolean | number;
|
57
|
+
/**
|
58
|
+
* @en The original property of html
|
59
|
+
* @cn 是否禁止 img 元素原生 draggable 属性
|
60
|
+
* @default false
|
61
|
+
*/
|
36
62
|
noImgDrag?: boolean;
|
37
63
|
/**
|
38
64
|
* @title 图加载时的占位内容
|
39
65
|
* @description 图片加载过程中,允许自定义渲染加载时的的内容。
|
40
66
|
* @default 'loading'
|
41
67
|
*/
|
68
|
+
/**
|
69
|
+
* @en Loading image placeholder content
|
70
|
+
* @cn 图加载时的占位内容
|
71
|
+
* @default 'loading
|
72
|
+
*/
|
42
73
|
placeholder?: React.ReactNode;
|
43
74
|
/**
|
44
75
|
* @title 图片形状
|
@@ -48,16 +79,61 @@ export interface BaseImageProps {
|
|
48
79
|
* - thumbnail: 缩略图
|
49
80
|
* @default 'rounded'
|
50
81
|
*/
|
82
|
+
/**
|
83
|
+
* @en Image shape
|
84
|
+
* @cn 图片形状
|
85
|
+
* @default 'rounded'
|
86
|
+
*/
|
51
87
|
shape?: ImageShapeType;
|
88
|
+
/**
|
89
|
+
* @en Target of image
|
90
|
+
* @cn 图片打开方式
|
91
|
+
* @default '_modal'
|
92
|
+
*/
|
52
93
|
target?: ImageTargetType;
|
94
|
+
/**
|
95
|
+
* @en The width of the image
|
96
|
+
* @cn 图片宽度
|
97
|
+
* @default '100%'
|
98
|
+
*/
|
53
99
|
width?: number | string;
|
100
|
+
/**
|
101
|
+
* @en The height of the image
|
102
|
+
* @cn 图片高度
|
103
|
+
* @default '100%'
|
104
|
+
*/
|
54
105
|
height?: number | string;
|
106
|
+
/**
|
107
|
+
* @en The picture address
|
108
|
+
* @cn 图片地址
|
109
|
+
*/
|
55
110
|
src?: string;
|
111
|
+
/**
|
112
|
+
* @en The original property of html
|
113
|
+
* @cn 原生 title 属性
|
114
|
+
*/
|
56
115
|
title?: string;
|
57
116
|
imageRef?: React.RefObject<HTMLImageElement>;
|
117
|
+
/**
|
118
|
+
* @en The callback of click
|
119
|
+
* @cn 点击图片的回调
|
120
|
+
*/
|
58
121
|
onClick?: React.MouseEventHandler;
|
122
|
+
/**
|
123
|
+
* @en Alternate address, applied when src is invalid
|
124
|
+
* @cn 备用地址,src无效时会应用
|
125
|
+
*/
|
59
126
|
alt?: string;
|
127
|
+
/**
|
128
|
+
* @en Auto transform protocol
|
129
|
+
* @cn 是否根据页面自动转换协议
|
130
|
+
* @default false
|
131
|
+
*/
|
60
132
|
autoSSL?: boolean;
|
133
|
+
/**
|
134
|
+
* @en Callback of image src or alt request fail
|
135
|
+
* @cn src或alt 地址请求出错回调
|
136
|
+
*/
|
61
137
|
onError?: (e: Event, type: number) => void;
|
62
138
|
}
|
63
139
|
//# sourceMappingURL=use-image.type.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-image.type.d.ts","sourceRoot":"","sources":["use-image.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;AAChE,oBAAY,YAAY,GAAG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AGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;;;;;;OAOG;IACH;;;;OAIG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C"}
|
@@ -4,28 +4,48 @@ export interface InputFormatProps {
|
|
4
4
|
value: InputValue;
|
5
5
|
onChange: (value: InputValue) => void;
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* @en Whether to remove leading and trailing spaces
|
8
|
+
* @cn 是否去除前后空格
|
8
9
|
*/
|
9
10
|
trim?: boolean;
|
11
|
+
/**
|
12
|
+
* @en Same as the type of the native input tag
|
13
|
+
* @cn 同原生 input 标签的 type
|
14
|
+
* @override string
|
15
|
+
* @default 'text'
|
16
|
+
*/
|
10
17
|
type?: React.InputHTMLAttributes<HTMLInputElement>['type'];
|
18
|
+
/**
|
19
|
+
* @en Number type supports "positive" and "non-negative", only works when type = number
|
20
|
+
* @cn 设置数字类型 支持 "positive" 和 "non-negative", 仅在 type = number 下生效
|
21
|
+
*/
|
11
22
|
numType?: 'non-negative' | 'positive';
|
23
|
+
/**
|
24
|
+
* @en Show as thousands separator, valid only when type is "number"
|
25
|
+
* @cn 以千位分隔符展示,仅当 type 为 number 时有效
|
26
|
+
* @default false
|
27
|
+
*/
|
12
28
|
coin?: boolean;
|
13
29
|
/**
|
14
|
-
*
|
30
|
+
* @en Integer limit, only works when type = number
|
31
|
+
* @cn 整数位数限制, 仅在 type = number 下生效
|
15
32
|
*/
|
16
33
|
integerLimit?: number;
|
17
34
|
/**
|
18
|
-
*
|
35
|
+
* @en Decimal limit, only works when type = number
|
36
|
+
* @cn 小数位数限制, 仅在 type = number 下生效
|
19
37
|
*/
|
20
38
|
digits?: number;
|
21
39
|
/**
|
22
|
-
*
|
40
|
+
* @en Whether to automatically complete the number of decimal places, only works when type = number
|
41
|
+
* @cn 是否自动补全小数位数, 仅在 type = number 下生效
|
23
42
|
*/
|
24
43
|
autoFix?: boolean;
|
25
44
|
onBlur?: React.FocusEventHandler;
|
26
45
|
onFocus?: React.FocusEventHandler;
|
27
46
|
/**
|
28
|
-
*
|
47
|
+
* @en Cancel blur trigger onChange, used for multi-layer nesting of formatting, only trigger onChange once at the outermost layer
|
48
|
+
* @cn 取消 blur 触发 onChange,用于多层嵌套的格式化,只在最外层触发一次onChange
|
29
49
|
*/
|
30
50
|
cancelBlurChange?: boolean;
|
31
51
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input-format.type.d.ts","sourceRoot":"","sources":["use-input-format.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC
|
1
|
+
{"version":3,"file":"use-input-format.type.d.ts","sourceRoot":"","sources":["use-input-format.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3D;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACtC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
@@ -7,7 +7,7 @@ declare const useNumberFormat: (props: InputNumberProps) => {
|
|
7
7
|
onBlur: (e: React.FocusEvent<Element, Element>) => void;
|
8
8
|
onFocus: (e: React.FocusEvent<Element, Element>) => void;
|
9
9
|
value: string | undefined;
|
10
|
-
type:
|
10
|
+
type: (string & {}) | "search" | "color" | "button" | "time" | "image" | "text" | "reset" | "submit" | "email" | "url" | "range" | "tel" | "checkbox" | "radio" | "hidden" | "date" | "datetime-local" | "file" | "month" | "password" | "week" | undefined;
|
11
11
|
};
|
12
12
|
export default useNumberFormat;
|
13
13
|
//# sourceMappingURL=use-input-number.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;
|
1
|
+
{"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;CA6H/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -3,9 +3,26 @@ export declare type NumberValue = string | number | undefined | null;
|
|
3
3
|
export interface InputNumberProps extends Omit<InputFormatProps, 'value' | 'onChange' | 'autoFix' | 'trim' | 'coin' | 'type'> {
|
4
4
|
value: NumberValue;
|
5
5
|
onChange: (value: NumberValue) => void | undefined;
|
6
|
+
/**
|
7
|
+
* @en Minimum value
|
8
|
+
* @cn 最小值
|
9
|
+
*/
|
6
10
|
min?: number;
|
11
|
+
/**
|
12
|
+
* @en Maximum value
|
13
|
+
* @cn 最大值
|
14
|
+
*/
|
7
15
|
max?: number;
|
16
|
+
/**
|
17
|
+
* @en Allow value is null
|
18
|
+
* @cn 清空后值为 null
|
19
|
+
*/
|
8
20
|
allowNull?: boolean;
|
21
|
+
/**
|
22
|
+
* @en Change the digital span. It can be decimal
|
23
|
+
* @cn 改变数字跨度,可为小数
|
24
|
+
* @default 1
|
25
|
+
*/
|
9
26
|
step?: number;
|
10
27
|
disabled?: boolean;
|
11
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input-number.type.d.ts","sourceRoot":"","sources":["use-input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,oBAAY,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7D,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC3F,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,SAAS,CAAC;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
1
|
+
{"version":3,"file":"use-input-number.type.d.ts","sourceRoot":"","sources":["use-input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,oBAAY,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7D,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC3F,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,SAAS,CAAC;IACnD;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
@@ -2,10 +2,31 @@ export declare type PasswordValue = string | undefined;
|
|
2
2
|
export interface InputPasswordProps {
|
3
3
|
value: PasswordValue;
|
4
4
|
onChange: (value: PasswordValue) => void;
|
5
|
+
/**
|
6
|
+
* @cn 密码符号
|
7
|
+
* @en Password symbol
|
8
|
+
* @default '•'
|
9
|
+
*/
|
5
10
|
point?: string;
|
11
|
+
/**
|
12
|
+
* @cn 是否显示切换密码可见状态的按钮
|
13
|
+
* @en Whether to display the button to toggle the visibility of the password
|
14
|
+
*/
|
6
15
|
visibilityToggle?: boolean;
|
16
|
+
/**
|
17
|
+
* @cn 是否显示密码
|
18
|
+
* @en Whether to display the password
|
19
|
+
*/
|
7
20
|
visibility?: boolean;
|
21
|
+
/**
|
22
|
+
* @cn 初始状态是否显示密码
|
23
|
+
* @en Whether to display the password initially
|
24
|
+
*/
|
8
25
|
defaultVisibility?: boolean;
|
26
|
+
/**
|
27
|
+
* @cn 切换密码可见状态的按钮的图标
|
28
|
+
* @en The icon of the button to toggle the visibility of the password
|
29
|
+
*/
|
9
30
|
onVisibilityChange?: (visibility: boolean) => void;
|
10
31
|
}
|
11
32
|
//# sourceMappingURL=use-input-password.type.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input-password.type.d.ts","sourceRoot":"","sources":["use-input-password.type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/C,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"use-input-password.type.d.ts","sourceRoot":"","sources":["use-input-password.type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/C,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input.d.ts","sourceRoot":"","sources":["use-input.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAa5D,QAAA,MAAM,QAAQ,WAAY,cAAc;;;;;;;
|
1
|
+
{"version":3,"file":"use-input.d.ts","sourceRoot":"","sources":["use-input.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAa5D,QAAA,MAAM,QAAQ,WAAY,cAAc;;;;;;;CAyIvC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -18,7 +18,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
18
18
|
var _useForkRef = _interopRequireDefault(require("../../common/use-fork-ref"));
|
19
19
|
var React = _interopRequireWildcard(require("react"));
|
20
20
|
var _utils = require("../../utils");
|
21
|
-
var _excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus", "onBlur", "clearable", "disabled", "autoSelect", "onClear", "onClick", "showClear"];
|
21
|
+
var _excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus", "onBlur", "clearable", "disabled", "autoSelect", "onClear", "onClick", "showClear", "onFocusedChange"];
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
24
24
|
function ownKeys(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; }
|
@@ -47,12 +47,17 @@ var useInput = function useInput(params) {
|
|
47
47
|
onClear = params.onClear,
|
48
48
|
onClick = params.onClick,
|
49
49
|
showClear = params.showClear,
|
50
|
+
onFocusedChange = params.onFocusedChange,
|
50
51
|
propsToForward = (0, _objectWithoutProperties2.default)(params, _excluded);
|
51
52
|
var inputRef = React.useRef(null);
|
52
53
|
var _React$useState = React.useState(false),
|
53
54
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
54
55
|
focused = _React$useState2[0],
|
55
|
-
|
56
|
+
changeFocued = _React$useState2[1];
|
57
|
+
var setFocused = function setFocused(focus) {
|
58
|
+
changeFocued(focus);
|
59
|
+
onFocusedChange === null || onFocusedChange === void 0 ? void 0 : onFocusedChange(focus);
|
60
|
+
};
|
56
61
|
var handleClick = function handleClick(otherHandlers) {
|
57
62
|
return function (event) {
|
58
63
|
var _otherHandlers$onClic;
|
@@ -126,6 +131,7 @@ var useInput = function useInput(params) {
|
|
126
131
|
event.preventDefault();
|
127
132
|
if (!focused) {
|
128
133
|
var _inputRef$current;
|
134
|
+
setFocused(true);
|
129
135
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
130
136
|
}
|
131
137
|
if (onClear) {
|
@@ -147,7 +153,7 @@ var useInput = function useInput(params) {
|
|
147
153
|
return {
|
148
154
|
focused: focused,
|
149
155
|
disabled: disabled,
|
150
|
-
showClear: showClearValue,
|
156
|
+
showClear: !disabled && showClearValue,
|
151
157
|
getRootProps: getRootProps,
|
152
158
|
getInputProps: getInputProps,
|
153
159
|
getClearProps: getClearProps
|
@@ -3,22 +3,66 @@ import { AddNoProps } from '../../common/type';
|
|
3
3
|
export interface InputPropsOwn {
|
4
4
|
/**
|
5
5
|
* The default value. Use when the component is not controlled.
|
6
|
+
* @en Value
|
7
|
+
* @cn 输入值
|
6
8
|
*/
|
7
9
|
value?: string;
|
10
|
+
/**
|
11
|
+
* @en Value change callback
|
12
|
+
* @cn 值改变回调
|
13
|
+
*/
|
8
14
|
onChange?: (value: string) => void;
|
15
|
+
/**
|
16
|
+
* @en The callback of blur
|
17
|
+
* @cn 失去焦点后的回调
|
18
|
+
*/
|
9
19
|
onBlur?: React.FocusEventHandler;
|
20
|
+
/**
|
21
|
+
* @en The callback when Textarea focus
|
22
|
+
* @cn 聚焦后的回调
|
23
|
+
*/
|
10
24
|
onFocus?: React.FocusEventHandler;
|
25
|
+
/**
|
26
|
+
* @en Click callback
|
27
|
+
* @cn 点击回调
|
28
|
+
*/
|
11
29
|
onClick?: React.MouseEventHandler;
|
30
|
+
/**
|
31
|
+
* @en Disable component
|
32
|
+
* @cn 禁用组件
|
33
|
+
* @default false
|
34
|
+
*/
|
12
35
|
disabled?: boolean;
|
36
|
+
/**
|
37
|
+
* @en Can click the clear icon to delete the content of the input box
|
38
|
+
* @cn 可点击清空图标删除输入框内容
|
39
|
+
* @default false
|
40
|
+
*/
|
13
41
|
clearable?: boolean;
|
14
42
|
/**
|
15
43
|
* focus后自动全选数据
|
44
|
+
* @en Automatically select all data after mouse click
|
45
|
+
* @cn 是否自动获得焦点
|
46
|
+
* @default false
|
16
47
|
*/
|
17
48
|
autoSelect?: boolean;
|
49
|
+
/**
|
50
|
+
* @en Get input dom
|
51
|
+
* @cn 获取input dom
|
52
|
+
*/
|
18
53
|
inputRef?: React.Ref<HTMLInputElement>;
|
54
|
+
/**
|
55
|
+
* @en Get root node dom
|
56
|
+
* @cn 获取root节点 dom
|
57
|
+
*/
|
19
58
|
rootRef?: React.Ref<HTMLElement>;
|
59
|
+
/**
|
60
|
+
* @en Click to clear callback
|
61
|
+
* @cn 点击清空回调
|
62
|
+
*/
|
20
63
|
onClear?: () => void;
|
21
64
|
showClear?: boolean;
|
65
|
+
onFocusedChange?: (focused?: boolean) => void;
|
22
66
|
}
|
23
67
|
export interface BaseInputProps extends InputPropsOwn, Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof InputPropsOwn | 'size' | 'prefix' | 'onError'> {
|
24
68
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-input.type.d.ts","sourceRoot":"","sources":["use-input.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,WAA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K,CAAC,iBAAiB,CAAC;CACnC;AAED,oBAAY,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,CACxE,MAAM,EAEN,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CACnE,GACC,wBAAwB,CAAC;AAE3B,oBAAY,oBAAoB,GAAG;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACjC,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,oBAAY,iBAAiB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,CACpE,MAAM,EACN,MAAM,oBAAoB,CAC3B,GACC,oBAAoB,CAAC;AAEvB,oBAAY,qBAAqB,GAAG;IAClC,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACtC,CAAC;AAEF,oBAAY,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,UAAU,CAC3E,qBAAqB,EACrB,MAAM,CACP,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"popup-context.d.ts","sourceRoot":"","sources":["popup-context.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"popup-context.d.ts","sourceRoot":"","sources":["popup-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAO7C,QAAA,MAAM,OAAO;sBAJO,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC;wBACxC,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC;EAGnB,CAAC;AAE9C,eAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-popup.d.ts","sourceRoot":"","sources":["use-popup.ts"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhE,QAAA,MAAM,QAAQ,UAAW,cAAc;;;;;;
|
1
|
+
{"version":3,"file":"use-popup.d.ts","sourceRoot":"","sources":["use-popup.ts"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhE,QAAA,MAAM,QAAQ,UAAW,cAAc;;;;;;0BA4GK;YAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;SAAE;0BAM9B;YAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;SAAE;;;;;qBA5B7B;YAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;2BA4ElD,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC;6BAGxC,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC;;CAqBpE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -39,13 +39,16 @@ var usePopup = function usePopup(props) {
|
|
39
39
|
removeChild(popupRef);
|
40
40
|
};
|
41
41
|
}, []);
|
42
|
+
(0, _react.useEffect)(function () {
|
43
|
+
setOpenState(!!props.open);
|
44
|
+
}, [props.open]);
|
42
45
|
var _useRef = (0, _react.useRef)({
|
43
46
|
triggerTimer: null,
|
44
47
|
// 记录所有的子popup 点击子 popup 不关闭弹窗
|
45
48
|
chain: [targetRef, popupRef]
|
46
49
|
}),
|
47
50
|
context = _useRef.current;
|
48
|
-
var open =
|
51
|
+
var open = openState;
|
49
52
|
var changeOpen = function changeOpen(openIn, delay) {
|
50
53
|
if (context.triggerTimer) clearTimeout(context.triggerTimer);
|
51
54
|
context.triggerTimer = setTimeout(function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
+
"use client";
|
2
3
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
@@ -10,10 +11,17 @@ Object.defineProperty(exports, "default", {
|
|
10
11
|
return _useSelect.default;
|
11
12
|
}
|
12
13
|
});
|
14
|
+
Object.defineProperty(exports, "useGroup", {
|
15
|
+
enumerable: true,
|
16
|
+
get: function get() {
|
17
|
+
return _useSelectGroup.default;
|
18
|
+
}
|
19
|
+
});
|
13
20
|
Object.defineProperty(exports, "useSelect", {
|
14
21
|
enumerable: true,
|
15
22
|
get: function get() {
|
16
23
|
return _useSelect.default;
|
17
24
|
}
|
18
25
|
});
|
19
|
-
var _useSelect = _interopRequireDefault(require("./use-select"));
|
26
|
+
var _useSelect = _interopRequireDefault(require("./use-select"));
|
27
|
+
var _useSelectGroup = _interopRequireDefault(require("./use-select-group"));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { UseSelectGroupProps } from './use-select-group.type';
|
2
|
+
declare const UseSelectGroup: <DataItem>(props: UseSelectGroupProps<DataItem>) => {
|
3
|
+
data: DataItem[];
|
4
|
+
groupKey: string;
|
5
|
+
};
|
6
|
+
export default UseSelectGroup;
|
7
|
+
//# sourceMappingURL=use-select-group.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use-select-group.d.ts","sourceRoot":"","sources":["use-select-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,QAAA,MAAM,cAAc;;;CAoCnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|