@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,63 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Modal as k } from "ant-design-vue";
|
|
3
|
-
import "lodash-unified";
|
|
4
|
-
import "@ant-design/icons-vue";
|
|
5
|
-
import "../config-provider/index.mjs";
|
|
6
|
-
import "@fruits-chain/utils";
|
|
7
|
-
import "@aplus-frontend/hooks";
|
|
8
|
-
import T from "../pro-form/pro-form.vue.mjs";
|
|
9
|
-
import { useForm as O } from "../pro-form/hooks/use-form.mjs";
|
|
10
|
-
import "./style/dialog.css";
|
|
11
|
-
import { useLocale as _ } from "../config-provider/hooks/use-locale.mjs";
|
|
12
|
-
import { useNamespace as b } from "../config-provider/hooks/use-namespace.mjs";
|
|
13
|
-
const E = /* @__PURE__ */ f({
|
|
14
|
-
__name: "dialog",
|
|
15
|
-
props: {
|
|
16
|
-
title: {},
|
|
17
|
-
addFormSchemas: {},
|
|
18
|
-
onOK: { type: Function },
|
|
19
|
-
width: {},
|
|
20
|
-
labelWidth: {},
|
|
21
|
-
layout: {}
|
|
22
|
-
},
|
|
23
|
-
setup(m) {
|
|
24
|
-
const t = m, a = l(!0), n = l(!1), { t: i } = _(), { e: s } = b("prompt-dialog"), [c, { validate: p }] = O({
|
|
25
|
-
schemas: t.addFormSchemas,
|
|
26
|
-
showActionButtonGroup: !1,
|
|
27
|
-
labelWidth: t.labelWidth || 80,
|
|
28
|
-
layout: t.layout || "horizontal"
|
|
29
|
-
});
|
|
30
|
-
async function d() {
|
|
31
|
-
n.value = !0;
|
|
32
|
-
try {
|
|
33
|
-
const e = await p();
|
|
34
|
-
t.onOK && await t.onOK(e.txt), a.value = !1;
|
|
35
|
-
} finally {
|
|
36
|
-
n.value = !1;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return (e, r) => (h(), w(o(k), {
|
|
40
|
-
open: a.value,
|
|
41
|
-
"onUpdate:open": r[0] || (r[0] = (u) => a.value = u),
|
|
42
|
-
title: e.title,
|
|
43
|
-
onOk: d,
|
|
44
|
-
confirmLoading: n.value,
|
|
45
|
-
destroyOnClose: !0,
|
|
46
|
-
width: e.width || "500px",
|
|
47
|
-
okText: o(i)("ap.common.okText"),
|
|
48
|
-
cancelText: o(i)("ap.common.cancelText")
|
|
49
|
-
}, {
|
|
50
|
-
default: x(() => [
|
|
51
|
-
g("div", {
|
|
52
|
-
class: v(o(s)("content"))
|
|
53
|
-
}, [
|
|
54
|
-
y(o(T), { onRegister: o(c) }, null, 8, ["onRegister"])
|
|
55
|
-
], 2)
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 8, ["open", "title", "confirmLoading", "width", "okText", "cancelText"]));
|
|
59
|
-
}
|
|
60
|
-
});
|
|
1
|
+
import f from "./dialog.vue2.mjs";
|
|
61
2
|
export {
|
|
62
|
-
|
|
3
|
+
f as default
|
|
63
4
|
};
|
|
@@ -1,4 +1,60 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as f, ref as l, openBlock as h, createBlock as w, unref as o, withCtx as x, createElementVNode as g, normalizeClass as v, createVNode as y } from "vue";
|
|
2
|
+
import { Modal as k } from "ant-design-vue";
|
|
3
|
+
import "../pro-form/index.mjs";
|
|
4
|
+
import "../config-provider/index.mjs";
|
|
5
|
+
import "./style/dialog.css";
|
|
6
|
+
import { useLocale as T } from "../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as O } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useForm as _ } from "../pro-form/hooks/use-form.mjs";
|
|
9
|
+
import b from "../pro-form/pro-form.vue.mjs";
|
|
10
|
+
const R = /* @__PURE__ */ f({
|
|
11
|
+
__name: "dialog",
|
|
12
|
+
props: {
|
|
13
|
+
title: {},
|
|
14
|
+
addFormSchemas: {},
|
|
15
|
+
onOK: { type: Function },
|
|
16
|
+
width: {},
|
|
17
|
+
labelWidth: {},
|
|
18
|
+
layout: {}
|
|
19
|
+
},
|
|
20
|
+
setup(m) {
|
|
21
|
+
const e = m, a = l(!0), n = l(!1), { t: i } = T(), { e: s } = O("prompt-dialog"), [c, { validate: p }] = _({
|
|
22
|
+
schemas: e.addFormSchemas,
|
|
23
|
+
showActionButtonGroup: !1,
|
|
24
|
+
labelWidth: e.labelWidth || 80,
|
|
25
|
+
layout: e.layout || "horizontal"
|
|
26
|
+
});
|
|
27
|
+
async function d() {
|
|
28
|
+
n.value = !0;
|
|
29
|
+
try {
|
|
30
|
+
const t = await p();
|
|
31
|
+
e.onOK && await e.onOK(t.txt), a.value = !1;
|
|
32
|
+
} finally {
|
|
33
|
+
n.value = !1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return (t, r) => (h(), w(o(k), {
|
|
37
|
+
open: a.value,
|
|
38
|
+
"onUpdate:open": r[0] || (r[0] = (u) => a.value = u),
|
|
39
|
+
title: t.title,
|
|
40
|
+
onOk: d,
|
|
41
|
+
confirmLoading: n.value,
|
|
42
|
+
destroyOnClose: !0,
|
|
43
|
+
width: t.width || "500px",
|
|
44
|
+
okText: o(i)("ap.common.okText"),
|
|
45
|
+
cancelText: o(i)("ap.common.cancelText")
|
|
46
|
+
}, {
|
|
47
|
+
default: x(() => [
|
|
48
|
+
g("div", {
|
|
49
|
+
class: v(o(s)("content"))
|
|
50
|
+
}, [
|
|
51
|
+
y(o(b), { onRegister: o(c) }, null, 8, ["onRegister"])
|
|
52
|
+
], 2)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["open", "title", "confirmLoading", "width", "okText", "cancelText"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
2
58
|
export {
|
|
3
|
-
|
|
59
|
+
R as default
|
|
4
60
|
};
|
package/es/src/prompt/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { reactive as a, defineComponent as o, h as
|
|
2
|
-
import { genFormSchemas as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { reactive as a, defineComponent as o, h as i, createVNode as d, render as u } from "vue";
|
|
2
|
+
import { genFormSchemas as m } from "./utils.mjs";
|
|
3
|
+
import "./dialog.vue.mjs";
|
|
4
|
+
import c from "./dialog.vue2.mjs";
|
|
5
|
+
function N(r) {
|
|
5
6
|
let e = null;
|
|
6
7
|
const t = a({
|
|
7
8
|
...r,
|
|
8
|
-
addFormSchemas:
|
|
9
|
+
addFormSchemas: m({
|
|
9
10
|
label: r.label,
|
|
10
11
|
required: r.required,
|
|
11
12
|
inputType: r.inputType,
|
|
@@ -13,10 +14,10 @@ function g(r) {
|
|
|
13
14
|
})
|
|
14
15
|
}), n = o({
|
|
15
16
|
render() {
|
|
16
|
-
return
|
|
17
|
+
return i(c, { ...t });
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
e =
|
|
20
|
+
e = d(n), u(e, document.createElement("div"));
|
|
20
21
|
function l() {
|
|
21
22
|
e != null && e.el && e.el.parentNode && e.el.parentNode.removeChild(e.el);
|
|
22
23
|
}
|
|
@@ -29,5 +30,5 @@ function g(r) {
|
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
N as createPrompt
|
|
33
34
|
};
|
package/es/src/prompt/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ComponentFormSchema } from '../pro-form';
|
|
2
|
+
import { ComponentProps } from '../pro-form/types';
|
|
3
3
|
type InputType = 'InputTextArea' | 'InputNumber' | 'Input';
|
|
4
4
|
interface GenFormSchemasOptions {
|
|
5
5
|
label?: string;
|
|
@@ -7,5 +7,5 @@ interface GenFormSchemasOptions {
|
|
|
7
7
|
inputType?: InputType;
|
|
8
8
|
defaultValue?: string | number;
|
|
9
9
|
}
|
|
10
|
-
export declare function genFormSchemas({ label, required, inputType, defaultValue }: GenFormSchemasOptions):
|
|
10
|
+
export declare function genFormSchemas({ label, required, inputType, defaultValue }: GenFormSchemasOptions): ComponentFormSchema<keyof ComponentProps, any>[];
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, getCurrentInstance as k, ref as m, inject as H, computed as M, onUnmounted as R, h as b } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { on as h, off as P } from "@aplus-frontend/utils";
|
|
3
3
|
import { BAR_MAP as T, renderThumbStyle as x } from "./utils.mjs";
|
|
4
4
|
import "./style/bar-item.css";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
@@ -25,7 +25,7 @@ const { e: w, is: A } = y("scrollbar"), _ = S({
|
|
|
25
25
|
), i = r.value[e.value.offset] / 2, v = (l - i) * 100 / ((u = o == null ? void 0 : o.vnode.el) == null ? void 0 : u[e.value.offset]);
|
|
26
26
|
n.value[e.value.scroll] = v * n.value[e.value.scrollSize] / 100;
|
|
27
27
|
}, C = (t) => {
|
|
28
|
-
t.stopImmediatePropagation(), c.value = !0,
|
|
28
|
+
t.stopImmediatePropagation(), c.value = !0, h(document, "mousemove", f), h(document, "mouseup", d), document.onselectstart = () => !1;
|
|
29
29
|
}, f = (t) => {
|
|
30
30
|
var g, p;
|
|
31
31
|
if (c.value === !1)
|
|
@@ -37,10 +37,10 @@ const { e: w, is: A } = y("scrollbar"), _ = S({
|
|
|
37
37
|
n.value[e.value.scroll] = u * n.value[e.value.scrollSize] / 100;
|
|
38
38
|
};
|
|
39
39
|
function d() {
|
|
40
|
-
c.value = !1, s.value[e.value.axis] = 0,
|
|
40
|
+
c.value = !1, s.value[e.value.axis] = 0, P(document, "mousemove", f), document.onselectstart = null;
|
|
41
41
|
}
|
|
42
42
|
return R(() => {
|
|
43
|
-
|
|
43
|
+
P(document, "mouseup", d);
|
|
44
44
|
}), () => b(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
|
|
1
|
+
import "./scroll-bar.vue.mjs";
|
|
2
|
+
import { withInstall as o } from "@aplus-frontend/utils";
|
|
3
|
+
import "./interface.mjs";
|
|
4
|
+
import r from "./scroll-bar.vue2.mjs";
|
|
5
|
+
const l = o(r);
|
|
4
6
|
export {
|
|
5
7
|
l as Scrollbar,
|
|
6
8
|
l as default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,86 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { addResizeListener as y, removeResizeListener as C } from "@aplus-frontend/utils";
|
|
3
|
-
import b from "./bar-item.mjs";
|
|
4
|
-
import "./style/index.css";
|
|
5
|
-
import "../config-provider/index.mjs";
|
|
6
|
-
import { useGlobalConfig as $ } from "../config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
-
const x = /* @__PURE__ */ W({
|
|
9
|
-
name: "ApScrollbar",
|
|
10
|
-
__name: "scroll-bar",
|
|
11
|
-
props: {
|
|
12
|
-
native: { type: Boolean },
|
|
13
|
-
wrapStyle: { default: "" },
|
|
14
|
-
wrapClass: { default: "" },
|
|
15
|
-
viewClass: { default: "" },
|
|
16
|
-
viewStyle: { default: "" },
|
|
17
|
-
noresize: { type: Boolean },
|
|
18
|
-
tag: { default: "div" },
|
|
19
|
-
scrollHeight: { default: 0 }
|
|
20
|
-
},
|
|
21
|
-
setup(S, { expose: k }) {
|
|
22
|
-
var h;
|
|
23
|
-
const B = $(), s = S, H = !!((h = B.value.scrollbar) != null && h.native), r = V(() => s.native || H), v = a("0"), m = a("0"), d = a(0), f = a(0), t = a(), i = a(), { b: N, e: p, em: L } = j("scrollbar");
|
|
24
|
-
_("scroll-bar-wrap", t);
|
|
25
|
-
const E = () => {
|
|
26
|
-
r.value || (f.value = e(t).scrollTop * 100 / e(t).clientHeight, d.value = e(t).scrollLeft * 100 / e(t).clientWidth);
|
|
27
|
-
}, o = () => {
|
|
28
|
-
if (!e(t))
|
|
29
|
-
return;
|
|
30
|
-
const l = e(t).clientHeight * 100 / e(t).scrollHeight, n = e(t).clientWidth * 100 / e(t).scrollWidth;
|
|
31
|
-
m.value = l < 100 ? l + "%" : "", v.value = n < 100 ? n + "%" : "";
|
|
32
|
-
};
|
|
33
|
-
return P(
|
|
34
|
-
() => s.scrollHeight,
|
|
35
|
-
() => {
|
|
36
|
-
r.value || o();
|
|
37
|
-
}
|
|
38
|
-
), k({
|
|
39
|
-
wrap: t
|
|
40
|
-
}), R(() => {
|
|
41
|
-
r.value || (T(o), s.noresize || (y(e(i), o), y(e(t), o), addEventListener("resize", o)));
|
|
42
|
-
}), A(() => {
|
|
43
|
-
r.value || s.noresize || (C(e(i), o), C(e(t), o), removeEventListener("resize", o));
|
|
44
|
-
}), (l, n) => (c(), w("div", {
|
|
45
|
-
class: u(e(N)())
|
|
46
|
-
}, [
|
|
47
|
-
D("div", {
|
|
48
|
-
ref_key: "wrap",
|
|
49
|
-
ref: t,
|
|
50
|
-
class: u([
|
|
51
|
-
l.wrapClass,
|
|
52
|
-
e(p)("wrap"),
|
|
53
|
-
r.value ? "" : e(L)("wrap", "hidden-default")
|
|
54
|
-
]),
|
|
55
|
-
style: z(l.wrapStyle),
|
|
56
|
-
onScroll: E
|
|
57
|
-
}, [
|
|
58
|
-
(c(), F(G(l.tag), {
|
|
59
|
-
ref_key: "resize",
|
|
60
|
-
ref: i,
|
|
61
|
-
class: u([e(p)("view"), l.viewClass]),
|
|
62
|
-
style: z(l.viewStyle)
|
|
63
|
-
}, {
|
|
64
|
-
default: M(() => [
|
|
65
|
-
U(l.$slots, "default")
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 8, ["class", "style"]))
|
|
69
|
-
], 38),
|
|
70
|
-
r.value ? Y("", !0) : (c(), w(X, { key: 0 }, [
|
|
71
|
-
g(e(b), {
|
|
72
|
-
move: d.value,
|
|
73
|
-
size: v.value
|
|
74
|
-
}, null, 8, ["move", "size"]),
|
|
75
|
-
g(e(b), {
|
|
76
|
-
vertical: "",
|
|
77
|
-
move: f.value,
|
|
78
|
-
size: m.value
|
|
79
|
-
}, null, 8, ["move", "size"])
|
|
80
|
-
], 64))
|
|
81
|
-
], 2));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
1
|
+
import f from "./scroll-bar.vue2.mjs";
|
|
84
2
|
export {
|
|
85
|
-
|
|
3
|
+
f as default
|
|
86
4
|
};
|
|
@@ -1,4 +1,86 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as W, computed as V, ref as a, provide as _, unref as e, watch as P, onMounted as R, nextTick as T, onBeforeUnmount as A, openBlock as c, createElementBlock as w, normalizeClass as u, createElementVNode as D, normalizeStyle as z, createBlock as F, resolveDynamicComponent as G, withCtx as M, renderSlot as U, Fragment as X, createVNode as g, createCommentVNode as Y } from "vue";
|
|
2
|
+
import { addResizeListener as y, removeResizeListener as C } from "@aplus-frontend/utils";
|
|
3
|
+
import b from "./bar-item.mjs";
|
|
4
|
+
import "./style/index.css";
|
|
5
|
+
import "../config-provider/index.mjs";
|
|
6
|
+
import { useGlobalConfig as $ } from "../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const x = /* @__PURE__ */ W({
|
|
9
|
+
name: "ApScrollbar",
|
|
10
|
+
__name: "scroll-bar",
|
|
11
|
+
props: {
|
|
12
|
+
native: { type: Boolean },
|
|
13
|
+
wrapStyle: { default: "" },
|
|
14
|
+
wrapClass: { default: "" },
|
|
15
|
+
viewClass: { default: "" },
|
|
16
|
+
viewStyle: { default: "" },
|
|
17
|
+
noresize: { type: Boolean },
|
|
18
|
+
tag: { default: "div" },
|
|
19
|
+
scrollHeight: { default: 0 }
|
|
20
|
+
},
|
|
21
|
+
setup(S, { expose: k }) {
|
|
22
|
+
var h;
|
|
23
|
+
const B = $(), s = S, H = !!((h = B.value.scrollbar) != null && h.native), r = V(() => s.native || H), v = a("0"), m = a("0"), d = a(0), f = a(0), t = a(), i = a(), { b: N, e: p, em: L } = j("scrollbar");
|
|
24
|
+
_("scroll-bar-wrap", t);
|
|
25
|
+
const E = () => {
|
|
26
|
+
r.value || (f.value = e(t).scrollTop * 100 / e(t).clientHeight, d.value = e(t).scrollLeft * 100 / e(t).clientWidth);
|
|
27
|
+
}, o = () => {
|
|
28
|
+
if (!e(t))
|
|
29
|
+
return;
|
|
30
|
+
const l = e(t).clientHeight * 100 / e(t).scrollHeight, n = e(t).clientWidth * 100 / e(t).scrollWidth;
|
|
31
|
+
m.value = l < 100 ? l + "%" : "", v.value = n < 100 ? n + "%" : "";
|
|
32
|
+
};
|
|
33
|
+
return P(
|
|
34
|
+
() => s.scrollHeight,
|
|
35
|
+
() => {
|
|
36
|
+
r.value || o();
|
|
37
|
+
}
|
|
38
|
+
), k({
|
|
39
|
+
wrap: t
|
|
40
|
+
}), R(() => {
|
|
41
|
+
r.value || (T(o), s.noresize || (y(e(i), o), y(e(t), o), addEventListener("resize", o)));
|
|
42
|
+
}), A(() => {
|
|
43
|
+
r.value || s.noresize || (C(e(i), o), C(e(t), o), removeEventListener("resize", o));
|
|
44
|
+
}), (l, n) => (c(), w("div", {
|
|
45
|
+
class: u(e(N)())
|
|
46
|
+
}, [
|
|
47
|
+
D("div", {
|
|
48
|
+
ref_key: "wrap",
|
|
49
|
+
ref: t,
|
|
50
|
+
class: u([
|
|
51
|
+
l.wrapClass,
|
|
52
|
+
e(p)("wrap"),
|
|
53
|
+
r.value ? "" : e(L)("wrap", "hidden-default")
|
|
54
|
+
]),
|
|
55
|
+
style: z(l.wrapStyle),
|
|
56
|
+
onScroll: E
|
|
57
|
+
}, [
|
|
58
|
+
(c(), F(G(l.tag), {
|
|
59
|
+
ref_key: "resize",
|
|
60
|
+
ref: i,
|
|
61
|
+
class: u([e(p)("view"), l.viewClass]),
|
|
62
|
+
style: z(l.viewStyle)
|
|
63
|
+
}, {
|
|
64
|
+
default: M(() => [
|
|
65
|
+
U(l.$slots, "default")
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 8, ["class", "style"]))
|
|
69
|
+
], 38),
|
|
70
|
+
r.value ? Y("", !0) : (c(), w(X, { key: 0 }, [
|
|
71
|
+
g(e(b), {
|
|
72
|
+
move: d.value,
|
|
73
|
+
size: v.value
|
|
74
|
+
}, null, 8, ["move", "size"]),
|
|
75
|
+
g(e(b), {
|
|
76
|
+
vertical: "",
|
|
77
|
+
move: f.value,
|
|
78
|
+
size: m.value
|
|
79
|
+
}, null, 8, ["move", "size"])
|
|
80
|
+
], 64))
|
|
81
|
+
], 2));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
2
84
|
export {
|
|
3
|
-
|
|
85
|
+
x as default
|
|
4
86
|
};
|
|
@@ -2,12 +2,12 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const StrengthMeter: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
5
|
-
value: {
|
|
6
|
-
type: PropType<string>;
|
|
7
|
-
};
|
|
8
5
|
disabled: {
|
|
9
6
|
type: PropType<boolean>;
|
|
10
7
|
};
|
|
8
|
+
value: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
};
|
|
11
11
|
showInput: {
|
|
12
12
|
type: PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
@@ -19,12 +19,12 @@ export declare const StrengthMeter: {
|
|
|
19
19
|
change: (...args: any[]) => void;
|
|
20
20
|
"score-change": (...args: any[]) => void;
|
|
21
21
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
22
|
-
value: {
|
|
23
|
-
type: PropType<string>;
|
|
24
|
-
};
|
|
25
22
|
disabled: {
|
|
26
23
|
type: PropType<boolean>;
|
|
27
24
|
};
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
28
28
|
showInput: {
|
|
29
29
|
type: PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
@@ -42,12 +42,12 @@ export declare const StrengthMeter: {
|
|
|
42
42
|
M: {};
|
|
43
43
|
Defaults: {};
|
|
44
44
|
}, Readonly< ExtractPropTypes<{
|
|
45
|
-
value: {
|
|
46
|
-
type: PropType<string>;
|
|
47
|
-
};
|
|
48
45
|
disabled: {
|
|
49
46
|
type: PropType<boolean>;
|
|
50
47
|
};
|
|
48
|
+
value: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
};
|
|
51
51
|
showInput: {
|
|
52
52
|
type: PropType<boolean>;
|
|
53
53
|
default: boolean;
|
|
@@ -62,12 +62,12 @@ export declare const StrengthMeter: {
|
|
|
62
62
|
__isTeleport?: undefined;
|
|
63
63
|
__isSuspense?: undefined;
|
|
64
64
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
65
|
-
value: {
|
|
66
|
-
type: PropType<string>;
|
|
67
|
-
};
|
|
68
65
|
disabled: {
|
|
69
66
|
type: PropType<boolean>;
|
|
70
67
|
};
|
|
68
|
+
value: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
};
|
|
71
71
|
showInput: {
|
|
72
72
|
type: PropType<boolean>;
|
|
73
73
|
default: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
|
|
1
|
+
import "./strength-meter.vue.mjs";
|
|
2
|
+
import { withInstall as t } from "@aplus-frontend/utils";
|
|
3
|
+
import "./interface.mjs";
|
|
4
|
+
import r from "./strength-meter.vue2.mjs";
|
|
5
|
+
const e = t(r);
|
|
4
6
|
export {
|
|
5
7
|
e as StrengthMeter
|
|
6
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,63 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Input as $ } from "ant-design-vue";
|
|
3
|
-
import { zxcvbn as R } from "@zxcvbn-ts/core";
|
|
4
|
-
import "../config-provider/index.mjs";
|
|
5
|
-
import "./style/index.css";
|
|
6
|
-
import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const A = ["data-score"], G = /* @__PURE__ */ v({
|
|
8
|
-
name: "ApStrengthMeter",
|
|
9
|
-
__name: "strength-meter",
|
|
10
|
-
props: {
|
|
11
|
-
value: {},
|
|
12
|
-
showInput: { type: Boolean, default: !0 },
|
|
13
|
-
disabled: { type: Boolean }
|
|
14
|
-
},
|
|
15
|
-
emits: ["score-change", "change"],
|
|
16
|
-
setup(i, { emit: m }) {
|
|
17
|
-
const s = i, n = m, r = b(""), { b: l, bm: d } = j("strength-meter"), p = w(() => {
|
|
18
|
-
const { disabled: e } = s;
|
|
19
|
-
if (e)
|
|
20
|
-
return -1;
|
|
21
|
-
const a = t(r) ? R(t(r)).score : -1;
|
|
22
|
-
return n("score-change", a), a;
|
|
23
|
-
});
|
|
24
|
-
function h(e) {
|
|
25
|
-
n("change", e.target.value), r.value = e.target.value || "";
|
|
26
|
-
}
|
|
27
|
-
return C(() => {
|
|
28
|
-
r.value = s.value || "";
|
|
29
|
-
}), k(
|
|
30
|
-
() => t(r),
|
|
31
|
-
(e) => {
|
|
32
|
-
n("change", e);
|
|
33
|
-
}
|
|
34
|
-
), (e, f) => (c(), B("div", {
|
|
35
|
-
class: o(t(l)())
|
|
36
|
-
}, [
|
|
37
|
-
e.showInput ? (c(), P(t($).Password, V({ key: 0 }, e.$attrs, {
|
|
38
|
-
allowClear: "",
|
|
39
|
-
value: r.value,
|
|
40
|
-
onChange: h,
|
|
41
|
-
disabled: e.disabled
|
|
42
|
-
}), y({ _: 2 }, [
|
|
43
|
-
S(Object.keys(e.$slots), (a) => ({
|
|
44
|
-
name: a,
|
|
45
|
-
fn: _((g) => [
|
|
46
|
-
z(e.$slots, a, E(I(g || {})))
|
|
47
|
-
])
|
|
48
|
-
}))
|
|
49
|
-
]), 1040, ["value", "disabled"])) : N("", !0),
|
|
50
|
-
u("div", {
|
|
51
|
-
class: o(t(l)("bar"))
|
|
52
|
-
}, [
|
|
53
|
-
u("div", {
|
|
54
|
-
class: o(t(d)("bar", "fill")),
|
|
55
|
-
"data-score": p.value
|
|
56
|
-
}, null, 10, A)
|
|
57
|
-
], 2)
|
|
58
|
-
], 2));
|
|
59
|
-
}
|
|
60
|
-
});
|
|
1
|
+
import f from "./strength-meter.vue2.mjs";
|
|
61
2
|
export {
|
|
62
|
-
|
|
3
|
+
f as default
|
|
63
4
|
};
|
|
@@ -1,4 +1,63 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as v, ref as b, computed as w, unref as t, watchEffect as C, watch as k, openBlock as c, createElementBlock as B, normalizeClass as o, createBlock as P, mergeProps as V, createSlots as y, renderList as S, withCtx as _, renderSlot as z, normalizeProps as E, guardReactiveProps as I, createCommentVNode as N, createElementVNode as u } from "vue";
|
|
2
|
+
import { Input as $ } from "ant-design-vue";
|
|
3
|
+
import { zxcvbn as R } from "@zxcvbn-ts/core";
|
|
4
|
+
import "../config-provider/index.mjs";
|
|
5
|
+
import "./style/index.css";
|
|
6
|
+
import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const A = ["data-score"], G = /* @__PURE__ */ v({
|
|
8
|
+
name: "ApStrengthMeter",
|
|
9
|
+
__name: "strength-meter",
|
|
10
|
+
props: {
|
|
11
|
+
value: {},
|
|
12
|
+
showInput: { type: Boolean, default: !0 },
|
|
13
|
+
disabled: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["score-change", "change"],
|
|
16
|
+
setup(i, { emit: m }) {
|
|
17
|
+
const s = i, n = m, r = b(""), { b: l, bm: d } = j("strength-meter"), p = w(() => {
|
|
18
|
+
const { disabled: e } = s;
|
|
19
|
+
if (e)
|
|
20
|
+
return -1;
|
|
21
|
+
const a = t(r) ? R(t(r)).score : -1;
|
|
22
|
+
return n("score-change", a), a;
|
|
23
|
+
});
|
|
24
|
+
function h(e) {
|
|
25
|
+
n("change", e.target.value), r.value = e.target.value || "";
|
|
26
|
+
}
|
|
27
|
+
return C(() => {
|
|
28
|
+
r.value = s.value || "";
|
|
29
|
+
}), k(
|
|
30
|
+
() => t(r),
|
|
31
|
+
(e) => {
|
|
32
|
+
n("change", e);
|
|
33
|
+
}
|
|
34
|
+
), (e, f) => (c(), B("div", {
|
|
35
|
+
class: o(t(l)())
|
|
36
|
+
}, [
|
|
37
|
+
e.showInput ? (c(), P(t($).Password, V({ key: 0 }, e.$attrs, {
|
|
38
|
+
allowClear: "",
|
|
39
|
+
value: r.value,
|
|
40
|
+
onChange: h,
|
|
41
|
+
disabled: e.disabled
|
|
42
|
+
}), y({ _: 2 }, [
|
|
43
|
+
S(Object.keys(e.$slots), (a) => ({
|
|
44
|
+
name: a,
|
|
45
|
+
fn: _((g) => [
|
|
46
|
+
z(e.$slots, a, E(I(g || {})))
|
|
47
|
+
])
|
|
48
|
+
}))
|
|
49
|
+
]), 1040, ["value", "disabled"])) : N("", !0),
|
|
50
|
+
u("div", {
|
|
51
|
+
class: o(t(l)("bar"))
|
|
52
|
+
}, [
|
|
53
|
+
u("div", {
|
|
54
|
+
class: o(t(d)("bar", "fill")),
|
|
55
|
+
"data-score": p.value
|
|
56
|
+
}, null, 10, A)
|
|
57
|
+
], 2)
|
|
58
|
+
], 2));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
2
61
|
export {
|
|
3
|
-
|
|
62
|
+
G as default
|
|
4
63
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.aplus-action-item {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.aplus-action-item--primary {
|
|
8
|
+
color: #0070ff;
|
|
9
|
+
}
|
|
10
|
+
.aplus-action-item--success {
|
|
11
|
+
color: #2ed1a3;
|
|
12
|
+
}
|
|
13
|
+
.aplus-action-item--error {
|
|
14
|
+
color: #FF4D4F;
|
|
15
|
+
}
|
|
16
|
+
.aplus-action-item--warn {
|
|
17
|
+
color: #FFA940;
|
|
18
|
+
}
|
|
19
|
+
.aplus-action-item--loading {
|
|
20
|
+
opacity: 0.35;
|
|
21
|
+
transition: opacity 0.2s;
|
|
22
|
+
}
|
|
23
|
+
.aplus-action-item--loading .btn-loading-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
.aplus-action-item--disabled {
|
|
27
|
+
color: #ABB7CC;
|
|
28
|
+
}
|