@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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as p, ref as g, unref as i, computed as r, openBlock as s, createElementBlock as k, normalizeClass as C, createBlock as y, createCommentVNode as c, renderSlot as b, createTextVNode as v, toDisplayString as B } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import x from "ant-design-vue/es/button/LoadingIcon";
|
|
4
|
+
import "../style/item.css";
|
|
5
|
+
import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const S = /* @__PURE__ */ p({
|
|
7
|
+
name: "ApActionItem",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
visible: { type: Boolean, default: !0 },
|
|
14
|
+
onAction: {},
|
|
15
|
+
onClick: {},
|
|
16
|
+
loading: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
setup(u) {
|
|
19
|
+
const e = u, { b: d, m: t } = A("action-item"), n = g(!1);
|
|
20
|
+
function f(o) {
|
|
21
|
+
var a;
|
|
22
|
+
i(l) || ((a = e.onClick) == null || a.call(e, o), e.onAction && (n.value = !0, e.onAction(o).finally(() => n.value = !1)));
|
|
23
|
+
}
|
|
24
|
+
const l = r(() => e.loading || i(n)), m = r(() => [
|
|
25
|
+
d(),
|
|
26
|
+
t(e.color),
|
|
27
|
+
e.disabled ? t("disabled") : null,
|
|
28
|
+
l.value ? t("loading") : null
|
|
29
|
+
].filter(Boolean));
|
|
30
|
+
return (o, a) => o.visible ? (s(), k("span", {
|
|
31
|
+
key: 0,
|
|
32
|
+
onClick: f,
|
|
33
|
+
class: C(m.value)
|
|
34
|
+
}, [
|
|
35
|
+
l.value ? (s(), y(i(x), {
|
|
36
|
+
key: 0,
|
|
37
|
+
prefixCls: "btn",
|
|
38
|
+
existIcon: !1,
|
|
39
|
+
loading: ""
|
|
40
|
+
})) : c("", !0),
|
|
41
|
+
b(o.$slots, "default", {}, () => [
|
|
42
|
+
v(B(o.text || ""), 1)
|
|
43
|
+
])
|
|
44
|
+
], 2)) : c("", !0);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
S as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ApActionItemDropdownProps, ActionColor, MixedActionTypes } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { Trigger } from 'ant-design-vue/es/dropdown/props';
|
|
4
|
+
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemDropdownProps>, {
|
|
6
|
+
color: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
trigger: () => string[];
|
|
11
|
+
placement: string;
|
|
12
|
+
actions: () => never[];
|
|
13
|
+
showIcon: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemDropdownProps>, {
|
|
15
|
+
color: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
trigger: () => string[];
|
|
20
|
+
placement: string;
|
|
21
|
+
actions: () => never[];
|
|
22
|
+
showIcon: boolean;
|
|
23
|
+
}>>>, {
|
|
24
|
+
color: ActionColor;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
visible: boolean;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
trigger: Trigger | Trigger[];
|
|
29
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter";
|
|
30
|
+
showIcon: boolean;
|
|
31
|
+
actions: MixedActionTypes[];
|
|
32
|
+
}, {}>, {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
}> : P[K];
|
|
49
|
+
};
|
|
50
|
+
type __VLS_Prettify<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent as _, ref as k, computed as w, openBlock as t, createBlock as l, unref as r, withCtx as n, createVNode as i, createElementBlock as v, Fragment as B, renderList as A, normalizeClass as s, mergeProps as f, createElementVNode as C, normalizeProps as P, guardReactiveProps as D, renderSlot as I, createCommentVNode as N } from "vue";
|
|
2
|
+
import { Dropdown as $, Menu as b, MenuItem as h } from "ant-design-vue";
|
|
3
|
+
import { DownOutlined as V } from "@ant-design/icons-vue";
|
|
4
|
+
import "../item/index.vue.mjs";
|
|
5
|
+
import "../item-modal/index.vue2.mjs";
|
|
6
|
+
import "../item-popconfirm/index.vue2.mjs";
|
|
7
|
+
import "../../config-provider/index.mjs";
|
|
8
|
+
import { omit as z } from "lodash-unified";
|
|
9
|
+
import "../style/item-dropdown.css";
|
|
10
|
+
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import L from "../item-modal/index.vue.mjs";
|
|
12
|
+
import M from "../item-popconfirm/index.vue.mjs";
|
|
13
|
+
import c from "../item/index.vue2.mjs";
|
|
14
|
+
const T = /* @__PURE__ */ _({
|
|
15
|
+
name: "ApActionItemDropDown",
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
trigger: { default: () => ["hover"] },
|
|
19
|
+
placement: { default: "bottomLeft" },
|
|
20
|
+
actions: { default: () => [] },
|
|
21
|
+
showIcon: { type: Boolean, default: !0 },
|
|
22
|
+
text: {},
|
|
23
|
+
color: { default: "primary" },
|
|
24
|
+
disabled: { type: Boolean, default: !1 },
|
|
25
|
+
visible: { type: Boolean, default: !0 },
|
|
26
|
+
onClick: {},
|
|
27
|
+
loading: { type: Boolean, default: !1 }
|
|
28
|
+
},
|
|
29
|
+
setup(d) {
|
|
30
|
+
const u = d, m = k(!1), { e: p } = E("action-item-dropdown"), g = w(() => u.actions.map((o) => ({
|
|
31
|
+
...o,
|
|
32
|
+
onAction: async (a) => {
|
|
33
|
+
var e;
|
|
34
|
+
try {
|
|
35
|
+
await ((e = o.onAction) == null ? void 0 : e.call(o, a));
|
|
36
|
+
} finally {
|
|
37
|
+
m.value = !1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
})));
|
|
41
|
+
return (o, a) => (t(), l(r($), {
|
|
42
|
+
open: m.value,
|
|
43
|
+
"onUpdate:open": a[0] || (a[0] = (e) => m.value = e),
|
|
44
|
+
trigger: o.trigger,
|
|
45
|
+
placement: o.placement
|
|
46
|
+
}, {
|
|
47
|
+
overlay: n(() => [
|
|
48
|
+
i(r(b), null, {
|
|
49
|
+
default: n(() => [
|
|
50
|
+
(t(!0), v(B, null, A(g.value, (e, y) => (t(), l(r(h), {
|
|
51
|
+
key: y,
|
|
52
|
+
class: s(r(p)("item"))
|
|
53
|
+
}, {
|
|
54
|
+
default: n(() => [
|
|
55
|
+
e.modalProps ? (t(), l(L, f({
|
|
56
|
+
key: 0,
|
|
57
|
+
ref_for: !0
|
|
58
|
+
}, e), null, 16)) : e.popconfirmProps ? (t(), l(M, f({
|
|
59
|
+
key: 1,
|
|
60
|
+
ref_for: !0
|
|
61
|
+
}, e), null, 16)) : (t(), l(c, f({
|
|
62
|
+
key: 2,
|
|
63
|
+
ref_for: !0
|
|
64
|
+
}, e), null, 16))
|
|
65
|
+
]),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["class"]))), 128))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
71
|
+
]),
|
|
72
|
+
default: n(() => [
|
|
73
|
+
C("span", {
|
|
74
|
+
class: s(r(p)("wrapper"))
|
|
75
|
+
}, [
|
|
76
|
+
i(c, P(D(r(z)(u, ["actions", "trigger", "placement"]))), {
|
|
77
|
+
default: n(() => [
|
|
78
|
+
I(o.$slots, "default")
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 16),
|
|
82
|
+
o.showIcon ? (t(), l(r(V), {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: s(r(p)("icon")),
|
|
85
|
+
style: { color: "#0070ff" }
|
|
86
|
+
}, null, 8, ["class"])) : N("", !0)
|
|
87
|
+
], 2)
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 8, ["open", "trigger", "placement"]));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
T as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ApActionItemModalProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ModalFuncProps } from 'ant-design-vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
6
|
+
color: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
modalProps: () => {};
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
12
|
+
color: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
visible: boolean;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
modalProps: () => {};
|
|
17
|
+
}>>>, {
|
|
18
|
+
color: ActionColor;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
modalProps: Omit< ModalFuncProps, "type">;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as m, createBlock as c, mergeProps as p, unref as d } from "vue";
|
|
2
|
+
import { Modal as f } from "ant-design-vue";
|
|
3
|
+
import "../item/index.vue.mjs";
|
|
4
|
+
import { omit as s } from "lodash-unified";
|
|
5
|
+
import u from "../item/index.vue2.mjs";
|
|
6
|
+
const P = /* @__PURE__ */ i({
|
|
7
|
+
name: "ApActionItemModal",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
visible: { type: Boolean, default: !0 },
|
|
14
|
+
onAction: {},
|
|
15
|
+
onClick: {},
|
|
16
|
+
loading: { type: Boolean, default: !1 },
|
|
17
|
+
modalProps: { default: () => ({}) }
|
|
18
|
+
},
|
|
19
|
+
setup(l) {
|
|
20
|
+
const o = l;
|
|
21
|
+
async function r(e) {
|
|
22
|
+
f.confirm({
|
|
23
|
+
...o.modalProps,
|
|
24
|
+
onOk: async () => {
|
|
25
|
+
var n, t, a;
|
|
26
|
+
(t = (n = o.modalProps).onOk) == null || t.call(n), await ((a = o.onAction) == null ? void 0 : a.call(o, e));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return (e, n) => (m(), c(u, p(d(s)(o, ["modalProps", "onAction"]), { onAction: r }), null, 16));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
P as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { ApActionItemPopconfirmProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
|
+
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
4
|
+
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
5
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
6
|
+
import { MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
7
|
+
import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
|
|
8
|
+
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
9
|
+
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
10
|
+
import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
11
|
+
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
12
|
+
|
|
13
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
14
|
+
color: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
popconfirmProps: () => {};
|
|
19
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
20
|
+
color: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
popconfirmProps: () => {};
|
|
25
|
+
}>>>, {
|
|
26
|
+
color: ActionColor;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
loading: boolean;
|
|
30
|
+
popconfirmProps: Partial< ExtractPropTypes<{
|
|
31
|
+
prefixCls: StringConstructor;
|
|
32
|
+
content: {
|
|
33
|
+
default: any;
|
|
34
|
+
type: PropType<any>;
|
|
35
|
+
};
|
|
36
|
+
title: {
|
|
37
|
+
default: string | number;
|
|
38
|
+
type: PropType<string | number>;
|
|
39
|
+
};
|
|
40
|
+
description: {
|
|
41
|
+
default: string | number;
|
|
42
|
+
type: PropType<string | number>;
|
|
43
|
+
};
|
|
44
|
+
okType: {
|
|
45
|
+
type: PropType<LegacyButtonType>;
|
|
46
|
+
default: LegacyButtonType;
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
okText: {
|
|
53
|
+
default: any;
|
|
54
|
+
type: PropType<any>;
|
|
55
|
+
};
|
|
56
|
+
cancelText: {
|
|
57
|
+
default: any;
|
|
58
|
+
type: PropType<any>;
|
|
59
|
+
};
|
|
60
|
+
icon: {
|
|
61
|
+
default: any;
|
|
62
|
+
type: PropType<any>;
|
|
63
|
+
};
|
|
64
|
+
okButtonProps: {
|
|
65
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
66
|
+
prefixCls: StringConstructor;
|
|
67
|
+
type: PropType<ButtonType>;
|
|
68
|
+
htmlType: {
|
|
69
|
+
type: PropType<ButtonHTMLType>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
shape: {
|
|
73
|
+
type: PropType<ButtonShape>;
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType<ButtonSize>;
|
|
77
|
+
};
|
|
78
|
+
loading: {
|
|
79
|
+
type: PropType<boolean | {
|
|
80
|
+
delay?: number | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
default: () => boolean | {
|
|
83
|
+
delay?: number | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
ghost: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
block: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
danger: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: any;
|
|
101
|
+
};
|
|
102
|
+
icon: VueTypeValidableDef<any>;
|
|
103
|
+
href: StringConstructor;
|
|
104
|
+
target: StringConstructor;
|
|
105
|
+
title: StringConstructor;
|
|
106
|
+
onClick: {
|
|
107
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
108
|
+
};
|
|
109
|
+
onMousedown: {
|
|
110
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
111
|
+
};
|
|
112
|
+
}>> & HTMLAttributes>;
|
|
113
|
+
default: Partial< ExtractPropTypes<{
|
|
114
|
+
prefixCls: StringConstructor;
|
|
115
|
+
type: PropType<ButtonType>;
|
|
116
|
+
htmlType: {
|
|
117
|
+
type: PropType<ButtonHTMLType>;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
shape: {
|
|
121
|
+
type: PropType<ButtonShape>;
|
|
122
|
+
};
|
|
123
|
+
size: {
|
|
124
|
+
type: PropType<ButtonSize>;
|
|
125
|
+
};
|
|
126
|
+
loading: {
|
|
127
|
+
type: PropType<boolean | {
|
|
128
|
+
delay?: number | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
default: () => boolean | {
|
|
131
|
+
delay?: number | undefined;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
disabled: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: any;
|
|
137
|
+
};
|
|
138
|
+
ghost: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: any;
|
|
141
|
+
};
|
|
142
|
+
block: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: any;
|
|
145
|
+
};
|
|
146
|
+
danger: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: any;
|
|
149
|
+
};
|
|
150
|
+
icon: VueTypeValidableDef<any>;
|
|
151
|
+
href: StringConstructor;
|
|
152
|
+
target: StringConstructor;
|
|
153
|
+
title: StringConstructor;
|
|
154
|
+
onClick: {
|
|
155
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
156
|
+
};
|
|
157
|
+
onMousedown: {
|
|
158
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
159
|
+
};
|
|
160
|
+
}>> & HTMLAttributes;
|
|
161
|
+
};
|
|
162
|
+
cancelButtonProps: {
|
|
163
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
164
|
+
prefixCls: StringConstructor;
|
|
165
|
+
type: PropType<ButtonType>;
|
|
166
|
+
htmlType: {
|
|
167
|
+
type: PropType<ButtonHTMLType>;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
shape: {
|
|
171
|
+
type: PropType<ButtonShape>;
|
|
172
|
+
};
|
|
173
|
+
size: {
|
|
174
|
+
type: PropType<ButtonSize>;
|
|
175
|
+
};
|
|
176
|
+
loading: {
|
|
177
|
+
type: PropType<boolean | {
|
|
178
|
+
delay?: number | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
default: () => boolean | {
|
|
181
|
+
delay?: number | undefined;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
disabled: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: any;
|
|
187
|
+
};
|
|
188
|
+
ghost: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: any;
|
|
191
|
+
};
|
|
192
|
+
block: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: any;
|
|
195
|
+
};
|
|
196
|
+
danger: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
icon: VueTypeValidableDef<any>;
|
|
201
|
+
href: StringConstructor;
|
|
202
|
+
target: StringConstructor;
|
|
203
|
+
title: StringConstructor;
|
|
204
|
+
onClick: {
|
|
205
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
206
|
+
};
|
|
207
|
+
onMousedown: {
|
|
208
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
209
|
+
};
|
|
210
|
+
}>> & HTMLAttributes>;
|
|
211
|
+
default: Partial< ExtractPropTypes<{
|
|
212
|
+
prefixCls: StringConstructor;
|
|
213
|
+
type: PropType<ButtonType>;
|
|
214
|
+
htmlType: {
|
|
215
|
+
type: PropType<ButtonHTMLType>;
|
|
216
|
+
default: string;
|
|
217
|
+
};
|
|
218
|
+
shape: {
|
|
219
|
+
type: PropType<ButtonShape>;
|
|
220
|
+
};
|
|
221
|
+
size: {
|
|
222
|
+
type: PropType<ButtonSize>;
|
|
223
|
+
};
|
|
224
|
+
loading: {
|
|
225
|
+
type: PropType<boolean | {
|
|
226
|
+
delay?: number | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
default: () => boolean | {
|
|
229
|
+
delay?: number | undefined;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
disabled: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
ghost: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: any;
|
|
239
|
+
};
|
|
240
|
+
block: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
default: any;
|
|
243
|
+
};
|
|
244
|
+
danger: {
|
|
245
|
+
type: BooleanConstructor;
|
|
246
|
+
default: any;
|
|
247
|
+
};
|
|
248
|
+
icon: VueTypeValidableDef<any>;
|
|
249
|
+
href: StringConstructor;
|
|
250
|
+
target: StringConstructor;
|
|
251
|
+
title: StringConstructor;
|
|
252
|
+
onClick: {
|
|
253
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
254
|
+
};
|
|
255
|
+
onMousedown: {
|
|
256
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
257
|
+
};
|
|
258
|
+
}>> & HTMLAttributes;
|
|
259
|
+
};
|
|
260
|
+
showCancel: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
onConfirm: PropType<(e: MouseEvent) => void>;
|
|
265
|
+
onCancel: PropType<(e: MouseEvent) => void>;
|
|
266
|
+
trigger: PropType< TriggerType | TriggerType[]>;
|
|
267
|
+
open: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
default: any;
|
|
270
|
+
};
|
|
271
|
+
visible: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: any;
|
|
274
|
+
};
|
|
275
|
+
placement: PropType<TooltipPlacement>;
|
|
276
|
+
color: PropType<LiteralUnion<PresetColorType>>;
|
|
277
|
+
transitionName: StringConstructor;
|
|
278
|
+
overlayStyle: {
|
|
279
|
+
type: PropType<CSSProperties>;
|
|
280
|
+
default: CSSProperties;
|
|
281
|
+
};
|
|
282
|
+
overlayInnerStyle: {
|
|
283
|
+
type: PropType<CSSProperties>;
|
|
284
|
+
default: CSSProperties;
|
|
285
|
+
};
|
|
286
|
+
overlayClassName: StringConstructor;
|
|
287
|
+
openClassName: StringConstructor;
|
|
288
|
+
mouseEnterDelay: NumberConstructor;
|
|
289
|
+
mouseLeaveDelay: NumberConstructor;
|
|
290
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
291
|
+
arrowPointAtCenter: {
|
|
292
|
+
type: BooleanConstructor;
|
|
293
|
+
default: any;
|
|
294
|
+
};
|
|
295
|
+
arrow: {
|
|
296
|
+
type: PropType<boolean | {
|
|
297
|
+
pointAtCenter?: boolean | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
default: boolean | {
|
|
300
|
+
pointAtCenter?: boolean | undefined;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
autoAdjustOverflow: {
|
|
304
|
+
type: PropType<boolean | AdjustOverflow>;
|
|
305
|
+
default: boolean | AdjustOverflow;
|
|
306
|
+
};
|
|
307
|
+
destroyTooltipOnHide: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: any;
|
|
310
|
+
};
|
|
311
|
+
align: {
|
|
312
|
+
type: PropType<AlignType>;
|
|
313
|
+
default: AlignType;
|
|
314
|
+
};
|
|
315
|
+
builtinPlacements: {
|
|
316
|
+
type: PropType<BuildInPlacements>;
|
|
317
|
+
default: BuildInPlacements;
|
|
318
|
+
};
|
|
319
|
+
children: ArrayConstructor;
|
|
320
|
+
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
321
|
+
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
322
|
+
onOpenChange: PropType<(vis: boolean) => void>;
|
|
323
|
+
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
324
|
+
}>>;
|
|
325
|
+
}, {}>;
|
|
326
|
+
export default _default;
|
|
327
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
328
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
329
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
330
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
331
|
+
} : {
|
|
332
|
+
type: PropType<T[K]>;
|
|
333
|
+
required: true;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
type __VLS_WithDefaults<P, D> = {
|
|
337
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
338
|
+
default: D[K];
|
|
339
|
+
}> : P[K];
|
|
340
|
+
};
|
|
341
|
+
type __VLS_Prettify<T> = {
|
|
342
|
+
[K in keyof T]: T[K];
|
|
343
|
+
} & {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as f, createBlock as c, unref as i, mergeProps as l, withCtx as s, createVNode as d, normalizeProps as u, guardReactiveProps as P } from "vue";
|
|
2
|
+
import { Popconfirm as _ } from "ant-design-vue";
|
|
3
|
+
import "../item/index.vue.mjs";
|
|
4
|
+
import { omit as y } from "lodash-unified";
|
|
5
|
+
import x from "../item/index.vue2.mjs";
|
|
6
|
+
const h = /* @__PURE__ */ m({
|
|
7
|
+
name: "ApActionItemPopconfirm",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
visible: { type: Boolean, default: !0 },
|
|
14
|
+
onAction: {},
|
|
15
|
+
onClick: {},
|
|
16
|
+
loading: { type: Boolean, default: !1 },
|
|
17
|
+
popconfirmProps: { default: () => ({}) }
|
|
18
|
+
},
|
|
19
|
+
setup(p) {
|
|
20
|
+
const o = p;
|
|
21
|
+
async function a(e) {
|
|
22
|
+
var n, r, t;
|
|
23
|
+
(r = (n = o.popconfirmProps).onConfirm) == null || r.call(n, e), await ((t = o.onAction) == null ? void 0 : t.call(o, e));
|
|
24
|
+
}
|
|
25
|
+
return (e, n) => (f(), c(i(_), l(o.popconfirmProps, {
|
|
26
|
+
onConfirm: a,
|
|
27
|
+
disabled: !o.popconfirmProps,
|
|
28
|
+
"overlay-style": { zIndex: 1060 }
|
|
29
|
+
}), {
|
|
30
|
+
default: s(() => [
|
|
31
|
+
d(x, u(P(i(y)(o, ["popconfirmProps", "onAction"]))), null, 16)
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 16, ["disabled"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
h as default
|
|
39
|
+
};
|