@aplus-frontend/ui 0.1.21 → 0.1.22
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 +176 -170
- package/es/src/ap-action/group/index.vue.d.ts +7 -6
- package/es/src/ap-action/item/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
- package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/es/src/ap-download/ap-download.vue.d.ts +17 -12
- package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/es/src/ap-field/date/index.vue.d.ts +18 -12
- package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/es/src/ap-field/number/index.vue.d.ts +459 -12
- package/es/src/ap-field/radio/index.vue.d.ts +6 -5
- package/es/src/ap-field/rate/index.vue.d.ts +138 -16
- package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/es/src/ap-field/select/index.vue.d.ts +597 -16
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +375 -12
- package/es/src/ap-field/switch/index.vue.d.ts +16 -11
- package/es/src/ap-field/text/index.vue.d.ts +19 -13
- package/es/src/ap-field/text/password.vue.d.ts +19 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
- package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/es/src/ap-form/ap-form.vue.d.ts +884 -13
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/es/src/ap-list/index.vue.d.ts +5 -5
- package/es/src/ap-modal/utils/createModal.mjs +4 -4
- package/es/src/ap-table/ap-table.vue.d.ts +5 -5
- package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/es/src/ap-table/constants.d.ts +1071 -1072
- package/es/src/ap-table/hooks/use-table-paging.d.ts +2 -1
- package/es/src/ap-table/utils.d.ts +586 -587
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/es/src/base-button/button.vue.d.ts +17 -12
- package/es/src/base-button/index.d.ts +30 -30
- package/es/src/basic/index.d.ts +6 -6
- package/es/src/basic/title.vue.d.ts +16 -11
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/es/src/business/ap-image/ApImage.vue.d.ts +22 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +23 -23
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
- package/es/src/business/ap-table-modal/index.d.ts +538 -0
- package/es/src/business/ap-table-modal/index.mjs +11 -0
- package/es/src/business/ap-table-modal/interface.d.ts +63 -0
- package/es/src/business/ap-table-modal/interface.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/es/src/business/index.d.ts +140 -131
- package/es/src/business/index.mjs +18 -16
- package/es/src/business/title/ApTitle.vue.d.ts +17 -12
- package/es/src/button/button.vue.d.ts +12 -7
- package/es/src/button/index.d.ts +2 -2
- package/es/src/check-card/group.vue.d.ts +18 -13
- package/es/src/check-card/index.vue.d.ts +16 -11
- package/es/src/config-provider/config-provider-props.d.ts +6 -4
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/es/src/config-provider/index.d.ts +17 -17
- package/es/src/container/index.d.ts +4 -4
- package/es/src/container/scroll-container.vue.d.ts +181 -8
- package/es/src/count-down/button.vue.d.ts +4 -4
- package/es/src/count-down/index.d.ts +8 -8
- package/es/src/count-down/input.vue.d.ts +16 -11
- package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/es/src/cropper/cropper-image.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +4 -4
- package/es/src/description/index.d.ts +2 -2
- package/es/src/dropdown/dropdown.vue.d.ts +16 -11
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +5 -5
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/icon/icon.vue.d.ts +4 -5
- package/es/src/icon/index.d.ts +16 -16
- package/es/src/icon/svg-icon.vue.d.ts +4 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/es/src/icon-picker/index.d.ts +2 -2
- package/es/src/index.mjs +69 -63
- package/es/src/locale/lang/en.mjs +25 -0
- package/es/src/locale/lang/zh-cn.mjs +25 -0
- package/es/src/modal/basic.vue.d.ts +210 -5
- package/es/src/modal/components/modal-close.vue.d.ts +4 -4
- package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +5 -5
- package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/es/src/pro-form/pro-form.vue.d.ts +888 -15
- package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/es/src/pro-form/table-form.vue.d.ts +6 -5
- package/es/src/pro-form/types/form.d.ts +4 -4
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/es/src/prompt/utils.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +2 -2
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/es/src/strength-meter/index.d.ts +2 -2
- package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/es/src/transition/collapse-transition.vue.d.ts +7 -2
- package/es/src/utils/config-provider-preset.d.ts +5 -5
- package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
- package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +7 -6
- package/lib/src/ap-action/item/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
- package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/lib/src/ap-field/date/index.vue.d.ts +18 -12
- package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/lib/src/ap-field/number/index.vue.d.ts +459 -12
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
- package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
- package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/lib/src/ap-field/select/index.vue.d.ts +597 -16
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
- package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
- package/lib/src/ap-field/text/index.vue.d.ts +19 -13
- package/lib/src/ap-field/text/password.vue.d.ts +19 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/lib/src/ap-list/index.vue.d.ts +5 -5
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
- package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/lib/src/ap-table/constants.d.ts +1071 -1072
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +2 -1
- package/lib/src/ap-table/utils.d.ts +586 -587
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/lib/src/base-button/button.vue.d.ts +17 -12
- package/lib/src/base-button/index.d.ts +30 -30
- package/lib/src/basic/index.d.ts +6 -6
- package/lib/src/basic/title.vue.d.ts +16 -11
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/lib/src/business/ap-image/ApImage.vue.d.ts +22 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
- package/lib/src/business/ap-table-modal/index.d.ts +538 -0
- package/lib/src/business/ap-table-modal/index.js +1 -0
- package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
- package/lib/src/business/ap-table-modal/interface.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/lib/src/business/index.d.ts +140 -131
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
- package/lib/src/button/button.vue.d.ts +12 -7
- package/lib/src/button/index.d.ts +2 -2
- package/lib/src/check-card/group.vue.d.ts +18 -13
- package/lib/src/check-card/index.vue.d.ts +16 -11
- package/lib/src/config-provider/config-provider-props.d.ts +6 -4
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/lib/src/config-provider/index.d.ts +17 -17
- package/lib/src/container/index.d.ts +4 -4
- package/lib/src/container/scroll-container.vue.d.ts +181 -8
- package/lib/src/count-down/button.vue.d.ts +4 -4
- package/lib/src/count-down/index.d.ts +8 -8
- package/lib/src/count-down/input.vue.d.ts +16 -11
- package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +4 -4
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +5 -5
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/icon/icon.vue.d.ts +4 -5
- package/lib/src/icon/index.d.ts +16 -16
- package/lib/src/icon/svg-icon.vue.d.ts +4 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/lib/src/icon-picker/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +210 -5
- package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
- package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +5 -5
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
- package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/lib/src/pro-form/table-form.vue.d.ts +6 -5
- package/lib/src/pro-form/types/form.d.ts +4 -4
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/lib/src/prompt/utils.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +2 -2
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/lib/src/strength-meter/index.d.ts +2 -2
- package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
- package/lib/src/utils/config-provider-preset.d.ts +5 -5
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
|
@@ -5,7 +5,14 @@ type ApTagGroupSlots = {
|
|
|
5
5
|
tags: ApTagProps[];
|
|
6
6
|
}) => void;
|
|
7
7
|
};
|
|
8
|
-
declare function __VLS_template():
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: Readonly<ApTagGroupSlots> & ApTagGroupSlots;
|
|
10
|
+
refs: {
|
|
11
|
+
container: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
16
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagGroupProps>, {
|
|
10
17
|
list: () => ApTagProps[];
|
|
11
18
|
space: number;
|
|
@@ -19,21 +26,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
19
26
|
space: number;
|
|
20
27
|
list: ApTagProps[];
|
|
21
28
|
}, {}>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
30
|
export default _default;
|
|
24
31
|
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
26
33
|
default: D[K];
|
|
27
34
|
}> : P[K];
|
|
28
35
|
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
37
|
type __VLS_TypePropsToOption<T> = {
|
|
39
38
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -43,3 +42,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
43
42
|
required: true;
|
|
44
43
|
};
|
|
45
44
|
};
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type __VLS_PrettifyLocal<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
@@ -10,18 +10,15 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
}>>>, {
|
|
12
12
|
size: "small" | "middle" | "large";
|
|
13
|
-
disabled: boolean;
|
|
14
13
|
color: string;
|
|
14
|
+
disabled: boolean;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_WithDefaults<P, D> = {
|
|
18
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
18
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
19
19
|
default: D[K];
|
|
20
20
|
}> : P[K];
|
|
21
21
|
};
|
|
22
|
-
type __VLS_Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
25
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
23
|
type __VLS_TypePropsToOption<T> = {
|
|
27
24
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -31,3 +28,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
31
28
|
required: true;
|
|
32
29
|
};
|
|
33
30
|
};
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ComponentOptionsMixin, DefineComponent, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ButtonProps } from './interface';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
icon?(_: {}): any;
|
|
6
|
+
default?(_: any): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
6
10
|
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
12
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
8
13
|
iconSize: number;
|
|
9
14
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
@@ -11,21 +16,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
11
16
|
}>>>, {
|
|
12
17
|
iconSize: number;
|
|
13
18
|
}, {}>;
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
20
|
export default _default;
|
|
16
21
|
type __VLS_WithDefaults<P, D> = {
|
|
17
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
18
23
|
default: D[K];
|
|
19
24
|
}> : P[K];
|
|
20
25
|
};
|
|
21
|
-
type __VLS_Prettify<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
27
|
type __VLS_TypePropsToOption<T> = {
|
|
31
28
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -35,3 +32,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
35
32
|
required: true;
|
|
36
33
|
};
|
|
37
34
|
};
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_PrettifyLocal<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -8,17 +8,17 @@ export declare const BaseButton: {
|
|
|
8
8
|
onClick: {
|
|
9
9
|
type: PropType<() => void>;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
type: PropType<
|
|
13
|
-
};
|
|
14
|
-
disabled: {
|
|
15
|
-
type: PropType<boolean>;
|
|
11
|
+
color: {
|
|
12
|
+
type: PropType<"error" | "success" | "warning" | "primary">;
|
|
16
13
|
};
|
|
17
14
|
text: {
|
|
18
15
|
type: PropType<string>;
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
type: PropType<
|
|
17
|
+
disabled: {
|
|
18
|
+
type: PropType<boolean>;
|
|
19
|
+
};
|
|
20
|
+
loading: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
22
|
};
|
|
23
23
|
preIcon: {
|
|
24
24
|
type: PropType<string>;
|
|
@@ -34,17 +34,17 @@ export declare const BaseButton: {
|
|
|
34
34
|
onClick: {
|
|
35
35
|
type: PropType<() => void>;
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
type: PropType<
|
|
39
|
-
};
|
|
40
|
-
disabled: {
|
|
41
|
-
type: PropType<boolean>;
|
|
37
|
+
color: {
|
|
38
|
+
type: PropType<"error" | "success" | "warning" | "primary">;
|
|
42
39
|
};
|
|
43
40
|
text: {
|
|
44
41
|
type: PropType<string>;
|
|
45
42
|
};
|
|
46
|
-
|
|
47
|
-
type: PropType<
|
|
43
|
+
disabled: {
|
|
44
|
+
type: PropType<boolean>;
|
|
45
|
+
};
|
|
46
|
+
loading: {
|
|
47
|
+
type: PropType<boolean>;
|
|
48
48
|
};
|
|
49
49
|
preIcon: {
|
|
50
50
|
type: PropType<string>;
|
|
@@ -69,17 +69,17 @@ export declare const BaseButton: {
|
|
|
69
69
|
onClick: {
|
|
70
70
|
type: PropType<() => void>;
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
type: PropType<
|
|
74
|
-
};
|
|
75
|
-
disabled: {
|
|
76
|
-
type: PropType<boolean>;
|
|
72
|
+
color: {
|
|
73
|
+
type: PropType<"error" | "success" | "warning" | "primary">;
|
|
77
74
|
};
|
|
78
75
|
text: {
|
|
79
76
|
type: PropType<string>;
|
|
80
77
|
};
|
|
81
|
-
|
|
82
|
-
type: PropType<
|
|
78
|
+
disabled: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
};
|
|
81
|
+
loading: {
|
|
82
|
+
type: PropType<boolean>;
|
|
83
83
|
};
|
|
84
84
|
preIcon: {
|
|
85
85
|
type: PropType<string>;
|
|
@@ -101,17 +101,17 @@ export declare const BaseButton: {
|
|
|
101
101
|
onClick: {
|
|
102
102
|
type: PropType<() => void>;
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
type: PropType<
|
|
106
|
-
};
|
|
107
|
-
disabled: {
|
|
108
|
-
type: PropType<boolean>;
|
|
104
|
+
color: {
|
|
105
|
+
type: PropType<"error" | "success" | "warning" | "primary">;
|
|
109
106
|
};
|
|
110
107
|
text: {
|
|
111
108
|
type: PropType<string>;
|
|
112
109
|
};
|
|
113
|
-
|
|
114
|
-
type: PropType<
|
|
110
|
+
disabled: {
|
|
111
|
+
type: PropType<boolean>;
|
|
112
|
+
};
|
|
113
|
+
loading: {
|
|
114
|
+
type: PropType<boolean>;
|
|
115
115
|
};
|
|
116
116
|
preIcon: {
|
|
117
117
|
type: PropType<string>;
|
|
@@ -125,7 +125,7 @@ export declare const BaseButton: {
|
|
|
125
125
|
};
|
|
126
126
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
127
127
|
iconSize: number;
|
|
128
|
-
}, {}, string, {}> &
|
|
128
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
129
129
|
$slots: {
|
|
130
130
|
icon?(_: {}): any;
|
|
131
131
|
default?(_: any): any;
|
|
@@ -134,4 +134,4 @@ export declare const BaseButton: {
|
|
|
134
134
|
$props: {
|
|
135
135
|
onClick?: () => void;
|
|
136
136
|
};
|
|
137
|
-
}))
|
|
137
|
+
}));
|
package/lib/src/basic/index.d.ts
CHANGED
|
@@ -123,11 +123,11 @@ export declare const BasicHelp: {
|
|
|
123
123
|
fontSize: string;
|
|
124
124
|
maxWidth: string;
|
|
125
125
|
showIndex: boolean;
|
|
126
|
-
}, {}, string, {}> &
|
|
126
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
127
127
|
$props: {
|
|
128
128
|
onClick?: () => void;
|
|
129
129
|
};
|
|
130
|
-
}))
|
|
130
|
+
}));
|
|
131
131
|
export declare const BasicTitle: {
|
|
132
132
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
133
133
|
span: {
|
|
@@ -190,7 +190,7 @@ export declare const BasicTitle: {
|
|
|
190
190
|
};
|
|
191
191
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
192
192
|
helpMessage: string | string[];
|
|
193
|
-
}, {}, string, {}> &
|
|
193
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
194
194
|
$slots: {
|
|
195
195
|
default?(_: {}): any;
|
|
196
196
|
};
|
|
@@ -198,7 +198,7 @@ export declare const BasicTitle: {
|
|
|
198
198
|
$props: {
|
|
199
199
|
onClick?: () => void;
|
|
200
200
|
};
|
|
201
|
-
}))
|
|
201
|
+
}));
|
|
202
202
|
export declare const BasicArrow: {
|
|
203
203
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
204
204
|
expand: {
|
|
@@ -263,8 +263,8 @@ export declare const BasicArrow: {
|
|
|
263
263
|
inset: {
|
|
264
264
|
type: PropType<boolean>;
|
|
265
265
|
};
|
|
266
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> &
|
|
266
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
267
267
|
$props: {
|
|
268
268
|
onClick?: () => void;
|
|
269
269
|
};
|
|
270
|
-
}))
|
|
270
|
+
}));
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { BasicTitleProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
5
9
|
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
6
11
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BasicTitleProps>, {
|
|
7
12
|
helpMessage: string;
|
|
8
13
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BasicTitleProps>, {
|
|
@@ -10,21 +15,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
10
15
|
}>>>, {
|
|
11
16
|
helpMessage: string | string[];
|
|
12
17
|
}, {}>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
19
|
export default _default;
|
|
15
20
|
type __VLS_WithDefaults<P, D> = {
|
|
16
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
17
22
|
default: D[K];
|
|
18
23
|
}> : P[K];
|
|
19
24
|
};
|
|
20
|
-
type __VLS_Prettify<T> = {
|
|
21
|
-
[K in keyof T]: T[K];
|
|
22
|
-
} & {};
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
26
|
type __VLS_TypePropsToOption<T> = {
|
|
30
27
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -34,3 +31,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
34
31
|
required: true;
|
|
35
32
|
};
|
|
36
33
|
};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type __VLS_PrettifyLocal<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ApBatchActionProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
prefix?(_: {}): any;
|
|
6
|
+
suffix?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
6
10
|
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
12
|
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApBatchActionProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApBatchActionProps>>>, {}, {}>;
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
14
|
export default _default;
|
|
10
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
16
|
type __VLS_TypePropsToOption<T> = {
|
|
17
17
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -21,3 +21,8 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import { ApImageProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<__VLS_TypePropsToOption<ApImageProps>, {
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApImageProps>, {
|
|
4
|
+
preview: boolean;
|
|
5
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApImageProps>, {
|
|
6
|
+
preview: boolean;
|
|
7
|
+
}>>>, {
|
|
8
|
+
preview: boolean | {
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
onVisibleChange?: (visible: boolean, prevVisible: boolean) => void;
|
|
11
|
+
getContainer: string | HTMLElement | (() => HTMLElement);
|
|
12
|
+
src?: string;
|
|
13
|
+
maskClassName?: string;
|
|
14
|
+
current?: number;
|
|
15
|
+
};
|
|
16
|
+
}, {}>;
|
|
4
17
|
export default _default;
|
|
18
|
+
type __VLS_WithDefaults<P, D> = {
|
|
19
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
20
|
+
default: D[K];
|
|
21
|
+
}> : P[K];
|
|
22
|
+
};
|
|
5
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
24
|
type __VLS_TypePropsToOption<T> = {
|
|
7
25
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -11,3 +29,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
11
29
|
required: true;
|
|
12
30
|
};
|
|
13
31
|
};
|
|
32
|
+
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),c=require("./hooks/useOss.js");require("../../config-provider/index.js");const k=require("./imgs/admin-fallback.jpg.js"),O=require("./imgs/aplus-fallback.jpg.js"),q=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),c=require("./hooks/useOss.js");require("../../config-provider/index.js");const k=require("./imgs/admin-fallback.jpg.js"),O=require("./imgs/aplus-fallback.jpg.js"),q=require("lodash-unified"),o=require("../../config-provider/hooks/use-global-config.js"),h=require("../../config-provider/hooks/use-locale.js"),_=e.defineComponent({__name:"ApImage",props:{getOssAccess:{},width:{},height:{},alt:{},fallback:{},src:{},preview:{type:[Boolean,Object],default:!0}},setup(u){const s=u,l={aplus:O.default,admin:k.default},i=o.useGlobalConfig("uiMode"),f=o.useGlobalConfig("apUpload"),{t:d,lang:g}=h.useLocale(),p=e.computed(()=>{var a;return s.getOssAccess||((a=f.value)==null?void 0:a.getOssAccess)}),b=e.computed(()=>l[i.value]||l.aplus),m=e.computed(()=>(s==null?void 0:s.fallback)||b.value),t=e.ref("");return c.injectLocaleToOss(d,g),e.watchEffect(async()=>{var a;if(s!=null&&s.src){if(!((a=s.src)!=null&&a.startsWith("Frontend-Upload"))){t.value=s.src;return}try{const r=await c.getOssInstance(p.value),n=await c.getSignatureUrl({oss:r,fileName:s.src});n&&(t.value=n)}catch{t.value=""}}}),(a,r)=>(e.openBlock(),e.createBlock(e.unref(v.Image),e.normalizeProps(e.guardReactiveProps({...e.unref(q.omit)(s,["src","getOssAccess"]),fallback:m.value,src:t.value})),null,16))}});exports.default=_;
|
|
@@ -19,13 +19,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
19
19
|
}, {}>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_WithDefaults<P, D> = {
|
|
22
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
23
23
|
default: D[K];
|
|
24
24
|
}> : P[K];
|
|
25
25
|
};
|
|
26
|
-
type __VLS_Prettify<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
-
} & {};
|
|
29
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
27
|
type __VLS_TypePropsToOption<T> = {
|
|
31
28
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -35,3 +32,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
35
32
|
required: true;
|
|
36
33
|
};
|
|
37
34
|
};
|
|
35
|
+
type __VLS_PrettifyLocal<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
@@ -125,10 +125,10 @@ declare const _default: DefineComponent<{
|
|
|
125
125
|
}>>, {
|
|
126
126
|
size: "small" | "default";
|
|
127
127
|
placement: TooltipPlacement;
|
|
128
|
-
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
129
|
-
iconSize: number;
|
|
130
128
|
show: boolean;
|
|
131
129
|
dot: boolean;
|
|
130
|
+
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
131
|
+
iconSize: number;
|
|
132
132
|
helpMessage: string | VNode< RendererNode, RendererElement, {
|
|
133
133
|
[key: string]: any;
|
|
134
134
|
}> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
|
-
declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
4
|
-
props:
|
|
3
|
+
declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
6
6
|
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
7
7
|
onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -12,23 +12,23 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
12
12
|
}, never>, "onAfterLeave" | "onAfterEnter" | "onOnSelect"> & ApSelectLayoutProps<T>> & PublicProps;
|
|
13
13
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
14
14
|
attrs: any;
|
|
15
|
-
slots:
|
|
15
|
+
slots: {
|
|
16
16
|
itemRender?(_: {
|
|
17
17
|
item: T;
|
|
18
18
|
}): any;
|
|
19
19
|
default?(_: {}): any;
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
emit: {
|
|
22
22
|
(event: "onSelect", value: T): void;
|
|
23
23
|
(event: "afterEnter", el: Element): void;
|
|
24
24
|
(event: "afterLeave", el: Element): void;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
}>) => VNode<RendererNode, RendererElement, {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}> & {
|
|
29
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
|
-
type
|
|
32
|
+
type __VLS_PrettifyLocal<T> = {
|
|
33
33
|
[K in keyof T]: T[K];
|
|
34
34
|
} & {};
|
|
@@ -10,18 +10,15 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
10
10
|
show: boolean;
|
|
11
11
|
}>>>, {
|
|
12
12
|
color: string;
|
|
13
|
-
padding: number;
|
|
14
13
|
show: boolean;
|
|
14
|
+
padding: number;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_WithDefaults<P, D> = {
|
|
18
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
18
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
19
19
|
default: D[K];
|
|
20
20
|
}> : P[K];
|
|
21
21
|
};
|
|
22
|
-
type __VLS_Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
25
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
23
|
type __VLS_TypePropsToOption<T> = {
|
|
27
24
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -31,3 +28,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
31
28
|
required: true;
|
|
32
29
|
};
|
|
33
30
|
};
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -11,20 +11,17 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
11
11
|
statusList: null;
|
|
12
12
|
show: boolean;
|
|
13
13
|
}>>>, {
|
|
14
|
-
padding: number;
|
|
15
14
|
show: boolean;
|
|
15
|
+
padding: number;
|
|
16
16
|
currentValue: number | string;
|
|
17
17
|
statusList: ApStatusGroupItemProps[] | null;
|
|
18
18
|
}, {}>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_WithDefaults<P, D> = {
|
|
21
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
22
22
|
default: D[K];
|
|
23
23
|
}> : P[K];
|
|
24
24
|
};
|
|
25
|
-
type __VLS_Prettify<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
28
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
26
|
type __VLS_TypePropsToOption<T> = {
|
|
30
27
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -34,3 +31,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
34
31
|
required: true;
|
|
35
32
|
};
|
|
36
33
|
};
|
|
34
|
+
type __VLS_PrettifyLocal<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenOptions, UseCreateTableModalProps, OpenReturnType } from '../interface';
|
|
2
|
+
export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
3
|
+
readonly openModal: <T>(selected?: any[], options?: OpenOptions) => Promise< OpenReturnType<T> | undefined>;
|
|
4
|
+
readonly closeModal: () => void;
|
|
5
|
+
readonly destroy: () => void;
|
|
6
|
+
readonly isDestroyed: false;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../table-modal.vue.js");require("../../../index.js");const y=require("lodash-unified"),s=require("../../../config-provider/config-provider.js"),p=require("../table-modal.vue2.js");function C(u){let t=!1;const l=document.body,n=o.ref(),{destroyOnUnmounted:i=!0}=u,r=document.createElement("div"),c=()=>{const e=o.defineComponent({setup(){return()=>o.h(s.ConfigProvider,{...s.globalConfigCached.value},o.h(p.default,{...y.omit(u,"destroyOnUnmounted"),ref:n}))}});l.appendChild(r),o.render(o.h(e),r),t=!1},d=()=>{var e;(e=n.value)==null||e.close(),t||setTimeout(()=>{o.render(null,r),l.removeChild(r),t=!0},400)},f=async(e=[],m={})=>{var a;return n.value||c(),(a=n.value)==null?void 0:a.open(e,m)},v=()=>{var e;t||(e=n.value)==null||e.close()};return o.onUnmounted(()=>{i&&d()}),{openModal:f,closeModal:v,destroy:d,isDestroyed:t}}exports.useCreateTableModal=C;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApTableModalProps, OpenOptions } from '../interface';
|
|
2
|
+
/** 函数式调用弹框表格 */
|
|
3
|
+
export declare function useTableModal<TableRowType = Record<string, any>>(props: ApTableModalProps<TableRowType>): {
|
|
4
|
+
open: (options?: OpenOptions) => Promise<void>;
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
close: () => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),i=require("lodash-unified"),f=require("./use-create-table-modal.js");function p(l){const s={rowSelection:void 0},t={footer:null},n=i.merge(l,{...t,apTableProps:s,destroyOnUnmounted:!1,isRenderModalTitleSuffix:!1}),{destroy:e,openModal:a,closeModal:r}=f.useCreateTableModal(n),d=async u=>{a([],u)},o=()=>{r()};return c.onUnmounted(()=>{o(),e()}),{open:d,destroy:e,close:o}}exports.useTableModal=p;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OpenOptions, UseTableSelectModalProps, OpenReturnType } from '../interface';
|
|
2
|
+
export declare function useTableSelectModal<TableRowType = Record<string, any>>(props: UseTableSelectModalProps<TableRowType>): {
|
|
3
|
+
open: (selected?: any[], options?: OpenOptions) => Promise< OpenReturnType<TableRowType>>;
|
|
4
|
+
destroy: () => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("vue"),i=require("./use-create-table-modal.js"),b=e=>e.id;function w(e){const{finishCallback:o,getRowKey:a,...r}=e,{destroy:t,openModal:l,closeModal:c}=i.useCreateTableModal({...r,destroyOnUnmounted:!1,getRowKey:a||b}),u=async(d=[],y={})=>{const n=await l(d,y)||{keys:[],rows:[]};return o==null||o(n),n},s=()=>{c()};return M.onUnmounted(()=>{s(),t()}),{open:u,destroy:t,close:s}}exports.useTableSelectModal=w;
|