@aplus-frontend/ui 0.0.1-beta.6 → 0.0.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +157 -142
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +68 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +20 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +4 -0
- package/es/src/ap-action/item/index.vue2.mjs +49 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +6 -4
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +69 -40
- package/es/src/ap-field/text/index.vue.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
- package/es/src/ap-form/components/interface.d.ts +0 -0
- package/es/src/ap-form/index.d.ts +87 -1758
- package/es/src/ap-form/index.mjs +11 -7
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.d.ts +28 -28
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider.d.ts +4 -4
- package/es/src/config-provider/config-provider.mjs +4 -4
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.d.ts +12 -12
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.d.ts +12 -12
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.d.ts +42 -42
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.d.ts +3 -3
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.d.ts +7 -7
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.d.ts +41 -41
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.d.ts +45 -45
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +161 -145
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.d.ts +4 -3
- package/es/src/modal/basic.vue.mjs +2 -191
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.d.ts +10 -11
- package/es/src/modal/index.mjs +10 -8
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +2 -2
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.mjs +55 -56
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.d.ts +12 -12
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/modal/index.css +29 -30
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +6 -4
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/components/interface.d.ts +0 -0
- package/lib/src/ap-form/index.d.ts +87 -1758
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.d.ts +28 -28
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +4 -4
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +12 -12
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.d.ts +12 -12
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.d.ts +42 -42
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.d.ts +41 -41
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.d.ts +45 -45
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.d.ts +4 -3
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +10 -11
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.d.ts +12 -12
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/modal/index.css +29 -30
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import B from "./help.vue.mjs";
|
|
3
|
-
import "../config-provider/index.mjs";
|
|
4
|
-
import "./style/title.css";
|
|
5
|
-
import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
const b = /* @__PURE__ */ r({
|
|
7
|
-
name: "ApBasicTitle",
|
|
8
|
-
__name: "title",
|
|
9
|
-
props: {
|
|
10
|
-
helpMessage: { default: "" },
|
|
11
|
-
span: { type: Boolean },
|
|
12
|
-
normal: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(l) {
|
|
15
|
-
const t = l, { b: e } = _("basic-title"), n = m(), p = c(() => [
|
|
16
|
-
e(),
|
|
17
|
-
{ [`${e("show-span")}`]: t.span && n.default },
|
|
18
|
-
{ [`${e("normal")}`]: t.normal }
|
|
19
|
-
]);
|
|
20
|
-
return (s, g) => (o(), i("span", {
|
|
21
|
-
class: a(p.value)
|
|
22
|
-
}, [
|
|
23
|
-
u(s.$slots, "default"),
|
|
24
|
-
s.helpMessage ? (o(), f(B, {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: a(d(e)("help")),
|
|
27
|
-
text: s.helpMessage
|
|
28
|
-
}, null, 8, ["class", "text"])) : h("", !0)
|
|
29
|
-
], 2));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
1
|
+
import f from "./title.vue2.mjs";
|
|
32
2
|
export {
|
|
33
|
-
|
|
3
|
+
f as default
|
|
34
4
|
};
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as r, useSlots as m, computed as c, openBlock as o, createElementBlock as i, normalizeClass as a, renderSlot as u, createBlock as f, unref as d, createCommentVNode as h } from "vue";
|
|
2
|
+
import "./help.vue.mjs";
|
|
3
|
+
import "../config-provider/index.mjs";
|
|
4
|
+
import "./style/title.css";
|
|
5
|
+
import { useNamespace as B } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import _ from "./help.vue2.mjs";
|
|
7
|
+
const N = /* @__PURE__ */ r({
|
|
8
|
+
name: "ApBasicTitle",
|
|
9
|
+
__name: "title",
|
|
10
|
+
props: {
|
|
11
|
+
helpMessage: { default: "" },
|
|
12
|
+
span: { type: Boolean },
|
|
13
|
+
normal: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(l) {
|
|
16
|
+
const t = l, { b: e } = B("basic-title"), n = m(), p = c(() => [
|
|
17
|
+
e(),
|
|
18
|
+
{ [`${e("show-span")}`]: t.span && n.default },
|
|
19
|
+
{ [`${e("normal")}`]: t.normal }
|
|
20
|
+
]);
|
|
21
|
+
return (s, g) => (o(), i("span", {
|
|
22
|
+
class: a(p.value)
|
|
23
|
+
}, [
|
|
24
|
+
u(s.$slots, "default"),
|
|
25
|
+
s.helpMessage ? (o(), f(_, {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: a(d(e)("help")),
|
|
28
|
+
text: s.helpMessage
|
|
29
|
+
}, null, 8, ["class", "text"])) : h("", !0)
|
|
30
|
+
], 2));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
2
33
|
export {
|
|
3
|
-
|
|
34
|
+
N as default
|
|
4
35
|
};
|
|
@@ -276,10 +276,8 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
}>>, {
|
|
279
|
-
|
|
279
|
+
theme: ThemeConfig;
|
|
280
280
|
direction: "ltr" | "rtl";
|
|
281
|
-
virtual: boolean;
|
|
282
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
283
281
|
input: {
|
|
284
282
|
autocomplete?: string | undefined;
|
|
285
283
|
};
|
|
@@ -293,6 +291,7 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
293
291
|
};
|
|
294
292
|
csp: CSPConfig;
|
|
295
293
|
autoInsertSpaceInButton: boolean;
|
|
294
|
+
locale: Locale;
|
|
296
295
|
pageHeader: {
|
|
297
296
|
ghost?: boolean | undefined;
|
|
298
297
|
};
|
|
@@ -300,10 +299,11 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
300
299
|
space: {
|
|
301
300
|
size?: number | ButtonSize;
|
|
302
301
|
};
|
|
302
|
+
virtual: boolean;
|
|
303
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
303
304
|
pagination: {
|
|
304
305
|
showSizeChanger?: boolean | undefined;
|
|
305
306
|
};
|
|
306
|
-
theme: ThemeConfig;
|
|
307
307
|
wave: {
|
|
308
308
|
disabled?: boolean | undefined;
|
|
309
309
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isVNode as l, defineComponent as d, createVNode as m, renderSlot as a } from "vue";
|
|
2
2
|
import { ConfigProvider as u } from "ant-design-vue";
|
|
3
3
|
import { provideGlobalConfig as c } from "./hooks/use-global-config.mjs";
|
|
4
4
|
import { configProviderProps as g } from "./config-provider-props.mjs";
|
|
5
5
|
import { tableDefaultConfig as s } from "./constants.mjs";
|
|
6
6
|
function v(o) {
|
|
7
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
7
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !l(o);
|
|
8
8
|
}
|
|
9
|
-
const y = /* @__PURE__ */
|
|
9
|
+
const y = /* @__PURE__ */ d({
|
|
10
10
|
name: "AplusConfigProvider",
|
|
11
11
|
props: g(),
|
|
12
12
|
setup({
|
|
@@ -29,7 +29,7 @@ const y = /* @__PURE__ */ l({
|
|
|
29
29
|
});
|
|
30
30
|
return () => {
|
|
31
31
|
let e;
|
|
32
|
-
return
|
|
32
|
+
return m(u, f, v(e = a(p, "default", {
|
|
33
33
|
config: r == null ? void 0 : r.value
|
|
34
34
|
})) ? e : {
|
|
35
35
|
default: () => [e]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { unref as o, computed as c, isRef as l, ref as s, inject as a } from "vue";
|
|
2
2
|
import { get as m } from "lodash-unified";
|
|
3
|
+
import "../../locale/index.mjs";
|
|
3
4
|
import u from "../../locale/lang/zh-cn.mjs";
|
|
4
5
|
const f = (e) => (t, r) => i(t, r, o(e)), i = (e, t, r) => m(r, e, e).replace(
|
|
5
6
|
/\{(\w+)\}/g,
|
|
@@ -283,10 +283,8 @@ export declare const APConfigProvider: {
|
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
}>>, {
|
|
286
|
-
|
|
286
|
+
theme: ThemeConfig;
|
|
287
287
|
direction: "ltr" | "rtl";
|
|
288
|
-
virtual: boolean;
|
|
289
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
290
288
|
input: {
|
|
291
289
|
autocomplete?: string | undefined;
|
|
292
290
|
};
|
|
@@ -300,6 +298,7 @@ export declare const APConfigProvider: {
|
|
|
300
298
|
};
|
|
301
299
|
csp: CSPConfig;
|
|
302
300
|
autoInsertSpaceInButton: boolean;
|
|
301
|
+
locale: Locale;
|
|
303
302
|
pageHeader: {
|
|
304
303
|
ghost?: boolean | undefined;
|
|
305
304
|
};
|
|
@@ -307,10 +306,11 @@ export declare const APConfigProvider: {
|
|
|
307
306
|
space: {
|
|
308
307
|
size?: number | ButtonSize;
|
|
309
308
|
};
|
|
309
|
+
virtual: boolean;
|
|
310
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
310
311
|
pagination: {
|
|
311
312
|
showSizeChanger?: boolean | undefined;
|
|
312
313
|
};
|
|
313
|
-
theme: ThemeConfig;
|
|
314
314
|
wave: {
|
|
315
315
|
disabled?: boolean | undefined;
|
|
316
316
|
};
|
|
@@ -458,10 +458,8 @@ export declare const APConfigProvider: {
|
|
|
458
458
|
};
|
|
459
459
|
};
|
|
460
460
|
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
461
|
-
|
|
461
|
+
theme: ThemeConfig;
|
|
462
462
|
direction: "ltr" | "rtl";
|
|
463
|
-
virtual: boolean;
|
|
464
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
465
463
|
input: {
|
|
466
464
|
autocomplete?: string | undefined;
|
|
467
465
|
};
|
|
@@ -475,6 +473,7 @@ export declare const APConfigProvider: {
|
|
|
475
473
|
};
|
|
476
474
|
csp: CSPConfig;
|
|
477
475
|
autoInsertSpaceInButton: boolean;
|
|
476
|
+
locale: Locale;
|
|
478
477
|
pageHeader: {
|
|
479
478
|
ghost?: boolean | undefined;
|
|
480
479
|
};
|
|
@@ -482,10 +481,11 @@ export declare const APConfigProvider: {
|
|
|
482
481
|
space: {
|
|
483
482
|
size?: number | ButtonSize;
|
|
484
483
|
};
|
|
484
|
+
virtual: boolean;
|
|
485
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
485
486
|
pagination: {
|
|
486
487
|
showSizeChanger?: boolean | undefined;
|
|
487
488
|
};
|
|
488
|
-
theme: ThemeConfig;
|
|
489
489
|
wave: {
|
|
490
490
|
disabled?: boolean | undefined;
|
|
491
491
|
};
|
|
@@ -630,10 +630,8 @@ export declare const APConfigProvider: {
|
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
632
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
633
|
-
|
|
633
|
+
theme: ThemeConfig;
|
|
634
634
|
direction: "ltr" | "rtl";
|
|
635
|
-
virtual: boolean;
|
|
636
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
637
635
|
input: {
|
|
638
636
|
autocomplete?: string | undefined;
|
|
639
637
|
};
|
|
@@ -647,6 +645,7 @@ export declare const APConfigProvider: {
|
|
|
647
645
|
};
|
|
648
646
|
csp: CSPConfig;
|
|
649
647
|
autoInsertSpaceInButton: boolean;
|
|
648
|
+
locale: Locale;
|
|
650
649
|
pageHeader: {
|
|
651
650
|
ghost?: boolean | undefined;
|
|
652
651
|
};
|
|
@@ -654,10 +653,11 @@ export declare const APConfigProvider: {
|
|
|
654
653
|
space: {
|
|
655
654
|
size?: number | ButtonSize;
|
|
656
655
|
};
|
|
656
|
+
virtual: boolean;
|
|
657
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
657
658
|
pagination: {
|
|
658
659
|
showSizeChanger?: boolean | undefined;
|
|
659
660
|
};
|
|
660
|
-
theme: ThemeConfig;
|
|
661
661
|
wave: {
|
|
662
662
|
disabled?: boolean | undefined;
|
|
663
663
|
};
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
1
|
+
import { withInstall as e } from "@aplus-frontend/utils";
|
|
2
|
+
import { ConfigProvider as o } from "./config-provider.mjs";
|
|
3
|
+
import { configProviderProps as l } from "./config-provider-props.mjs";
|
|
4
|
+
import { configProviderContextKey as s, tableDefaultConfig as p } from "./constants.mjs";
|
|
5
|
+
import { keysOf as c, provideGlobalConfig as d, useGlobalConfig as x } from "./hooks/use-global-config.mjs";
|
|
6
|
+
import { buildLocaleContext as C, buildTranslator as g, localeContextKey as v, translate as P, useLocale as b } from "./hooks/use-locale.mjs";
|
|
7
|
+
import { defaultNamespace as G, namespaceContextKey as K, useGetDerivedNamespace as N, useNamespace as D } from "./hooks/use-namespace.mjs";
|
|
8
|
+
const a = e(o);
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
s as
|
|
14
|
-
|
|
10
|
+
a as APConfigProvider,
|
|
11
|
+
o as ConfigProvider,
|
|
12
|
+
C as buildLocaleContext,
|
|
13
|
+
g as buildTranslator,
|
|
14
|
+
s as configProviderContextKey,
|
|
15
|
+
l as configProviderProps,
|
|
16
|
+
a as default,
|
|
17
|
+
G as defaultNamespace,
|
|
18
|
+
c as keysOf,
|
|
19
|
+
v as localeContextKey,
|
|
20
|
+
K as namespaceContextKey,
|
|
21
|
+
d as provideGlobalConfig,
|
|
22
|
+
p as tableDefaultConfig,
|
|
23
|
+
P as translate,
|
|
24
|
+
N as useGetDerivedNamespace,
|
|
25
|
+
x as useGlobalConfig,
|
|
26
|
+
b as useLocale,
|
|
27
|
+
D as useNamespace
|
|
15
28
|
};
|
|
@@ -1,51 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../config-provider/index.mjs";
|
|
3
|
-
import { BasicTitle as l, BasicArrow as p } from "../../basic/index.mjs";
|
|
4
|
-
import "./style/header.css";
|
|
5
|
-
import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
const s = {
|
|
7
|
-
title: String,
|
|
8
|
-
show: Boolean,
|
|
9
|
-
canExpand: Boolean,
|
|
10
|
-
helpMessage: {
|
|
11
|
-
type: [Array, String],
|
|
12
|
-
default: ""
|
|
13
|
-
}
|
|
14
|
-
}, g = /* @__PURE__ */ c({
|
|
15
|
-
name: "ApCollapseHeader",
|
|
16
|
-
inheritAttrs: !1,
|
|
17
|
-
props: s,
|
|
18
|
-
emits: ["expand"],
|
|
19
|
-
setup(e, {
|
|
20
|
-
slots: a,
|
|
21
|
-
attrs: o,
|
|
22
|
-
emit: t
|
|
23
|
-
}) {
|
|
24
|
-
const {
|
|
25
|
-
e: r
|
|
26
|
-
} = d("collapse-container-header");
|
|
27
|
-
return () => n("div", {
|
|
28
|
-
class: [r("header"), o.class]
|
|
29
|
-
}, [n(l, {
|
|
30
|
-
helpMessage: e.helpMessage,
|
|
31
|
-
normal: !0
|
|
32
|
-
}, {
|
|
33
|
-
default: () => {
|
|
34
|
-
var i;
|
|
35
|
-
return [((i = a.title) == null ? void 0 : i.call(a)) || e.title];
|
|
36
|
-
}
|
|
37
|
-
}), n("div", {
|
|
38
|
-
class: r("action")
|
|
39
|
-
}, [a.action ? a.action({
|
|
40
|
-
expand: e.show,
|
|
41
|
-
onClick: () => t("expand")
|
|
42
|
-
}) : e.canExpand && n(p, {
|
|
43
|
-
up: !0,
|
|
44
|
-
expand: e.show,
|
|
45
|
-
onClick: () => t("expand")
|
|
46
|
-
}, null)])]);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
1
|
+
import f from "./header.vue2.mjs";
|
|
49
2
|
export {
|
|
50
|
-
|
|
3
|
+
f as default
|
|
51
4
|
};
|
|
@@ -1,4 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as c, createVNode as n } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import { BasicTitle as l, BasicArrow as p } from "../../basic/index.mjs";
|
|
4
|
+
import "./style/header.css";
|
|
5
|
+
import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const s = {
|
|
7
|
+
title: String,
|
|
8
|
+
show: Boolean,
|
|
9
|
+
canExpand: Boolean,
|
|
10
|
+
helpMessage: {
|
|
11
|
+
type: [Array, String],
|
|
12
|
+
default: ""
|
|
13
|
+
}
|
|
14
|
+
}, g = /* @__PURE__ */ c({
|
|
15
|
+
name: "ApCollapseHeader",
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
props: s,
|
|
18
|
+
emits: ["expand"],
|
|
19
|
+
setup(e, {
|
|
20
|
+
slots: a,
|
|
21
|
+
attrs: o,
|
|
22
|
+
emit: t
|
|
23
|
+
}) {
|
|
24
|
+
const {
|
|
25
|
+
e: r
|
|
26
|
+
} = d("collapse-container-header");
|
|
27
|
+
return () => n("div", {
|
|
28
|
+
class: [r("header"), o.class]
|
|
29
|
+
}, [n(l, {
|
|
30
|
+
helpMessage: e.helpMessage,
|
|
31
|
+
normal: !0
|
|
32
|
+
}, {
|
|
33
|
+
default: () => {
|
|
34
|
+
var i;
|
|
35
|
+
return [((i = a.title) == null ? void 0 : i.call(a)) || e.title];
|
|
36
|
+
}
|
|
37
|
+
}), n("div", {
|
|
38
|
+
class: r("action")
|
|
39
|
+
}, [a.action ? a.action({
|
|
40
|
+
expand: e.show,
|
|
41
|
+
onClick: () => t("expand")
|
|
42
|
+
}) : e.canExpand && n(p, {
|
|
43
|
+
up: !0,
|
|
44
|
+
expand: e.show,
|
|
45
|
+
onClick: () => t("expand")
|
|
46
|
+
}, null)])]);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
2
49
|
export {
|
|
3
|
-
|
|
50
|
+
g as default
|
|
4
51
|
};
|
|
@@ -1,87 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../transition/index.mjs";
|
|
3
|
-
import { useTimeoutFn as g } from "@vueuse/core";
|
|
4
|
-
import { triggerWindowResize as v } from "@aplus-frontend/utils";
|
|
5
|
-
import { Skeleton as w } from "ant-design-vue";
|
|
6
|
-
import { isNil as y } from "lodash-unified";
|
|
7
|
-
import "../../config-provider/index.mjs";
|
|
8
|
-
import h from "./header.vue.mjs";
|
|
9
|
-
import "./style/index.css";
|
|
10
|
-
import _ from "../../transition/collapse-transition.vue.mjs";
|
|
11
|
-
import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
-
const z = {
|
|
13
|
-
title: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
loading: {
|
|
18
|
-
type: Boolean
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* Can it be expanded
|
|
22
|
-
*/
|
|
23
|
-
canExpand: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !0
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Warm reminder on the right side of the title
|
|
29
|
-
*/
|
|
30
|
-
helpMessage: {
|
|
31
|
-
type: [Array, String],
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* Whether to trigger window.resize when expanding and contracting,
|
|
36
|
-
* Can adapt to tables and forms, when the form shrinks, the form triggers resize to adapt to the height
|
|
37
|
-
*/
|
|
38
|
-
triggerWindowResize: {
|
|
39
|
-
type: Boolean
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* Delayed loading time
|
|
43
|
-
*/
|
|
44
|
-
lazyTime: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 0
|
|
47
|
-
}
|
|
48
|
-
}, $ = /* @__PURE__ */ p({
|
|
49
|
-
name: "ApCollapseContainer",
|
|
50
|
-
props: z,
|
|
51
|
-
setup(i, {
|
|
52
|
-
expose: l,
|
|
53
|
-
slots: e
|
|
54
|
-
}) {
|
|
55
|
-
const {
|
|
56
|
-
b: m,
|
|
57
|
-
e: n
|
|
58
|
-
} = x("collapse-container"), r = f(!0), a = (o) => {
|
|
59
|
-
r.value = y(o) ? !r.value : o, i.triggerWindowResize && g(v, 200);
|
|
60
|
-
};
|
|
61
|
-
return l({
|
|
62
|
-
handleExpand: a
|
|
63
|
-
}), () => t("div", {
|
|
64
|
-
class: d(m())
|
|
65
|
-
}, [t(h, u(i, {
|
|
66
|
-
onExpand: a,
|
|
67
|
-
show: r.value
|
|
68
|
-
}), {
|
|
69
|
-
title: e.title,
|
|
70
|
-
action: e.action
|
|
71
|
-
}), t("div", {
|
|
72
|
-
class: n("content-wrapper")
|
|
73
|
-
}, [t(_, null, {
|
|
74
|
-
default: () => {
|
|
75
|
-
var o;
|
|
76
|
-
return [i.loading ? t(w, {
|
|
77
|
-
active: i.loading
|
|
78
|
-
}, null) : c(t("div", null, [(o = e.default) == null ? void 0 : o.call(e)]), [[s, r.value]])];
|
|
79
|
-
}
|
|
80
|
-
})]), e.footer && t("div", {
|
|
81
|
-
class: n("footer")
|
|
82
|
-
}, [e.footer()])]);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
1
|
+
import f from "./index.vue2.mjs";
|
|
85
2
|
export {
|
|
86
|
-
|
|
3
|
+
f as default
|
|
87
4
|
};
|
|
@@ -1,4 +1,88 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as p, ref as f, createVNode as t, unref as d, mergeProps as u, withDirectives as c, vShow as s } from "vue";
|
|
2
|
+
import "../../transition/index.mjs";
|
|
3
|
+
import { useTimeoutFn as g } from "@vueuse/core";
|
|
4
|
+
import { triggerWindowResize as v } from "@aplus-frontend/utils";
|
|
5
|
+
import { Skeleton as w } from "ant-design-vue";
|
|
6
|
+
import { isNil as y } from "lodash-unified";
|
|
7
|
+
import "../../config-provider/index.mjs";
|
|
8
|
+
import "./header.vue.mjs";
|
|
9
|
+
import "./style/index.css";
|
|
10
|
+
import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import _ from "./header.vue2.mjs";
|
|
12
|
+
import x from "../../transition/collapse-transition.vue.mjs";
|
|
13
|
+
const z = {
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
loading: {
|
|
19
|
+
type: Boolean
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* Can it be expanded
|
|
23
|
+
*/
|
|
24
|
+
canExpand: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* Warm reminder on the right side of the title
|
|
30
|
+
*/
|
|
31
|
+
helpMessage: {
|
|
32
|
+
type: [Array, String],
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Whether to trigger window.resize when expanding and contracting,
|
|
37
|
+
* Can adapt to tables and forms, when the form shrinks, the form triggers resize to adapt to the height
|
|
38
|
+
*/
|
|
39
|
+
triggerWindowResize: {
|
|
40
|
+
type: Boolean
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Delayed loading time
|
|
44
|
+
*/
|
|
45
|
+
lazyTime: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 0
|
|
48
|
+
}
|
|
49
|
+
}, k = /* @__PURE__ */ p({
|
|
50
|
+
name: "ApCollapseContainer",
|
|
51
|
+
props: z,
|
|
52
|
+
setup(i, {
|
|
53
|
+
expose: l,
|
|
54
|
+
slots: e
|
|
55
|
+
}) {
|
|
56
|
+
const {
|
|
57
|
+
b: m,
|
|
58
|
+
e: n
|
|
59
|
+
} = h("collapse-container"), r = f(!0), a = (o) => {
|
|
60
|
+
r.value = y(o) ? !r.value : o, i.triggerWindowResize && g(v, 200);
|
|
61
|
+
};
|
|
62
|
+
return l({
|
|
63
|
+
handleExpand: a
|
|
64
|
+
}), () => t("div", {
|
|
65
|
+
class: d(m())
|
|
66
|
+
}, [t(_, u(i, {
|
|
67
|
+
onExpand: a,
|
|
68
|
+
show: r.value
|
|
69
|
+
}), {
|
|
70
|
+
title: e.title,
|
|
71
|
+
action: e.action
|
|
72
|
+
}), t("div", {
|
|
73
|
+
class: n("content-wrapper")
|
|
74
|
+
}, [t(x, null, {
|
|
75
|
+
default: () => {
|
|
76
|
+
var o;
|
|
77
|
+
return [i.loading ? t(w, {
|
|
78
|
+
active: i.loading
|
|
79
|
+
}, null) : c(t("div", null, [(o = e.default) == null ? void 0 : o.call(e)]), [[s, r.value]])];
|
|
80
|
+
}
|
|
81
|
+
})]), e.footer && t("div", {
|
|
82
|
+
class: n("footer")
|
|
83
|
+
}, [e.footer()])]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
2
86
|
export {
|
|
3
|
-
|
|
87
|
+
k as default
|
|
4
88
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./scroll-container.vue.mjs";
|
|
2
|
+
import "./collapse/index.vue.mjs";
|
|
3
3
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
4
|
-
|
|
4
|
+
import "./interface.mjs";
|
|
5
|
+
import r from "./scroll-container.vue2.mjs";
|
|
6
|
+
import t from "./collapse/index.vue2.mjs";
|
|
7
|
+
const s = o(r), c = o(t);
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
c as CollapseContainer,
|
|
10
|
+
s as ScrollContainer
|
|
8
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,62 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Scrollbar as S } from "../scroll-bar/index.mjs";
|
|
3
|
-
import { useScrollTo as n } from "@aplus-frontend/hooks";
|
|
4
|
-
import "../config-provider/index.mjs";
|
|
5
|
-
import "./style/scroll-container.css";
|
|
6
|
-
import { useNamespace as k } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const y = /* @__PURE__ */ m({
|
|
8
|
-
name: "ApScrollContainer",
|
|
9
|
-
__name: "scroll-container",
|
|
10
|
-
props: {
|
|
11
|
-
scrollHeight: {}
|
|
12
|
-
},
|
|
13
|
-
setup(w, { expose: a }) {
|
|
14
|
-
const { b: i } = k("scroll-container"), l = g(null);
|
|
15
|
-
function s() {
|
|
16
|
-
const r = o(l);
|
|
17
|
-
return r ? r.wrap : null;
|
|
18
|
-
}
|
|
19
|
-
function p(r, t = 500) {
|
|
20
|
-
const e = o(s());
|
|
21
|
-
c(() => {
|
|
22
|
-
if (!e)
|
|
23
|
-
return;
|
|
24
|
-
const { start: u } = n({
|
|
25
|
-
el: e,
|
|
26
|
-
to: r,
|
|
27
|
-
duration: t
|
|
28
|
-
});
|
|
29
|
-
u();
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function f() {
|
|
33
|
-
const r = o(s());
|
|
34
|
-
c(() => {
|
|
35
|
-
if (!r)
|
|
36
|
-
return;
|
|
37
|
-
const t = r.scrollHeight, { start: e } = n({
|
|
38
|
-
el: r,
|
|
39
|
-
to: t
|
|
40
|
-
});
|
|
41
|
-
e();
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return a({
|
|
45
|
-
scrollTo: p,
|
|
46
|
-
scrollBottom: f
|
|
47
|
-
}), (r, t) => (h(), _(o(S), H({
|
|
48
|
-
ref_key: "scrollbarRef",
|
|
49
|
-
ref: l,
|
|
50
|
-
class: o(i)(),
|
|
51
|
-
scrollHeight: r.scrollHeight
|
|
52
|
-
}, r.$attrs), {
|
|
53
|
-
default: b(() => [
|
|
54
|
-
d(r.$slots, "default")
|
|
55
|
-
]),
|
|
56
|
-
_: 3
|
|
57
|
-
}, 16, ["class", "scrollHeight"]));
|
|
58
|
-
}
|
|
59
|
-
});
|
|
1
|
+
import f from "./scroll-container.vue2.mjs";
|
|
60
2
|
export {
|
|
61
|
-
|
|
3
|
+
f as default
|
|
62
4
|
};
|