@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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTableModalProps<any>>, {
|
|
4
|
+
confirmLoading: undefined;
|
|
5
|
+
closable: undefined;
|
|
6
|
+
centered: undefined;
|
|
7
|
+
maskClosable: undefined;
|
|
8
|
+
forceRender: undefined;
|
|
9
|
+
destroyOnClose: undefined;
|
|
10
|
+
getContainer: undefined;
|
|
11
|
+
mask: undefined;
|
|
12
|
+
keyboard: undefined;
|
|
13
|
+
focusTriggerAfterClose: undefined;
|
|
14
|
+
api: () => Promise<{
|
|
15
|
+
records: never[];
|
|
16
|
+
total: number;
|
|
17
|
+
}>;
|
|
18
|
+
maxCount: number;
|
|
19
|
+
isRenderModalTitleSuffix: boolean;
|
|
20
|
+
}>, {
|
|
21
|
+
open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
|
|
22
|
+
close: () => void;
|
|
23
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
|
+
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => void;
|
|
25
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTableModalProps<any>>, {
|
|
26
|
+
confirmLoading: undefined;
|
|
27
|
+
closable: undefined;
|
|
28
|
+
centered: undefined;
|
|
29
|
+
maskClosable: undefined;
|
|
30
|
+
forceRender: undefined;
|
|
31
|
+
destroyOnClose: undefined;
|
|
32
|
+
getContainer: undefined;
|
|
33
|
+
mask: undefined;
|
|
34
|
+
keyboard: undefined;
|
|
35
|
+
focusTriggerAfterClose: undefined;
|
|
36
|
+
api: () => Promise<{
|
|
37
|
+
records: never[];
|
|
38
|
+
total: number;
|
|
39
|
+
}>;
|
|
40
|
+
maxCount: number;
|
|
41
|
+
isRenderModalTitleSuffix: boolean;
|
|
42
|
+
}>>> & {
|
|
43
|
+
onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
mask: boolean;
|
|
46
|
+
api: (params: any) => Promise<{
|
|
47
|
+
records: any[];
|
|
48
|
+
total: number;
|
|
49
|
+
}>;
|
|
50
|
+
closable: boolean;
|
|
51
|
+
centered: boolean;
|
|
52
|
+
maskClosable: boolean;
|
|
53
|
+
keyboard: boolean;
|
|
54
|
+
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
55
|
+
focusTriggerAfterClose: boolean;
|
|
56
|
+
confirmLoading: boolean;
|
|
57
|
+
forceRender: boolean;
|
|
58
|
+
destroyOnClose: boolean;
|
|
59
|
+
maxCount: number;
|
|
60
|
+
isRenderModalTitleSuffix: boolean;
|
|
61
|
+
}, {}>;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
}> : P[K];
|
|
67
|
+
};
|
|
68
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
|
+
type __VLS_TypePropsToOption<T> = {
|
|
70
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
71
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
72
|
+
} : {
|
|
73
|
+
type: PropType<T[K]>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
type __VLS_PrettifyLocal<T> = {
|
|
78
|
+
[K in keyof T]: T[K];
|
|
79
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./table-modal.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("ant-design-vue");require("../../index.js");const c=require("lodash-unified"),q=require("@aplus-frontend/utils");require("./modal-title.vue.js");const f=require("./interface.js"),K=require("../../config-provider/hooks/use-global-config.js"),O=require("../../config-provider/hooks/use-locale.js"),E=require("./modal-title.vue2.js"),N=require("../../ap-table/ap-table.vue.js"),A=e.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(b,{expose:x,emit:C}){const t=b,T=C,u=e.ref(!1),p=e.ref({}),d=e.ref(null),r=e.ref([]),m=e.ref();let s=null,n=null;const w=K.useGlobalConfig("uiMode","admin"),{t:_}=O.useLocale(),k=async(a=[],o={})=>{var l,i,v;switch(r.value=[...a],u.value=!0,p.value=o==null?void 0:o.extraParams,m.value=o.apTableDataSources||((l=t.apTableProps)==null?void 0:l.dataSource),o.refreshMode||"reset"){case"reset":(i=d.value)==null||i.reset();break;case"submit":(v=d.value)==null||v.submit();break;case"none":break}return new Promise((h,R)=>{s=h,n=R})},y=()=>{u.value=!1,s=null,n==null||n(f.AsyncOpenResultError.ModalCancel),n=null},S=async a=>{a=q.transformTableParams({...a,...p.value});const o=t.api,{records:l,total:i}=await o(a);return{data:l,total:i}},B=()=>{if(r.value.length>t.maxCount){n==null||n(f.AsyncOpenResultError.ExceedMaxCount);return}if(t.getRowKey){const a=c.cloneDeep(e.unref(r)),o=a.map(t.getRowKey);T("finish",o,a),s==null||s({keys:o,rows:a})}else{n==null||n(f.AsyncOpenResultError.NotFineGetRowKey);return}u.value=!1},M=e.computed(()=>{if(t.getRowKey)return{fixed:!0,selectedRowKeys:r.value.map(t.getRowKey),columnWidth:50,preserveSelectedRowKeys:!0,onChange:(a,o)=>{if(o.length>t.maxCount){g.message.warning(_("ap.apTableModal.messageMaxCount",{maxCount:t.maxCount}));return}r.value=o}}}),P=()=>t.isRenderModalTitleSuffix?e.h(E.default,{title:t.title,count:r.value.length||0,maxCount:t.maxCount},{default:t.renderModalTitleSuffix??void 0}):t.title;return x({open:k,close:y}),(a,o)=>(e.openBlock(),e.createBlock(e.unref(g.Modal),e.mergeProps({onOk:B,onCancel:y,open:u.value,"onUpdate:open":o[0]||(o[0]=l=>u.value=l)},e.unref(c.omit)(t,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix"]),{title:P(),centered:t.centered??!0}),{default:e.withCtx(()=>[e.createVNode(e.unref(N.default),e.mergeProps({scroll:{y:"100%"},style:{padding:"0px"},columns:a.columns,request:S,"row-key":a.getRowKey,"row-selection":M.value,bordered:e.unref(w)==="admin"},e.unref(c.omit)(t.apTableProps,"dataSource"),{ref_key:"apTableRef",ref:d,"data-source":m.value}),null,16,["columns","row-key","row-selection","bordered","data-source"])]),_:1},16,["open","title","centered"]))}});exports.default=A;
|
|
@@ -6,8 +6,15 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
|
|
|
6
6
|
*/
|
|
7
7
|
declare function setExpand(state?: boolean): void;
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
ellipsisBoxRef: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
attrs: Partial<{}>;
|
|
10
16
|
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
18
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExpandAlertProps>, {
|
|
12
19
|
/**
|
|
13
20
|
* Alert类型
|
|
@@ -69,26 +76,18 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
69
76
|
}, {
|
|
70
77
|
type: "warning" | "error" | "success" | "info" | undefined;
|
|
71
78
|
data: Array<any> | string;
|
|
72
|
-
prefix: string;
|
|
73
79
|
separator: string;
|
|
80
|
+
prefix: string;
|
|
74
81
|
rows: string | number;
|
|
75
82
|
tipTitle: string;
|
|
76
83
|
}, {}>;
|
|
77
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
84
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
78
85
|
export default _default;
|
|
79
86
|
type __VLS_WithDefaults<P, D> = {
|
|
80
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
87
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
81
88
|
default: D[K];
|
|
82
89
|
}> : P[K];
|
|
83
90
|
};
|
|
84
|
-
type __VLS_Prettify<T> = {
|
|
85
|
-
[K in keyof T]: T[K];
|
|
86
|
-
} & {};
|
|
87
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
-
new (): {
|
|
89
|
-
$slots: S;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
91
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
93
92
|
type __VLS_TypePropsToOption<T> = {
|
|
94
93
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -98,3 +97,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
98
97
|
required: true;
|
|
99
98
|
};
|
|
100
99
|
};
|
|
100
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
type __VLS_PrettifyLocal<T> = {
|
|
106
|
+
[K in keyof T]: T[K];
|
|
107
|
+
} & {};
|