@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,63 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { ApColumnType, ApTableProps } from '../../index';
|
|
3
|
+
import { ModalProps } from 'ant-design-vue';
|
|
4
|
+
/** table-modal的props类型 */
|
|
5
|
+
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
6
|
+
columns: ApColumnType[];
|
|
7
|
+
getRowKey?: (record: TableRowType) => string | number;
|
|
8
|
+
api?: (params: any) => Promise<{
|
|
9
|
+
records: TableRowType[];
|
|
10
|
+
total: number;
|
|
11
|
+
}>;
|
|
12
|
+
/** 支持ApTable组件的props */
|
|
13
|
+
apTableProps?: Omit<ApTableProps, 'columns' | 'getRowKey' | 'request'>;
|
|
14
|
+
maxCount?: number;
|
|
15
|
+
/** 是否渲染modal-title-suffix
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
isRenderModalTitleSuffix?: boolean;
|
|
19
|
+
/** 渲染table-modal的后缀函数 */
|
|
20
|
+
renderModalTitleSuffix?: ModalTitleSlots['default'];
|
|
21
|
+
}
|
|
22
|
+
/** useCreateTableModal参数类型 */
|
|
23
|
+
export interface UseCreateTableModalProps extends ApTableModalProps {
|
|
24
|
+
/** 组件卸载时销毁modal */
|
|
25
|
+
destroyOnUnmounted?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** useTableSelectModal参数类型 */
|
|
28
|
+
export interface UseTableSelectModalProps<TableRowType> extends ApTableModalProps<TableRowType> {
|
|
29
|
+
/**
|
|
30
|
+
* 确认选择数据后回调函数
|
|
31
|
+
* @description 不要直接改变回调函数的传入的数据,因为传入的数据是是引用类型,会影响异步返回的数据
|
|
32
|
+
* */
|
|
33
|
+
finishCallback?: (data: OpenReturnType<TableRowType>) => void;
|
|
34
|
+
}
|
|
35
|
+
/** open打开方法返回的值的类型 */
|
|
36
|
+
export interface OpenReturnType<RowType> {
|
|
37
|
+
keys: number[] | string[];
|
|
38
|
+
rows: RowType[];
|
|
39
|
+
}
|
|
40
|
+
/** table-modal实例open方法接收的配置类型 */
|
|
41
|
+
export interface OpenOptions {
|
|
42
|
+
extraParams?: any;
|
|
43
|
+
/** 弹框刷新方式 */
|
|
44
|
+
refreshMode?: 'reset' | 'submit' | 'none';
|
|
45
|
+
/** 修改apTable的数据 */
|
|
46
|
+
apTableDataSources?: any[];
|
|
47
|
+
}
|
|
48
|
+
/** 等待异步打开modal错误情况 */
|
|
49
|
+
export declare enum AsyncOpenResultError {
|
|
50
|
+
/** 弹框关闭 */
|
|
51
|
+
ModalCancel = "ModalCancel",
|
|
52
|
+
/** 超出最大选择数量 */
|
|
53
|
+
ExceedMaxCount = "ExceedMaxCount",
|
|
54
|
+
/** 没有getRowKey */
|
|
55
|
+
NotFineGetRowKey = "NotFineGetRowKey"
|
|
56
|
+
}
|
|
57
|
+
/** modal-title slots */
|
|
58
|
+
export interface ModalTitleSlots {
|
|
59
|
+
default: (props: {
|
|
60
|
+
maxCount: number;
|
|
61
|
+
count: number;
|
|
62
|
+
}) => VNodeChild;
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {
|
|
5
|
+
maxCount: number;
|
|
6
|
+
count: number;
|
|
7
|
+
}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: DefineComponent<{
|
|
14
|
+
title: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
count: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
maxCount: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
27
|
+
title: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
count: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
maxCount: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>>, {}, {}>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as c, createElementBlock as f, createTextVNode as a, toDisplayString as t, renderSlot as d, createElementVNode as r, normalizeStyle as u, unref as o } from "vue";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
import { useLocale as p } from "../../config-provider/hooks/use-locale.mjs";
|
|
4
|
+
import { useGlobalConfig as s } from "../../config-provider/hooks/use-global-config.mjs";
|
|
5
|
+
const T = /* @__PURE__ */ m({
|
|
6
|
+
__name: "modal-title",
|
|
7
|
+
props: {
|
|
8
|
+
title: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
count: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
maxCount: {
|
|
17
|
+
type: Number,
|
|
18
|
+
required: !0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(e) {
|
|
22
|
+
const { t: n } = p(), l = s("uiMode", "aplus");
|
|
23
|
+
return (i, x) => (c(), f("div", null, [
|
|
24
|
+
a(t(e.title) + " ", 1),
|
|
25
|
+
d(i.$slots, "default", {
|
|
26
|
+
maxCount: e.maxCount,
|
|
27
|
+
count: e.count
|
|
28
|
+
}, () => [
|
|
29
|
+
r("span", {
|
|
30
|
+
style: u({
|
|
31
|
+
color: o(l) === "admin" ? "#999999" : "#8896b0",
|
|
32
|
+
fontSize: "14px",
|
|
33
|
+
fontWeight: "normal",
|
|
34
|
+
marginLeft: "16px"
|
|
35
|
+
}),
|
|
36
|
+
class: "product-number"
|
|
37
|
+
}, [
|
|
38
|
+
a(t(isFinite(e.maxCount) ? o(n)("ap.apTableModal.titleSuffixOne", { maxCount: e.maxCount }) : "") + t(o(n)("ap.apTableModal.titleSuffixTwo")) + " ", 1),
|
|
39
|
+
r("span", {
|
|
40
|
+
style: u({ color: o(l) === "admin" ? "#34B77C" : "#0070ff" })
|
|
41
|
+
}, t(e.count), 5),
|
|
42
|
+
a(" " + t(o(n)("ap.apTableModal.titleSuffixThree")), 1)
|
|
43
|
+
], 4)
|
|
44
|
+
])
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
T as default
|
|
50
|
+
};
|
|
@@ -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,177 @@
|
|
|
1
|
+
import { defineComponent as N, ref as i, unref as r, computed as O, h as D, openBlock as E, createBlock as I, mergeProps as x, withCtx as L, createVNode as U } from "vue";
|
|
2
|
+
import { message as q, Modal as A } from "ant-design-vue";
|
|
3
|
+
import "../../index.mjs";
|
|
4
|
+
import { cloneDeep as F, omit as g } from "lodash-unified";
|
|
5
|
+
import { transformTableParams as G } from "@aplus-frontend/utils";
|
|
6
|
+
import "./modal-title.vue.mjs";
|
|
7
|
+
import { AsyncOpenResultError as f } from "./interface.mjs";
|
|
8
|
+
import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import V from "./modal-title.vue2.mjs";
|
|
11
|
+
import W from "../../ap-table/ap-table.vue.mjs";
|
|
12
|
+
const le = /* @__PURE__ */ N({
|
|
13
|
+
__name: "table-modal",
|
|
14
|
+
props: {
|
|
15
|
+
columns: {},
|
|
16
|
+
getRowKey: {},
|
|
17
|
+
api: { type: Function, default: async () => ({ records: [], total: 0 }) },
|
|
18
|
+
apTableProps: {},
|
|
19
|
+
maxCount: { default: 1 / 0 },
|
|
20
|
+
isRenderModalTitleSuffix: { type: Boolean, default: !0 },
|
|
21
|
+
renderModalTitleSuffix: {},
|
|
22
|
+
prefixCls: {},
|
|
23
|
+
confirmLoading: { type: Boolean, default: void 0 },
|
|
24
|
+
title: {},
|
|
25
|
+
closable: { type: Boolean, default: void 0 },
|
|
26
|
+
closeIcon: {},
|
|
27
|
+
onCancel: {},
|
|
28
|
+
"onUpdate:visible": {},
|
|
29
|
+
"onUpdate:open": {},
|
|
30
|
+
onChange: {},
|
|
31
|
+
afterClose: {},
|
|
32
|
+
centered: { type: Boolean, default: void 0 },
|
|
33
|
+
width: {},
|
|
34
|
+
footer: {},
|
|
35
|
+
okText: {},
|
|
36
|
+
okType: {},
|
|
37
|
+
cancelText: {},
|
|
38
|
+
icon: {},
|
|
39
|
+
maskClosable: { type: Boolean, default: void 0 },
|
|
40
|
+
forceRender: { type: Boolean, default: void 0 },
|
|
41
|
+
okButtonProps: {},
|
|
42
|
+
cancelButtonProps: {},
|
|
43
|
+
destroyOnClose: { type: Boolean, default: void 0 },
|
|
44
|
+
wrapClassName: {},
|
|
45
|
+
maskTransitionName: {},
|
|
46
|
+
transitionName: {},
|
|
47
|
+
getContainer: { type: [String, Boolean, Function], default: void 0 },
|
|
48
|
+
zIndex: {},
|
|
49
|
+
bodyStyle: {},
|
|
50
|
+
maskStyle: {},
|
|
51
|
+
mask: { type: Boolean, default: void 0 },
|
|
52
|
+
keyboard: { type: Boolean, default: void 0 },
|
|
53
|
+
wrapProps: {},
|
|
54
|
+
focusTriggerAfterClose: { type: Boolean, default: void 0 },
|
|
55
|
+
modalRender: {},
|
|
56
|
+
mousePosition: {}
|
|
57
|
+
},
|
|
58
|
+
emits: ["finish"],
|
|
59
|
+
setup(C, { expose: b, emit: w }) {
|
|
60
|
+
const e = C, T = w, s = i(!1), m = i({}), c = i(null), l = i([]), p = i();
|
|
61
|
+
let u = null, a = null;
|
|
62
|
+
const k = $("uiMode", "admin"), { t: B } = z(), S = async (t = [], o = {}) => {
|
|
63
|
+
var n, d, v;
|
|
64
|
+
switch (l.value = [...t], s.value = !0, m.value = o == null ? void 0 : o.extraParams, p.value = o.apTableDataSources || ((n = e.apTableProps) == null ? void 0 : n.dataSource), o.refreshMode || "reset") {
|
|
65
|
+
case "reset":
|
|
66
|
+
(d = c.value) == null || d.reset();
|
|
67
|
+
break;
|
|
68
|
+
case "submit":
|
|
69
|
+
(v = c.value) == null || v.submit();
|
|
70
|
+
break;
|
|
71
|
+
case "none":
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
return new Promise((K, _) => {
|
|
75
|
+
u = K, a = _;
|
|
76
|
+
});
|
|
77
|
+
}, y = () => {
|
|
78
|
+
s.value = !1, u = null, a == null || a(f.ModalCancel), a = null;
|
|
79
|
+
}, h = async (t) => {
|
|
80
|
+
t = G({
|
|
81
|
+
...t,
|
|
82
|
+
...m.value
|
|
83
|
+
});
|
|
84
|
+
const o = e.api, { records: n, total: d } = await o(t);
|
|
85
|
+
return {
|
|
86
|
+
data: n,
|
|
87
|
+
total: d
|
|
88
|
+
};
|
|
89
|
+
}, M = () => {
|
|
90
|
+
if (l.value.length > e.maxCount) {
|
|
91
|
+
a == null || a(f.ExceedMaxCount);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (e.getRowKey) {
|
|
95
|
+
const t = F(r(l)), o = t.map(e.getRowKey);
|
|
96
|
+
T("finish", o, t), u == null || u({ keys: o, rows: t });
|
|
97
|
+
} else {
|
|
98
|
+
a == null || a(f.NotFineGetRowKey);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
s.value = !1;
|
|
102
|
+
}, P = O(() => {
|
|
103
|
+
if (e.getRowKey)
|
|
104
|
+
return {
|
|
105
|
+
fixed: !0,
|
|
106
|
+
selectedRowKeys: l.value.map(e.getRowKey),
|
|
107
|
+
columnWidth: 50,
|
|
108
|
+
preserveSelectedRowKeys: !0,
|
|
109
|
+
onChange: (t, o) => {
|
|
110
|
+
if (o.length > e.maxCount) {
|
|
111
|
+
q.warning(
|
|
112
|
+
B("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
113
|
+
);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
l.value = o;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}), R = () => e.isRenderModalTitleSuffix ? D(
|
|
120
|
+
V,
|
|
121
|
+
{
|
|
122
|
+
title: e.title,
|
|
123
|
+
count: l.value.length || 0,
|
|
124
|
+
maxCount: e.maxCount
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
default: e.renderModalTitleSuffix ?? void 0
|
|
128
|
+
}
|
|
129
|
+
) : e.title;
|
|
130
|
+
return b({
|
|
131
|
+
open: S,
|
|
132
|
+
close: y
|
|
133
|
+
}), (t, o) => (E(), I(r(A), x(
|
|
134
|
+
{
|
|
135
|
+
onOk: M,
|
|
136
|
+
onCancel: y,
|
|
137
|
+
open: s.value,
|
|
138
|
+
"onUpdate:open": o[0] || (o[0] = (n) => s.value = n)
|
|
139
|
+
},
|
|
140
|
+
r(g)(e, [
|
|
141
|
+
"api",
|
|
142
|
+
"getRowKey",
|
|
143
|
+
"centered",
|
|
144
|
+
"apTableProps",
|
|
145
|
+
"onOk",
|
|
146
|
+
"maxCount",
|
|
147
|
+
"title",
|
|
148
|
+
"renderModalTitleSuffix",
|
|
149
|
+
"isRenderModalTitleSuffix"
|
|
150
|
+
]),
|
|
151
|
+
{
|
|
152
|
+
title: R(),
|
|
153
|
+
centered: e.centered ?? !0
|
|
154
|
+
}
|
|
155
|
+
), {
|
|
156
|
+
default: L(() => [
|
|
157
|
+
U(r(W), x({
|
|
158
|
+
scroll: { y: "100%" },
|
|
159
|
+
style: { padding: "0px" },
|
|
160
|
+
columns: t.columns,
|
|
161
|
+
request: h,
|
|
162
|
+
"row-key": t.getRowKey,
|
|
163
|
+
"row-selection": P.value,
|
|
164
|
+
bordered: r(k) === "admin"
|
|
165
|
+
}, r(g)(e.apTableProps, "dataSource"), {
|
|
166
|
+
ref_key: "apTableRef",
|
|
167
|
+
ref: c,
|
|
168
|
+
"data-source": p.value
|
|
169
|
+
}), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}, 16, ["open", "title", "centered"]));
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
export {
|
|
176
|
+
le as default
|
|
177
|
+
};
|
|
@@ -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
|
+
} & {};
|