@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
package/es/src/icon/index.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const Icon: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
5
|
+
color: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
};
|
|
8
|
+
icon: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
5
12
|
size: {
|
|
6
13
|
type: PropType<string | number>;
|
|
7
14
|
default: number;
|
|
@@ -10,18 +17,18 @@ export declare const Icon: {
|
|
|
10
17
|
type: PropType<string>;
|
|
11
18
|
default: string;
|
|
12
19
|
};
|
|
13
|
-
color: {
|
|
14
|
-
type: PropType<string>;
|
|
15
|
-
};
|
|
16
20
|
spin: {
|
|
17
21
|
type: PropType<boolean>;
|
|
18
22
|
default: boolean;
|
|
19
23
|
};
|
|
24
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
25
|
+
color: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
20
28
|
icon: {
|
|
21
29
|
type: PropType<string>;
|
|
22
30
|
required: true;
|
|
23
31
|
};
|
|
24
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
25
32
|
size: {
|
|
26
33
|
type: PropType<string | number>;
|
|
27
34
|
default: number;
|
|
@@ -30,17 +37,10 @@ export declare const Icon: {
|
|
|
30
37
|
type: PropType<string>;
|
|
31
38
|
default: string;
|
|
32
39
|
};
|
|
33
|
-
color: {
|
|
34
|
-
type: PropType<string>;
|
|
35
|
-
};
|
|
36
40
|
spin: {
|
|
37
41
|
type: PropType<boolean>;
|
|
38
42
|
default: boolean;
|
|
39
43
|
};
|
|
40
|
-
icon: {
|
|
41
|
-
type: PropType<string>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
44
|
}>>, {
|
|
45
45
|
size: string | number;
|
|
46
46
|
prefix: string;
|
|
@@ -53,6 +53,13 @@ export declare const Icon: {
|
|
|
53
53
|
M: {};
|
|
54
54
|
Defaults: {};
|
|
55
55
|
}, Readonly< ExtractPropTypes<{
|
|
56
|
+
color: {
|
|
57
|
+
type: PropType<string>;
|
|
58
|
+
};
|
|
59
|
+
icon: {
|
|
60
|
+
type: PropType<string>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
56
63
|
size: {
|
|
57
64
|
type: PropType<string | number>;
|
|
58
65
|
default: number;
|
|
@@ -61,17 +68,10 @@ export declare const Icon: {
|
|
|
61
68
|
type: PropType<string>;
|
|
62
69
|
default: string;
|
|
63
70
|
};
|
|
64
|
-
color: {
|
|
65
|
-
type: PropType<string>;
|
|
66
|
-
};
|
|
67
71
|
spin: {
|
|
68
72
|
type: PropType<boolean>;
|
|
69
73
|
default: boolean;
|
|
70
74
|
};
|
|
71
|
-
icon: {
|
|
72
|
-
type: PropType<string>;
|
|
73
|
-
required: true;
|
|
74
|
-
};
|
|
75
75
|
}>>, {}, {}, {}, {}, {
|
|
76
76
|
size: string | number;
|
|
77
77
|
prefix: string;
|
|
@@ -81,6 +81,13 @@ export declare const Icon: {
|
|
|
81
81
|
__isTeleport?: undefined;
|
|
82
82
|
__isSuspense?: undefined;
|
|
83
83
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
84
|
+
color: {
|
|
85
|
+
type: PropType<string>;
|
|
86
|
+
};
|
|
87
|
+
icon: {
|
|
88
|
+
type: PropType<string>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
84
91
|
size: {
|
|
85
92
|
type: PropType<string | number>;
|
|
86
93
|
default: number;
|
|
@@ -89,17 +96,10 @@ export declare const Icon: {
|
|
|
89
96
|
type: PropType<string>;
|
|
90
97
|
default: string;
|
|
91
98
|
};
|
|
92
|
-
color: {
|
|
93
|
-
type: PropType<string>;
|
|
94
|
-
};
|
|
95
99
|
spin: {
|
|
96
100
|
type: PropType<boolean>;
|
|
97
101
|
default: boolean;
|
|
98
102
|
};
|
|
99
|
-
icon: {
|
|
100
|
-
type: PropType<string>;
|
|
101
|
-
required: true;
|
|
102
|
-
};
|
|
103
103
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
104
104
|
size: string | number;
|
|
105
105
|
prefix: string;
|
|
@@ -111,14 +111,14 @@ export declare const Icon: {
|
|
|
111
111
|
});
|
|
112
112
|
export declare const SvgIcon: {
|
|
113
113
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
114
|
-
name: {
|
|
115
|
-
type: PropType<string>;
|
|
116
|
-
required: true;
|
|
117
|
-
};
|
|
118
114
|
size: {
|
|
119
115
|
type: PropType<string | number>;
|
|
120
116
|
default: number;
|
|
121
117
|
};
|
|
118
|
+
name: {
|
|
119
|
+
type: PropType<string>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
122
|
prefix: {
|
|
123
123
|
type: PropType<string>;
|
|
124
124
|
default: string;
|
|
@@ -128,14 +128,14 @@ export declare const SvgIcon: {
|
|
|
128
128
|
default: boolean;
|
|
129
129
|
};
|
|
130
130
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
131
|
-
name: {
|
|
132
|
-
type: PropType<string>;
|
|
133
|
-
required: true;
|
|
134
|
-
};
|
|
135
131
|
size: {
|
|
136
132
|
type: PropType<string | number>;
|
|
137
133
|
default: number;
|
|
138
134
|
};
|
|
135
|
+
name: {
|
|
136
|
+
type: PropType<string>;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
139
|
prefix: {
|
|
140
140
|
type: PropType<string>;
|
|
141
141
|
default: string;
|
|
@@ -156,14 +156,14 @@ export declare const SvgIcon: {
|
|
|
156
156
|
M: {};
|
|
157
157
|
Defaults: {};
|
|
158
158
|
}, Readonly< ExtractPropTypes<{
|
|
159
|
-
name: {
|
|
160
|
-
type: PropType<string>;
|
|
161
|
-
required: true;
|
|
162
|
-
};
|
|
163
159
|
size: {
|
|
164
160
|
type: PropType<string | number>;
|
|
165
161
|
default: number;
|
|
166
162
|
};
|
|
163
|
+
name: {
|
|
164
|
+
type: PropType<string>;
|
|
165
|
+
required: true;
|
|
166
|
+
};
|
|
167
167
|
prefix: {
|
|
168
168
|
type: PropType<string>;
|
|
169
169
|
default: string;
|
|
@@ -181,14 +181,14 @@ export declare const SvgIcon: {
|
|
|
181
181
|
__isTeleport?: undefined;
|
|
182
182
|
__isSuspense?: undefined;
|
|
183
183
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
184
|
-
name: {
|
|
185
|
-
type: PropType<string>;
|
|
186
|
-
required: true;
|
|
187
|
-
};
|
|
188
184
|
size: {
|
|
189
185
|
type: PropType<string | number>;
|
|
190
186
|
default: number;
|
|
191
187
|
};
|
|
188
|
+
name: {
|
|
189
|
+
type: PropType<string>;
|
|
190
|
+
required: true;
|
|
191
|
+
};
|
|
192
192
|
prefix: {
|
|
193
193
|
type: PropType<string>;
|
|
194
194
|
default: string;
|
package/es/src/icon/index.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./icon.vue.mjs";
|
|
2
|
+
import "./svg-icon.vue.mjs";
|
|
3
3
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
4
|
-
|
|
4
|
+
import "./interface.mjs";
|
|
5
|
+
import m from "./icon.vue2.mjs";
|
|
6
|
+
import t from "./svg-icon.vue2.mjs";
|
|
7
|
+
const s = o(m), _ = o(t);
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
s as Icon,
|
|
10
|
+
_ as SvgIcon
|
|
8
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./style/svg-icon.css";
|
|
3
|
-
import "../config-provider/index.mjs";
|
|
4
|
-
import { useNamespace as h } from "../config-provider/hooks/use-namespace.mjs";
|
|
5
|
-
const g = ["xlink:href"], $ = /* @__PURE__ */ p({
|
|
6
|
-
name: "ApSvgIcon",
|
|
7
|
-
__name: "svg-icon",
|
|
8
|
-
props: {
|
|
9
|
-
name: {},
|
|
10
|
-
prefix: { default: "icon" },
|
|
11
|
-
size: { default: 16 },
|
|
12
|
-
spin: { type: Boolean, default: !1 }
|
|
13
|
-
},
|
|
14
|
-
setup(r) {
|
|
15
|
-
const n = r, { b: s } = h("svg-icon"), l = o(() => `#${n.prefix}-${n.name}`), i = o(() => {
|
|
16
|
-
const { size: t } = n;
|
|
17
|
-
let e = `${t}`;
|
|
18
|
-
return e = `${e.replace("px", "")}px`, {
|
|
19
|
-
width: e,
|
|
20
|
-
height: e
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
return (t, e) => (c(), m("svg", {
|
|
24
|
-
class: u([a(s)(), t.$attrs.class, t.spin && a(s)("spin")]),
|
|
25
|
-
style: f(i.value),
|
|
26
|
-
"aria-hidden": "true"
|
|
27
|
-
}, [
|
|
28
|
-
d("use", { "xlink:href": l.value }, null, 8, g)
|
|
29
|
-
], 6));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
1
|
+
import f from "./svg-icon.vue2.mjs";
|
|
32
2
|
export {
|
|
33
|
-
|
|
3
|
+
f as default
|
|
34
4
|
};
|
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as p, computed as o, openBlock as c, createElementBlock as m, normalizeClass as u, unref as a, normalizeStyle as f, createElementVNode as d } from "vue";
|
|
2
|
+
import "./style/svg-icon.css";
|
|
3
|
+
import "../config-provider/index.mjs";
|
|
4
|
+
import { useNamespace as h } from "../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const g = ["xlink:href"], $ = /* @__PURE__ */ p({
|
|
6
|
+
name: "ApSvgIcon",
|
|
7
|
+
__name: "svg-icon",
|
|
8
|
+
props: {
|
|
9
|
+
name: {},
|
|
10
|
+
prefix: { default: "icon" },
|
|
11
|
+
size: { default: 16 },
|
|
12
|
+
spin: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
setup(r) {
|
|
15
|
+
const n = r, { b: s } = h("svg-icon"), l = o(() => `#${n.prefix}-${n.name}`), i = o(() => {
|
|
16
|
+
const { size: t } = n;
|
|
17
|
+
let e = `${t}`;
|
|
18
|
+
return e = `${e.replace("px", "")}px`, {
|
|
19
|
+
width: e,
|
|
20
|
+
height: e
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
return (t, e) => (c(), m("svg", {
|
|
24
|
+
class: u([a(s)(), t.$attrs.class, t.spin && a(s)("spin")]),
|
|
25
|
+
style: f(i.value),
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
}, [
|
|
28
|
+
d("use", { "xlink:href": l.value }, null, 8, g)
|
|
29
|
+
], 6));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
2
32
|
export {
|
|
3
|
-
|
|
33
|
+
$ as default
|
|
4
34
|
};
|
|
@@ -24,12 +24,12 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
24
24
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
value: string;
|
|
28
27
|
mode: "svg" | "iconify";
|
|
29
|
-
readonly: boolean;
|
|
30
|
-
allowClear: boolean;
|
|
31
28
|
width: string;
|
|
29
|
+
value: string;
|
|
30
|
+
readonly: boolean;
|
|
32
31
|
copy: boolean;
|
|
32
|
+
allowClear: boolean;
|
|
33
33
|
pageSize: number;
|
|
34
34
|
}, {}>;
|
|
35
35
|
export default _default;
|
|
@@ -1,168 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScrollContainer as R } from "../container/index.mjs";
|
|
3
|
-
import { Input as I, Popover as W, Pagination as X, Empty as Y } from "ant-design-vue";
|
|
4
|
-
import B from "../icon/icon.vue.mjs";
|
|
5
|
-
import L from "../icon/svg-icon.vue.mjs";
|
|
6
|
-
import "./style/index.css";
|
|
7
|
-
import N from "./data.mjs";
|
|
8
|
-
import { usePagination as Z } from "@aplus-frontend/hooks";
|
|
9
|
-
import { useDebounceFn as ee } from "@vueuse/core";
|
|
10
|
-
import { copyText as te } from "../utils/copy-text-to-clipboard.mjs";
|
|
11
|
-
import "../config-provider/index.mjs";
|
|
12
|
-
import { useLocale as ae } from "../config-provider/hooks/use-locale.mjs";
|
|
13
|
-
import { useNamespace as le } from "../config-provider/hooks/use-namespace.mjs";
|
|
14
|
-
const oe = { key: 0 }, ne = ["onClick", "title"], Ce = /* @__PURE__ */ j({
|
|
15
|
-
inheritAttrs: !1,
|
|
16
|
-
name: "ApIconPicker",
|
|
17
|
-
__name: "icon-picker",
|
|
18
|
-
props: {
|
|
19
|
-
value: { default: "" },
|
|
20
|
-
width: { default: "100%" },
|
|
21
|
-
pageSize: { default: 140 },
|
|
22
|
-
copy: { type: Boolean, default: !1 },
|
|
23
|
-
mode: { default: "iconify" },
|
|
24
|
-
svgIcons: {},
|
|
25
|
-
allowClear: { type: Boolean, default: !0 },
|
|
26
|
-
readonly: { type: Boolean, default: !1 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["change", "update:value"],
|
|
29
|
-
setup(V, { emit: b }) {
|
|
30
|
-
const r = V;
|
|
31
|
-
function $() {
|
|
32
|
-
const t = N.prefix;
|
|
33
|
-
return N.icons.map((a) => `${t}:${a}`);
|
|
34
|
-
}
|
|
35
|
-
function x() {
|
|
36
|
-
var t;
|
|
37
|
-
return ((t = r.svgIcons) == null ? void 0 : t.map((a) => a.replace("icon-", ""))) || [];
|
|
38
|
-
}
|
|
39
|
-
const C = b, f = r.mode === "svg", g = f ? x() : $(), n = m(""), S = m(!1), v = m(g), y = m(), E = () => {
|
|
40
|
-
y.value && y.value.click();
|
|
41
|
-
}, { t: h } = ae(), { b: w, e: A, em: u } = le("icon-picker"), D = ee(M, 100), {
|
|
42
|
-
getPaginationList: _,
|
|
43
|
-
getTotal: z,
|
|
44
|
-
setCurrentPage: P,
|
|
45
|
-
setPageSize: F,
|
|
46
|
-
getPageSize: T
|
|
47
|
-
} = Z(v, r.pageSize);
|
|
48
|
-
q(() => {
|
|
49
|
-
n.value = r.value;
|
|
50
|
-
}), G(
|
|
51
|
-
() => n.value,
|
|
52
|
-
(t) => {
|
|
53
|
-
C("update:value", t), C("change", t);
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
function U(t, a) {
|
|
57
|
-
P(t), F(a);
|
|
58
|
-
}
|
|
59
|
-
function H(t) {
|
|
60
|
-
n.value = t, r.copy && te(t, h("ap.icon.picker.copy"));
|
|
61
|
-
}
|
|
62
|
-
function M(t) {
|
|
63
|
-
const a = t.target.value;
|
|
64
|
-
if (!a) {
|
|
65
|
-
P(1), v.value = g;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
v.value = g.filter((l) => l.includes(a));
|
|
69
|
-
}
|
|
70
|
-
return (t, a) => (o(), d(e(I), {
|
|
71
|
-
style: J({ width: t.width }),
|
|
72
|
-
placeholder: e(h)("ap.icon.picker.placeholder"),
|
|
73
|
-
class: i(e(w)()),
|
|
74
|
-
value: n.value,
|
|
75
|
-
"onUpdate:value": a[1] || (a[1] = (l) => n.value = l),
|
|
76
|
-
onClick: E,
|
|
77
|
-
allowClear: r.allowClear,
|
|
78
|
-
readonly: r.readonly
|
|
79
|
-
}, {
|
|
80
|
-
addonAfter: p(() => [
|
|
81
|
-
c(e(W), {
|
|
82
|
-
placement: "bottomLeft",
|
|
83
|
-
trigger: "click",
|
|
84
|
-
modelValue: S.value,
|
|
85
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => S.value = l),
|
|
86
|
-
overlayClassName: e(w)("popover")
|
|
87
|
-
}, {
|
|
88
|
-
title: p(() => [
|
|
89
|
-
k("div", {
|
|
90
|
-
class: i(e(A)("title"))
|
|
91
|
-
}, [
|
|
92
|
-
c(e(I), {
|
|
93
|
-
placeholder: e(h)("ap.icon.picker.search"),
|
|
94
|
-
onChange: e(D),
|
|
95
|
-
allowClear: ""
|
|
96
|
-
}, null, 8, ["placeholder", "onChange"])
|
|
97
|
-
], 2)
|
|
98
|
-
]),
|
|
99
|
-
content: p(() => [
|
|
100
|
-
e(_).length ? (o(), s("div", oe, [
|
|
101
|
-
c(e(R), {
|
|
102
|
-
class: i(e(u)("content", "container"))
|
|
103
|
-
}, {
|
|
104
|
-
default: p(() => [
|
|
105
|
-
k("ul", null, [
|
|
106
|
-
(o(!0), s(K, null, O(e(_), (l) => (o(), s("li", {
|
|
107
|
-
key: l,
|
|
108
|
-
onClick: (re) => H(l),
|
|
109
|
-
title: l
|
|
110
|
-
}, [
|
|
111
|
-
f ? (o(), d(L, {
|
|
112
|
-
key: 0,
|
|
113
|
-
name: l
|
|
114
|
-
}, null, 8, ["name"])) : (o(), d(B, {
|
|
115
|
-
key: 1,
|
|
116
|
-
icon: l
|
|
117
|
-
}, null, 8, ["icon"]))
|
|
118
|
-
], 8, ne))), 128))
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["class"]),
|
|
123
|
-
e(z) >= t.pageSize ? (o(), s("div", {
|
|
124
|
-
key: 0,
|
|
125
|
-
class: i(e(u)("content", "footer"))
|
|
126
|
-
}, [
|
|
127
|
-
c(e(X), {
|
|
128
|
-
showLessItems: "",
|
|
129
|
-
size: "small",
|
|
130
|
-
pageSize: e(T),
|
|
131
|
-
total: e(z),
|
|
132
|
-
onChange: U
|
|
133
|
-
}, null, 8, ["pageSize", "total"])
|
|
134
|
-
], 2)) : Q("", !0)
|
|
135
|
-
])) : (o(), s("div", {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: i(e(u)("content", "empty"))
|
|
138
|
-
}, [
|
|
139
|
-
c(e(Y))
|
|
140
|
-
], 2))
|
|
141
|
-
]),
|
|
142
|
-
default: p(() => [
|
|
143
|
-
k("div", {
|
|
144
|
-
ref_key: "trigger",
|
|
145
|
-
ref: y
|
|
146
|
-
}, [
|
|
147
|
-
f && n.value ? (o(), s("span", {
|
|
148
|
-
key: 0,
|
|
149
|
-
class: i(e(u)("trigger", "svg"))
|
|
150
|
-
}, [
|
|
151
|
-
c(L, { name: n.value }, null, 8, ["name"])
|
|
152
|
-
], 2)) : (o(), d(B, {
|
|
153
|
-
key: 1,
|
|
154
|
-
icon: n.value || "ion:apps-outline",
|
|
155
|
-
class: i(e(u)("trigger", "iconify"))
|
|
156
|
-
}, null, 8, ["icon", "class"]))
|
|
157
|
-
], 512)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["modelValue", "overlayClassName"])
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["style", "placeholder", "class", "value", "allowClear", "readonly"]));
|
|
164
|
-
}
|
|
165
|
-
});
|
|
1
|
+
import f from "./icon-picker.vue2.mjs";
|
|
166
2
|
export {
|
|
167
|
-
|
|
3
|
+
f as default
|
|
168
4
|
};
|
|
@@ -1,4 +1,170 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as j, ref as m, watchEffect as q, watch as G, openBlock as l, createBlock as d, unref as e, normalizeStyle as J, normalizeClass as i, withCtx as p, createVNode as c, createElementVNode as k, createElementBlock as s, Fragment as K, renderList as O, createCommentVNode as Q } from "vue";
|
|
2
|
+
import { ScrollContainer as R } from "../container/index.mjs";
|
|
3
|
+
import { Input as I, Popover as W, Pagination as X, Empty as Y } from "ant-design-vue";
|
|
4
|
+
import "../icon/icon.vue.mjs";
|
|
5
|
+
import "../icon/svg-icon.vue.mjs";
|
|
6
|
+
import "./style/index.css";
|
|
7
|
+
import B from "./data.mjs";
|
|
8
|
+
import { usePagination as Z } from "@aplus-frontend/hooks";
|
|
9
|
+
import { useDebounceFn as ee } from "@vueuse/core";
|
|
10
|
+
import { copyText as te } from "../utils/copy-text-to-clipboard.mjs";
|
|
11
|
+
import "../config-provider/index.mjs";
|
|
12
|
+
import { useLocale as ae } from "../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as oe } from "../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import L from "../icon/svg-icon.vue2.mjs";
|
|
15
|
+
import N from "../icon/icon.vue2.mjs";
|
|
16
|
+
const le = { key: 0 }, ne = ["onClick", "title"], we = /* @__PURE__ */ j({
|
|
17
|
+
inheritAttrs: !1,
|
|
18
|
+
name: "ApIconPicker",
|
|
19
|
+
__name: "icon-picker",
|
|
20
|
+
props: {
|
|
21
|
+
value: { default: "" },
|
|
22
|
+
width: { default: "100%" },
|
|
23
|
+
pageSize: { default: 140 },
|
|
24
|
+
copy: { type: Boolean, default: !1 },
|
|
25
|
+
mode: { default: "iconify" },
|
|
26
|
+
svgIcons: {},
|
|
27
|
+
allowClear: { type: Boolean, default: !0 },
|
|
28
|
+
readonly: { type: Boolean, default: !1 }
|
|
29
|
+
},
|
|
30
|
+
emits: ["change", "update:value"],
|
|
31
|
+
setup(V, { emit: b }) {
|
|
32
|
+
const r = V;
|
|
33
|
+
function $() {
|
|
34
|
+
const t = B.prefix;
|
|
35
|
+
return B.icons.map((a) => `${t}:${a}`);
|
|
36
|
+
}
|
|
37
|
+
function x() {
|
|
38
|
+
var t;
|
|
39
|
+
return ((t = r.svgIcons) == null ? void 0 : t.map((a) => a.replace("icon-", ""))) || [];
|
|
40
|
+
}
|
|
41
|
+
const C = b, f = r.mode === "svg", g = f ? x() : $(), n = m(""), S = m(!1), v = m(g), y = m(), E = () => {
|
|
42
|
+
y.value && y.value.click();
|
|
43
|
+
}, { t: h } = ae(), { b: w, e: A, em: u } = oe("icon-picker"), D = ee(M, 100), {
|
|
44
|
+
getPaginationList: _,
|
|
45
|
+
getTotal: z,
|
|
46
|
+
setCurrentPage: P,
|
|
47
|
+
setPageSize: F,
|
|
48
|
+
getPageSize: T
|
|
49
|
+
} = Z(v, r.pageSize);
|
|
50
|
+
q(() => {
|
|
51
|
+
n.value = r.value;
|
|
52
|
+
}), G(
|
|
53
|
+
() => n.value,
|
|
54
|
+
(t) => {
|
|
55
|
+
C("update:value", t), C("change", t);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
function U(t, a) {
|
|
59
|
+
P(t), F(a);
|
|
60
|
+
}
|
|
61
|
+
function H(t) {
|
|
62
|
+
n.value = t, r.copy && te(t, h("ap.icon.picker.copy"));
|
|
63
|
+
}
|
|
64
|
+
function M(t) {
|
|
65
|
+
const a = t.target.value;
|
|
66
|
+
if (!a) {
|
|
67
|
+
P(1), v.value = g;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
v.value = g.filter((o) => o.includes(a));
|
|
71
|
+
}
|
|
72
|
+
return (t, a) => (l(), d(e(I), {
|
|
73
|
+
style: J({ width: t.width }),
|
|
74
|
+
placeholder: e(h)("ap.icon.picker.placeholder"),
|
|
75
|
+
class: i(e(w)()),
|
|
76
|
+
value: n.value,
|
|
77
|
+
"onUpdate:value": a[1] || (a[1] = (o) => n.value = o),
|
|
78
|
+
onClick: E,
|
|
79
|
+
allowClear: r.allowClear,
|
|
80
|
+
readonly: r.readonly
|
|
81
|
+
}, {
|
|
82
|
+
addonAfter: p(() => [
|
|
83
|
+
c(e(W), {
|
|
84
|
+
placement: "bottomLeft",
|
|
85
|
+
trigger: "click",
|
|
86
|
+
modelValue: S.value,
|
|
87
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => S.value = o),
|
|
88
|
+
overlayClassName: e(w)("popover")
|
|
89
|
+
}, {
|
|
90
|
+
title: p(() => [
|
|
91
|
+
k("div", {
|
|
92
|
+
class: i(e(A)("title"))
|
|
93
|
+
}, [
|
|
94
|
+
c(e(I), {
|
|
95
|
+
placeholder: e(h)("ap.icon.picker.search"),
|
|
96
|
+
onChange: e(D),
|
|
97
|
+
allowClear: ""
|
|
98
|
+
}, null, 8, ["placeholder", "onChange"])
|
|
99
|
+
], 2)
|
|
100
|
+
]),
|
|
101
|
+
content: p(() => [
|
|
102
|
+
e(_).length ? (l(), s("div", le, [
|
|
103
|
+
c(e(R), {
|
|
104
|
+
class: i(e(u)("content", "container"))
|
|
105
|
+
}, {
|
|
106
|
+
default: p(() => [
|
|
107
|
+
k("ul", null, [
|
|
108
|
+
(l(!0), s(K, null, O(e(_), (o) => (l(), s("li", {
|
|
109
|
+
key: o,
|
|
110
|
+
onClick: (re) => H(o),
|
|
111
|
+
title: o
|
|
112
|
+
}, [
|
|
113
|
+
f ? (l(), d(L, {
|
|
114
|
+
key: 0,
|
|
115
|
+
name: o
|
|
116
|
+
}, null, 8, ["name"])) : (l(), d(N, {
|
|
117
|
+
key: 1,
|
|
118
|
+
icon: o
|
|
119
|
+
}, null, 8, ["icon"]))
|
|
120
|
+
], 8, ne))), 128))
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["class"]),
|
|
125
|
+
e(z) >= t.pageSize ? (l(), s("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: i(e(u)("content", "footer"))
|
|
128
|
+
}, [
|
|
129
|
+
c(e(X), {
|
|
130
|
+
showLessItems: "",
|
|
131
|
+
size: "small",
|
|
132
|
+
pageSize: e(T),
|
|
133
|
+
total: e(z),
|
|
134
|
+
onChange: U
|
|
135
|
+
}, null, 8, ["pageSize", "total"])
|
|
136
|
+
], 2)) : Q("", !0)
|
|
137
|
+
])) : (l(), s("div", {
|
|
138
|
+
key: 1,
|
|
139
|
+
class: i(e(u)("content", "empty"))
|
|
140
|
+
}, [
|
|
141
|
+
c(e(Y))
|
|
142
|
+
], 2))
|
|
143
|
+
]),
|
|
144
|
+
default: p(() => [
|
|
145
|
+
k("div", {
|
|
146
|
+
ref_key: "trigger",
|
|
147
|
+
ref: y
|
|
148
|
+
}, [
|
|
149
|
+
f && n.value ? (l(), s("span", {
|
|
150
|
+
key: 0,
|
|
151
|
+
class: i(e(u)("trigger", "svg"))
|
|
152
|
+
}, [
|
|
153
|
+
c(L, { name: n.value }, null, 8, ["name"])
|
|
154
|
+
], 2)) : (l(), d(N, {
|
|
155
|
+
key: 1,
|
|
156
|
+
icon: n.value || "ion:apps-outline",
|
|
157
|
+
class: i(e(u)("trigger", "iconify"))
|
|
158
|
+
}, null, 8, ["icon", "class"]))
|
|
159
|
+
], 512)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["modelValue", "overlayClassName"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["style", "placeholder", "class", "value", "allowClear", "readonly"]));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
2
168
|
export {
|
|
3
|
-
|
|
169
|
+
we as default
|
|
4
170
|
};
|