@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,4 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as t, openBlock as a, createBlock as o, unref as r, withCtx as s, createTextVNode as p, toDisplayString as l } from "vue";
|
|
2
|
+
import { BasicTitle as i } from "../../basic/index.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ t({
|
|
4
|
+
name: "BasicModalHeader",
|
|
5
|
+
__name: "modal-header",
|
|
6
|
+
props: {
|
|
7
|
+
helpMessage: {},
|
|
8
|
+
title: {}
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
return (e, c) => (a(), o(r(i), { helpMessage: e.helpMessage }, {
|
|
12
|
+
default: s(() => [
|
|
13
|
+
p(l(e.title), 1)
|
|
14
|
+
]),
|
|
15
|
+
_: 1
|
|
16
|
+
}, 8, ["helpMessage"]));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
2
19
|
export {
|
|
3
20
|
f as default
|
|
4
21
|
};
|
|
@@ -1,101 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useWindowSizeFn as O } from "@aplus-frontend/hooks";
|
|
3
|
-
import { ScrollContainer as A } from "../../container/index.mjs";
|
|
4
|
-
import { createModalContext as I } from "../hooks/use-modal-context.mjs";
|
|
5
|
-
import { useMutationObserver as N } from "@vueuse/core";
|
|
6
|
-
import { modalWrapperProps as P } from "../props.mjs";
|
|
7
|
-
const U = ["loading-tip"], Q = /* @__PURE__ */ E({
|
|
8
|
-
name: "ModalWrapper",
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "modal-wrapper",
|
|
11
|
-
props: P,
|
|
12
|
-
emits: ["height-change", "ext-height"],
|
|
13
|
-
setup(v, { expose: w, emit: y }) {
|
|
14
|
-
const t = v, d = y, u = a(null), m = a(null), n = a(0), h = a(0), s = a(0);
|
|
15
|
-
O(r.bind(null)), N(
|
|
16
|
-
m,
|
|
17
|
-
() => {
|
|
18
|
-
r();
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
attributes: !0,
|
|
22
|
-
subtree: !0
|
|
23
|
-
}
|
|
24
|
-
), I({
|
|
25
|
-
redoModalHeight: r
|
|
26
|
-
});
|
|
27
|
-
const _ = b(() => ({
|
|
28
|
-
minHeight: `${t.minHeight}px`,
|
|
29
|
-
[t.fullScreen ? "height" : "maxHeight"]: `${l(n)}px`
|
|
30
|
-
}));
|
|
31
|
-
k(() => {
|
|
32
|
-
t.useWrapper && r();
|
|
33
|
-
}), M(
|
|
34
|
-
() => t.fullScreen,
|
|
35
|
-
(e) => {
|
|
36
|
-
r(), e ? h.value = n.value : n.value = h.value;
|
|
37
|
-
}
|
|
38
|
-
), R(() => {
|
|
39
|
-
const { modalHeaderHeight: e, modalFooterHeight: o } = t;
|
|
40
|
-
d("ext-height", e + o);
|
|
41
|
-
}), C(() => {
|
|
42
|
-
});
|
|
43
|
-
async function x() {
|
|
44
|
-
c(() => {
|
|
45
|
-
var o;
|
|
46
|
-
const e = l(u);
|
|
47
|
-
e && ((o = e == null ? void 0 : e.scrollTo) == null || o.call(e, 0));
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
async function r() {
|
|
51
|
-
if (!t.open)
|
|
52
|
-
return;
|
|
53
|
-
const e = l(u);
|
|
54
|
-
if (!e)
|
|
55
|
-
return;
|
|
56
|
-
const o = e.$el.parentElement;
|
|
57
|
-
if (o) {
|
|
58
|
-
o.style.padding = "0", await c();
|
|
59
|
-
try {
|
|
60
|
-
const i = o.parentElement && o.parentElement.parentElement;
|
|
61
|
-
if (!i)
|
|
62
|
-
return;
|
|
63
|
-
const S = getComputedStyle(i).top, f = Number.parseInt(S);
|
|
64
|
-
let p = window.innerHeight - f * 2 + (t.footerOffset || 0) - t.modalFooterHeight - t.modalHeaderHeight;
|
|
65
|
-
f < 40 && (p -= 26), await c();
|
|
66
|
-
const g = l(m);
|
|
67
|
-
if (!g)
|
|
68
|
-
return;
|
|
69
|
-
await c(), s.value = g.scrollHeight, t.fullScreen ? n.value = window.innerHeight - t.modalFooterHeight - t.modalHeaderHeight - 28 : n.value = t.height ? t.height : s.value > p ? p : s.value, d("height-change", l(n));
|
|
70
|
-
} catch (i) {
|
|
71
|
-
console.log(i);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return w({ scrollTop: x, setModalHeight: r }), (e, o) => {
|
|
76
|
-
const i = T("loading");
|
|
77
|
-
return H(), F(l(A), {
|
|
78
|
-
ref_key: "wrapperRef",
|
|
79
|
-
ref: u,
|
|
80
|
-
scrollHeight: s.value
|
|
81
|
-
}, {
|
|
82
|
-
default: W(() => [
|
|
83
|
-
$((H(), B("div", {
|
|
84
|
-
ref_key: "spinRef",
|
|
85
|
-
ref: m,
|
|
86
|
-
style: z(_.value),
|
|
87
|
-
"loading-tip": e.loadingTip
|
|
88
|
-
}, [
|
|
89
|
-
D(e.$slots, "default")
|
|
90
|
-
], 12, U)), [
|
|
91
|
-
[i, e.loading]
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 8, ["scrollHeight"]);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
});
|
|
1
|
+
import f from "./modal-wrapper.vue2.mjs";
|
|
99
2
|
export {
|
|
100
|
-
|
|
3
|
+
f as default
|
|
101
4
|
};
|
|
@@ -1,4 +1,104 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as R, ref as a, computed as b, unref as l, watchEffect as k, watch as M, onMounted as C, onUnmounted as F, nextTick as c, resolveDirective as T, openBlock as v, createBlock as W, withCtx as $, withDirectives as z, createElementBlock as B, normalizeStyle as D, renderSlot as O } from "vue";
|
|
2
|
+
import { useWindowSizeFn as A } from "@aplus-frontend/hooks";
|
|
3
|
+
import { ScrollContainer as I } from "../../container/index.mjs";
|
|
4
|
+
import { createModalContext as N } from "../hooks/use-modal-context.mjs";
|
|
5
|
+
import { useMutationObserver as P } from "@vueuse/core";
|
|
6
|
+
import { modalWrapperProps as U } from "../props.mjs";
|
|
7
|
+
const j = ["loading-tip"], V = /* @__PURE__ */ R({
|
|
8
|
+
name: "ModalWrapper",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
__name: "modal-wrapper",
|
|
11
|
+
props: U,
|
|
12
|
+
emits: ["height-change", "ext-height"],
|
|
13
|
+
setup(w, { expose: y, emit: _ }) {
|
|
14
|
+
const t = w, m = _, p = a(null), u = a(null), n = a(0), h = a(0), s = a(0);
|
|
15
|
+
let f = () => {
|
|
16
|
+
};
|
|
17
|
+
A(r.bind(null)), P(
|
|
18
|
+
u,
|
|
19
|
+
() => {
|
|
20
|
+
r();
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
attributes: !0,
|
|
24
|
+
subtree: !0
|
|
25
|
+
}
|
|
26
|
+
), N({
|
|
27
|
+
redoModalHeight: r
|
|
28
|
+
});
|
|
29
|
+
const x = b(() => ({
|
|
30
|
+
minHeight: `${t.minHeight}px`,
|
|
31
|
+
[t.fullScreen ? "height" : "maxHeight"]: `${l(n)}px`
|
|
32
|
+
}));
|
|
33
|
+
k(() => {
|
|
34
|
+
t.useWrapper && r();
|
|
35
|
+
}), M(
|
|
36
|
+
() => t.fullScreen,
|
|
37
|
+
(e) => {
|
|
38
|
+
r(), e ? h.value = n.value : n.value = h.value;
|
|
39
|
+
}
|
|
40
|
+
), C(() => {
|
|
41
|
+
const { modalHeaderHeight: e, modalFooterHeight: o } = t;
|
|
42
|
+
m("ext-height", e + o);
|
|
43
|
+
}), F(() => {
|
|
44
|
+
f && f();
|
|
45
|
+
});
|
|
46
|
+
async function S() {
|
|
47
|
+
c(() => {
|
|
48
|
+
var o;
|
|
49
|
+
const e = l(p);
|
|
50
|
+
e && ((o = e == null ? void 0 : e.scrollTo) == null || o.call(e, 0));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async function r() {
|
|
54
|
+
if (!t.open)
|
|
55
|
+
return;
|
|
56
|
+
const e = l(p);
|
|
57
|
+
if (!e)
|
|
58
|
+
return;
|
|
59
|
+
const o = e.$el.parentElement;
|
|
60
|
+
if (o) {
|
|
61
|
+
o.style.padding = "0", await c();
|
|
62
|
+
try {
|
|
63
|
+
const i = o.parentElement && o.parentElement.parentElement;
|
|
64
|
+
if (!i)
|
|
65
|
+
return;
|
|
66
|
+
const E = getComputedStyle(i).top, g = Number.parseInt(E);
|
|
67
|
+
let d = window.innerHeight - g * 2 + (t.footerOffset || 0) - t.modalFooterHeight - t.modalHeaderHeight;
|
|
68
|
+
g < 40 && (d -= 26), await c();
|
|
69
|
+
const H = l(u);
|
|
70
|
+
if (!H)
|
|
71
|
+
return;
|
|
72
|
+
await c(), s.value = H.scrollHeight, t.fullScreen ? n.value = window.innerHeight - t.modalFooterHeight - t.modalHeaderHeight - 28 : n.value = t.height ? t.height : s.value > d ? d : s.value, m("height-change", l(n));
|
|
73
|
+
} catch (i) {
|
|
74
|
+
console.log(i);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return y({ scrollTop: S, setModalHeight: r }), (e, o) => {
|
|
79
|
+
const i = T("loading");
|
|
80
|
+
return v(), W(l(I), {
|
|
81
|
+
ref_key: "wrapperRef",
|
|
82
|
+
ref: p,
|
|
83
|
+
scrollHeight: s.value
|
|
84
|
+
}, {
|
|
85
|
+
default: $(() => [
|
|
86
|
+
z((v(), B("div", {
|
|
87
|
+
ref_key: "spinRef",
|
|
88
|
+
ref: u,
|
|
89
|
+
style: D(x.value),
|
|
90
|
+
"loading-tip": e.loadingTip
|
|
91
|
+
}, [
|
|
92
|
+
O(e.$slots, "default")
|
|
93
|
+
], 12, j)), [
|
|
94
|
+
[i, e.loading]
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
}, 8, ["scrollHeight"]);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
2
102
|
export {
|
|
3
|
-
|
|
103
|
+
V as default
|
|
4
104
|
};
|
|
@@ -423,12 +423,12 @@ declare const _default: DefineComponent<{
|
|
|
423
423
|
}, {
|
|
424
424
|
loading: boolean;
|
|
425
425
|
open: boolean;
|
|
426
|
-
keyboard: boolean;
|
|
427
|
-
mask: boolean;
|
|
428
426
|
closable: boolean;
|
|
429
427
|
centered: boolean;
|
|
430
428
|
okType: "danger" | ButtonType;
|
|
429
|
+
mask: boolean;
|
|
431
430
|
maskClosable: boolean;
|
|
431
|
+
keyboard: boolean;
|
|
432
432
|
confirmLoading: boolean;
|
|
433
433
|
destroyOnClose: boolean;
|
|
434
434
|
draggable: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isVNode as p, defineComponent as f, toRefs as d, unref as m, createVNode as u } from "vue";
|
|
2
2
|
import { Modal as M } from "ant-design-vue";
|
|
3
3
|
import { basicProps as b } from "../props.mjs";
|
|
4
4
|
import { useModalDragMove as g } from "../hooks/use-modal-drag.mjs";
|
|
5
5
|
import { extendSlots as j } from "../../utils/slot.mjs";
|
|
6
6
|
function y(o) {
|
|
7
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
7
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !p(o);
|
|
8
8
|
}
|
|
9
|
-
const N = /* @__PURE__ */
|
|
9
|
+
const N = /* @__PURE__ */ f({
|
|
10
10
|
name: "Modal",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
props: b,
|
|
@@ -20,7 +20,7 @@ const N = /* @__PURE__ */ p({
|
|
|
20
20
|
open: a,
|
|
21
21
|
draggable: l,
|
|
22
22
|
destroyOnClose: s
|
|
23
|
-
} =
|
|
23
|
+
} = d(o);
|
|
24
24
|
g({
|
|
25
25
|
open: a,
|
|
26
26
|
destroyOnClose: s,
|
|
@@ -32,11 +32,11 @@ const N = /* @__PURE__ */ p({
|
|
|
32
32
|
return () => {
|
|
33
33
|
let t;
|
|
34
34
|
const i = {
|
|
35
|
-
...
|
|
35
|
+
...m(n),
|
|
36
36
|
...o,
|
|
37
37
|
onCancel: c
|
|
38
38
|
};
|
|
39
|
-
return
|
|
39
|
+
return u(M, i, y(t = j(e)) ? t : {
|
|
40
40
|
default: () => [t]
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as P, ref as d,
|
|
1
|
+
import { reactive as P, ref as d, getCurrentInstance as h, onUnmounted as w, unref as t, computed as v, toRaw as c, watchEffect as E, nextTick as O } from "vue";
|
|
2
2
|
import { isProdMode as M } from "@aplus-frontend/utils";
|
|
3
3
|
import { isEqual as H } from "lodash-unified";
|
|
4
4
|
import { tryOnUnmounted as I } from "@vueuse/core";
|
|
@@ -7,11 +7,11 @@ const u = P({}), g = P({});
|
|
|
7
7
|
function C() {
|
|
8
8
|
const r = d(null), a = d(!1), s = d(0);
|
|
9
9
|
function i(e, o) {
|
|
10
|
-
if (!
|
|
10
|
+
if (!h())
|
|
11
11
|
throw new Error(
|
|
12
12
|
"useModal() can only be used inside setup() or functional components!"
|
|
13
13
|
);
|
|
14
|
-
s.value = o, M() &&
|
|
14
|
+
s.value = o, M() && w(() => {
|
|
15
15
|
r.value = null, a.value = !1, u[String(t(s))] = null;
|
|
16
16
|
}), !(t(a) && M() && e === t(r)) && (r.value = e, a.value = !0, e.emitOpen = (p, l) => {
|
|
17
17
|
g[l] = p;
|
|
@@ -27,7 +27,7 @@ function C() {
|
|
|
27
27
|
var o;
|
|
28
28
|
(o = n()) == null || o.setModalProps(e);
|
|
29
29
|
},
|
|
30
|
-
getOpen:
|
|
30
|
+
getOpen: v(() => g[~~t(s)]),
|
|
31
31
|
redoModalHeight: () => {
|
|
32
32
|
var e, o;
|
|
33
33
|
(o = (e = n()) == null ? void 0 : e.redoModalHeight) == null || o.call(e);
|
|
@@ -53,7 +53,7 @@ function C() {
|
|
|
53
53
|
return [i, f];
|
|
54
54
|
}
|
|
55
55
|
const D = (r) => {
|
|
56
|
-
const a = d(null), s =
|
|
56
|
+
const a = d(null), s = h(), i = d(0), n = () => {
|
|
57
57
|
const e = t(a);
|
|
58
58
|
if (!e)
|
|
59
59
|
throw new Error("useModalInner instance is undefined!");
|
|
@@ -63,9 +63,9 @@ const D = (r) => {
|
|
|
63
63
|
a.value = null;
|
|
64
64
|
}), i.value = o, a.value = e, s == null || s.emit("register", e, o);
|
|
65
65
|
};
|
|
66
|
-
return
|
|
66
|
+
return E(() => {
|
|
67
67
|
const e = u[t(i)];
|
|
68
|
-
e && (!r || !R(r) ||
|
|
68
|
+
e && (!r || !R(r) || O(() => {
|
|
69
69
|
r(e);
|
|
70
70
|
}));
|
|
71
71
|
}), [
|
|
@@ -75,7 +75,7 @@ const D = (r) => {
|
|
|
75
75
|
var o;
|
|
76
76
|
(o = n()) == null || o.setModalProps({ loading: e });
|
|
77
77
|
},
|
|
78
|
-
getOpen:
|
|
78
|
+
getOpen: v(() => g[~~t(i)]),
|
|
79
79
|
changeOkLoading: (e = !0) => {
|
|
80
80
|
var o;
|
|
81
81
|
(o = n()) == null || o.setModalProps({ confirmLoading: e });
|
package/es/src/modal/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
|
4
4
|
import { ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
5
5
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
6
6
|
import { MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
7
|
-
|
|
8
7
|
export declare const BaseModal: {
|
|
9
8
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
10
9
|
open: {
|
|
@@ -214,9 +213,9 @@ export declare const BaseModal: {
|
|
|
214
213
|
type: NumberConstructor;
|
|
215
214
|
};
|
|
216
215
|
}>> & {
|
|
216
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
217
217
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
219
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
220
219
|
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
221
220
|
onFullscreen?: ((...args: any[]) => any) | undefined;
|
|
222
221
|
"onOpen-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -437,9 +436,9 @@ export declare const BaseModal: {
|
|
|
437
436
|
type: NumberConstructor;
|
|
438
437
|
};
|
|
439
438
|
}>> & {
|
|
439
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
440
440
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
441
441
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
442
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
443
442
|
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
444
443
|
onFullscreen?: ((...args: any[]) => any) | undefined;
|
|
445
444
|
"onOpen-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -447,12 +446,12 @@ export declare const BaseModal: {
|
|
|
447
446
|
}, {
|
|
448
447
|
loading: boolean;
|
|
449
448
|
open: boolean;
|
|
450
|
-
keyboard: boolean;
|
|
451
|
-
mask: boolean;
|
|
452
449
|
closable: boolean;
|
|
453
450
|
centered: boolean;
|
|
454
451
|
okType: "danger" | ButtonType;
|
|
452
|
+
mask: boolean;
|
|
455
453
|
maskClosable: boolean;
|
|
454
|
+
keyboard: boolean;
|
|
456
455
|
confirmLoading: boolean;
|
|
457
456
|
destroyOnClose: boolean;
|
|
458
457
|
draggable: boolean;
|
|
@@ -678,9 +677,9 @@ export declare const BaseModal: {
|
|
|
678
677
|
type: NumberConstructor;
|
|
679
678
|
};
|
|
680
679
|
}>> & {
|
|
680
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
681
681
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
682
682
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
683
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
684
683
|
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
685
684
|
onFullscreen?: ((...args: any[]) => any) | undefined;
|
|
686
685
|
"onOpen-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -688,12 +687,12 @@ export declare const BaseModal: {
|
|
|
688
687
|
}, {}, {}, {}, {}, {
|
|
689
688
|
loading: boolean;
|
|
690
689
|
open: boolean;
|
|
691
|
-
keyboard: boolean;
|
|
692
|
-
mask: boolean;
|
|
693
690
|
closable: boolean;
|
|
694
691
|
centered: boolean;
|
|
695
692
|
okType: "danger" | ButtonType;
|
|
693
|
+
mask: boolean;
|
|
696
694
|
maskClosable: boolean;
|
|
695
|
+
keyboard: boolean;
|
|
697
696
|
confirmLoading: boolean;
|
|
698
697
|
destroyOnClose: boolean;
|
|
699
698
|
draggable: boolean;
|
|
@@ -916,9 +915,9 @@ export declare const BaseModal: {
|
|
|
916
915
|
type: NumberConstructor;
|
|
917
916
|
};
|
|
918
917
|
}>> & {
|
|
918
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
919
919
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
920
920
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
921
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
922
921
|
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
923
922
|
onFullscreen?: ((...args: any[]) => any) | undefined;
|
|
924
923
|
"onOpen-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -934,12 +933,12 @@ export declare const BaseModal: {
|
|
|
934
933
|
}, string, {
|
|
935
934
|
loading: boolean;
|
|
936
935
|
open: boolean;
|
|
937
|
-
keyboard: boolean;
|
|
938
|
-
mask: boolean;
|
|
939
936
|
closable: boolean;
|
|
940
937
|
centered: boolean;
|
|
941
938
|
okType: "danger" | ButtonType;
|
|
939
|
+
mask: boolean;
|
|
942
940
|
maskClosable: boolean;
|
|
941
|
+
keyboard: boolean;
|
|
943
942
|
confirmLoading: boolean;
|
|
944
943
|
destroyOnClose: boolean;
|
|
945
944
|
draggable: boolean;
|
package/es/src/modal/index.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import "./basic.vue.mjs";
|
|
3
|
+
import { useModalContext as l } from "./hooks/use-modal-context.mjs";
|
|
4
|
+
import { useModal as f, useModalInner as d } from "./hooks/use-modal.mjs";
|
|
5
|
+
import "./interface.mjs";
|
|
6
|
+
import r from "./basic.vue2.mjs";
|
|
7
|
+
const p = o(r);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
p as BaseModal,
|
|
10
|
+
f as useModal,
|
|
11
|
+
l as useModalContext,
|
|
12
|
+
d as useModalInner
|
|
11
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/es/src/modal/props.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const e = {
|
|
|
12
12
|
}, t = Object.assign({}, e, {
|
|
13
13
|
defaultFullscreen: { type: Boolean },
|
|
14
14
|
// Can it be full screen
|
|
15
|
-
canFullscreen: { type: Boolean, default: !
|
|
15
|
+
canFullscreen: { type: Boolean, default: !1 },
|
|
16
16
|
// After enabling the wrapper, the bottom can be increased in height
|
|
17
17
|
wrapperFooterOffset: { type: Number, default: 0 },
|
|
18
18
|
// Warm reminder message
|
|
@@ -14,48 +14,50 @@
|
|
|
14
14
|
.fullscreen-modal .ant-modal-footer {
|
|
15
15
|
margin-top: 0;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.aplus-basic-modal {
|
|
18
18
|
width: 520px;
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
22
|
-
padding:
|
|
21
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
+
padding: 20px;
|
|
23
|
+
padding-bottom: 0;
|
|
23
24
|
}
|
|
24
|
-
.ant-modal-title {
|
|
25
|
+
.aplus-basic-modal .ant-modal-title {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
font-weight: bold;
|
|
27
28
|
}
|
|
28
|
-
.ant-modal-title .
|
|
29
|
+
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
29
30
|
cursor: move !important;
|
|
31
|
+
padding-left: 0;
|
|
30
32
|
}
|
|
31
|
-
.
|
|
33
|
+
.aplus-basic-modal .ant-modal-body {
|
|
32
34
|
padding: 0;
|
|
33
35
|
}
|
|
34
|
-
.
|
|
36
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
35
37
|
display: none;
|
|
36
38
|
}
|
|
37
|
-
.ant-modal-large {
|
|
39
|
+
.aplus-basic-modal .ant-modal-large {
|
|
38
40
|
top: 60px;
|
|
39
41
|
}
|
|
40
|
-
.ant-modal-large--mini {
|
|
42
|
+
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
41
43
|
top: 16px;
|
|
42
44
|
}
|
|
43
|
-
.ant-modal-header {
|
|
44
|
-
padding:
|
|
45
|
+
.aplus-basic-modal .ant-modal-header {
|
|
46
|
+
padding: 15px 20px;
|
|
47
|
+
margin-bottom: 0;
|
|
45
48
|
border-bottom: 1px solid #eee;
|
|
46
49
|
}
|
|
47
|
-
.ant-modal-content {
|
|
50
|
+
.aplus-basic-modal .ant-modal-content {
|
|
48
51
|
padding: 0 !important;
|
|
49
|
-
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 #000000;
|
|
50
52
|
}
|
|
51
|
-
.ant-modal-footer {
|
|
52
|
-
padding:
|
|
53
|
-
|
|
53
|
+
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
+
padding: 20px;
|
|
55
|
+
margin-top: 0;
|
|
54
56
|
}
|
|
55
|
-
.ant-modal-footer button + button {
|
|
57
|
+
.aplus-basic-modal .ant-modal-footer button + button {
|
|
56
58
|
margin-left: 10px;
|
|
57
59
|
}
|
|
58
|
-
.ant-modal-close {
|
|
60
|
+
.aplus-basic-modal .ant-modal-close {
|
|
59
61
|
top: 0 !important;
|
|
60
62
|
right: 0 !important;
|
|
61
63
|
width: auto !important;
|
|
@@ -63,41 +65,38 @@
|
|
|
63
65
|
background: transparent !important;
|
|
64
66
|
font-weight: normal;
|
|
65
67
|
}
|
|
66
|
-
.ant-modal-close-x {
|
|
68
|
+
.aplus-basic-modal .ant-modal-close-x {
|
|
67
69
|
display: inline-block;
|
|
68
70
|
width: 96px;
|
|
69
71
|
height: 56px;
|
|
70
72
|
line-height: 56px !important;
|
|
71
73
|
}
|
|
72
|
-
.ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
74
|
+
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
73
75
|
color: #909399;
|
|
74
76
|
}
|
|
75
|
-
.ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
77
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
76
78
|
color: #ed6f6f;
|
|
77
79
|
}
|
|
78
|
-
.ant-modal-confirm-btns .ant-btn:last-child {
|
|
80
|
+
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
79
81
|
margin-right: 0;
|
|
80
82
|
}
|
|
81
|
-
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
83
|
+
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
82
84
|
color: #efbd47;
|
|
83
85
|
}
|
|
84
|
-
.ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
86
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
85
87
|
color: #34b77c;
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
padding: 24px !important;
|
|
89
|
-
}
|
|
90
|
-
@media screen and (max-height: 600px) {
|
|
89
|
+
@media screen and (height <= 600px) {
|
|
91
90
|
.ant-modal {
|
|
92
91
|
top: 60px;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
@media screen and (
|
|
94
|
+
@media screen and (height <= 540px) {
|
|
96
95
|
.ant-modal {
|
|
97
96
|
top: 30px;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
@media screen and (
|
|
99
|
+
@media screen and (height <= 480px) {
|
|
101
100
|
.ant-modal {
|
|
102
101
|
top: 10px;
|
|
103
102
|
}
|