@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,131 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import F from "cropperjs";
|
|
3
|
-
import "cropperjs/dist/cropper.css";
|
|
4
|
-
import { useDebounceFn as N } from "@vueuse/core";
|
|
5
|
-
import { useAttrs as U } from "@aplus-frontend/hooks";
|
|
6
|
-
import "../config-provider/index.mjs";
|
|
7
|
-
import "./style/image.css";
|
|
8
|
-
import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
|
|
9
|
-
const L = ["src", "alt", "crossorigin"], X = /* @__PURE__ */ O({
|
|
10
|
-
name: "ApCropperImage",
|
|
11
|
-
__name: "cropper-image",
|
|
12
|
-
props: {
|
|
13
|
-
src: {},
|
|
14
|
-
alt: {},
|
|
15
|
-
circled: { type: Boolean, default: !1 },
|
|
16
|
-
realTimePreview: { type: Boolean, default: !0 },
|
|
17
|
-
height: { default: "360px" },
|
|
18
|
-
crossorigin: { default: void 0 },
|
|
19
|
-
imageStyle: { default: () => ({}) },
|
|
20
|
-
options: { default: () => ({}) }
|
|
21
|
-
},
|
|
22
|
-
emits: ["cropend", "ready", "cropendError"],
|
|
23
|
-
setup(f, { emit: v }) {
|
|
24
|
-
const C = {
|
|
25
|
-
aspectRatio: 1,
|
|
26
|
-
zoomable: !0,
|
|
27
|
-
zoomOnTouch: !0,
|
|
28
|
-
zoomOnWheel: !0,
|
|
29
|
-
cropBoxMovable: !0,
|
|
30
|
-
cropBoxResizable: !0,
|
|
31
|
-
toggleDragModeOnDblclick: !0,
|
|
32
|
-
autoCrop: !0,
|
|
33
|
-
background: !0,
|
|
34
|
-
highlight: !0,
|
|
35
|
-
center: !0,
|
|
36
|
-
responsive: !0,
|
|
37
|
-
restore: !0,
|
|
38
|
-
checkCrossOrigin: !0,
|
|
39
|
-
checkOrientation: !0,
|
|
40
|
-
scalable: !0,
|
|
41
|
-
modal: !0,
|
|
42
|
-
guides: !0,
|
|
43
|
-
movable: !0,
|
|
44
|
-
rotatable: !0
|
|
45
|
-
}, o = f, s = v, y = U(), p = l(), a = l(), m = l(!1), { b, m: w } = $("cropper-image"), c = N(d, 80), R = u(() => ({
|
|
46
|
-
height: o.height,
|
|
47
|
-
maxWidth: "100%",
|
|
48
|
-
...o.imageStyle
|
|
49
|
-
})), E = u(() => [
|
|
50
|
-
b(),
|
|
51
|
-
y.class,
|
|
52
|
-
{
|
|
53
|
-
[`${w("circled")}`]: o.circled
|
|
54
|
-
}
|
|
55
|
-
]), B = u(() => ({ height: `${o.height}`.replace(/px/, "") + "px" }));
|
|
56
|
-
S(k), D(() => {
|
|
57
|
-
var e;
|
|
58
|
-
(e = a.value) == null || e.destroy();
|
|
59
|
-
});
|
|
60
|
-
async function k() {
|
|
61
|
-
const e = _(p);
|
|
62
|
-
e && (a.value = new F(e, {
|
|
63
|
-
...C,
|
|
64
|
-
ready: () => {
|
|
65
|
-
m.value = !0, d(), s("ready", a.value);
|
|
66
|
-
},
|
|
67
|
-
crop() {
|
|
68
|
-
c();
|
|
69
|
-
},
|
|
70
|
-
zoom() {
|
|
71
|
-
c();
|
|
72
|
-
},
|
|
73
|
-
cropmove() {
|
|
74
|
-
c();
|
|
75
|
-
},
|
|
76
|
-
...o.options
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
function d() {
|
|
80
|
-
o.realTimePreview && x();
|
|
81
|
-
}
|
|
82
|
-
function x() {
|
|
83
|
-
if (!a.value)
|
|
84
|
-
return;
|
|
85
|
-
let e = a.value.getData();
|
|
86
|
-
(o.circled ? z() : a.value.getCroppedCanvas()).toBlob((t) => {
|
|
87
|
-
if (!t)
|
|
88
|
-
return;
|
|
89
|
-
let r = new FileReader();
|
|
90
|
-
r.readAsDataURL(t), r.onloadend = (i) => {
|
|
91
|
-
var g;
|
|
92
|
-
s("cropend", {
|
|
93
|
-
imgBase64: ((g = i.target) == null ? void 0 : g.result) ?? "",
|
|
94
|
-
imgInfo: e
|
|
95
|
-
});
|
|
96
|
-
}, r.onerror = () => {
|
|
97
|
-
s("cropendError");
|
|
98
|
-
};
|
|
99
|
-
}, "image/png");
|
|
100
|
-
}
|
|
101
|
-
function z() {
|
|
102
|
-
const e = a.value.getCroppedCanvas(), n = document.createElement("canvas"), t = n.getContext("2d"), r = e.width, i = e.height;
|
|
103
|
-
return n.width = r, n.height = i, t.imageSmoothingEnabled = !0, t.drawImage(e, 0, 0, r, i), t.globalCompositeOperation = "destination-in", t.beginPath(), t.arc(
|
|
104
|
-
r / 2,
|
|
105
|
-
i / 2,
|
|
106
|
-
Math.min(r, i) / 2,
|
|
107
|
-
0,
|
|
108
|
-
2 * Math.PI,
|
|
109
|
-
!0
|
|
110
|
-
), t.fill(), n;
|
|
111
|
-
}
|
|
112
|
-
return (e, n) => (I(), M("div", {
|
|
113
|
-
class: T(E.value),
|
|
114
|
-
style: h(B.value)
|
|
115
|
-
}, [
|
|
116
|
-
P(A("img", {
|
|
117
|
-
ref_key: "imgElRef",
|
|
118
|
-
ref: p,
|
|
119
|
-
src: e.src,
|
|
120
|
-
alt: e.alt,
|
|
121
|
-
crossorigin: e.crossorigin,
|
|
122
|
-
style: h(R.value)
|
|
123
|
-
}, null, 12, L), [
|
|
124
|
-
[W, m.value]
|
|
125
|
-
])
|
|
126
|
-
], 6));
|
|
127
|
-
}
|
|
128
|
-
});
|
|
1
|
+
import f from "./cropper-image.vue2.mjs";
|
|
129
2
|
export {
|
|
130
|
-
|
|
3
|
+
f as default
|
|
131
4
|
};
|
|
@@ -1,4 +1,131 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as O, ref as l, computed as u, onMounted as S, onUnmounted as D, unref as _, openBlock as I, createElementBlock as M, normalizeClass as T, normalizeStyle as h, withDirectives as P, createElementVNode as A, vShow as W } from "vue";
|
|
2
|
+
import F from "cropperjs";
|
|
3
|
+
import "cropperjs/dist/cropper.css";
|
|
4
|
+
import { useDebounceFn as N } from "@vueuse/core";
|
|
5
|
+
import { useAttrs as U } from "@aplus-frontend/hooks";
|
|
6
|
+
import "../config-provider/index.mjs";
|
|
7
|
+
import "./style/image.css";
|
|
8
|
+
import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const L = ["src", "alt", "crossorigin"], X = /* @__PURE__ */ O({
|
|
10
|
+
name: "ApCropperImage",
|
|
11
|
+
__name: "cropper-image",
|
|
12
|
+
props: {
|
|
13
|
+
src: {},
|
|
14
|
+
alt: {},
|
|
15
|
+
circled: { type: Boolean, default: !1 },
|
|
16
|
+
realTimePreview: { type: Boolean, default: !0 },
|
|
17
|
+
height: { default: "360px" },
|
|
18
|
+
crossorigin: { default: void 0 },
|
|
19
|
+
imageStyle: { default: () => ({}) },
|
|
20
|
+
options: { default: () => ({}) }
|
|
21
|
+
},
|
|
22
|
+
emits: ["cropend", "ready", "cropendError"],
|
|
23
|
+
setup(f, { emit: v }) {
|
|
24
|
+
const C = {
|
|
25
|
+
aspectRatio: 1,
|
|
26
|
+
zoomable: !0,
|
|
27
|
+
zoomOnTouch: !0,
|
|
28
|
+
zoomOnWheel: !0,
|
|
29
|
+
cropBoxMovable: !0,
|
|
30
|
+
cropBoxResizable: !0,
|
|
31
|
+
toggleDragModeOnDblclick: !0,
|
|
32
|
+
autoCrop: !0,
|
|
33
|
+
background: !0,
|
|
34
|
+
highlight: !0,
|
|
35
|
+
center: !0,
|
|
36
|
+
responsive: !0,
|
|
37
|
+
restore: !0,
|
|
38
|
+
checkCrossOrigin: !0,
|
|
39
|
+
checkOrientation: !0,
|
|
40
|
+
scalable: !0,
|
|
41
|
+
modal: !0,
|
|
42
|
+
guides: !0,
|
|
43
|
+
movable: !0,
|
|
44
|
+
rotatable: !0
|
|
45
|
+
}, o = f, s = v, y = U(), p = l(), a = l(), m = l(!1), { b, m: w } = $("cropper-image"), c = N(d, 80), R = u(() => ({
|
|
46
|
+
height: o.height,
|
|
47
|
+
maxWidth: "100%",
|
|
48
|
+
...o.imageStyle
|
|
49
|
+
})), E = u(() => [
|
|
50
|
+
b(),
|
|
51
|
+
y.class,
|
|
52
|
+
{
|
|
53
|
+
[`${w("circled")}`]: o.circled
|
|
54
|
+
}
|
|
55
|
+
]), B = u(() => ({ height: `${o.height}`.replace(/px/, "") + "px" }));
|
|
56
|
+
S(k), D(() => {
|
|
57
|
+
var e;
|
|
58
|
+
(e = a.value) == null || e.destroy();
|
|
59
|
+
});
|
|
60
|
+
async function k() {
|
|
61
|
+
const e = _(p);
|
|
62
|
+
e && (a.value = new F(e, {
|
|
63
|
+
...C,
|
|
64
|
+
ready: () => {
|
|
65
|
+
m.value = !0, d(), s("ready", a.value);
|
|
66
|
+
},
|
|
67
|
+
crop() {
|
|
68
|
+
c();
|
|
69
|
+
},
|
|
70
|
+
zoom() {
|
|
71
|
+
c();
|
|
72
|
+
},
|
|
73
|
+
cropmove() {
|
|
74
|
+
c();
|
|
75
|
+
},
|
|
76
|
+
...o.options
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
function d() {
|
|
80
|
+
o.realTimePreview && x();
|
|
81
|
+
}
|
|
82
|
+
function x() {
|
|
83
|
+
if (!a.value)
|
|
84
|
+
return;
|
|
85
|
+
let e = a.value.getData();
|
|
86
|
+
(o.circled ? z() : a.value.getCroppedCanvas()).toBlob((t) => {
|
|
87
|
+
if (!t)
|
|
88
|
+
return;
|
|
89
|
+
let r = new FileReader();
|
|
90
|
+
r.readAsDataURL(t), r.onloadend = (i) => {
|
|
91
|
+
var g;
|
|
92
|
+
s("cropend", {
|
|
93
|
+
imgBase64: ((g = i.target) == null ? void 0 : g.result) ?? "",
|
|
94
|
+
imgInfo: e
|
|
95
|
+
});
|
|
96
|
+
}, r.onerror = () => {
|
|
97
|
+
s("cropendError");
|
|
98
|
+
};
|
|
99
|
+
}, "image/png");
|
|
100
|
+
}
|
|
101
|
+
function z() {
|
|
102
|
+
const e = a.value.getCroppedCanvas(), n = document.createElement("canvas"), t = n.getContext("2d"), r = e.width, i = e.height;
|
|
103
|
+
return n.width = r, n.height = i, t.imageSmoothingEnabled = !0, t.drawImage(e, 0, 0, r, i), t.globalCompositeOperation = "destination-in", t.beginPath(), t.arc(
|
|
104
|
+
r / 2,
|
|
105
|
+
i / 2,
|
|
106
|
+
Math.min(r, i) / 2,
|
|
107
|
+
0,
|
|
108
|
+
2 * Math.PI,
|
|
109
|
+
!0
|
|
110
|
+
), t.fill(), n;
|
|
111
|
+
}
|
|
112
|
+
return (e, n) => (I(), M("div", {
|
|
113
|
+
class: T(E.value),
|
|
114
|
+
style: h(B.value)
|
|
115
|
+
}, [
|
|
116
|
+
P(A("img", {
|
|
117
|
+
ref_key: "imgElRef",
|
|
118
|
+
ref: p,
|
|
119
|
+
src: e.src,
|
|
120
|
+
alt: e.alt,
|
|
121
|
+
crossorigin: e.crossorigin,
|
|
122
|
+
style: h(R.value)
|
|
123
|
+
}, null, 12, L), [
|
|
124
|
+
[W, m.value]
|
|
125
|
+
])
|
|
126
|
+
], 6));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
2
129
|
export {
|
|
3
|
-
|
|
130
|
+
X as default
|
|
4
131
|
};
|
|
@@ -1,272 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _ from "./cropper-image.vue.mjs";
|
|
3
|
-
import { Upload as O, Tooltip as p, Space as V, Avatar as z } from "ant-design-vue";
|
|
4
|
-
import { BaseButton as d } from "../base-button/index.mjs";
|
|
5
|
-
import { BaseModal as P } from "../modal/index.mjs";
|
|
6
|
-
import { dataURLtoBlob as h } from "@aplus-frontend/utils";
|
|
7
|
-
import "../config-provider/index.mjs";
|
|
8
|
-
import { isFunction as D } from "@fruits-chain/utils";
|
|
9
|
-
import "./style/modal.css";
|
|
10
|
-
import { useModalInner as j } from "../modal/hooks/use-modal.mjs";
|
|
11
|
-
import { useNamespace as q } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
-
import { useLocale as G } from "../config-provider/hooks/use-locale.mjs";
|
|
13
|
-
const H = ["src", "alt"], ne = /* @__PURE__ */ X({
|
|
14
|
-
name: "CropperModal",
|
|
15
|
-
__name: "cropper-modal",
|
|
16
|
-
props: {
|
|
17
|
-
circled: { type: Boolean, default: !0 },
|
|
18
|
-
uploadApi: {
|
|
19
|
-
type: Function
|
|
20
|
-
},
|
|
21
|
-
src: { type: String },
|
|
22
|
-
size: { type: Number }
|
|
23
|
-
},
|
|
24
|
-
emits: ["uploadSuccess", "uploadError", "register"],
|
|
25
|
-
setup(I, { emit: A }) {
|
|
26
|
-
const b = I, B = A;
|
|
27
|
-
let w = "";
|
|
28
|
-
const i = k(b.src || ""), n = k(""), y = k();
|
|
29
|
-
let $ = 1, x = 1;
|
|
30
|
-
const { b: u } = q("cropper-am"), [M, { closeModal: N, setModalProps: R }] = j(), { t: r } = G();
|
|
31
|
-
function S(o) {
|
|
32
|
-
if (b.size && o.size > 1024 * 1024 * b.size)
|
|
33
|
-
return B("uploadError", { msg: r("ap.cropper.imageTooBig") }), !1;
|
|
34
|
-
const t = new FileReader();
|
|
35
|
-
return t.readAsDataURL(o), i.value = "", n.value = "", t.onload = function(a) {
|
|
36
|
-
var v;
|
|
37
|
-
i.value = ((v = a.target) == null ? void 0 : v.result) ?? "", w = o.name;
|
|
38
|
-
}, !1;
|
|
39
|
-
}
|
|
40
|
-
function U({ imgBase64: o }) {
|
|
41
|
-
n.value = o;
|
|
42
|
-
}
|
|
43
|
-
function E(o) {
|
|
44
|
-
y.value = o;
|
|
45
|
-
}
|
|
46
|
-
function c(o, t) {
|
|
47
|
-
var a, v;
|
|
48
|
-
o === "scaleX" && ($ = t = $ === -1 ? 1 : -1), o === "scaleY" && (x = t = x === -1 ? 1 : -1), (v = (a = y == null ? void 0 : y.value) == null ? void 0 : a[o]) == null || v.call(a, t);
|
|
49
|
-
}
|
|
50
|
-
async function F() {
|
|
51
|
-
const o = b.uploadApi;
|
|
52
|
-
if (o && D(o)) {
|
|
53
|
-
const t = h(n.value);
|
|
54
|
-
try {
|
|
55
|
-
R({ confirmLoading: !0 });
|
|
56
|
-
const a = await o({ name: "file", file: t, filename: w });
|
|
57
|
-
B("uploadSuccess", {
|
|
58
|
-
source: n.value,
|
|
59
|
-
data: a.url
|
|
60
|
-
}), N();
|
|
61
|
-
} finally {
|
|
62
|
-
R({ confirmLoading: !1 });
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return (o, t) => (g(), T(e(P), Y(o.$attrs, {
|
|
67
|
-
onRegister: e(M),
|
|
68
|
-
title: e(r)("ap.cropper.modalTitle"),
|
|
69
|
-
width: "800px",
|
|
70
|
-
canFullscreen: !1,
|
|
71
|
-
onOk: F,
|
|
72
|
-
okText: e(r)("ap.cropper.okText")
|
|
73
|
-
}), {
|
|
74
|
-
default: s(() => [
|
|
75
|
-
f("div", {
|
|
76
|
-
class: m(e(u)())
|
|
77
|
-
}, [
|
|
78
|
-
f("div", {
|
|
79
|
-
class: m(e(u)("left"))
|
|
80
|
-
}, [
|
|
81
|
-
f("div", {
|
|
82
|
-
class: m(e(u)("cropper"))
|
|
83
|
-
}, [
|
|
84
|
-
i.value ? (g(), T(_, {
|
|
85
|
-
key: 0,
|
|
86
|
-
src: i.value,
|
|
87
|
-
height: "300px",
|
|
88
|
-
circled: I.circled,
|
|
89
|
-
onCropend: U,
|
|
90
|
-
onReady: E
|
|
91
|
-
}, null, 8, ["src", "circled"])) : C("", !0)
|
|
92
|
-
], 2),
|
|
93
|
-
f("div", {
|
|
94
|
-
class: m(e(u)("toolbar"))
|
|
95
|
-
}, [
|
|
96
|
-
l(e(O), {
|
|
97
|
-
fileList: [],
|
|
98
|
-
accept: "image/*",
|
|
99
|
-
beforeUpload: S
|
|
100
|
-
}, {
|
|
101
|
-
default: s(() => [
|
|
102
|
-
l(e(p), {
|
|
103
|
-
title: e(r)("ap.cropper.selectImage"),
|
|
104
|
-
placement: "bottom"
|
|
105
|
-
}, {
|
|
106
|
-
default: s(() => [
|
|
107
|
-
l(e(d), {
|
|
108
|
-
size: "small",
|
|
109
|
-
preIcon: "ant-design:upload-outlined",
|
|
110
|
-
type: "primary"
|
|
111
|
-
})
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["title"])
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}),
|
|
118
|
-
l(e(V), null, {
|
|
119
|
-
default: s(() => [
|
|
120
|
-
l(e(p), {
|
|
121
|
-
title: e(r)("ap.common.resetText"),
|
|
122
|
-
placement: "bottom"
|
|
123
|
-
}, {
|
|
124
|
-
default: s(() => [
|
|
125
|
-
l(e(d), {
|
|
126
|
-
type: "primary",
|
|
127
|
-
preIcon: "ant-design:reload-outlined",
|
|
128
|
-
size: "small",
|
|
129
|
-
disabled: !i.value,
|
|
130
|
-
onClick: t[0] || (t[0] = (a) => c("reset"))
|
|
131
|
-
}, null, 8, ["disabled"])
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["title"]),
|
|
135
|
-
l(e(p), {
|
|
136
|
-
title: e(r)("ap.cropper.rotateLeft"),
|
|
137
|
-
placement: "bottom"
|
|
138
|
-
}, {
|
|
139
|
-
default: s(() => [
|
|
140
|
-
l(e(d), {
|
|
141
|
-
type: "primary",
|
|
142
|
-
preIcon: "ant-design:rotate-left-outlined",
|
|
143
|
-
size: "small",
|
|
144
|
-
disabled: !i.value,
|
|
145
|
-
onClick: t[1] || (t[1] = (a) => c("rotate", -45))
|
|
146
|
-
}, null, 8, ["disabled"])
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["title"]),
|
|
150
|
-
l(e(p), {
|
|
151
|
-
title: e(r)("ap.cropper.rotateRight"),
|
|
152
|
-
placement: "bottom"
|
|
153
|
-
}, {
|
|
154
|
-
default: s(() => [
|
|
155
|
-
l(e(d), {
|
|
156
|
-
type: "primary",
|
|
157
|
-
preIcon: "ant-design:rotate-right-outlined",
|
|
158
|
-
size: "small",
|
|
159
|
-
disabled: !i.value,
|
|
160
|
-
onClick: t[2] || (t[2] = (a) => c("rotate", 45))
|
|
161
|
-
}, null, 8, ["disabled"])
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["title"]),
|
|
165
|
-
l(e(p), {
|
|
166
|
-
title: e(r)("ap.cropper.scaleX"),
|
|
167
|
-
placement: "bottom"
|
|
168
|
-
}, {
|
|
169
|
-
default: s(() => [
|
|
170
|
-
l(e(d), {
|
|
171
|
-
type: "primary",
|
|
172
|
-
preIcon: "vaadin:arrows-long-h",
|
|
173
|
-
size: "small",
|
|
174
|
-
disabled: !i.value,
|
|
175
|
-
onClick: t[3] || (t[3] = (a) => c("scaleX"))
|
|
176
|
-
}, null, 8, ["disabled"])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["title"]),
|
|
180
|
-
l(e(p), {
|
|
181
|
-
title: e(r)("ap.cropper.scaleY"),
|
|
182
|
-
placement: "bottom"
|
|
183
|
-
}, {
|
|
184
|
-
default: s(() => [
|
|
185
|
-
l(e(d), {
|
|
186
|
-
type: "primary",
|
|
187
|
-
preIcon: "vaadin:arrows-long-v",
|
|
188
|
-
size: "small",
|
|
189
|
-
disabled: !i.value,
|
|
190
|
-
onClick: t[4] || (t[4] = (a) => c("scaleY"))
|
|
191
|
-
}, null, 8, ["disabled"])
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}, 8, ["title"]),
|
|
195
|
-
l(e(p), {
|
|
196
|
-
title: e(r)("ap.cropper.zoomIn"),
|
|
197
|
-
placement: "bottom"
|
|
198
|
-
}, {
|
|
199
|
-
default: s(() => [
|
|
200
|
-
l(e(d), {
|
|
201
|
-
type: "primary",
|
|
202
|
-
preIcon: "ant-design:zoom-in-outlined",
|
|
203
|
-
size: "small",
|
|
204
|
-
disabled: !i.value,
|
|
205
|
-
onClick: t[5] || (t[5] = (a) => c("zoom", 0.1))
|
|
206
|
-
}, null, 8, ["disabled"])
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["title"]),
|
|
210
|
-
l(e(p), {
|
|
211
|
-
title: e(r)("ap.cropper.zoomOut"),
|
|
212
|
-
placement: "bottom"
|
|
213
|
-
}, {
|
|
214
|
-
default: s(() => [
|
|
215
|
-
l(e(d), {
|
|
216
|
-
type: "primary",
|
|
217
|
-
preIcon: "ant-design:zoom-out-outlined",
|
|
218
|
-
size: "small",
|
|
219
|
-
disabled: !i.value,
|
|
220
|
-
onClick: t[6] || (t[6] = (a) => c("zoom", -0.1))
|
|
221
|
-
}, null, 8, ["disabled"])
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["title"])
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})
|
|
228
|
-
], 2)
|
|
229
|
-
], 2),
|
|
230
|
-
f("div", {
|
|
231
|
-
class: m(e(u)("right"))
|
|
232
|
-
}, [
|
|
233
|
-
f("div", {
|
|
234
|
-
class: m(e(u)("preview"))
|
|
235
|
-
}, [
|
|
236
|
-
n.value ? (g(), L("img", {
|
|
237
|
-
key: 0,
|
|
238
|
-
src: n.value,
|
|
239
|
-
alt: e(r)("ap.cropper.preview")
|
|
240
|
-
}, null, 8, H)) : C("", !0)
|
|
241
|
-
], 2),
|
|
242
|
-
n.value ? (g(), L("div", {
|
|
243
|
-
key: 0,
|
|
244
|
-
class: m(e(u)("group"))
|
|
245
|
-
}, [
|
|
246
|
-
l(e(z), {
|
|
247
|
-
src: n.value,
|
|
248
|
-
size: "large"
|
|
249
|
-
}, null, 8, ["src"]),
|
|
250
|
-
l(e(z), {
|
|
251
|
-
src: n.value,
|
|
252
|
-
size: 48
|
|
253
|
-
}, null, 8, ["src"]),
|
|
254
|
-
l(e(z), {
|
|
255
|
-
src: n.value,
|
|
256
|
-
size: 64
|
|
257
|
-
}, null, 8, ["src"]),
|
|
258
|
-
l(e(z), {
|
|
259
|
-
src: n.value,
|
|
260
|
-
size: 80
|
|
261
|
-
}, null, 8, ["src"])
|
|
262
|
-
], 2)) : C("", !0)
|
|
263
|
-
], 2)
|
|
264
|
-
], 2)
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 16, ["onRegister", "title", "okText"]));
|
|
268
|
-
}
|
|
269
|
-
});
|
|
1
|
+
import f from "./cropper-modal.vue2.mjs";
|
|
270
2
|
export {
|
|
271
|
-
|
|
3
|
+
f as default
|
|
272
4
|
};
|