@aplus-frontend/ui 0.0.1-beta.6 → 0.0.1-beta.8
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/es/index.mjs +157 -142
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +68 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +20 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +4 -0
- package/es/src/ap-action/item/index.vue2.mjs +49 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +6 -4
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +69 -40
- package/es/src/ap-field/text/index.vue.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
- package/es/src/ap-form/components/interface.d.ts +0 -0
- package/es/src/ap-form/index.d.ts +87 -1758
- package/es/src/ap-form/index.mjs +11 -7
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.d.ts +28 -28
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider.d.ts +4 -4
- package/es/src/config-provider/config-provider.mjs +4 -4
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.d.ts +12 -12
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.d.ts +12 -12
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.d.ts +42 -42
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.d.ts +3 -3
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.d.ts +7 -7
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.d.ts +41 -41
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.d.ts +45 -45
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +161 -145
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.d.ts +4 -3
- package/es/src/modal/basic.vue.mjs +2 -191
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.d.ts +10 -11
- package/es/src/modal/index.mjs +10 -8
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +2 -2
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.mjs +55 -56
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.d.ts +12 -12
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/modal/index.css +29 -30
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +6 -4
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/components/interface.d.ts +0 -0
- package/lib/src/ap-form/index.d.ts +87 -1758
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.d.ts +28 -28
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +4 -4
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +12 -12
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.d.ts +12 -12
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.d.ts +42 -42
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.d.ts +41 -41
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.d.ts +45 -45
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.d.ts +4 -3
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +10 -11
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.d.ts +12 -12
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/modal/index.css +29 -30
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Grid as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useEventListener as
|
|
4
|
-
const { useBreakpoint:
|
|
5
|
-
var
|
|
1
|
+
import { Grid as f } from "ant-design-vue";
|
|
2
|
+
import { ref as c, computed as L, unref as p } from "vue";
|
|
3
|
+
import { useEventListener as l } from "@aplus-frontend/hooks";
|
|
4
|
+
const { useBreakpoint: h } = f;
|
|
5
|
+
var w = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t.XXL = "XXL", t))(w || {}), v = /* @__PURE__ */ ((t) => (t[t.XS = 320] = "XS", t[t.SM = 640] = "SM", t[t.MD = 768] = "MD", t[t.LG = 960] = "LG", t[t.XL = 1280] = "XL", t[t.XXL = 1536] = "XXL", t))(v || {});
|
|
6
6
|
const e = /* @__PURE__ */ new Map();
|
|
7
7
|
e.set(
|
|
8
8
|
"XS",
|
|
@@ -34,7 +34,7 @@ e.set(
|
|
|
34
34
|
1536
|
|
35
35
|
/* XXL */
|
|
36
36
|
);
|
|
37
|
-
const
|
|
37
|
+
const n = [
|
|
38
38
|
"XS",
|
|
39
39
|
"SM",
|
|
40
40
|
"MD",
|
|
@@ -44,35 +44,36 @@ const X = [
|
|
|
44
44
|
/* XXL */
|
|
45
45
|
];
|
|
46
46
|
function W() {
|
|
47
|
-
const t =
|
|
48
|
-
const
|
|
49
|
-
for (let s =
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
47
|
+
const t = c(window.innerWidth), d = h(), r = L(() => {
|
|
48
|
+
const o = p(d);
|
|
49
|
+
for (let s = n.length - 1; s > 0; s--) {
|
|
50
|
+
const X = n[s], M = X.toLowerCase();
|
|
51
|
+
if (o[M])
|
|
52
|
+
return X;
|
|
53
53
|
}
|
|
54
|
-
}), a =
|
|
55
|
-
if (
|
|
56
|
-
return e.get(
|
|
54
|
+
}), a = L(() => {
|
|
55
|
+
if (r.value)
|
|
56
|
+
return e.get(r.value);
|
|
57
57
|
});
|
|
58
58
|
function i() {
|
|
59
|
-
const
|
|
60
|
-
t.value =
|
|
59
|
+
const o = document.body.clientWidth;
|
|
60
|
+
t.value = o;
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return l({
|
|
63
63
|
el: window,
|
|
64
64
|
name: "resize",
|
|
65
65
|
listener: () => {
|
|
66
66
|
i();
|
|
67
67
|
}
|
|
68
68
|
}), i(), {
|
|
69
|
-
screenRef:
|
|
69
|
+
screenRef: r,
|
|
70
70
|
widthRef: a,
|
|
71
71
|
realWidthRef: t
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
v as ScreenEnum,
|
|
76
|
+
w as SizeEnum,
|
|
76
77
|
e as screenMap,
|
|
77
78
|
W as useBreakpoint
|
|
78
79
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { tryOnUnmounted as t } from "@vueuse/core";
|
|
2
|
+
import { add as e, del as n } from "../component-map.mjs";
|
|
3
|
+
import { isPascalCase as i } from "../../utils/index.mjs";
|
|
4
|
+
function f(r, o) {
|
|
5
|
+
if (!i(r))
|
|
6
|
+
throw new Error("compName must be in PascalCase");
|
|
7
|
+
e(r, o), t(() => {
|
|
8
|
+
n(r);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
f as useComponentRegister
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unref as o, nextTick as tt, toRaw as J } from "vue";
|
|
2
|
-
import { isFunction as Q, get as nt, cloneDeep as I, isString as D, isObject as A, isArray as T, uniqBy as et, isNil as U
|
|
2
|
+
import { set as Y, isFunction as Q, get as nt, cloneDeep as I, isString as D, isObject as A, isArray as T, uniqBy as et, isNil as U } from "lodash-unified";
|
|
3
3
|
import { isDef as W } from "../../utils/index.mjs";
|
|
4
4
|
import { deepMerge as it } from "@aplus-frontend/utils";
|
|
5
5
|
import { handleInputNumberValue as ot, isIncludeSimpleComponents as B, dateItemType as ct, defaultValueComponents as rt } from "../helper.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isObject as l, isArray as D, isFunction as x, isString as F,
|
|
1
|
+
import { set as T, isObject as l, isArray as D, isFunction as x, isString as F, get as V, unset as g, isNil as j, isEmpty as E, cloneDeep as K } from "lodash-unified";
|
|
2
2
|
import b from "dayjs";
|
|
3
3
|
import { unref as O } from "vue";
|
|
4
4
|
function S(y, o, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as i,
|
|
1
|
+
import { ref as i, unref as o, nextTick as f, onUnmounted as d, watch as u } from "vue";
|
|
2
2
|
import { isProdMode as c } from "@aplus-frontend/utils";
|
|
3
3
|
import { getDynamicProps as h } from "../../utils/index.mjs";
|
|
4
4
|
function S(n) {
|
|
@@ -9,12 +9,12 @@ function S(n) {
|
|
|
9
9
|
throw new Error(
|
|
10
10
|
"The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
|
|
11
11
|
);
|
|
12
|
-
return await
|
|
12
|
+
return await f(), e;
|
|
13
13
|
}
|
|
14
14
|
function l(e) {
|
|
15
|
-
c() &&
|
|
15
|
+
c() && d(() => {
|
|
16
16
|
r.value = null, s.value = null;
|
|
17
|
-
}), !(o(s) && c() && e === o(r)) && (r.value = e, s.value = !0,
|
|
17
|
+
}), !(o(s) && c() && e === o(r)) && (r.value = e, s.value = !0, u(
|
|
18
18
|
() => n,
|
|
19
19
|
() => {
|
|
20
20
|
n && e.setProps(h(n));
|
|
@@ -96,10 +96,10 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
96
96
|
offset: string | number;
|
|
97
97
|
} | ColSize | undefined;
|
|
98
98
|
prefixCls?: string | undefined;
|
|
99
|
-
order?: (string | number) | undefined;
|
|
100
99
|
span?: (string | number) | undefined;
|
|
101
100
|
push?: (string | number) | undefined;
|
|
102
101
|
flex?: (string | number) | undefined;
|
|
102
|
+
order?: (string | number) | undefined;
|
|
103
103
|
offset?: (string | number) | undefined;
|
|
104
104
|
pull?: (string | number) | undefined;
|
|
105
105
|
innerHTML?: string | undefined;
|
|
@@ -110,7 +110,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
110
110
|
contextmenu?: string | undefined;
|
|
111
111
|
dir?: string | undefined;
|
|
112
112
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
113
|
-
hidden?: "" |
|
|
113
|
+
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
114
114
|
id?: string | undefined;
|
|
115
115
|
inert?: (boolean | "true" | "false") | undefined;
|
|
116
116
|
lang?: string | undefined;
|
|
@@ -141,27 +141,27 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
141
141
|
results?: (string | number) | undefined;
|
|
142
142
|
security?: string | undefined;
|
|
143
143
|
unselectable?: "on" | "off" | undefined;
|
|
144
|
-
inputmode?: "text" | "search" | "
|
|
144
|
+
inputmode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
145
145
|
is?: string | undefined;
|
|
146
146
|
'aria-activedescendant'?: string | undefined;
|
|
147
147
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
148
|
-
'aria-autocomplete'?: "
|
|
148
|
+
'aria-autocomplete'?: "inline" | "none" | "both" | "list" | undefined;
|
|
149
149
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
150
150
|
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
151
151
|
'aria-colcount'?: (string | number) | undefined;
|
|
152
152
|
'aria-colindex'?: (string | number) | undefined;
|
|
153
153
|
'aria-colspan'?: (string | number) | undefined;
|
|
154
154
|
'aria-controls'?: string | undefined;
|
|
155
|
-
'aria-current'?: "time" | "date" |
|
|
155
|
+
'aria-current'?: "time" | "date" | (boolean | "true" | "false") | "page" | "step" | "location" | undefined;
|
|
156
156
|
'aria-describedby'?: string | undefined;
|
|
157
157
|
'aria-details'?: string | undefined;
|
|
158
158
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
159
|
-
'aria-dropeffect'?: "
|
|
159
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
160
160
|
'aria-errormessage'?: string | undefined;
|
|
161
161
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
162
162
|
'aria-flowto'?: string | undefined;
|
|
163
163
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
164
|
-
'aria-haspopup'?: "
|
|
164
|
+
'aria-haspopup'?: "menu" | "dialog" | (boolean | "true" | "false") | "grid" | "listbox" | "tree" | undefined;
|
|
165
165
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
166
166
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
167
167
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -301,10 +301,10 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
301
301
|
offset: string | number;
|
|
302
302
|
} | ColSize | undefined;
|
|
303
303
|
prefixCls?: string | undefined;
|
|
304
|
-
order?: (string | number) | undefined;
|
|
305
304
|
span?: (string | number) | undefined;
|
|
306
305
|
push?: (string | number) | undefined;
|
|
307
306
|
flex?: (string | number) | undefined;
|
|
307
|
+
order?: (string | number) | undefined;
|
|
308
308
|
offset?: (string | number) | undefined;
|
|
309
309
|
pull?: (string | number) | undefined;
|
|
310
310
|
style: any;
|
|
@@ -20,5 +20,6 @@ declare const Field: FieldType;
|
|
|
20
20
|
export * from './components/interface';
|
|
21
21
|
export * from './types/form';
|
|
22
22
|
export * from './types/form-item';
|
|
23
|
+
export { useComponentRegister } from './hooks/use-component-register';
|
|
23
24
|
export { useForm } from './hooks/use-form';
|
|
24
25
|
export { Field, ApiCascader, ApiRadioGroup, ApiSelect, ApiTransfer, ApiTree, RadioButtonGroup, ProForm, ApiTreeSelect };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./components/api-cascader.vue2.mjs";
|
|
2
|
+
import "./components/api-radio-group.vue2.mjs";
|
|
3
|
+
import "./components/api-select.vue2.mjs";
|
|
4
|
+
import "./components/api-transfer.vue2.mjs";
|
|
5
|
+
import "./components/api-tree.vue2.mjs";
|
|
6
|
+
import "./components/api-tree-select.vue2.mjs";
|
|
7
|
+
import "./components/radio-button-group.vue2.mjs";
|
|
8
|
+
import "./pro-form.vue2.mjs";
|
|
9
|
+
import "./components/interface.mjs";
|
|
10
|
+
import { isComponentFormSchema as g, isSlotFormSchema as b } from "./types/form.mjs";
|
|
11
|
+
import "./types/form-item.mjs";
|
|
12
|
+
import { useComponentRegister as k } from "./hooks/use-component-register.mjs";
|
|
13
|
+
import { useForm as v } from "./hooks/use-form.mjs";
|
|
14
|
+
import o from "./components/api-cascader.vue.mjs";
|
|
2
15
|
import r from "./components/api-radio-group.vue.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
16
|
+
import i from "./components/api-select.vue.mjs";
|
|
17
|
+
import m from "./components/api-transfer.vue.mjs";
|
|
18
|
+
import p from "./components/api-tree.vue.mjs";
|
|
6
19
|
import t from "./components/api-tree-select.vue.mjs";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "./component-map.mjs";
|
|
11
|
-
import "../basic/index.mjs";
|
|
12
|
-
import "lodash-unified";
|
|
13
|
-
import "@fruits-chain/utils";
|
|
14
|
-
import "../config-provider/index.mjs";
|
|
15
|
-
import "./components/style/form-item.css";
|
|
16
|
-
import "../base-button/index.mjs";
|
|
17
|
-
import "@aplus-frontend/hooks";
|
|
18
|
-
import "./components/style/form-action.css";
|
|
19
|
-
import "dayjs";
|
|
20
|
-
import "@aplus-frontend/utils";
|
|
21
|
-
import "@vueuse/core";
|
|
22
|
-
import "./hooks/use-break-point.mjs";
|
|
23
|
-
import "../modal/index.mjs";
|
|
24
|
-
import "./style/index.css";
|
|
25
|
-
const q = {
|
|
26
|
-
ApiCascader: i,
|
|
20
|
+
import e from "./components/radio-button-group.vue.mjs";
|
|
21
|
+
const G = {
|
|
22
|
+
ApiCascader: o,
|
|
27
23
|
ApiRadioGroup: r,
|
|
28
|
-
ApiSelect:
|
|
29
|
-
ApiTransfer:
|
|
30
|
-
ApiTree:
|
|
24
|
+
ApiSelect: i,
|
|
25
|
+
ApiTransfer: m,
|
|
26
|
+
ApiTree: p,
|
|
31
27
|
ApiTreeSelect: t,
|
|
32
|
-
RadioButtonGroup:
|
|
28
|
+
RadioButtonGroup: e
|
|
33
29
|
};
|
|
34
30
|
export {
|
|
35
|
-
|
|
31
|
+
o as ApiCascader,
|
|
36
32
|
r as ApiRadioGroup,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
i as ApiSelect,
|
|
34
|
+
m as ApiTransfer,
|
|
35
|
+
p as ApiTree,
|
|
40
36
|
t as ApiTreeSelect,
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
G as Field,
|
|
38
|
+
e as RadioButtonGroup,
|
|
39
|
+
g as isComponentFormSchema,
|
|
40
|
+
b as isSlotFormSchema,
|
|
41
|
+
k as useComponentRegister,
|
|
42
|
+
v as useForm
|
|
43
43
|
};
|
|
@@ -66,7 +66,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
66
66
|
"onAdvanced-change"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
"onField-value-change"?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
size: "
|
|
69
|
+
size: "default" | "small" | "large";
|
|
70
70
|
layout: "inline" | "horizontal" | "vertical";
|
|
71
71
|
labelWidth: string | number;
|
|
72
72
|
rulesMessageJoinLabel: boolean;
|
|
@@ -75,7 +75,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
75
75
|
showActionButtonGroup: boolean;
|
|
76
76
|
showResetButton: boolean;
|
|
77
77
|
showSubmitButton: boolean;
|
|
78
|
-
schemas: FormSchema[];
|
|
78
|
+
schemas: FormSchema<any>[];
|
|
79
79
|
emptySpan: number | Partial< ColEx>;
|
|
80
80
|
fieldMapToTime: FieldMapToTime;
|
|
81
81
|
autoSubmitOnEnter: boolean;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineComponent as pe, useAttrs as ve, reactive as $, ref as f, computed as
|
|
1
|
+
import { defineComponent as pe, useAttrs as ve, reactive as $, ref as f, computed as m, unref as a, watch as b, nextTick as ye, onMounted as ge, openBlock as V, createBlock as N, mergeProps as C, withKeys as Be, withCtx as h, createVNode as Y, normalizeProps as z, guardReactiveProps as j, renderSlot as A, createElementBlock as be, Fragment as he, renderList as M, createSlots as K } from "vue";
|
|
2
2
|
import { Form as Ae, Row as Fe } from "ant-design-vue";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { dateItemType as
|
|
3
|
+
import "./components/form-item.vue.mjs";
|
|
4
|
+
import "./components/form-action.vue.mjs";
|
|
5
|
+
import { dateItemType as Se, isIncludeSimpleComponents as we } from "./helper.mjs";
|
|
6
6
|
import F from "dayjs";
|
|
7
|
-
import { deepMerge as
|
|
8
|
-
import { useFormValues as
|
|
9
|
-
import
|
|
10
|
-
import { useFormEvents as
|
|
11
|
-
import { createFormContext as
|
|
12
|
-
import { useAutoFocus as
|
|
7
|
+
import { deepMerge as Pe } from "@aplus-frontend/utils";
|
|
8
|
+
import { useFormValues as De } from "./hooks/use-form-values.mjs";
|
|
9
|
+
import Ve from "./hooks/use-advanced.mjs";
|
|
10
|
+
import { useFormEvents as Ce } from "./hooks/use-form-events.mjs";
|
|
11
|
+
import { createFormContext as Me } from "./hooks/use-form-context.mjs";
|
|
12
|
+
import { useAutoFocus as Re } from "./hooks/use-auto-focus.mjs";
|
|
13
13
|
import "../modal/index.mjs";
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
import { cloneDeep as
|
|
14
|
+
import { useDebounceFn as Te } from "@vueuse/core";
|
|
15
|
+
import { cloneDeep as _e } from "lodash-unified";
|
|
16
16
|
import "../config-provider/index.mjs";
|
|
17
17
|
import "./style/index.css";
|
|
18
|
-
import { useModalContext as
|
|
19
|
-
import { useNamespace as
|
|
20
|
-
|
|
18
|
+
import { useModalContext as Ee } from "../modal/hooks/use-modal-context.mjs";
|
|
19
|
+
import { useNamespace as Oe } from "../config-provider/hooks/use-namespace.mjs";
|
|
20
|
+
import ke from "./components/form-item.vue2.mjs";
|
|
21
|
+
import He from "./components/form-action.vue2.mjs";
|
|
22
|
+
const nt = /* @__PURE__ */ pe({
|
|
21
23
|
name: "BasicForm",
|
|
22
24
|
__name: "pro-form",
|
|
23
25
|
props: {
|
|
@@ -71,26 +73,26 @@ const ot = /* @__PURE__ */ pe({
|
|
|
71
73
|
"field-value-change"
|
|
72
74
|
],
|
|
73
75
|
setup(r, { expose: d, emit: U }) {
|
|
74
|
-
const p = r, v = U, x = ve(), s = $({}),
|
|
76
|
+
const p = r, v = U, x = ve(), s = $({}), c = Ee(), R = $({
|
|
75
77
|
isAdvanced: !0,
|
|
76
78
|
hideAdvanceBtn: !1,
|
|
77
79
|
isLoad: !1,
|
|
78
80
|
actionSpan: 6
|
|
79
|
-
}), y = f({}), S = f(!1), w = f(), T = f(null), P = f(null), { b: G, m: J } =
|
|
81
|
+
}), y = f({}), S = f(!1), w = f(), T = f(null), P = f(null), { b: G, m: J } = Oe("basic-form"), n = m(() => ({ ...p, ...a(w) })), W = m(() => [
|
|
80
82
|
G(),
|
|
81
83
|
{
|
|
82
84
|
[J("compact")]: a(n).compact
|
|
83
85
|
}
|
|
84
|
-
]), q =
|
|
86
|
+
]), q = m(() => {
|
|
85
87
|
const { baseRowStyle: e = {}, rowProps: o } = a(n);
|
|
86
88
|
return {
|
|
87
89
|
style: e,
|
|
88
90
|
...o
|
|
89
91
|
};
|
|
90
|
-
}), Q =
|
|
92
|
+
}), Q = m(
|
|
91
93
|
() => ({ ...x, ...p, ...a(n) })
|
|
92
|
-
), u =
|
|
93
|
-
const e =
|
|
94
|
+
), u = m(() => {
|
|
95
|
+
const e = _e(
|
|
94
96
|
a(T) || a(n).schemas
|
|
95
97
|
);
|
|
96
98
|
for (const o of e) {
|
|
@@ -100,7 +102,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
100
102
|
componentProps: i = {},
|
|
101
103
|
isHandleDateDefaultValue: fe = !0
|
|
102
104
|
} = o;
|
|
103
|
-
if (fe && t && l &&
|
|
105
|
+
if (fe && t && l && Se.includes(l)) {
|
|
104
106
|
const de = {
|
|
105
107
|
schema: o,
|
|
106
108
|
tableAction: p.tableAction ?? {},
|
|
@@ -120,22 +122,22 @@ const ot = /* @__PURE__ */ pe({
|
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
return a(n).showAdvancedButton ? e.filter(
|
|
123
|
-
(o) => !
|
|
125
|
+
(o) => !we(o.component)
|
|
124
126
|
) : e;
|
|
125
|
-
}), { handleToggleAdvanced: X, fieldsIsAdvancedMap: Z } =
|
|
127
|
+
}), { handleToggleAdvanced: X, fieldsIsAdvancedMap: Z } = Ve({
|
|
126
128
|
advanceState: R,
|
|
127
129
|
emit: v,
|
|
128
130
|
getProps: n,
|
|
129
131
|
getSchema: u,
|
|
130
132
|
formModel: s,
|
|
131
133
|
defaultValueRef: y
|
|
132
|
-
}), { handleFormValues: ee, initDefault: _ } =
|
|
134
|
+
}), { handleFormValues: ee, initDefault: _ } = De({
|
|
133
135
|
getProps: n,
|
|
134
136
|
defaultValueRef: y,
|
|
135
137
|
getSchema: u,
|
|
136
138
|
formModel: s
|
|
137
139
|
});
|
|
138
|
-
|
|
140
|
+
Re({
|
|
139
141
|
getSchema: u,
|
|
140
142
|
getProps: n,
|
|
141
143
|
isInitedDefault: S,
|
|
@@ -154,7 +156,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
154
156
|
removeSchemaByField: se,
|
|
155
157
|
resetFields: H,
|
|
156
158
|
scrollToField: le
|
|
157
|
-
} =
|
|
159
|
+
} = Ce({
|
|
158
160
|
emit: v,
|
|
159
161
|
getProps: n,
|
|
160
162
|
formModel: s,
|
|
@@ -164,7 +166,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
164
166
|
schemaRef: T,
|
|
165
167
|
handleFormValues: ee
|
|
166
168
|
});
|
|
167
|
-
|
|
169
|
+
Me({
|
|
168
170
|
resetAction: H,
|
|
169
171
|
submitAction: g
|
|
170
172
|
}), b(
|
|
@@ -186,24 +188,24 @@ const ot = /* @__PURE__ */ pe({
|
|
|
186
188
|
(e) => {
|
|
187
189
|
ye(() => {
|
|
188
190
|
var o;
|
|
189
|
-
(o =
|
|
191
|
+
(o = c == null ? void 0 : c.redoModalHeight) == null || o.call(c);
|
|
190
192
|
}), !a(S) && e != null && e.length && (_(), S.value = !0);
|
|
191
193
|
}
|
|
192
194
|
), b(
|
|
193
195
|
() => s,
|
|
194
|
-
|
|
196
|
+
Te(() => {
|
|
195
197
|
a(n).submitOnChange && g();
|
|
196
198
|
}, 300),
|
|
197
199
|
{ deep: !0 }
|
|
198
200
|
);
|
|
199
201
|
async function ue(e) {
|
|
200
|
-
w.value =
|
|
202
|
+
w.value = Pe(a(w) || {}, e);
|
|
201
203
|
}
|
|
202
204
|
function ie(e, o, t) {
|
|
203
205
|
s[e] = o, v("field-value-change", e, o), t && t.itemProps && !t.itemProps.autoLink && O([e]).catch((l) => {
|
|
204
206
|
});
|
|
205
207
|
}
|
|
206
|
-
function
|
|
208
|
+
function me(e) {
|
|
207
209
|
const { autoSubmitOnEnter: o } = a(n);
|
|
208
210
|
if (o && e.key === "Enter" && e.target && e.target instanceof HTMLElement) {
|
|
209
211
|
const t = e.target;
|
|
@@ -224,7 +226,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
224
226
|
validate: oe,
|
|
225
227
|
submit: g,
|
|
226
228
|
scrollToField: le
|
|
227
|
-
},
|
|
229
|
+
}, ce = m(
|
|
228
230
|
() => ({ ...n.value, ...R })
|
|
229
231
|
);
|
|
230
232
|
return d({
|
|
@@ -236,13 +238,13 @@ const ot = /* @__PURE__ */ pe({
|
|
|
236
238
|
ref_key: "formElRef",
|
|
237
239
|
ref: P,
|
|
238
240
|
model: s,
|
|
239
|
-
onKeypress: Be(
|
|
241
|
+
onKeypress: Be(me, ["enter"])
|
|
240
242
|
}), {
|
|
241
243
|
default: h(() => [
|
|
242
244
|
Y(a(Fe), z(j(q.value)), {
|
|
243
245
|
default: h(() => [
|
|
244
246
|
A(e.$slots, "formHeader"),
|
|
245
|
-
(V(!0), be(he, null, M(u.value, (t) => (V(), N(
|
|
247
|
+
(V(!0), be(he, null, M(u.value, (t) => (V(), N(ke, {
|
|
246
248
|
key: t.field,
|
|
247
249
|
isAdvanced: a(Z)[t.field],
|
|
248
250
|
tableAction: e.tableAction,
|
|
@@ -260,7 +262,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
260
262
|
])
|
|
261
263
|
}))
|
|
262
264
|
]), 1032, ["isAdvanced", "tableAction", "schema", "formProps", "allDefaultValues", "formModel"]))), 128)),
|
|
263
|
-
Y(
|
|
265
|
+
Y(He, C(ce.value, { onToggleAdvanced: a(X) }), K({ _: 2 }, [
|
|
264
266
|
M([
|
|
265
267
|
"resetBefore",
|
|
266
268
|
"submitBefore",
|
|
@@ -283,5 +285,5 @@ const ot = /* @__PURE__ */ pe({
|
|
|
283
285
|
}
|
|
284
286
|
});
|
|
285
287
|
export {
|
|
286
|
-
|
|
288
|
+
nt as default
|
|
287
289
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -55,7 +55,7 @@ export interface ProFormProps {
|
|
|
55
55
|
wrapperCol?: Partial<ColEx>;
|
|
56
56
|
baseRowStyle?: CSSProperties;
|
|
57
57
|
baseColProps?: Partial<ColEx>;
|
|
58
|
-
schemas?: FormSchema[];
|
|
58
|
+
schemas?: FormSchema<any>[];
|
|
59
59
|
mergeDynamicData?: Record<string, any>;
|
|
60
60
|
compact?: boolean;
|
|
61
61
|
emptySpan?: number | Partial<ColEx>;
|
|
@@ -86,7 +86,7 @@ export type RenderOpts = {
|
|
|
86
86
|
disabled: boolean;
|
|
87
87
|
[key: string]: any;
|
|
88
88
|
};
|
|
89
|
-
interface BaseFormSchema<T extends ComponentType = any> {
|
|
89
|
+
interface BaseFormSchema<T extends ComponentType = any, E = any> {
|
|
90
90
|
field: string;
|
|
91
91
|
fields?: string[];
|
|
92
92
|
changeEvent?: string;
|
|
@@ -102,7 +102,7 @@ interface BaseFormSchema<T extends ComponentType = any> {
|
|
|
102
102
|
tableAction: any;
|
|
103
103
|
formActionType: FormActionType;
|
|
104
104
|
formModel: Record<string, any>;
|
|
105
|
-
}) => ComponentProps[T]) | ComponentProps[T];
|
|
105
|
+
}) => (ComponentProps & E)[T]) | (ComponentProps & E)[T];
|
|
106
106
|
required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
107
107
|
suffix?: string | number | ((values: RenderCallbackParams) => string | number);
|
|
108
108
|
rules?: Rule[];
|
|
@@ -129,15 +129,15 @@ interface BaseFormSchema<T extends ComponentType = any> {
|
|
|
129
129
|
dynamicReadonly?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
130
130
|
dynamicRules?: (renderCallbackParams: RenderCallbackParams) => Rule[];
|
|
131
131
|
}
|
|
132
|
-
export interface ComponentFormSchema<T extends ComponentType = any> extends BaseFormSchema<T> {
|
|
133
|
-
component: T;
|
|
132
|
+
export interface ComponentFormSchema<T extends ComponentType = any, E = any> extends BaseFormSchema<T, E> {
|
|
133
|
+
component: T | keyof E;
|
|
134
134
|
}
|
|
135
135
|
export interface SlotFormSchema extends BaseFormSchema {
|
|
136
136
|
slot: string;
|
|
137
137
|
}
|
|
138
|
-
type ComponentFormSchemaType<T extends ComponentType = ComponentType
|
|
139
|
-
export type FormSchema = ComponentFormSchemaType | SlotFormSchema;
|
|
140
|
-
export type FormSchemaInner = Partial<ComponentFormSchema
|
|
138
|
+
type ComponentFormSchemaType<T extends ComponentType = ComponentType, E = any> = ComponentFormSchema<T, E>;
|
|
139
|
+
export type FormSchema<ExtraComponentRecordsTypes = any> = ComponentFormSchemaType<ComponentType, ExtraComponentRecordsTypes> | SlotFormSchema;
|
|
140
|
+
export type FormSchemaInner = Partial<ComponentFormSchema<ComponentType, {}>> & Partial<SlotFormSchema> & BaseFormSchema;
|
|
141
141
|
export declare function isSlotFormSchema(schema: FormSchemaInner): schema is SlotFormSchema;
|
|
142
142
|
export declare function isComponentFormSchema(schema: FormSchemaInner): schema is ComponentFormSchema;
|
|
143
143
|
export interface HelpComponentProps {
|
|
@@ -1,39 +1,31 @@
|
|
|
1
|
-
import { Input as
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "../
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
t
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
t.set("ApiSelect", a);
|
|
28
|
-
t.set("AutoComplete", p);
|
|
29
|
-
t.set("ApiTreeSelect", f);
|
|
30
|
-
t.set("Switch", r);
|
|
31
|
-
t.set("Checkbox", m);
|
|
32
|
-
t.set("DatePicker", c);
|
|
33
|
-
t.set("TimePicker", s);
|
|
34
|
-
t.set("RadioGroup", n.Group);
|
|
35
|
-
t.set("RadioButtonGroup", _);
|
|
36
|
-
t.set("ApiRadioGroup", u);
|
|
1
|
+
import { Input as i, InputNumber as p, Select as r, AutoComplete as m, Switch as c, Checkbox as s, DatePicker as n, TimePicker as u, Radio as a } from "ant-design-vue";
|
|
2
|
+
import "../pro-form/index.mjs";
|
|
3
|
+
import f from "../pro-form/components/api-select.vue.mjs";
|
|
4
|
+
import d from "../pro-form/components/api-tree-select.vue.mjs";
|
|
5
|
+
import l from "../pro-form/components/radio-button-group.vue.mjs";
|
|
6
|
+
import _ from "../pro-form/components/api-radio-group.vue.mjs";
|
|
7
|
+
const e = /* @__PURE__ */ new Map();
|
|
8
|
+
e.set("Input", i);
|
|
9
|
+
e.set("InputNumber", p);
|
|
10
|
+
e.set("Select", r);
|
|
11
|
+
e.set("ApiSelect", f);
|
|
12
|
+
e.set("AutoComplete", m);
|
|
13
|
+
e.set("ApiTreeSelect", d);
|
|
14
|
+
e.set("Switch", c);
|
|
15
|
+
e.set("Checkbox", s);
|
|
16
|
+
e.set("DatePicker", n);
|
|
17
|
+
e.set("TimePicker", u);
|
|
18
|
+
e.set("RadioGroup", a.Group);
|
|
19
|
+
e.set("RadioButtonGroup", l);
|
|
20
|
+
e.set("ApiRadioGroup", _);
|
|
21
|
+
function G(t, o) {
|
|
22
|
+
e.set(t, o);
|
|
23
|
+
}
|
|
24
|
+
function I(t) {
|
|
25
|
+
e.delete(t);
|
|
26
|
+
}
|
|
37
27
|
export {
|
|
38
|
-
|
|
28
|
+
G as add,
|
|
29
|
+
e as componentMap,
|
|
30
|
+
I as del
|
|
39
31
|
};
|