@nickeylin/antd-mobile-pro 2.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/dist/cjs/assets/file/excel.png +0 -0
- package/dist/cjs/assets/file/fileLoading.png +0 -0
- package/dist/cjs/assets/file/jpg.png +0 -0
- package/dist/cjs/assets/file/music.png +0 -0
- package/dist/cjs/assets/file/pdf.png +0 -0
- package/dist/cjs/assets/file/ppt.png +0 -0
- package/dist/cjs/assets/file/txt.png +0 -0
- package/dist/cjs/assets/file/video.png +0 -0
- package/dist/cjs/assets/file/weizhi.png +0 -0
- package/dist/cjs/assets/file/wenjiajia.png +0 -0
- package/dist/cjs/assets/file/word.png +0 -0
- package/dist/cjs/assets/file/yasuo.png +0 -0
- package/dist/cjs/components/action-sheet/index.d.ts +12 -0
- package/dist/cjs/components/action-sheet/index.js +41 -0
- package/dist/cjs/components/action-sheet/promt.d.ts +25 -0
- package/dist/cjs/components/action-sheet/promt.js +75 -0
- package/dist/cjs/components/action-sheet-picker/index.d.ts +3 -0
- package/dist/cjs/components/action-sheet-picker/index.js +37 -0
- package/dist/cjs/components/action-sheet-picker/picker.d.ts +30 -0
- package/dist/cjs/components/action-sheet-picker/picker.js +106 -0
- package/dist/cjs/components/bar-code/bar-code.d.ts +26 -0
- package/dist/cjs/components/bar-code/bar-code.js +138 -0
- package/dist/cjs/components/bar-code/index.d.ts +3 -0
- package/dist/cjs/components/bar-code/index.js +46 -0
- package/dist/cjs/components/card/card.d.ts +9 -0
- package/dist/cjs/components/card/card.js +66 -0
- package/dist/cjs/components/card/card.less +32 -0
- package/dist/cjs/components/card/index.d.ts +4 -0
- package/dist/cjs/components/card/index.js +37 -0
- package/dist/cjs/components/card-tabs/index.d.ts +4 -0
- package/dist/cjs/components/card-tabs/index.js +38 -0
- package/dist/cjs/components/card-tabs/style.less +54 -0
- package/dist/cjs/components/card-tabs/tabs.d.ts +22 -0
- package/dist/cjs/components/card-tabs/tabs.js +89 -0
- package/dist/cjs/components/checkbox/checkbox-group.d.ts +15 -0
- package/dist/cjs/components/checkbox/checkbox-group.js +73 -0
- package/dist/cjs/components/checkbox/checkbox.d.ts +26 -0
- package/dist/cjs/components/checkbox/checkbox.js +67 -0
- package/dist/cjs/components/checkbox/indeterminate-square-icon.d.ts +3 -0
- package/dist/cjs/components/checkbox/indeterminate-square-icon.js +36 -0
- package/dist/cjs/components/checkbox/index.d.ts +26 -0
- package/dist/cjs/components/checkbox/index.js +40 -0
- package/dist/cjs/components/checkbox/style.less +39 -0
- package/dist/cjs/components/config-provider/elements-holder.d.ts +7 -0
- package/dist/cjs/components/config-provider/elements-holder.js +51 -0
- package/dist/cjs/components/config-provider/index.d.ts +9 -0
- package/dist/cjs/components/config-provider/index.js +50 -0
- package/dist/cjs/components/config-provider/provider.d.ts +35 -0
- package/dist/cjs/components/config-provider/provider.js +64 -0
- package/dist/cjs/components/config-provider/use-imperatively-renderer.d.ts +11 -0
- package/dist/cjs/components/config-provider/use-imperatively-renderer.js +106 -0
- package/dist/cjs/components/config-provider/use-prompt.d.ts +12 -0
- package/dist/cjs/components/config-provider/use-prompt.js +82 -0
- package/dist/cjs/components/container/Container.d.ts +7 -0
- package/dist/cjs/components/container/Container.js +44 -0
- package/dist/cjs/components/container/index.d.ts +3 -0
- package/dist/cjs/components/container/index.js +37 -0
- package/dist/cjs/components/date-picker/date-picker.d.ts +26 -0
- package/dist/cjs/components/date-picker/date-picker.js +126 -0
- package/dist/cjs/components/date-picker/date-range-picker.d.ts +11 -0
- package/dist/cjs/components/date-picker/date-range-picker.js +162 -0
- package/dist/cjs/components/date-picker/helper.d.ts +6 -0
- package/dist/cjs/components/date-picker/helper.js +75 -0
- package/dist/cjs/components/date-picker/index.d.ts +8 -0
- package/dist/cjs/components/date-picker/index.js +43 -0
- package/dist/cjs/components/date-picker/style.less +24 -0
- package/dist/cjs/components/descriptions/descriptions.d.ts +17 -0
- package/dist/cjs/components/descriptions/descriptions.js +83 -0
- package/dist/cjs/components/descriptions/index.d.ts +4 -0
- package/dist/cjs/components/descriptions/index.js +38 -0
- package/dist/cjs/components/descriptions/style.less +49 -0
- package/dist/cjs/components/dropdown-menu/dropdown-menu.d.ts +29 -0
- package/dist/cjs/components/dropdown-menu/dropdown-menu.js +105 -0
- package/dist/cjs/components/dropdown-menu/index.d.ts +4 -0
- package/dist/cjs/components/dropdown-menu/index.js +37 -0
- package/dist/cjs/components/dropdown-menu/style.less +18 -0
- package/dist/cjs/components/error-block/error-block.d.ts +7 -0
- package/dist/cjs/components/error-block/error-block.js +41 -0
- package/dist/cjs/components/error-block/images/index.d.ts +1 -0
- package/dist/cjs/components/error-block/images/index.js +23 -0
- package/dist/cjs/components/error-block/index.d.ts +4 -0
- package/dist/cjs/components/error-block/index.js +43 -0
- package/dist/cjs/components/grid-menu/grid-menu-item.d.ts +10 -0
- package/dist/cjs/components/grid-menu/grid-menu-item.js +64 -0
- package/dist/cjs/components/grid-menu/grid-menu.d.ts +15 -0
- package/dist/cjs/components/grid-menu/grid-menu.js +79 -0
- package/dist/cjs/components/grid-menu/index.d.ts +8 -0
- package/dist/cjs/components/grid-menu/index.js +41 -0
- package/dist/cjs/components/grid-menu/style.less +63 -0
- package/dist/cjs/components/index.d.ts +33 -0
- package/dist/cjs/components/index.js +141 -0
- package/dist/cjs/components/input-captcha/index.d.ts +4 -0
- package/dist/cjs/components/input-captcha/index.js +38 -0
- package/dist/cjs/components/input-captcha/input-captcha.d.ts +40 -0
- package/dist/cjs/components/input-captcha/input-captcha.js +125 -0
- package/dist/cjs/components/input-captcha/style.less +12 -0
- package/dist/cjs/components/input-number/index.d.ts +8 -0
- package/dist/cjs/components/input-number/index.js +41 -0
- package/dist/cjs/components/input-number/input-money.d.ts +7 -0
- package/dist/cjs/components/input-number/input-money.js +85 -0
- package/dist/cjs/components/input-number/input-number.d.ts +38 -0
- package/dist/cjs/components/input-number/input-number.js +264 -0
- package/dist/cjs/components/input-number/input-number.less +62 -0
- package/dist/cjs/components/input-password/index.d.ts +4 -0
- package/dist/cjs/components/input-password/index.js +38 -0
- package/dist/cjs/components/input-password/input-password.d.ts +12 -0
- package/dist/cjs/components/input-password/input-password.js +86 -0
- package/dist/cjs/components/input-password/style.less +13 -0
- package/dist/cjs/components/money/index.d.ts +4 -0
- package/dist/cjs/components/money/index.js +28 -0
- package/dist/cjs/components/money/money.d.ts +18 -0
- package/dist/cjs/components/money/money.js +120 -0
- package/dist/cjs/components/money/money.less +64 -0
- package/dist/cjs/components/page/body.d.ts +19 -0
- package/dist/cjs/components/page/body.js +93 -0
- package/dist/cjs/components/page/footer.d.ts +16 -0
- package/dist/cjs/components/page/footer.js +68 -0
- package/dist/cjs/components/page/index.d.ts +27 -0
- package/dist/cjs/components/page/index.js +51 -0
- package/dist/cjs/components/page/page-context.d.ts +20 -0
- package/dist/cjs/components/page/page-context.js +82 -0
- package/dist/cjs/components/page/page.d.ts +19 -0
- package/dist/cjs/components/page/page.js +156 -0
- package/dist/cjs/components/page/page.less +79 -0
- package/dist/cjs/components/page/toolbar.d.ts +7 -0
- package/dist/cjs/components/page/toolbar.js +45 -0
- package/dist/cjs/components/picker-toolbar/index.d.ts +4 -0
- package/dist/cjs/components/picker-toolbar/index.js +37 -0
- package/dist/cjs/components/picker-toolbar/picker-toolbar.d.ts +15 -0
- package/dist/cjs/components/picker-toolbar/picker-toolbar.js +126 -0
- package/dist/cjs/components/picker-toolbar/style.less +57 -0
- package/dist/cjs/components/popup-page/default-action-footer.d.ts +10 -0
- package/dist/cjs/components/popup-page/default-action-footer.js +70 -0
- package/dist/cjs/components/popup-page/index.d.ts +8 -0
- package/dist/cjs/components/popup-page/index.js +41 -0
- package/dist/cjs/components/popup-page/popup-page.d.ts +10 -0
- package/dist/cjs/components/popup-page/popup-page.js +90 -0
- package/dist/cjs/components/popup-page/style.less +21 -0
- package/dist/cjs/components/popup-picker-base/index.d.ts +6 -0
- package/dist/cjs/components/popup-picker-base/index.js +46 -0
- package/dist/cjs/components/popup-picker-base/popup-picker-base.d.ts +36 -0
- package/dist/cjs/components/popup-picker-base/popup-picker-base.js +151 -0
- package/dist/cjs/components/popup-picker-base/prompt.d.ts +4 -0
- package/dist/cjs/components/popup-picker-base/prompt.js +66 -0
- package/dist/cjs/components/popup-picker-base/style.less +11 -0
- package/dist/cjs/components/popup-picker-base/use-popup-picker-mixin.d.ts +73 -0
- package/dist/cjs/components/popup-picker-base/use-popup-picker-mixin.js +140 -0
- package/dist/cjs/components/pro-calendar-picker/index.d.ts +3 -0
- package/dist/cjs/components/pro-calendar-picker/index.js +36 -0
- package/dist/cjs/components/pro-calendar-picker/picker.d.ts +25 -0
- package/dist/cjs/components/pro-calendar-picker/picker.js +154 -0
- package/dist/cjs/components/pro-form/default-submitter.d.ts +13 -0
- package/dist/cjs/components/pro-form/default-submitter.js +72 -0
- package/dist/cjs/components/pro-form/index.d.ts +24 -0
- package/dist/cjs/components/pro-form/index.js +101 -0
- package/dist/cjs/components/pro-form/pro-field-context.d.ts +8 -0
- package/dist/cjs/components/pro-form/pro-field-context.js +27 -0
- package/dist/cjs/components/pro-form/pro-form-context.d.ts +8 -0
- package/dist/cjs/components/pro-form/pro-form-context.js +27 -0
- package/dist/cjs/components/pro-form/pro-form-item-action-sheet.d.ts +7 -0
- package/dist/cjs/components/pro-form/pro-form-item-action-sheet.js +84 -0
- package/dist/cjs/components/pro-form/pro-form-item-calendar-picker.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-calendar-picker.js +77 -0
- package/dist/cjs/components/pro-form/pro-form-item-cascader.d.ts +7 -0
- package/dist/cjs/components/pro-form/pro-form-item-cascader.js +78 -0
- package/dist/cjs/components/pro-form/pro-form-item-checkbox.d.ts +11 -0
- package/dist/cjs/components/pro-form/pro-form-item-checkbox.js +83 -0
- package/dist/cjs/components/pro-form/pro-form-item-date-picker.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-date-picker.js +83 -0
- package/dist/cjs/components/pro-form/pro-form-item-date-range-picker.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-date-range-picker.js +65 -0
- package/dist/cjs/components/pro-form/pro-form-item-dependency.d.ts +11 -0
- package/dist/cjs/components/pro-form/pro-form-item-dependency.js +68 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-captcha.d.ts +12 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-captcha.js +72 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-money.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-money.js +77 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-number.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-number.js +78 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-password.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-input-password.js +70 -0
- package/dist/cjs/components/pro-form/pro-form-item-input.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-input.js +74 -0
- package/dist/cjs/components/pro-form/pro-form-item-list-picker.d.ts +15 -0
- package/dist/cjs/components/pro-form/pro-form-item-list-picker.js +120 -0
- package/dist/cjs/components/pro-form/pro-form-item-picker.d.ts +10 -0
- package/dist/cjs/components/pro-form/pro-form-item-picker.js +79 -0
- package/dist/cjs/components/pro-form/pro-form-item-radio.d.ts +9 -0
- package/dist/cjs/components/pro-form/pro-form-item-radio.js +55 -0
- package/dist/cjs/components/pro-form/pro-form-item-selector.d.ts +7 -0
- package/dist/cjs/components/pro-form/pro-form-item-selector.js +53 -0
- package/dist/cjs/components/pro-form/pro-form-item-slider.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-slider.js +55 -0
- package/dist/cjs/components/pro-form/pro-form-item-stepper.d.ts +12 -0
- package/dist/cjs/components/pro-form/pro-form-item-stepper.js +97 -0
- package/dist/cjs/components/pro-form/pro-form-item-switch.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-switch.js +42 -0
- package/dist/cjs/components/pro-form/pro-form-item-textarea.d.ts +6 -0
- package/dist/cjs/components/pro-form/pro-form-item-textarea.js +78 -0
- package/dist/cjs/components/pro-form/pro-form-item-tree-picker.d.ts +7 -0
- package/dist/cjs/components/pro-form/pro-form-item-tree-picker.js +83 -0
- package/dist/cjs/components/pro-form/pro-form-item.d.ts +47 -0
- package/dist/cjs/components/pro-form/pro-form-item.js +101 -0
- package/dist/cjs/components/pro-form/pro-form.d.ts +29 -0
- package/dist/cjs/components/pro-form/pro-form.js +201 -0
- package/dist/cjs/components/pro-form/style.less +26 -0
- package/dist/cjs/components/pro-form/types.d.ts +87 -0
- package/dist/cjs/components/pro-form/types.js +17 -0
- package/dist/cjs/components/pro-form/use-form-instance.d.ts +2 -0
- package/dist/cjs/components/pro-form/use-form-instance.js +33 -0
- package/dist/cjs/components/pro-form/utils.d.ts +22 -0
- package/dist/cjs/components/pro-form/utils.js +145 -0
- package/dist/cjs/components/pro-list/helper.d.ts +3 -0
- package/dist/cjs/components/pro-list/helper.js +31 -0
- package/dist/cjs/components/pro-list/index.d.ts +4 -0
- package/dist/cjs/components/pro-list/index.js +38 -0
- package/dist/cjs/components/pro-list/pagination-toolbar.d.ts +13 -0
- package/dist/cjs/components/pro-list/pagination-toolbar.js +82 -0
- package/dist/cjs/components/pro-list/pro-list.d.ts +155 -0
- package/dist/cjs/components/pro-list/pro-list.js +559 -0
- package/dist/cjs/components/pro-list/pro-list.less +80 -0
- package/dist/cjs/components/pro-list/selected-rows-summary.d.ts +14 -0
- package/dist/cjs/components/pro-list/selected-rows-summary.js +125 -0
- package/dist/cjs/components/pro-list-picker/index.d.ts +8 -0
- package/dist/cjs/components/pro-list-picker/index.js +29 -0
- package/dist/cjs/components/pro-list-picker/list-picker-utils.d.ts +1 -0
- package/dist/cjs/components/pro-list-picker/list-picker-utils.js +29 -0
- package/dist/cjs/components/pro-list-picker/list-picker.d.ts +30 -0
- package/dist/cjs/components/pro-list-picker/list-picker.js +143 -0
- package/dist/cjs/components/pro-list-picker/list-picker.less +27 -0
- package/dist/cjs/components/pro-list-picker/prompt.d.ts +3 -0
- package/dist/cjs/components/pro-list-picker/prompt.js +33 -0
- package/dist/cjs/components/qr-code/index.d.ts +3 -0
- package/dist/cjs/components/qr-code/index.js +36 -0
- package/dist/cjs/components/qr-code/qr-code.d.ts +32 -0
- package/dist/cjs/components/qr-code/qr-code.js +56 -0
- package/dist/cjs/components/segment-control/index.d.ts +4 -0
- package/dist/cjs/components/segment-control/index.js +37 -0
- package/dist/cjs/components/segment-control/segment.d.ts +25 -0
- package/dist/cjs/components/segment-control/segment.js +108 -0
- package/dist/cjs/components/segment-control/style.less +154 -0
- package/dist/cjs/components/stepper-range/index.d.ts +1 -0
- package/dist/cjs/components/stepper-range/index.js +35 -0
- package/dist/cjs/components/stepper-range/stepper-range.d.ts +19 -0
- package/dist/cjs/components/stepper-range/stepper-range.js +103 -0
- package/dist/cjs/components/styles/global.less +3 -0
- package/dist/cjs/components/styles/variable.less +2 -0
- package/dist/cjs/components/tabbar-layout/context.d.ts +10 -0
- package/dist/cjs/components/tabbar-layout/context.js +35 -0
- package/dist/cjs/components/tabbar-layout/index.d.ts +5 -0
- package/dist/cjs/components/tabbar-layout/index.js +39 -0
- package/dist/cjs/components/tabbar-layout/style.less +21 -0
- package/dist/cjs/components/tabbar-layout/tabbar-layout.d.ts +17 -0
- package/dist/cjs/components/tabbar-layout/tabbar-layout.js +101 -0
- package/dist/cjs/components/table/index.d.ts +4 -0
- package/dist/cjs/components/table/index.js +27 -0
- package/dist/cjs/components/table/table.d.ts +4 -0
- package/dist/cjs/components/table/table.js +154 -0
- package/dist/cjs/components/table/table.less +101 -0
- package/dist/cjs/components/table/types.d.ts +20 -0
- package/dist/cjs/components/table/types.js +17 -0
- package/dist/cjs/components/toast/index.d.ts +2 -0
- package/dist/cjs/components/toast/index.js +36 -0
- package/dist/cjs/components/toast/toast.d.ts +13 -0
- package/dist/cjs/components/toast/toast.js +36 -0
- package/dist/cjs/components/tree/DirectoryTree.d.ts +21 -0
- package/dist/cjs/components/tree/DirectoryTree.js +176 -0
- package/dist/cjs/components/tree/demo/data.d.ts +6 -0
- package/dist/cjs/components/tree/demo/data.js +53 -0
- package/dist/cjs/components/tree/demo/demo.d.ts +3 -0
- package/dist/cjs/components/tree/demo/demo.js +47 -0
- package/dist/cjs/components/tree/demo/demo1.d.ts +3 -0
- package/dist/cjs/components/tree/demo/demo1.js +64 -0
- package/dist/cjs/components/tree/demo/demo2.d.ts +3 -0
- package/dist/cjs/components/tree/demo/demo2.js +49 -0
- package/dist/cjs/components/tree/demo/demo3.d.ts +3 -0
- package/dist/cjs/components/tree/demo/demo3.js +99 -0
- package/dist/cjs/components/tree/index.d.ts +5 -0
- package/dist/cjs/components/tree/index.js +37 -0
- package/dist/cjs/components/tree/style/checkbox/index.d.ts +2 -0
- package/dist/cjs/components/tree/style/checkbox/index.js +3 -0
- package/dist/cjs/components/tree/style/checkbox/index.less +6 -0
- package/dist/cjs/components/tree/style/checkbox/mixin.less +272 -0
- package/dist/cjs/components/tree/style/checkbox/rtl.less +29 -0
- package/dist/cjs/components/tree/style/common/mixins.less +11 -0
- package/dist/cjs/components/tree/style/index.less +354 -0
- package/dist/cjs/components/tree/style/rtl.less +70 -0
- package/dist/cjs/components/tree/tree.d.ts +93 -0
- package/dist/cjs/components/tree/tree.js +198 -0
- package/dist/cjs/components/tree/utils/dictUtil.d.ts +9 -0
- package/dist/cjs/components/tree/utils/dictUtil.js +91 -0
- package/dist/cjs/components/tree/utils/dropIndicator.d.ts +9 -0
- package/dist/cjs/components/tree/utils/dropIndicator.js +69 -0
- package/dist/cjs/components/tree/utils/iconUtil.d.ts +6 -0
- package/dist/cjs/components/tree/utils/iconUtil.js +75 -0
- package/dist/cjs/components/tree/utils/motion.d.ts +8 -0
- package/dist/cjs/components/tree/utils/motion.js +76 -0
- package/dist/cjs/components/tree/utils/reactNode.d.ts +8 -0
- package/dist/cjs/components/tree/utils/reactNode.js +61 -0
- package/dist/cjs/components/tree/utils/type.d.ts +9 -0
- package/dist/cjs/components/tree/utils/type.js +32 -0
- package/dist/cjs/components/tree-picker/index.d.ts +15 -0
- package/dist/cjs/components/tree-picker/index.js +41 -0
- package/dist/cjs/components/tree-picker/prompt.d.ts +3 -0
- package/dist/cjs/components/tree-picker/prompt.js +39 -0
- package/dist/cjs/components/tree-picker/tree-picker.d.ts +23 -0
- package/dist/cjs/components/tree-picker/tree-picker.js +136 -0
- package/dist/cjs/components/tree-picker/tree-picker.less +14 -0
- package/dist/cjs/components/utils/format-url.d.ts +2 -0
- package/dist/cjs/components/utils/format-url.js +34 -0
- package/dist/cjs/components/utils/object-assign-append.d.ts +1 -0
- package/dist/cjs/components/utils/object-assign-append.js +39 -0
- package/dist/cjs/hooks/index.d.ts +1 -0
- package/dist/cjs/hooks/index.js +39 -0
- package/dist/cjs/hooks/use-render-imperatively/index.d.ts +4 -0
- package/dist/cjs/hooks/use-render-imperatively/index.js +48 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +29 -0
- package/dist/cjs/locales/base.d.ts +281 -0
- package/dist/cjs/locales/base.js +174 -0
- package/dist/cjs/locales/en-US.d.ts +279 -0
- package/dist/cjs/locales/en-US.js +38 -0
- package/dist/cjs/locales/zh-CN.d.ts +3 -0
- package/dist/cjs/locales/zh-CN.js +178 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/service/approve-outline.d.ts +89 -0
- package/dist/cjs/types/service/bpm.d.ts +241 -0
- package/dist/cjs/types/service/common.d.ts +90 -0
- package/dist/cjs/utils/attachment-utils.d.ts +15 -0
- package/dist/cjs/utils/attachment-utils.js +103 -0
- package/dist/cjs/utils/bem.d.ts +16 -0
- package/dist/cjs/utils/bem.js +30 -0
- package/dist/cjs/utils/dev-log.d.ts +3 -0
- package/dist/cjs/utils/dev-log.js +65 -0
- package/dist/cjs/utils/forward-ref-with-generics.d.ts +2 -0
- package/dist/cjs/utils/forward-ref-with-generics.js +28 -0
- package/dist/cjs/utils/is-dev.d.ts +1 -0
- package/dist/cjs/utils/is-dev.js +29 -0
- package/dist/cjs/utils/remote-data-props.d.ts +53 -0
- package/dist/cjs/utils/remote-data-props.js +67 -0
- package/dist/cjs/utils/worker.d.ts +2 -0
- package/dist/cjs/utils/worker.js +58 -0
- package/dist/es/assets/file/excel.png +0 -0
- package/dist/es/assets/file/fileLoading.png +0 -0
- package/dist/es/assets/file/jpg.png +0 -0
- package/dist/es/assets/file/music.png +0 -0
- package/dist/es/assets/file/pdf.png +0 -0
- package/dist/es/assets/file/ppt.png +0 -0
- package/dist/es/assets/file/txt.png +0 -0
- package/dist/es/assets/file/video.png +0 -0
- package/dist/es/assets/file/weizhi.png +0 -0
- package/dist/es/assets/file/wenjiajia.png +0 -0
- package/dist/es/assets/file/word.png +0 -0
- package/dist/es/assets/file/yasuo.png +0 -0
- package/dist/es/components/action-sheet/index.d.ts +12 -0
- package/dist/es/components/action-sheet/index.js +7 -0
- package/dist/es/components/action-sheet/promt.d.ts +25 -0
- package/dist/es/components/action-sheet/promt.js +60 -0
- package/dist/es/components/action-sheet-picker/index.d.ts +3 -0
- package/dist/es/components/action-sheet-picker/index.js +2 -0
- package/dist/es/components/action-sheet-picker/picker.d.ts +30 -0
- package/dist/es/components/action-sheet-picker/picker.js +107 -0
- package/dist/es/components/bar-code/bar-code.d.ts +26 -0
- package/dist/es/components/bar-code/bar-code.js +97 -0
- package/dist/es/components/bar-code/index.d.ts +3 -0
- package/dist/es/components/bar-code/index.js +3 -0
- package/dist/es/components/card/card.d.ts +9 -0
- package/dist/es/components/card/card.js +40 -0
- package/dist/es/components/card/card.less +32 -0
- package/dist/es/components/card/index.d.ts +4 -0
- package/dist/es/components/card/index.js +3 -0
- package/dist/es/components/card-tabs/index.d.ts +4 -0
- package/dist/es/components/card-tabs/index.js +3 -0
- package/dist/es/components/card-tabs/style.less +54 -0
- package/dist/es/components/card-tabs/tabs.d.ts +22 -0
- package/dist/es/components/card-tabs/tabs.js +56 -0
- package/dist/es/components/checkbox/checkbox-group.d.ts +15 -0
- package/dist/es/components/checkbox/checkbox-group.js +45 -0
- package/dist/es/components/checkbox/checkbox.d.ts +26 -0
- package/dist/es/components/checkbox/checkbox.js +38 -0
- package/dist/es/components/checkbox/indeterminate-square-icon.d.ts +3 -0
- package/dist/es/components/checkbox/indeterminate-square-icon.js +22 -0
- package/dist/es/components/checkbox/index.d.ts +26 -0
- package/dist/es/components/checkbox/index.js +7 -0
- package/dist/es/components/checkbox/style.less +39 -0
- package/dist/es/components/config-provider/elements-holder.d.ts +7 -0
- package/dist/es/components/config-provider/elements-holder.js +44 -0
- package/dist/es/components/config-provider/index.d.ts +9 -0
- package/dist/es/components/config-provider/index.js +8 -0
- package/dist/es/components/config-provider/provider.d.ts +35 -0
- package/dist/es/components/config-provider/provider.js +38 -0
- package/dist/es/components/config-provider/use-imperatively-renderer.d.ts +11 -0
- package/dist/es/components/config-provider/use-imperatively-renderer.js +85 -0
- package/dist/es/components/config-provider/use-prompt.d.ts +12 -0
- package/dist/es/components/config-provider/use-prompt.js +58 -0
- package/dist/es/components/container/Container.d.ts +7 -0
- package/dist/es/components/container/Container.js +21 -0
- package/dist/es/components/container/index.d.ts +3 -0
- package/dist/es/components/container/index.js +2 -0
- package/dist/es/components/date-picker/date-picker.d.ts +26 -0
- package/dist/es/components/date-picker/date-picker.js +115 -0
- package/dist/es/components/date-picker/date-range-picker.d.ts +11 -0
- package/dist/es/components/date-picker/date-range-picker.js +139 -0
- package/dist/es/components/date-picker/helper.d.ts +6 -0
- package/dist/es/components/date-picker/helper.js +41 -0
- package/dist/es/components/date-picker/index.d.ts +8 -0
- package/dist/es/components/date-picker/index.js +7 -0
- package/dist/es/components/date-picker/style.less +24 -0
- package/dist/es/components/descriptions/descriptions.d.ts +17 -0
- package/dist/es/components/descriptions/descriptions.js +75 -0
- package/dist/es/components/descriptions/index.d.ts +4 -0
- package/dist/es/components/descriptions/index.js +3 -0
- package/dist/es/components/descriptions/style.less +49 -0
- package/dist/es/components/dropdown-menu/dropdown-menu.d.ts +29 -0
- package/dist/es/components/dropdown-menu/dropdown-menu.js +85 -0
- package/dist/es/components/dropdown-menu/index.d.ts +4 -0
- package/dist/es/components/dropdown-menu/index.js +3 -0
- package/dist/es/components/dropdown-menu/style.less +18 -0
- package/dist/es/components/error-block/error-block.d.ts +7 -0
- package/dist/es/components/error-block/error-block.js +20 -0
- package/dist/es/components/error-block/images/index.d.ts +1 -0
- package/dist/es/components/error-block/images/index.js +1 -0
- package/dist/es/components/error-block/index.d.ts +4 -0
- package/dist/es/components/error-block/index.js +4 -0
- package/dist/es/components/grid-menu/grid-menu-item.d.ts +10 -0
- package/dist/es/components/grid-menu/grid-menu-item.js +71 -0
- package/dist/es/components/grid-menu/grid-menu.d.ts +15 -0
- package/dist/es/components/grid-menu/grid-menu.js +45 -0
- package/dist/es/components/grid-menu/index.d.ts +8 -0
- package/dist/es/components/grid-menu/index.js +7 -0
- package/dist/es/components/grid-menu/style.less +63 -0
- package/dist/es/components/index.d.ts +33 -0
- package/dist/es/components/index.js +33 -0
- package/dist/es/components/input-captcha/index.d.ts +4 -0
- package/dist/es/components/input-captcha/index.js +3 -0
- package/dist/es/components/input-captcha/input-captcha.d.ts +40 -0
- package/dist/es/components/input-captcha/input-captcha.js +123 -0
- package/dist/es/components/input-captcha/style.less +12 -0
- package/dist/es/components/input-number/index.d.ts +8 -0
- package/dist/es/components/input-number/index.js +7 -0
- package/dist/es/components/input-number/input-money.d.ts +7 -0
- package/dist/es/components/input-number/input-money.js +52 -0
- package/dist/es/components/input-number/input-number.d.ts +38 -0
- package/dist/es/components/input-number/input-number.js +261 -0
- package/dist/es/components/input-number/input-number.less +62 -0
- package/dist/es/components/input-password/index.d.ts +4 -0
- package/dist/es/components/input-password/index.js +3 -0
- package/dist/es/components/input-password/input-password.d.ts +12 -0
- package/dist/es/components/input-password/input-password.js +66 -0
- package/dist/es/components/input-password/style.less +13 -0
- package/dist/es/components/money/index.d.ts +4 -0
- package/dist/es/components/money/index.js +3 -0
- package/dist/es/components/money/money.d.ts +18 -0
- package/dist/es/components/money/money.js +90 -0
- package/dist/es/components/money/money.less +64 -0
- package/dist/es/components/page/body.d.ts +19 -0
- package/dist/es/components/page/body.js +64 -0
- package/dist/es/components/page/footer.d.ts +16 -0
- package/dist/es/components/page/footer.js +45 -0
- package/dist/es/components/page/index.d.ts +27 -0
- package/dist/es/components/page/index.js +26 -0
- package/dist/es/components/page/page-context.d.ts +20 -0
- package/dist/es/components/page/page-context.js +53 -0
- package/dist/es/components/page/page.d.ts +19 -0
- package/dist/es/components/page/page.js +149 -0
- package/dist/es/components/page/page.less +79 -0
- package/dist/es/components/page/toolbar.d.ts +7 -0
- package/dist/es/components/page/toolbar.js +20 -0
- package/dist/es/components/picker-toolbar/index.d.ts +4 -0
- package/dist/es/components/picker-toolbar/index.js +3 -0
- package/dist/es/components/picker-toolbar/picker-toolbar.d.ts +15 -0
- package/dist/es/components/picker-toolbar/picker-toolbar.js +120 -0
- package/dist/es/components/picker-toolbar/style.less +57 -0
- package/dist/es/components/popup-page/default-action-footer.d.ts +10 -0
- package/dist/es/components/popup-page/default-action-footer.js +50 -0
- package/dist/es/components/popup-page/index.d.ts +8 -0
- package/dist/es/components/popup-page/index.js +7 -0
- package/dist/es/components/popup-page/popup-page.d.ts +10 -0
- package/dist/es/components/popup-page/popup-page.js +61 -0
- package/dist/es/components/popup-page/style.less +21 -0
- package/dist/es/components/popup-picker-base/index.d.ts +6 -0
- package/dist/es/components/popup-picker-base/index.js +5 -0
- package/dist/es/components/popup-picker-base/popup-picker-base.d.ts +36 -0
- package/dist/es/components/popup-picker-base/popup-picker-base.js +136 -0
- package/dist/es/components/popup-picker-base/prompt.d.ts +4 -0
- package/dist/es/components/popup-picker-base/prompt.js +48 -0
- package/dist/es/components/popup-picker-base/style.less +11 -0
- package/dist/es/components/popup-picker-base/use-popup-picker-mixin.d.ts +73 -0
- package/dist/es/components/popup-picker-base/use-popup-picker-mixin.js +152 -0
- package/dist/es/components/pro-calendar-picker/index.d.ts +3 -0
- package/dist/es/components/pro-calendar-picker/index.js +2 -0
- package/dist/es/components/pro-calendar-picker/picker.d.ts +25 -0
- package/dist/es/components/pro-calendar-picker/picker.js +168 -0
- package/dist/es/components/pro-form/default-submitter.d.ts +13 -0
- package/dist/es/components/pro-form/default-submitter.js +60 -0
- package/dist/es/components/pro-form/index.d.ts +24 -0
- package/dist/es/components/pro-form/index.js +22 -0
- package/dist/es/components/pro-form/pro-field-context.d.ts +8 -0
- package/dist/es/components/pro-form/pro-field-context.js +3 -0
- package/dist/es/components/pro-form/pro-form-context.d.ts +8 -0
- package/dist/es/components/pro-form/pro-form-context.js +3 -0
- package/dist/es/components/pro-form/pro-form-item-action-sheet.d.ts +7 -0
- package/dist/es/components/pro-form/pro-form-item-action-sheet.js +51 -0
- package/dist/es/components/pro-form/pro-form-item-calendar-picker.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-calendar-picker.js +49 -0
- package/dist/es/components/pro-form/pro-form-item-cascader.d.ts +7 -0
- package/dist/es/components/pro-form/pro-form-item-cascader.js +57 -0
- package/dist/es/components/pro-form/pro-form-item-checkbox.d.ts +11 -0
- package/dist/es/components/pro-form/pro-form-item-checkbox.js +77 -0
- package/dist/es/components/pro-form/pro-form-item-date-picker.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-date-picker.js +45 -0
- package/dist/es/components/pro-form/pro-form-item-date-range-picker.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-date-range-picker.js +34 -0
- package/dist/es/components/pro-form/pro-form-item-dependency.d.ts +11 -0
- package/dist/es/components/pro-form/pro-form-item-dependency.js +35 -0
- package/dist/es/components/pro-form/pro-form-item-input-captcha.d.ts +12 -0
- package/dist/es/components/pro-form/pro-form-item-input-captcha.js +53 -0
- package/dist/es/components/pro-form/pro-form-item-input-money.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-input-money.js +43 -0
- package/dist/es/components/pro-form/pro-form-item-input-number.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-input-number.js +44 -0
- package/dist/es/components/pro-form/pro-form-item-input-password.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-input-password.js +36 -0
- package/dist/es/components/pro-form/pro-form-item-input.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-input.js +38 -0
- package/dist/es/components/pro-form/pro-form-item-list-picker.d.ts +15 -0
- package/dist/es/components/pro-form/pro-form-item-list-picker.js +89 -0
- package/dist/es/components/pro-form/pro-form-item-picker.d.ts +10 -0
- package/dist/es/components/pro-form/pro-form-item-picker.js +57 -0
- package/dist/es/components/pro-form/pro-form-item-radio.d.ts +9 -0
- package/dist/es/components/pro-form/pro-form-item-radio.js +56 -0
- package/dist/es/components/pro-form/pro-form-item-selector.d.ts +7 -0
- package/dist/es/components/pro-form/pro-form-item-selector.js +40 -0
- package/dist/es/components/pro-form/pro-form-item-slider.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-slider.js +30 -0
- package/dist/es/components/pro-form/pro-form-item-stepper.d.ts +12 -0
- package/dist/es/components/pro-form/pro-form-item-stepper.js +69 -0
- package/dist/es/components/pro-form/pro-form-item-switch.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-switch.js +21 -0
- package/dist/es/components/pro-form/pro-form-item-textarea.d.ts +6 -0
- package/dist/es/components/pro-form/pro-form-item-textarea.js +42 -0
- package/dist/es/components/pro-form/pro-form-item-tree-picker.d.ts +7 -0
- package/dist/es/components/pro-form/pro-form-item-tree-picker.js +49 -0
- package/dist/es/components/pro-form/pro-form-item.d.ts +47 -0
- package/dist/es/components/pro-form/pro-form-item.js +74 -0
- package/dist/es/components/pro-form/pro-form.d.ts +29 -0
- package/dist/es/components/pro-form/pro-form.js +234 -0
- package/dist/es/components/pro-form/style.less +26 -0
- package/dist/es/components/pro-form/types.d.ts +87 -0
- package/dist/es/components/pro-form/types.js +1 -0
- package/dist/es/components/pro-form/use-form-instance.d.ts +2 -0
- package/dist/es/components/pro-form/use-form-instance.js +5 -0
- package/dist/es/components/pro-form/utils.d.ts +22 -0
- package/dist/es/components/pro-form/utils.js +127 -0
- package/dist/es/components/pro-list/helper.d.ts +3 -0
- package/dist/es/components/pro-list/helper.js +4 -0
- package/dist/es/components/pro-list/index.d.ts +4 -0
- package/dist/es/components/pro-list/index.js +3 -0
- package/dist/es/components/pro-list/pagination-toolbar.d.ts +13 -0
- package/dist/es/components/pro-list/pagination-toolbar.js +48 -0
- package/dist/es/components/pro-list/pro-list.d.ts +155 -0
- package/dist/es/components/pro-list/pro-list.js +825 -0
- package/dist/es/components/pro-list/pro-list.less +80 -0
- package/dist/es/components/pro-list/selected-rows-summary.d.ts +14 -0
- package/dist/es/components/pro-list/selected-rows-summary.js +142 -0
- package/dist/es/components/pro-list-picker/index.d.ts +8 -0
- package/dist/es/components/pro-list-picker/index.js +7 -0
- package/dist/es/components/pro-list-picker/list-picker-utils.d.ts +1 -0
- package/dist/es/components/pro-list-picker/list-picker-utils.js +3 -0
- package/dist/es/components/pro-list-picker/list-picker.d.ts +30 -0
- package/dist/es/components/pro-list-picker/list-picker.js +126 -0
- package/dist/es/components/pro-list-picker/list-picker.less +27 -0
- package/dist/es/components/pro-list-picker/prompt.d.ts +3 -0
- package/dist/es/components/pro-list-picker/prompt.js +5 -0
- package/dist/es/components/qr-code/index.d.ts +3 -0
- package/dist/es/components/qr-code/index.js +2 -0
- package/dist/es/components/qr-code/qr-code.d.ts +32 -0
- package/dist/es/components/qr-code/qr-code.js +30 -0
- package/dist/es/components/segment-control/index.d.ts +4 -0
- package/dist/es/components/segment-control/index.js +3 -0
- package/dist/es/components/segment-control/segment.d.ts +25 -0
- package/dist/es/components/segment-control/segment.js +87 -0
- package/dist/es/components/segment-control/style.less +154 -0
- package/dist/es/components/stepper-range/index.d.ts +1 -0
- package/dist/es/components/stepper-range/index.js +1 -0
- package/dist/es/components/stepper-range/stepper-range.d.ts +19 -0
- package/dist/es/components/stepper-range/stepper-range.js +97 -0
- package/dist/es/components/styles/global.less +3 -0
- package/dist/es/components/styles/variable.less +2 -0
- package/dist/es/components/tabbar-layout/context.d.ts +10 -0
- package/dist/es/components/tabbar-layout/context.js +7 -0
- package/dist/es/components/tabbar-layout/index.d.ts +5 -0
- package/dist/es/components/tabbar-layout/index.js +3 -0
- package/dist/es/components/tabbar-layout/style.less +21 -0
- package/dist/es/components/tabbar-layout/tabbar-layout.d.ts +17 -0
- package/dist/es/components/tabbar-layout/tabbar-layout.js +81 -0
- package/dist/es/components/table/index.d.ts +4 -0
- package/dist/es/components/table/index.js +3 -0
- package/dist/es/components/table/table.d.ts +4 -0
- package/dist/es/components/table/table.js +131 -0
- package/dist/es/components/table/table.less +101 -0
- package/dist/es/components/table/types.d.ts +20 -0
- package/dist/es/components/table/types.js +1 -0
- package/dist/es/components/toast/index.d.ts +2 -0
- package/dist/es/components/toast/index.js +2 -0
- package/dist/es/components/toast/toast.d.ts +13 -0
- package/dist/es/components/toast/toast.js +18 -0
- package/dist/es/components/tree/DirectoryTree.d.ts +21 -0
- package/dist/es/components/tree/DirectoryTree.js +159 -0
- package/dist/es/components/tree/demo/data.d.ts +6 -0
- package/dist/es/components/tree/demo/data.js +29 -0
- package/dist/es/components/tree/demo/demo.d.ts +3 -0
- package/dist/es/components/tree/demo/demo.js +22 -0
- package/dist/es/components/tree/demo/demo1.d.ts +3 -0
- package/dist/es/components/tree/demo/demo1.js +49 -0
- package/dist/es/components/tree/demo/demo2.d.ts +3 -0
- package/dist/es/components/tree/demo/demo2.js +27 -0
- package/dist/es/components/tree/demo/demo3.d.ts +3 -0
- package/dist/es/components/tree/demo/demo3.js +79 -0
- package/dist/es/components/tree/index.d.ts +5 -0
- package/dist/es/components/tree/index.js +3 -0
- package/dist/es/components/tree/style/checkbox/index.d.ts +2 -0
- package/dist/es/components/tree/style/checkbox/index.js +3 -0
- package/dist/es/components/tree/style/checkbox/index.less +6 -0
- package/dist/es/components/tree/style/checkbox/mixin.less +272 -0
- package/dist/es/components/tree/style/checkbox/rtl.less +29 -0
- package/dist/es/components/tree/style/common/mixins.less +11 -0
- package/dist/es/components/tree/style/index.less +354 -0
- package/dist/es/components/tree/style/rtl.less +70 -0
- package/dist/es/components/tree/tree.d.ts +93 -0
- package/dist/es/components/tree/tree.js +197 -0
- package/dist/es/components/tree/utils/dictUtil.d.ts +9 -0
- package/dist/es/components/tree/utils/dictUtil.js +77 -0
- package/dist/es/components/tree/utils/dropIndicator.d.ts +9 -0
- package/dist/es/components/tree/utils/dropIndicator.js +32 -0
- package/dist/es/components/tree/utils/iconUtil.d.ts +6 -0
- package/dist/es/components/tree/utils/iconUtil.js +59 -0
- package/dist/es/components/tree/utils/motion.d.ts +8 -0
- package/dist/es/components/tree/utils/motion.js +52 -0
- package/dist/es/components/tree/utils/reactNode.d.ts +8 -0
- package/dist/es/components/tree/utils/reactNode.js +15 -0
- package/dist/es/components/tree/utils/type.d.ts +9 -0
- package/dist/es/components/tree/utils/type.js +20 -0
- package/dist/es/components/tree-picker/index.d.ts +15 -0
- package/dist/es/components/tree-picker/index.js +7 -0
- package/dist/es/components/tree-picker/prompt.d.ts +3 -0
- package/dist/es/components/tree-picker/prompt.js +5 -0
- package/dist/es/components/tree-picker/tree-picker.d.ts +23 -0
- package/dist/es/components/tree-picker/tree-picker.js +110 -0
- package/dist/es/components/tree-picker/tree-picker.less +14 -0
- package/dist/es/components/utils/format-url.d.ts +2 -0
- package/dist/es/components/utils/format-url.js +10 -0
- package/dist/es/components/utils/object-assign-append.d.ts +1 -0
- package/dist/es/components/utils/object-assign-append.js +12 -0
- package/dist/es/hooks/index.d.ts +1 -0
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/use-render-imperatively/index.d.ts +4 -0
- package/dist/es/hooks/use-render-imperatively/index.js +21 -0
- package/dist/es/index.d.ts +5 -0
- package/dist/es/index.js +6 -0
- package/dist/es/locales/base.d.ts +281 -0
- package/dist/es/locales/base.js +145 -0
- package/dist/es/locales/en-US.d.ts +279 -0
- package/dist/es/locales/en-US.js +4 -0
- package/dist/es/locales/zh-CN.d.ts +3 -0
- package/dist/es/locales/zh-CN.js +144 -0
- package/dist/es/types/index.d.ts +2 -0
- package/dist/es/types/service/approve-outline.d.ts +89 -0
- package/dist/es/types/service/bpm.d.ts +241 -0
- package/dist/es/types/service/common.d.ts +90 -0
- package/dist/es/utils/attachment-utils.d.ts +15 -0
- package/dist/es/utils/attachment-utils.js +75 -0
- package/dist/es/utils/bem.d.ts +16 -0
- package/dist/es/utils/bem.js +22 -0
- package/dist/es/utils/dev-log.d.ts +3 -0
- package/dist/es/utils/dev-log.js +36 -0
- package/dist/es/utils/forward-ref-with-generics.d.ts +2 -0
- package/dist/es/utils/forward-ref-with-generics.js +6 -0
- package/dist/es/utils/is-dev.d.ts +1 -0
- package/dist/es/utils/is-dev.js +1 -0
- package/dist/es/utils/remote-data-props.d.ts +53 -0
- package/dist/es/utils/remote-data-props.js +88 -0
- package/dist/es/utils/worker.d.ts +2 -0
- package/dist/es/utils/worker.js +1 -0
- package/dist/umd/antd-mobile-pro.min.css +1 -0
- package/dist/umd/antd-mobile-pro.min.js +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/tree/tree.tsx
|
|
30
|
+
var tree_exports = {};
|
|
31
|
+
__export(tree_exports, {
|
|
32
|
+
default: () => tree_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(tree_exports);
|
|
35
|
+
var import_icons = require("@ant-design/icons");
|
|
36
|
+
var import_antd_mobile = require("antd-mobile");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_lodash = require("lodash");
|
|
39
|
+
var import_rc_tree = __toESM(require("rc-tree"));
|
|
40
|
+
var import_react = require("react");
|
|
41
|
+
var import_bem = require("../../utils/bem");
|
|
42
|
+
var import_remote_data_props = require("../../utils/remote-data-props");
|
|
43
|
+
var import_config_provider = require("../config-provider");
|
|
44
|
+
var import_helper = require("../pro-list/helper");
|
|
45
|
+
var import_DirectoryTree = __toESM(require("./DirectoryTree"));
|
|
46
|
+
var import_iconUtil = __toESM(require("./utils/iconUtil"));
|
|
47
|
+
var import_motion = __toESM(require("./utils/motion"));
|
|
48
|
+
var bem = (0, import_bem.cn)("tree");
|
|
49
|
+
function transformTreeData(treeData, rowKey, titleKey) {
|
|
50
|
+
return treeData.map((node, nIndex) => {
|
|
51
|
+
const key = (0, import_helper.getRowKey)(rowKey, node, nIndex);
|
|
52
|
+
const newObj = { ...node, key };
|
|
53
|
+
if (newObj.children) {
|
|
54
|
+
newObj.children = transformTreeData(
|
|
55
|
+
newObj.children,
|
|
56
|
+
rowKey,
|
|
57
|
+
titleKey
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
return newObj;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function filterNodes(searchValue, treeData) {
|
|
64
|
+
const newArr = [];
|
|
65
|
+
treeData.forEach((treeNode) => {
|
|
66
|
+
const filterName = "name";
|
|
67
|
+
const fieldValue = (0, import_lodash.get)(treeNode, filterName, "") || "";
|
|
68
|
+
if (fieldValue !== "" && fieldValue !== null && fieldValue !== void 0 && fieldValue.toLowerCase().indexOf(searchValue) > -1) {
|
|
69
|
+
newArr.push(treeNode);
|
|
70
|
+
} else if (treeNode.children && treeNode.children.length > 0) {
|
|
71
|
+
const ab = filterNodes(searchValue, treeNode.children);
|
|
72
|
+
const obj = {
|
|
73
|
+
...treeNode,
|
|
74
|
+
children: ab
|
|
75
|
+
};
|
|
76
|
+
if (ab && ab.length > 0) {
|
|
77
|
+
newArr.push(obj);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return newArr;
|
|
82
|
+
}
|
|
83
|
+
function Tree(props) {
|
|
84
|
+
var _a;
|
|
85
|
+
const {
|
|
86
|
+
rowKey = "key",
|
|
87
|
+
// titleKey = 'title',
|
|
88
|
+
titleRender,
|
|
89
|
+
prefixCls = "suid-tree",
|
|
90
|
+
treeRef,
|
|
91
|
+
search,
|
|
92
|
+
defaultExpandAll = true,
|
|
93
|
+
className,
|
|
94
|
+
style,
|
|
95
|
+
bodyClassName,
|
|
96
|
+
bodyStyle,
|
|
97
|
+
checkable,
|
|
98
|
+
draggable,
|
|
99
|
+
showLine,
|
|
100
|
+
...restProps
|
|
101
|
+
} = props;
|
|
102
|
+
const { locale } = (0, import_config_provider.useConfig)();
|
|
103
|
+
const [searchValue, setSearchValue] = (0, import_react.useState)("");
|
|
104
|
+
const titleKey = ((_a = props.fieldNames) == null ? void 0 : _a.title) ?? "title";
|
|
105
|
+
const { data, loading } = (0, import_remote_data_props.useFetchRemoteData)(props, {
|
|
106
|
+
componentName: "Tree",
|
|
107
|
+
postData(d) {
|
|
108
|
+
return d ? transformTreeData(d, rowKey, titleKey) : d;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
const dataList = (0, import_react.useMemo)(() => {
|
|
112
|
+
if (!data)
|
|
113
|
+
return [];
|
|
114
|
+
return searchValue ? filterNodes(searchValue, data) : data;
|
|
115
|
+
}, [data, searchValue]);
|
|
116
|
+
const draggableConfig = (0, import_react.useMemo)(() => {
|
|
117
|
+
if (!draggable) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
let mergedDraggable = {};
|
|
121
|
+
switch (typeof draggable) {
|
|
122
|
+
case "function":
|
|
123
|
+
mergedDraggable.nodeDraggable = draggable;
|
|
124
|
+
break;
|
|
125
|
+
case "object":
|
|
126
|
+
mergedDraggable = { ...draggable };
|
|
127
|
+
break;
|
|
128
|
+
default:
|
|
129
|
+
}
|
|
130
|
+
if (mergedDraggable.icon !== false) {
|
|
131
|
+
mergedDraggable.icon = mergedDraggable.icon || /* @__PURE__ */ React.createElement(import_icons.MenuOutlined, null);
|
|
132
|
+
}
|
|
133
|
+
return mergedDraggable;
|
|
134
|
+
}, [draggable]);
|
|
135
|
+
return /* @__PURE__ */ React.createElement("div", { className: (0, import_classnames.default)(bem("wrap"), className), style }, search !== false && /* @__PURE__ */ React.createElement(
|
|
136
|
+
import_antd_mobile.SearchBar,
|
|
137
|
+
{
|
|
138
|
+
className: bem("search"),
|
|
139
|
+
onSearch: (val) => {
|
|
140
|
+
setSearchValue(val);
|
|
141
|
+
},
|
|
142
|
+
onClear: async () => {
|
|
143
|
+
setSearchValue("");
|
|
144
|
+
},
|
|
145
|
+
onCancel: async () => {
|
|
146
|
+
},
|
|
147
|
+
placeholder: locale.ProList.keywordsPlaceholder,
|
|
148
|
+
...search
|
|
149
|
+
}
|
|
150
|
+
), /* @__PURE__ */ React.createElement(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
className: (0, import_classnames.default)(bem("body", { loading }), bodyClassName),
|
|
154
|
+
style: bodyStyle
|
|
155
|
+
},
|
|
156
|
+
loading && !data ? /* @__PURE__ */ React.createElement(import_antd_mobile.Skeleton.Paragraph, { animated: true, lineCount: 10 }) : dataList.length == 0 ? /* @__PURE__ */ React.createElement(import_antd_mobile.Empty, { description: locale.common.noData }) : /* @__PURE__ */ React.createElement(
|
|
157
|
+
import_rc_tree.default,
|
|
158
|
+
{
|
|
159
|
+
itemHeight: 20,
|
|
160
|
+
ref: treeRef,
|
|
161
|
+
className: (0, import_classnames.default)(
|
|
162
|
+
bem({
|
|
163
|
+
"icon-hide": !restProps.showIcon,
|
|
164
|
+
"block-node": restProps.blockNode,
|
|
165
|
+
unselectable: !restProps.selectable
|
|
166
|
+
})
|
|
167
|
+
),
|
|
168
|
+
checkable: checkable ? /* @__PURE__ */ React.createElement("span", { className: "suid-tree-checkbox-inner" }) : checkable,
|
|
169
|
+
switcherIcon: (nodeProps) => (0, import_iconUtil.default)(
|
|
170
|
+
prefixCls,
|
|
171
|
+
restProps.switcherIcon,
|
|
172
|
+
showLine,
|
|
173
|
+
nodeProps
|
|
174
|
+
),
|
|
175
|
+
draggable: draggableConfig,
|
|
176
|
+
treeData: dataList,
|
|
177
|
+
defaultExpandAll,
|
|
178
|
+
prefixCls,
|
|
179
|
+
showLine: typeof showLine === "undefined" || typeof showLine === "boolean" ? showLine : true,
|
|
180
|
+
titleRender: titleRender ?? ((node) => node[titleKey]),
|
|
181
|
+
...restProps
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
));
|
|
185
|
+
}
|
|
186
|
+
Tree.TreeNode = import_rc_tree.TreeNode;
|
|
187
|
+
Tree.DirectoryTree = import_DirectoryTree.default;
|
|
188
|
+
Tree.defaultProps = {
|
|
189
|
+
checkable: false,
|
|
190
|
+
selectable: true,
|
|
191
|
+
showIcon: false,
|
|
192
|
+
motion: {
|
|
193
|
+
...import_motion.default,
|
|
194
|
+
motionAppear: false
|
|
195
|
+
},
|
|
196
|
+
blockNode: false
|
|
197
|
+
};
|
|
198
|
+
var tree_default = Tree;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DataNode, Key } from 'rc-tree/lib/interface';
|
|
2
|
+
/** 计算选中范围,只考虑expanded情况以优化性能 */
|
|
3
|
+
export declare function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, }: {
|
|
4
|
+
treeData: DataNode[];
|
|
5
|
+
expandedKeys: Key[];
|
|
6
|
+
startKey?: Key;
|
|
7
|
+
endKey?: Key;
|
|
8
|
+
}): Key[];
|
|
9
|
+
export declare function convertDirectoryKeysToNodes(treeData: DataNode[], keys: Key[]): DataNode[];
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/tree/utils/dictUtil.ts
|
|
20
|
+
var dictUtil_exports = {};
|
|
21
|
+
__export(dictUtil_exports, {
|
|
22
|
+
calcRangeKeys: () => calcRangeKeys,
|
|
23
|
+
convertDirectoryKeysToNodes: () => convertDirectoryKeysToNodes
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(dictUtil_exports);
|
|
26
|
+
function traverseNodesKey(treeData, callback) {
|
|
27
|
+
function processNode(dataNode) {
|
|
28
|
+
const { key, children } = dataNode;
|
|
29
|
+
if (callback(key, dataNode) !== false) {
|
|
30
|
+
traverseNodesKey(children || [], callback);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
treeData.forEach(processNode);
|
|
34
|
+
}
|
|
35
|
+
function calcRangeKeys({
|
|
36
|
+
treeData,
|
|
37
|
+
expandedKeys,
|
|
38
|
+
startKey,
|
|
39
|
+
endKey
|
|
40
|
+
}) {
|
|
41
|
+
const keys = [];
|
|
42
|
+
let record = 0 /* None */;
|
|
43
|
+
if (startKey && startKey === endKey) {
|
|
44
|
+
return [startKey];
|
|
45
|
+
}
|
|
46
|
+
if (!startKey || !endKey) {
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
function matchKey(key) {
|
|
50
|
+
return key === startKey || key === endKey;
|
|
51
|
+
}
|
|
52
|
+
traverseNodesKey(treeData, (key) => {
|
|
53
|
+
if (record === 2 /* End */) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
if (matchKey(key)) {
|
|
57
|
+
keys.push(key);
|
|
58
|
+
if (record === 0 /* None */) {
|
|
59
|
+
record = 1 /* Start */;
|
|
60
|
+
} else if (record === 1 /* Start */) {
|
|
61
|
+
record = 2 /* End */;
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
} else if (record === 1 /* Start */) {
|
|
65
|
+
keys.push(key);
|
|
66
|
+
}
|
|
67
|
+
if (expandedKeys.indexOf(key) === -1) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
});
|
|
72
|
+
return keys;
|
|
73
|
+
}
|
|
74
|
+
function convertDirectoryKeysToNodes(treeData, keys) {
|
|
75
|
+
const restKeys = [...keys];
|
|
76
|
+
const nodes = [];
|
|
77
|
+
traverseNodesKey(treeData, (key, node) => {
|
|
78
|
+
const index = restKeys.indexOf(key);
|
|
79
|
+
if (index !== -1) {
|
|
80
|
+
nodes.push(node);
|
|
81
|
+
restKeys.splice(index, 1);
|
|
82
|
+
}
|
|
83
|
+
return !!restKeys.length;
|
|
84
|
+
});
|
|
85
|
+
return nodes;
|
|
86
|
+
}
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
89
|
+
calcRangeKeys,
|
|
90
|
+
convertDirectoryKeysToNodes
|
|
91
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/tree/utils/dropIndicator.tsx
|
|
30
|
+
var dropIndicator_exports = {};
|
|
31
|
+
__export(dropIndicator_exports, {
|
|
32
|
+
default: () => dropIndicatorRender,
|
|
33
|
+
offset: () => offset
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(dropIndicator_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var offset = 4;
|
|
38
|
+
function dropIndicatorRender(props) {
|
|
39
|
+
const {
|
|
40
|
+
dropPosition,
|
|
41
|
+
dropLevelOffset,
|
|
42
|
+
prefixCls,
|
|
43
|
+
indent,
|
|
44
|
+
direction = "ltr"
|
|
45
|
+
} = props;
|
|
46
|
+
const startPosition = direction === "ltr" ? "left" : "right";
|
|
47
|
+
const endPosition = direction === "ltr" ? "right" : "left";
|
|
48
|
+
const style = {
|
|
49
|
+
[startPosition]: -dropLevelOffset * indent + offset,
|
|
50
|
+
[endPosition]: 0
|
|
51
|
+
};
|
|
52
|
+
switch (dropPosition) {
|
|
53
|
+
case -1:
|
|
54
|
+
style.top = -3;
|
|
55
|
+
break;
|
|
56
|
+
case 1:
|
|
57
|
+
style.bottom = -3;
|
|
58
|
+
break;
|
|
59
|
+
default:
|
|
60
|
+
style.bottom = -3;
|
|
61
|
+
style[startPosition] = indent + offset;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style, className: `${prefixCls}-drop-indicator` });
|
|
65
|
+
}
|
|
66
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
+
0 && (module.exports = {
|
|
68
|
+
offset
|
|
69
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldDataNode, TreeNodeProps } from 'rc-tree';
|
|
2
|
+
import { IconType } from 'rc-tree/lib/interface';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export default function renderSwitcherIcon<T extends FieldDataNode<object>>(prefixCls: string, switcherIcon: IconType, showLine: boolean | {
|
|
5
|
+
showLeafIcon: boolean;
|
|
6
|
+
} | undefined, treeNodeProps: TreeNodeProps<T>): React.ReactNode;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/tree/utils/iconUtil.tsx
|
|
30
|
+
var iconUtil_exports = {};
|
|
31
|
+
__export(iconUtil_exports, {
|
|
32
|
+
default: () => renderSwitcherIcon
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(iconUtil_exports);
|
|
35
|
+
var import_icons = require("@ant-design/icons");
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var import_reactNode = require("./reactNode");
|
|
39
|
+
function renderSwitcherIcon(prefixCls, switcherIcon, showLine, treeNodeProps) {
|
|
40
|
+
const { isLeaf, expanded, loading } = treeNodeProps;
|
|
41
|
+
if (loading) {
|
|
42
|
+
return /* @__PURE__ */ React.createElement(import_icons.LoadingOutlined, { className: `${prefixCls}-switcher-loading-icon` });
|
|
43
|
+
}
|
|
44
|
+
let showLeafIcon = false;
|
|
45
|
+
if (showLine && typeof showLine === "object") {
|
|
46
|
+
showLeafIcon = showLine.showLeafIcon;
|
|
47
|
+
}
|
|
48
|
+
if (isLeaf) {
|
|
49
|
+
if (showLine) {
|
|
50
|
+
if (typeof showLine === "object" && !showLeafIcon) {
|
|
51
|
+
return /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-switcher-leaf-line` });
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ React.createElement(import_icons.FileOutlined, { className: `${prefixCls}-switcher-line-icon` });
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
const switcherCls = `${prefixCls}-switcher-icon`;
|
|
58
|
+
const switcher = typeof switcherIcon === "function" ? (
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
switcherIcon(treeNodeProps)
|
|
62
|
+
) : switcherIcon;
|
|
63
|
+
if ((0, import_reactNode.isValidElement)(switcher)) {
|
|
64
|
+
return (0, import_reactNode.cloneElement)(switcher, {
|
|
65
|
+
className: (0, import_classnames.default)(switcher.props.className || "", switcherCls)
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (switcher) {
|
|
69
|
+
return switcher;
|
|
70
|
+
}
|
|
71
|
+
if (showLine) {
|
|
72
|
+
return expanded ? /* @__PURE__ */ React.createElement(import_icons.MinusSquareOutlined, { className: `${prefixCls}-switcher-line-icon` }) : /* @__PURE__ */ React.createElement(import_icons.PlusSquareOutlined, { className: `${prefixCls}-switcher-line-icon` });
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ React.createElement(import_icons.CaretDownFilled, { className: switcherCls });
|
|
75
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSMotionProps } from 'rc-motion';
|
|
2
|
+
declare const collapseMotion: CSSMotionProps;
|
|
3
|
+
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
4
|
+
export type SelectCommonPlacement = (typeof SelectPlacements)[number];
|
|
5
|
+
declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
|
|
6
|
+
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
|
|
7
|
+
export { getTransitionDirection, getTransitionName };
|
|
8
|
+
export default collapseMotion;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/tree/utils/motion.tsx
|
|
20
|
+
var motion_exports = {};
|
|
21
|
+
__export(motion_exports, {
|
|
22
|
+
default: () => motion_default,
|
|
23
|
+
getTransitionDirection: () => getTransitionDirection,
|
|
24
|
+
getTransitionName: () => getTransitionName
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(motion_exports);
|
|
27
|
+
var import_type = require("./type");
|
|
28
|
+
var getCollapsedHeight = () => ({
|
|
29
|
+
height: 0,
|
|
30
|
+
opacity: 0
|
|
31
|
+
});
|
|
32
|
+
var getRealHeight = (node) => {
|
|
33
|
+
const { scrollHeight } = node;
|
|
34
|
+
return { height: scrollHeight, opacity: 1 };
|
|
35
|
+
};
|
|
36
|
+
var getCurrentHeight = (node) => ({
|
|
37
|
+
height: node ? node.offsetHeight : 0
|
|
38
|
+
});
|
|
39
|
+
var skipOpacityTransition = (_, event) => (event == null ? void 0 : event.deadline) === true || event.propertyName === "height";
|
|
40
|
+
var collapseMotion = {
|
|
41
|
+
motionName: "ant-motion-collapse",
|
|
42
|
+
onAppearStart: getCollapsedHeight,
|
|
43
|
+
onEnterStart: getCollapsedHeight,
|
|
44
|
+
onAppearActive: getRealHeight,
|
|
45
|
+
onEnterActive: getRealHeight,
|
|
46
|
+
onLeaveStart: getCurrentHeight,
|
|
47
|
+
onLeaveActive: getCollapsedHeight,
|
|
48
|
+
onAppearEnd: skipOpacityTransition,
|
|
49
|
+
onEnterEnd: skipOpacityTransition,
|
|
50
|
+
onLeaveEnd: skipOpacityTransition,
|
|
51
|
+
motionDeadline: 500
|
|
52
|
+
};
|
|
53
|
+
var SelectPlacements = (0, import_type.tuple)(
|
|
54
|
+
"bottomLeft",
|
|
55
|
+
"bottomRight",
|
|
56
|
+
"topLeft",
|
|
57
|
+
"topRight"
|
|
58
|
+
);
|
|
59
|
+
var getTransitionDirection = (placement) => {
|
|
60
|
+
if (placement !== void 0 && (placement === "topLeft" || placement === "topRight")) {
|
|
61
|
+
return `slide-down`;
|
|
62
|
+
}
|
|
63
|
+
return `slide-up`;
|
|
64
|
+
};
|
|
65
|
+
var getTransitionName = (rootPrefixCls, motion, transitionName) => {
|
|
66
|
+
if (transitionName !== void 0) {
|
|
67
|
+
return transitionName;
|
|
68
|
+
}
|
|
69
|
+
return `${rootPrefixCls}-${motion}`;
|
|
70
|
+
};
|
|
71
|
+
var motion_default = collapseMotion;
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
getTransitionDirection,
|
|
75
|
+
getTransitionName
|
|
76
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const isValidElement: typeof React.isValidElement;
|
|
3
|
+
export declare function isFragment(child: React.ReactElement): boolean;
|
|
4
|
+
type AnyObject = Record<PropertyKey, any>;
|
|
5
|
+
type RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | void);
|
|
6
|
+
export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props?: RenderProps): React.ReactNode;
|
|
7
|
+
export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/tree/utils/reactNode.ts
|
|
30
|
+
var reactNode_exports = {};
|
|
31
|
+
__export(reactNode_exports, {
|
|
32
|
+
cloneElement: () => cloneElement2,
|
|
33
|
+
isFragment: () => isFragment,
|
|
34
|
+
isValidElement: () => isValidElement,
|
|
35
|
+
replaceElement: () => replaceElement
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(reactNode_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var { isValidElement } = React;
|
|
40
|
+
function isFragment(child) {
|
|
41
|
+
return child && child.type === React.Fragment;
|
|
42
|
+
}
|
|
43
|
+
function replaceElement(element, replacement, props) {
|
|
44
|
+
if (!isValidElement(element)) {
|
|
45
|
+
return replacement;
|
|
46
|
+
}
|
|
47
|
+
return React.cloneElement(
|
|
48
|
+
element,
|
|
49
|
+
typeof props === "function" ? props(element.props || {}) : props
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function cloneElement2(element, props) {
|
|
53
|
+
return replaceElement(element, element, props);
|
|
54
|
+
}
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
cloneElement,
|
|
58
|
+
isFragment,
|
|
59
|
+
isValidElement,
|
|
60
|
+
replaceElement
|
|
61
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
|
+
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
3
|
+
/**
|
|
4
|
+
* https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
|
5
|
+
* performing indexing
|
|
6
|
+
*/
|
|
7
|
+
export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
8
|
+
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
9
|
+
export type LiteralUnion<T extends U, U> = T | (U & object);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/tree/utils/type.ts
|
|
20
|
+
var type_exports = {};
|
|
21
|
+
__export(type_exports, {
|
|
22
|
+
tuple: () => tuple,
|
|
23
|
+
tupleNum: () => tupleNum
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(type_exports);
|
|
26
|
+
var tuple = (...args) => args;
|
|
27
|
+
var tupleNum = (...args) => args;
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
tuple,
|
|
31
|
+
tupleNum
|
|
32
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import prompt from './prompt';
|
|
3
|
+
import './tree-picker.less';
|
|
4
|
+
declare const TreePicker: (<T extends import("..").TreeDataNode<object> = import("..").TreeDataNode<object>>(props: Omit<import("..").PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<import("..").TreeProps<T>, "search" | "params" | "request" | "rowKey" | "dataSource" | "fieldNames"> & {
|
|
5
|
+
treeProps?: Omit<import("..").TreeProps<T>, "rowKey"> | undefined;
|
|
6
|
+
multiple?: boolean | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
style?: (import("react").CSSProperties & Partial<Record<never, string>>) | undefined;
|
|
10
|
+
tabIndex?: number | undefined;
|
|
11
|
+
} & import("react").AriaAttributes & import("react").RefAttributes<import("..").PopupPickerActions>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null) & {
|
|
12
|
+
prompt: typeof prompt;
|
|
13
|
+
};
|
|
14
|
+
export default TreePicker;
|
|
15
|
+
export type { TreePickerProps } from './tree-picker';
|