@aplus-frontend/ui 0.1.20 → 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/interface.d.ts +3 -3
- 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/ap-table.vue.mjs +107 -107
- 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/constants.mjs +11 -9
- package/es/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +115 -103
- package/es/src/ap-table/interface.d.ts +13 -4
- package/es/src/ap-table/style/ap-table.css +9 -0
- package/es/src/ap-table/utils.d.ts +597 -598
- package/es/src/ap-table/utils.mjs +44 -39
- 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 +31 -62
- package/es/src/business/ap-image/ApImage.vue2.mjs +30 -26
- package/es/src/business/ap-image/interface.d.ts +17 -0
- 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 +160 -152
- 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/config-provider.mjs +9 -9
- 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 +29 -2
- package/es/src/locale/lang/zh-cn.mjs +29 -2
- 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/theme/ap-table/ap-table.css +9 -0
- package/es/src/theme/css-var/index.mjs +23 -7
- 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/interface.d.ts +3 -3
- 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/ap-table.vue.js +1 -1
- 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/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -4
- package/lib/src/ap-table/style/ap-table.css +9 -0
- package/lib/src/ap-table/utils.d.ts +597 -598
- package/lib/src/ap-table/utils.js +1 -1
- 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 +31 -62
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +17 -0
- 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 +160 -152
- 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/config-provider.js +1 -1
- 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/theme/ap-table/ap-table.css +9 -0
- package/lib/src/theme/css-var/index.js +1 -1
- 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 +4 -4
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { ApActionItemModalProps, ApActionItemSlots
|
|
1
|
+
import { ApActionItemModalProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ActionColor } from '..';
|
|
3
4
|
import { ModalFuncProps } from 'ant-design-vue';
|
|
4
|
-
declare function __VLS_template():
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
5
11
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionItemModalProps>, {
|
|
6
12
|
color: string;
|
|
7
13
|
disabled: boolean;
|
|
@@ -16,26 +22,18 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
16
22
|
modalProps: () => {};
|
|
17
23
|
}>>>, {
|
|
18
24
|
visible: boolean;
|
|
19
|
-
loading: boolean;
|
|
20
|
-
disabled: boolean;
|
|
21
25
|
color: ActionColor;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
loading: boolean;
|
|
22
28
|
modalProps: Omit< ModalFuncProps, "type">;
|
|
23
29
|
}, {}>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
31
|
export default _default;
|
|
26
32
|
type __VLS_WithDefaults<P, D> = {
|
|
27
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
28
34
|
default: D[K];
|
|
29
35
|
}> : P[K];
|
|
30
36
|
};
|
|
31
|
-
type __VLS_Prettify<T> = {
|
|
32
|
-
[K in keyof T]: T[K];
|
|
33
|
-
} & {};
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
37
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
38
|
type __VLS_TypePropsToOption<T> = {
|
|
41
39
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -45,3 +43,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
45
43
|
required: true;
|
|
46
44
|
};
|
|
47
45
|
};
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type __VLS_PrettifyLocal<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ApActionItemPopconfirmProps, ApActionItemSlots
|
|
1
|
+
import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
|
+
import { ActionColor } from '..';
|
|
3
4
|
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
4
5
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
5
6
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
@@ -9,7 +10,12 @@ import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
|
9
10
|
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
10
11
|
import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
11
12
|
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
12
|
-
declare function __VLS_template():
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
|
|
15
|
+
refs: {};
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
19
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionItemPopconfirmProps>, {
|
|
14
20
|
color: string;
|
|
15
21
|
disabled: boolean;
|
|
@@ -24,9 +30,9 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
24
30
|
popconfirmProps: () => {};
|
|
25
31
|
}>>>, {
|
|
26
32
|
visible: boolean;
|
|
27
|
-
loading: boolean;
|
|
28
|
-
disabled: boolean;
|
|
29
33
|
color: ActionColor;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
loading: boolean;
|
|
30
36
|
popconfirmProps: Partial< ExtractPropTypes<{
|
|
31
37
|
prefixCls: StringConstructor;
|
|
32
38
|
content: {
|
|
@@ -323,21 +329,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
323
329
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
324
330
|
}>>;
|
|
325
331
|
}, {}>;
|
|
326
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
332
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
327
333
|
export default _default;
|
|
328
334
|
type __VLS_WithDefaults<P, D> = {
|
|
329
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
335
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
330
336
|
default: D[K];
|
|
331
337
|
}> : P[K];
|
|
332
338
|
};
|
|
333
|
-
type __VLS_Prettify<T> = {
|
|
334
|
-
[K in keyof T]: T[K];
|
|
335
|
-
} & {};
|
|
336
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
337
|
-
new (): {
|
|
338
|
-
$slots: S;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
339
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
342
340
|
type __VLS_TypePropsToOption<T> = {
|
|
343
341
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -347,3 +345,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
347
345
|
required: true;
|
|
348
346
|
};
|
|
349
347
|
};
|
|
348
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
349
|
+
new (): {
|
|
350
|
+
$slots: S;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
type __VLS_PrettifyLocal<T> = {
|
|
354
|
+
[K in keyof T]: T[K];
|
|
355
|
+
} & {};
|
|
@@ -1,95 +1,96 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { defineComponent as D, ref as m, watch as p, computed as S, openBlock as V, createBlock as A, unref as t, normalizeClass as o, withCtx as r, createElementVNode as v, toDisplayString as u, createVNode as d, createTextVNode as B } from "vue";
|
|
2
|
+
import { Flex as g, Checkbox as G, Divider as L, CheckboxGroup as M } from "ant-design-vue";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "./styles/column-select.css";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { useLocale as U } from "../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useGlobalConfig as j } from "../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { useNamespace as z } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const O = /* @__PURE__ */ D({
|
|
8
9
|
__name: "column-select",
|
|
9
10
|
props: {
|
|
10
11
|
columns: {}
|
|
11
12
|
},
|
|
12
13
|
emits: ["updateColumns"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
), { columns: n } =
|
|
14
|
+
setup(C, { emit: x }) {
|
|
15
|
+
const i = m(!1), h = m(!1), a = m([]), { t: f } = U(), k = j("uiMode"), { b, e: c } = z(
|
|
16
|
+
k.value === "aplus" ? "column-select" : "column-select-admin"
|
|
17
|
+
), { columns: n } = C, _ = x, I = (e) => {
|
|
17
18
|
const s = e.target.checked;
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
a.value = s ? n.map((l) => l.dataIndex) : n.filter((l) => l.disabled && l.selected).map((l) => l.dataIndex);
|
|
20
|
+
}, y = (e) => {
|
|
21
|
+
a.value = e;
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
p(
|
|
23
24
|
() => n,
|
|
24
25
|
() => {
|
|
25
|
-
|
|
26
|
+
a.value = n.filter((e) => e.selected).map((e) => e.dataIndex);
|
|
26
27
|
},
|
|
27
28
|
{ deep: !0, immediate: !0 }
|
|
28
|
-
),
|
|
29
|
-
|
|
29
|
+
), p(
|
|
30
|
+
a,
|
|
30
31
|
() => {
|
|
31
|
-
|
|
32
|
+
h.value = a.value.length > 0 && a.value.length !== n.length, i.value = a.value.length === n.length;
|
|
32
33
|
},
|
|
33
34
|
{ deep: !0, immediate: !0 }
|
|
34
|
-
),
|
|
35
|
-
|
|
35
|
+
), p(
|
|
36
|
+
a,
|
|
36
37
|
() => {
|
|
37
38
|
const e = n.map((s) => ({
|
|
38
39
|
...s,
|
|
39
|
-
selected:
|
|
40
|
+
selected: a.value.includes(s.dataIndex)
|
|
40
41
|
}));
|
|
41
|
-
|
|
42
|
+
_("updateColumns", e);
|
|
42
43
|
},
|
|
43
44
|
{ deep: !0 }
|
|
44
45
|
);
|
|
45
|
-
const
|
|
46
|
+
const N = S(() => n.map((e) => ({
|
|
46
47
|
label: e.title,
|
|
47
48
|
value: e.dataIndex,
|
|
48
49
|
disabled: e.disabled
|
|
49
50
|
})));
|
|
50
|
-
return (e, s) => (
|
|
51
|
+
return (e, s) => (V(), A(t(g), {
|
|
51
52
|
vertical: "",
|
|
52
|
-
class:
|
|
53
|
+
class: o(t(b)())
|
|
53
54
|
}, {
|
|
54
55
|
default: r(() => [
|
|
55
|
-
|
|
56
|
-
class:
|
|
57
|
-
}, "
|
|
58
|
-
d(
|
|
59
|
-
class:
|
|
56
|
+
v("p", {
|
|
57
|
+
class: o(t(c)("des"))
|
|
58
|
+
}, u(t(f)("ap.apCustomColumn.selectDes")), 3),
|
|
59
|
+
d(t(g), {
|
|
60
|
+
class: o(t(c)("all")),
|
|
60
61
|
justify: "space-between",
|
|
61
62
|
align: "center"
|
|
62
63
|
}, {
|
|
63
64
|
default: r(() => {
|
|
64
65
|
var l;
|
|
65
66
|
return [
|
|
66
|
-
d(
|
|
67
|
+
d(t(G), {
|
|
67
68
|
style: { padding: "0 6px;" },
|
|
68
|
-
checked:
|
|
69
|
-
"onUpdate:checked": s[0] || (s[0] = (
|
|
70
|
-
indeterminate:
|
|
71
|
-
onChange:
|
|
69
|
+
checked: i.value,
|
|
70
|
+
"onUpdate:checked": s[0] || (s[0] = (w) => i.value = w),
|
|
71
|
+
indeterminate: h.value,
|
|
72
|
+
onChange: I
|
|
72
73
|
}, {
|
|
73
74
|
default: r(() => [
|
|
74
|
-
|
|
75
|
+
B(u(t(f)("ap.apCustomColumn.allSelect")), 1)
|
|
75
76
|
]),
|
|
76
77
|
_: 1
|
|
77
78
|
}, 8, ["checked", "indeterminate"]),
|
|
78
|
-
|
|
79
|
-
class:
|
|
80
|
-
},
|
|
79
|
+
v("span", {
|
|
80
|
+
class: o(t(c)("statistics"))
|
|
81
|
+
}, u((l = a.value) == null ? void 0 : l.length) + "/" + u(e.columns.length), 3)
|
|
81
82
|
];
|
|
82
83
|
}),
|
|
83
84
|
_: 1
|
|
84
85
|
}, 8, ["class"]),
|
|
85
|
-
d(
|
|
86
|
-
|
|
87
|
-
class:
|
|
86
|
+
d(t(L), { style: { margin: "12px 0 4px 0" } }),
|
|
87
|
+
v("div", {
|
|
88
|
+
class: o(t(c)("content"))
|
|
88
89
|
}, [
|
|
89
|
-
d(
|
|
90
|
-
value:
|
|
91
|
-
"onUpdate:value":
|
|
92
|
-
options:
|
|
90
|
+
d(t(M), {
|
|
91
|
+
value: a.value,
|
|
92
|
+
"onUpdate:value": y,
|
|
93
|
+
options: N.value
|
|
93
94
|
}, null, 8, ["value", "options"])
|
|
94
95
|
], 2)
|
|
95
96
|
]),
|
|
@@ -98,5 +99,5 @@ const H = /* @__PURE__ */ w({
|
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
O as default
|
|
102
103
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SettingOutlined as
|
|
3
|
-
import { Tooltip as
|
|
1
|
+
import { defineComponent as x, ref as p, computed as H, openBlock as w, createElementBlock as B, normalizeClass as E, unref as e, createVNode as o, withCtx as n, createTextVNode as b, toDisplayString as k, normalizeStyle as G } from "vue";
|
|
2
|
+
import { SettingOutlined as N, CloseOutlined as T } from "@ant-design/icons-vue";
|
|
3
|
+
import { Tooltip as A, Button as I, Drawer as O } from "ant-design-vue";
|
|
4
4
|
import "./column-select.vue2.mjs";
|
|
5
5
|
import "./styles/custom-column.css";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useGlobalConfig as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
7
|
+
import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
import { useLocale as M } from "../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as W } from "../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import $ from "./column-select.vue.mjs";
|
|
11
|
+
const Q = /* @__PURE__ */ x({
|
|
11
12
|
__name: "custom-column",
|
|
12
13
|
props: {
|
|
13
14
|
columns: {},
|
|
@@ -15,72 +16,72 @@ const F = /* @__PURE__ */ D({
|
|
|
15
16
|
fullContentSelector: {}
|
|
16
17
|
},
|
|
17
18
|
emits: ["update:columns"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
), { baseContainerSelector: r, columns:
|
|
22
|
-
|
|
23
|
-
}, c =
|
|
24
|
-
var
|
|
19
|
+
setup(d, { emit: f }) {
|
|
20
|
+
const C = R("uiMode"), { t: i } = M(), { b: h, e: _ } = W(
|
|
21
|
+
C.value === "aplus" ? "custom-column" : "custom-column-admin"
|
|
22
|
+
), { baseContainerSelector: r, columns: q, fullContentSelector: g } = d, S = f, v = (t) => {
|
|
23
|
+
S("update:columns", t);
|
|
24
|
+
}, c = p(!1), l = p(0), y = () => {
|
|
25
|
+
var t, s;
|
|
25
26
|
if (r) {
|
|
26
27
|
const a = document.querySelector(r), u = document.querySelector(
|
|
27
|
-
|
|
28
|
+
g
|
|
28
29
|
);
|
|
29
30
|
a ? l.value = Math.max(
|
|
30
|
-
(
|
|
31
|
+
(t = a == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : t.top,
|
|
31
32
|
((s = u == null ? void 0 : u.getBoundingClientRect()) == null ? void 0 : s.top) || 0
|
|
32
33
|
) : l.value = 0;
|
|
33
34
|
}
|
|
34
35
|
c.value = !0;
|
|
35
|
-
},
|
|
36
|
+
}, m = () => {
|
|
36
37
|
c.value = !1;
|
|
37
|
-
},
|
|
38
|
-
return (
|
|
39
|
-
class:
|
|
38
|
+
}, D = H(() => window.innerHeight - l.value - 57 - 40);
|
|
39
|
+
return (t, s) => (w(), B("div", {
|
|
40
|
+
class: E(e(h)())
|
|
40
41
|
}, [
|
|
41
|
-
o(
|
|
42
|
+
o(e(A), null, {
|
|
42
43
|
title: n(() => [
|
|
43
|
-
|
|
44
|
+
b(k(e(i)("ap.apCustomColumn.title")), 1)
|
|
44
45
|
]),
|
|
45
46
|
default: n(() => [
|
|
46
|
-
o(
|
|
47
|
+
o(e(I), {
|
|
47
48
|
style: { minWidth: "auto" },
|
|
48
|
-
onClick:
|
|
49
|
+
onClick: y
|
|
49
50
|
}, {
|
|
50
51
|
icon: n(() => [
|
|
51
|
-
o(
|
|
52
|
+
o(e(N))
|
|
52
53
|
]),
|
|
53
54
|
_: 1
|
|
54
55
|
})
|
|
55
56
|
]),
|
|
56
57
|
_: 1
|
|
57
58
|
}),
|
|
58
|
-
o(
|
|
59
|
+
o(e(O), {
|
|
59
60
|
open: c.value,
|
|
60
61
|
width: 280,
|
|
61
|
-
title: "
|
|
62
|
+
title: e(i)("ap.apCustomColumn.title"),
|
|
62
63
|
closable: !1,
|
|
63
64
|
contentWrapperStyle: { top: `${l.value}px` },
|
|
64
65
|
bodyStyle: { overflow: "hidden", padding: "20px" },
|
|
65
66
|
mask: !0,
|
|
66
|
-
"root-class-name":
|
|
67
|
-
onClose:
|
|
67
|
+
"root-class-name": e(_)("drawer"),
|
|
68
|
+
onClose: m
|
|
68
69
|
}, {
|
|
69
70
|
extra: n(() => [
|
|
70
|
-
o(
|
|
71
|
+
o(e(T), { onClick: m })
|
|
71
72
|
]),
|
|
72
73
|
default: n(() => [
|
|
73
|
-
o(
|
|
74
|
-
style:
|
|
75
|
-
columns:
|
|
74
|
+
o($, {
|
|
75
|
+
style: G({ height: `${D.value}px` }),
|
|
76
|
+
columns: t.columns,
|
|
76
77
|
onUpdateColumns: v
|
|
77
78
|
}, null, 8, ["style", "columns"])
|
|
78
79
|
]),
|
|
79
80
|
_: 1
|
|
80
|
-
}, 8, ["open", "contentWrapperStyle", "root-class-name"])
|
|
81
|
+
}, 8, ["open", "title", "contentWrapperStyle", "root-class-name"])
|
|
81
82
|
], 2));
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
Q as default
|
|
86
87
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { DisplayInfoProps } from './interface';
|
|
2
2
|
import { VNode, RendererNode, RendererElement, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
declare function __VLS_template():
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: Partial<Record<string, (_: {
|
|
5
|
+
index: number;
|
|
6
|
+
item: VNode<RendererNode, RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}> | VNodeChild;
|
|
9
|
+
record: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}) => any>>;
|
|
13
|
+
refs: {};
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
17
|
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<DisplayInfoProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<DisplayInfoProps>>>, {}, {}>;
|
|
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
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
21
|
type __VLS_TypePropsToOption<T> = {
|
|
22
22
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -26,3 +26,8 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
26
26
|
required: true;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
4
8
|
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
5
10
|
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<{
|
|
6
11
|
helpMessage?: string;
|
|
7
12
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
13
|
helpMessage?: string;
|
|
9
14
|
}>>>, {}, {}>;
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
16
|
export default _default;
|
|
12
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
18
|
type __VLS_TypePropsToOption<T> = {
|
|
19
19
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -23,3 +23,8 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ApDownLoadProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
icon?(_: {}): 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<ApDownLoadProps<Record<string, string>>>, {
|
|
7
12
|
size: string;
|
|
8
13
|
color: string;
|
|
@@ -13,24 +18,16 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
13
18
|
disabled: boolean;
|
|
14
19
|
}>>>, {
|
|
15
20
|
size: "small" | "middle" | "large";
|
|
16
|
-
disabled: boolean;
|
|
17
21
|
color: string;
|
|
22
|
+
disabled: boolean;
|
|
18
23
|
}, {}>;
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
25
|
export default _default;
|
|
21
26
|
type __VLS_WithDefaults<P, D> = {
|
|
22
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
23
28
|
default: D[K];
|
|
24
29
|
}> : P[K];
|
|
25
30
|
};
|
|
26
|
-
type __VLS_Prettify<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
-
} & {};
|
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
32
|
type __VLS_TypePropsToOption<T> = {
|
|
36
33
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -40,3 +37,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
40
37
|
required: true;
|
|
41
38
|
};
|
|
42
39
|
};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type __VLS_PrettifyLocal<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ApFieldCheckboxProps
|
|
1
|
+
import { ApFieldCheckboxProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { FieldMode } from '..';
|
|
3
4
|
import { CheckboxOptionType } from 'ant-design-vue';
|
|
4
5
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldCheckboxProps>, {
|
|
5
6
|
emptyText: string;
|
|
@@ -20,13 +21,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
20
21
|
}, {}>;
|
|
21
22
|
export default _default;
|
|
22
23
|
type __VLS_WithDefaults<P, D> = {
|
|
23
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
24
25
|
default: D[K];
|
|
25
26
|
}> : P[K];
|
|
26
27
|
};
|
|
27
|
-
type __VLS_Prettify<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
30
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
29
|
type __VLS_TypePropsToOption<T> = {
|
|
32
30
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -36,3 +34,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
36
34
|
required: true;
|
|
37
35
|
};
|
|
38
36
|
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as dayjs } from 'dayjs';
|
|
2
|
-
import { ApFieldDateProps
|
|
2
|
+
import { ApFieldDateProps } from '../interface';
|
|
3
3
|
import { ApFormatPresetType } from './interface';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
|
|
5
|
+
import { FieldMode } from '..';
|
|
5
6
|
import { LiteralUnion } from '../../type';
|
|
6
7
|
import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
|
|
7
8
|
type ApFieldDataSlots = {
|
|
@@ -17,7 +18,12 @@ type ApFieldDataSlots = {
|
|
|
17
18
|
clearIcon?: any;
|
|
18
19
|
default?: any;
|
|
19
20
|
};
|
|
20
|
-
declare function __VLS_template():
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
slots: Readonly<ApFieldDataSlots> & ApFieldDataSlots;
|
|
23
|
+
refs: {};
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
27
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldDateProps>, {
|
|
22
28
|
format: string;
|
|
23
29
|
mode: string;
|
|
@@ -92,21 +98,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
92
98
|
showTime: boolean | SharedTimeProps<dayjs.Dayjs>;
|
|
93
99
|
emptyText: string;
|
|
94
100
|
}, {}>;
|
|
95
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
101
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
96
102
|
export default _default;
|
|
97
103
|
type __VLS_WithDefaults<P, D> = {
|
|
98
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
99
105
|
default: D[K];
|
|
100
106
|
}> : P[K];
|
|
101
107
|
};
|
|
102
|
-
type __VLS_Prettify<T> = {
|
|
103
|
-
[K in keyof T]: T[K];
|
|
104
|
-
} & {};
|
|
105
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
106
|
-
new (): {
|
|
107
|
-
$slots: S;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
108
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
111
109
|
type __VLS_TypePropsToOption<T> = {
|
|
112
110
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -116,3 +114,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
116
114
|
required: true;
|
|
117
115
|
};
|
|
118
116
|
};
|
|
117
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
118
|
+
new (): {
|
|
119
|
+
$slots: S;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
type __VLS_PrettifyLocal<T> = {
|
|
123
|
+
[K in keyof T]: T[K];
|
|
124
|
+
} & {};
|