@aplus-frontend/ui 0.1.21 → 0.1.23
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/ap-table.vue.mjs +202 -198
- 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/interface.d.ts +1 -1
- package/es/src/ap-table/style/ap-table.css +3 -0
- 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-label/ApLabel.mjs +8 -7
- 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/form-item.vue.mjs +48 -48
- package/es/src/editable-table/hooks/use-get-columns.mjs +64 -56
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/editable-table/utils.mjs +17 -17
- 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/theme/ap-table/ap-table.css +3 -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/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/hooks/use-table-paging.d.ts +2 -1
- package/lib/src/ap-table/interface.d.ts +1 -1
- package/lib/src/ap-table/style/ap-table.css +3 -0
- 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-label/ApLabel.js +1 -1
- 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/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/editable-table/interface.d.ts +2 -2
- package/lib/src/editable-table/utils.js +1 -1
- 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 +3 -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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as y, unref as
|
|
1
|
+
import { defineComponent as q, ref as y, unref as t, useSlots as G, watch as H, openBlock as m, createBlock as C, mergeProps as b, withCtx as d, createVNode as w, createSlots as I, createElementBlock as M, normalizeClass as W, createCommentVNode as R, createElementVNode as $, toDisplayString as Q, normalizeStyle as U, renderList as J, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
2
|
import { Table as ee, Tooltip as oe } from "ant-design-vue";
|
|
3
3
|
import { ApForm as B } from "../ap-form/index.mjs";
|
|
4
4
|
import { isNumber as i, cloneDeep as f, omit as te } from "lodash-unified";
|
|
@@ -10,8 +10,8 @@ import le from "./hooks/use-get-columns.mjs";
|
|
|
10
10
|
import { scrollToRowIndex as ne, getColumnIsRequired as re } from "./utils.mjs";
|
|
11
11
|
import { QuestionCircleOutlined as se } from "@ant-design/icons-vue";
|
|
12
12
|
import { useToken as ue } from "ant-design-vue/es/theme/internal";
|
|
13
|
-
import { useNamespace as
|
|
14
|
-
import { useGlobalConfig as
|
|
13
|
+
import { useNamespace as de } from "../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import { useGlobalConfig as me } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
15
|
const ve = /* @__PURE__ */ q({
|
|
16
16
|
name: "EditableTableInner",
|
|
17
17
|
__name: "form-item",
|
|
@@ -119,102 +119,102 @@ const ve = /* @__PURE__ */ q({
|
|
|
119
119
|
const l = k, {
|
|
120
120
|
internalInstance: n,
|
|
121
121
|
model: D
|
|
122
|
-
} = ae(),
|
|
122
|
+
} = ae(), s = y(((h = t(D)) == null ? void 0 : h[l.name]) || []), L = G(), T = B.useWatch(l.name);
|
|
123
123
|
H(() => T.value, (e) => {
|
|
124
|
-
var
|
|
125
|
-
|
|
124
|
+
var o;
|
|
125
|
+
s.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
126
126
|
}, {
|
|
127
127
|
deep: !0
|
|
128
128
|
});
|
|
129
129
|
const {
|
|
130
130
|
b: E,
|
|
131
131
|
em: F
|
|
132
|
-
} =
|
|
133
|
-
function
|
|
132
|
+
} = de("editable-table"), c = y(), N = me("valueTypeMap"), [, S] = ue(), _ = le(l, N);
|
|
133
|
+
function V(e, o) {
|
|
134
134
|
var u;
|
|
135
|
-
const a = ((u =
|
|
135
|
+
const a = ((u = t(s)) == null ? void 0 : u.length) || 0;
|
|
136
136
|
if (p(l.maxLength) && a >= l.maxLength)
|
|
137
137
|
return;
|
|
138
|
-
const
|
|
139
|
-
p(
|
|
138
|
+
const r = [...t(s) || []];
|
|
139
|
+
p(o) ? r.splice(o, 0, {
|
|
140
140
|
...e || {}
|
|
141
|
-
}) :
|
|
141
|
+
}) : r.push({
|
|
142
142
|
...e || {}
|
|
143
|
-
}), n == null || n.setFieldValue(l.name,
|
|
143
|
+
}), n == null || n.setFieldValue(l.name, r);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function z(e, o = "suffix") {
|
|
146
146
|
var g;
|
|
147
|
-
const a = ((g =
|
|
148
|
-
if (p(l.maxLength) && a +
|
|
147
|
+
const a = ((g = t(s)) == null ? void 0 : g.length) || 0, r = i(e) ? e : e.length;
|
|
148
|
+
if (p(l.maxLength) && a + r > l.maxLength)
|
|
149
149
|
return;
|
|
150
|
-
const u = [...
|
|
151
|
-
|
|
150
|
+
const u = [...t(s) || []], x = i(e) ? new Array(e).fill({}) : f(e);
|
|
151
|
+
o === "suffix" ? u.push(...x) : u.unshift(...x), n == null || n.setFieldValue(l.name, u);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
let
|
|
153
|
+
function P(e) {
|
|
154
|
+
let o = f(t(s) || []);
|
|
155
155
|
const a = i(e) ? [e] : e;
|
|
156
|
-
|
|
156
|
+
o = o.filter((r, u) => !a.includes(u)), n == null || n.setFieldValue(l.name, o);
|
|
157
157
|
}
|
|
158
158
|
function j() {
|
|
159
|
-
return
|
|
159
|
+
return t(s);
|
|
160
160
|
}
|
|
161
161
|
function O(e) {
|
|
162
|
-
var
|
|
163
|
-
return (
|
|
162
|
+
var o;
|
|
163
|
+
return (o = t(s)) == null ? void 0 : o[e];
|
|
164
164
|
}
|
|
165
|
-
function A(e,
|
|
166
|
-
const a = f(
|
|
165
|
+
function A(e, o) {
|
|
166
|
+
const a = f(t(s));
|
|
167
167
|
a[e] && (a[e] = {
|
|
168
168
|
...a[e],
|
|
169
|
-
...
|
|
169
|
+
...o
|
|
170
170
|
}, n == null || n.setFieldValue(l.name, [...a]));
|
|
171
171
|
}
|
|
172
|
-
function K(e,
|
|
173
|
-
var
|
|
174
|
-
const a = e === "end" ?
|
|
175
|
-
ne(a, (
|
|
172
|
+
function K(e, o) {
|
|
173
|
+
var r;
|
|
174
|
+
const a = e === "end" ? s.value.length - 1 : e;
|
|
175
|
+
ne(a, (r = c.value) == null ? void 0 : r.$el, o);
|
|
176
176
|
}
|
|
177
177
|
return v({
|
|
178
|
-
add:
|
|
179
|
-
remove:
|
|
178
|
+
add: V,
|
|
179
|
+
remove: P,
|
|
180
180
|
getRowData: O,
|
|
181
181
|
getRowsData: j,
|
|
182
182
|
setRowData: A,
|
|
183
|
-
addMultiple:
|
|
183
|
+
addMultiple: z,
|
|
184
184
|
scrollTo: K
|
|
185
|
-
}), (e,
|
|
185
|
+
}), (e, o) => (m(), C(t(B).FormItem, b(e.formItem, {
|
|
186
186
|
name: e.name,
|
|
187
187
|
label: e.label
|
|
188
188
|
}), {
|
|
189
|
-
default:
|
|
190
|
-
class:
|
|
191
|
-
columns:
|
|
192
|
-
"data-source":
|
|
189
|
+
default: d(() => [w(t(ee), b(t(te)(l, ["name", "maxLength", "onChange"]), {
|
|
190
|
+
class: t(E)(),
|
|
191
|
+
columns: t(_),
|
|
192
|
+
"data-source": s.value,
|
|
193
193
|
ref_key: "tableRef",
|
|
194
194
|
ref: c
|
|
195
195
|
}), I({
|
|
196
|
-
headerCell:
|
|
196
|
+
headerCell: d(({
|
|
197
197
|
column: a
|
|
198
|
-
}) => [
|
|
198
|
+
}) => [t(re)(a) ? (m(), M("span", {
|
|
199
199
|
key: 0,
|
|
200
|
-
class: W(
|
|
201
|
-
}, "*", 2)) : R("", !0), $("span", null, Q(a.title), 1), a.tooltip ? (
|
|
200
|
+
class: W(t(F)("header-cell", "required"))
|
|
201
|
+
}, "*", 2)) : R("", !0), $("span", null, Q(a.title), 1), a.tooltip ? (m(), C(t(oe), {
|
|
202
202
|
key: 1,
|
|
203
203
|
title: a.tooltip,
|
|
204
204
|
placement: "bottom"
|
|
205
205
|
}, {
|
|
206
|
-
default:
|
|
206
|
+
default: d(() => [w(t(se), {
|
|
207
207
|
style: U({
|
|
208
208
|
paddingLeft: "4px",
|
|
209
|
-
color:
|
|
209
|
+
color: t(S).colorPrimary
|
|
210
210
|
})
|
|
211
211
|
}, null, 8, ["style"])]),
|
|
212
212
|
_: 2
|
|
213
213
|
}, 1032, ["title"])) : R("", !0)]),
|
|
214
214
|
_: 2
|
|
215
|
-
}, [J(L, (a,
|
|
216
|
-
name:
|
|
217
|
-
fn:
|
|
215
|
+
}, [J(L, (a, r) => ({
|
|
216
|
+
name: r,
|
|
217
|
+
fn: d((u) => [X(e.$slots, r, Y(Z(u || {})))])
|
|
218
218
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
219
219
|
_: 3
|
|
220
220
|
}, 16, ["name", "label"]));
|
|
@@ -1,63 +1,71 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { omit as
|
|
3
|
-
import { mergeClass as
|
|
4
|
-
import { updateFormProps as
|
|
1
|
+
import { computed as b, unref as h } from "vue";
|
|
2
|
+
import { omit as I, isFunction as R, isArray as C } from "lodash-unified";
|
|
3
|
+
import { mergeClass as y, getFinalNode as T } from "../utils.mjs";
|
|
4
|
+
import { updateFormProps as N, getFieldProps as v, getPlaceholder as w, getTableRenderProps as A } from "../../ap-table/utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { useLocale as
|
|
7
|
-
const
|
|
6
|
+
import { useLocale as G } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const B = (l, m) => {
|
|
8
8
|
const {
|
|
9
|
-
t:
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return (m = o.onFieldChange) == null ? void 0 : m.call(o, n.index, e.dataIndex, f);
|
|
31
|
-
}), c = {
|
|
32
|
-
name: [o.name, n.index, e.dataIndex],
|
|
33
|
-
...l || {},
|
|
34
|
-
// 格式化placeholder
|
|
35
|
-
placeholder: y(s, e.valueType, l == null ? void 0 : l.placeholder),
|
|
36
|
-
field: {
|
|
37
|
-
style: "width: 100%",
|
|
38
|
-
...(l == null ? void 0 : l.field) || {},
|
|
39
|
-
...u,
|
|
40
|
-
class: R("is-editable", l.class)
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
} else
|
|
44
|
-
c = {
|
|
45
|
-
field: T(e, {
|
|
46
|
-
value: a,
|
|
9
|
+
t: f
|
|
10
|
+
} = G();
|
|
11
|
+
return b(() => {
|
|
12
|
+
const t = l.columns;
|
|
13
|
+
if (!t)
|
|
14
|
+
return [];
|
|
15
|
+
function c(x) {
|
|
16
|
+
return x.map((e) => ({
|
|
17
|
+
...I(e, ["ellipsis"]),
|
|
18
|
+
children: c(e.children || []),
|
|
19
|
+
customRender({
|
|
20
|
+
value: o,
|
|
21
|
+
...n
|
|
22
|
+
}) {
|
|
23
|
+
const a = R(e.editable) ? e.editable(n.text, n.record, n.index) : !!e.editable;
|
|
24
|
+
if (!e.valueType && !e.customRender && !e.customRenderFormItem)
|
|
25
|
+
return console.warn("can not render table cell because no `valueType` / `customRender` / `customRenderFormItem`"), null;
|
|
26
|
+
let r;
|
|
27
|
+
if (a) {
|
|
28
|
+
const d = N(e, v(e.fieldProps, {
|
|
29
|
+
value: o,
|
|
47
30
|
...n
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
31
|
+
})), i = {};
|
|
32
|
+
l.onFieldChange && (i[`onUpdate:${d.valuePropName || "value"}`] = (F) => {
|
|
33
|
+
var s;
|
|
34
|
+
return (s = l.onFieldChange) == null ? void 0 : s.call(l, n.index, e.dataIndex, F);
|
|
35
|
+
});
|
|
36
|
+
const g = C(e.dataIndex) ? e.dataIndex : [e.dataIndex];
|
|
37
|
+
r = {
|
|
38
|
+
name: [l.name, n.index, ...g],
|
|
39
|
+
...d || {},
|
|
40
|
+
// 格式化placeholder
|
|
41
|
+
placeholder: w(f, e.valueType, d == null ? void 0 : d.placeholder),
|
|
42
|
+
field: {
|
|
43
|
+
style: "width: 100%",
|
|
44
|
+
...(d == null ? void 0 : d.field) || {},
|
|
45
|
+
...i,
|
|
46
|
+
class: y("is-editable", d.class)
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
} else
|
|
50
|
+
r = {
|
|
51
|
+
field: A(e, {
|
|
52
|
+
value: o,
|
|
53
|
+
...n
|
|
54
|
+
})
|
|
55
|
+
};
|
|
56
|
+
const u = T(e, a, r, o, n.record, h(m));
|
|
57
|
+
return e.customRender ? e.customRender({
|
|
58
|
+
value: o,
|
|
59
|
+
...n,
|
|
60
|
+
editable: a,
|
|
61
|
+
originalNode: u
|
|
62
|
+
}) : u;
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
return c(t);
|
|
59
67
|
});
|
|
60
68
|
};
|
|
61
69
|
export {
|
|
62
|
-
|
|
70
|
+
B as default
|
|
63
71
|
};
|
|
@@ -3,8 +3,8 @@ import { NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
|
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
5
5
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
6
|
-
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
7
|
-
props:
|
|
6
|
+
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
9
9
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>> & {
|
|
10
10
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -22,7 +22,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
22
22
|
clear: () => void;
|
|
23
23
|
}>): void;
|
|
24
24
|
attrs: any;
|
|
25
|
-
slots:
|
|
25
|
+
slots: Readonly<{
|
|
26
26
|
default: any;
|
|
27
27
|
emptyText?: any;
|
|
28
28
|
expandIcon?: any;
|
|
@@ -52,14 +52,14 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
52
52
|
title: any;
|
|
53
53
|
column: EditableColumnType;
|
|
54
54
|
}) => void;
|
|
55
|
-
}
|
|
56
|
-
emit: (
|
|
55
|
+
};
|
|
56
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
57
57
|
}>) => VNode<RendererNode, RendererElement, {
|
|
58
58
|
[key: string]: any;
|
|
59
59
|
}> & {
|
|
60
60
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
61
61
|
};
|
|
62
62
|
export default _default;
|
|
63
|
-
type
|
|
63
|
+
type __VLS_PrettifyLocal<T> = {
|
|
64
64
|
[K in keyof T]: T[K];
|
|
65
65
|
} & {};
|
|
@@ -8,7 +8,7 @@ import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
|
|
|
8
8
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../type';
|
|
10
10
|
export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
|
|
11
|
-
children?: EditableColumnType<RecordType, ExtraValueType, ValueType, MergedValueType
|
|
11
|
+
children?: EditableColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
|
|
12
12
|
/**
|
|
13
13
|
* 在title之后展示一个icon并触发tooltip
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueT
|
|
|
32
32
|
/**
|
|
33
33
|
* 自定义表单,适用于内置`valueType`不满足的情况下使用
|
|
34
34
|
*/
|
|
35
|
-
customRenderFormItem?: (config: EditableColumnType<RecordType>, fieldProps: Recordable, editable: boolean) => any;
|
|
35
|
+
customRenderFormItem?: (config: EditableColumnType<RecordType>, fieldProps: Recordable, editable: boolean, record: RecordType) => any;
|
|
36
36
|
/**
|
|
37
37
|
* 指定值类型(将会用于普通列和可编辑表格的渲染)
|
|
38
38
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as F, createVNode as f, mergeProps as g } from "vue";
|
|
2
|
-
import { isFunction as
|
|
2
|
+
import { isFunction as T, isArray as I, isBoolean as h, omit as P } from "lodash-unified";
|
|
3
3
|
import { apTableFormItemMap as V, noRenderAsFormItemValueList as j, apTableRenderItemMap as q } from "../ap-table/constants.mjs";
|
|
4
4
|
import { isDef as w } from "../utils/index.mjs";
|
|
5
5
|
import { getValueStr as S } from "../ap-field/number/helper.mjs";
|
|
@@ -7,8 +7,8 @@ import A from "scroll-into-view-if-needed";
|
|
|
7
7
|
import { Typography as v } from "ant-design-vue";
|
|
8
8
|
import "../ap-form/index.mjs";
|
|
9
9
|
import { objectToString as C } from "../ap-table/utils.mjs";
|
|
10
|
-
import
|
|
11
|
-
function
|
|
10
|
+
import y from "../ap-form/ap-form-item.vue.mjs";
|
|
11
|
+
function b(e) {
|
|
12
12
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !F(e);
|
|
13
13
|
}
|
|
14
14
|
function N(e) {
|
|
@@ -17,14 +17,14 @@ function N(e) {
|
|
|
17
17
|
function Q(e) {
|
|
18
18
|
if (!e.fieldProps)
|
|
19
19
|
return !1;
|
|
20
|
-
const t =
|
|
21
|
-
return w(t.required) ? t.required : (
|
|
20
|
+
const t = T(e.fieldProps) ? e.fieldProps({}) : e.fieldProps;
|
|
21
|
+
return w(t.required) ? t.required : (I(t.rules) ? t.rules : t.rules ? [t.rules] : []).some((r) => r.required);
|
|
22
22
|
}
|
|
23
23
|
function _(e, t) {
|
|
24
24
|
if (e.valueType === "text" || e.valueType === "textArea")
|
|
25
25
|
return t || "--";
|
|
26
26
|
if (e.valueType === "number") {
|
|
27
|
-
const o = e.fieldProps ?
|
|
27
|
+
const o = e.fieldProps ? T(e.fieldProps) ? e.fieldProps({}) : e.fieldProps : {};
|
|
28
28
|
return S(t, o) || "--";
|
|
29
29
|
}
|
|
30
30
|
return C(t);
|
|
@@ -32,7 +32,7 @@ function _(e, t) {
|
|
|
32
32
|
function R(e, t) {
|
|
33
33
|
const o = [e];
|
|
34
34
|
if (t) {
|
|
35
|
-
const r =
|
|
35
|
+
const r = I(t) ? t : [t];
|
|
36
36
|
o.unshift(...r);
|
|
37
37
|
}
|
|
38
38
|
return o.join(" ");
|
|
@@ -61,32 +61,32 @@ function D(e, t, o) {
|
|
|
61
61
|
content: e.ellipsis ? _(e, t) : o
|
|
62
62
|
}, null) : o;
|
|
63
63
|
}
|
|
64
|
-
function W(e, t, o, r,
|
|
65
|
-
var
|
|
64
|
+
function W(e, t, o, r, d, i) {
|
|
65
|
+
var a, m;
|
|
66
66
|
if (t) {
|
|
67
67
|
if (e.customRenderFormItem) {
|
|
68
|
-
const n = e.customRenderFormItem(e, o.field, t);
|
|
69
|
-
return f(
|
|
68
|
+
const n = e.customRenderFormItem(e, o.field, t, d);
|
|
69
|
+
return f(y, P(o, ["field"]), b(n) ? n : {
|
|
70
70
|
default: () => [n]
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
const l = N(e.valueType);
|
|
74
74
|
if (l)
|
|
75
75
|
return f(l, o, null);
|
|
76
|
-
const s = i == null ? void 0 : i[e.valueType], u = (
|
|
77
|
-
return u ? f(
|
|
76
|
+
const s = i == null ? void 0 : i[e.valueType], u = (a = s == null ? void 0 : s.renderFormItem) == null ? void 0 : a.call(s, o.field);
|
|
77
|
+
return u ? f(y, o, b(u) ? u : {
|
|
78
78
|
default: () => [u]
|
|
79
79
|
}) : null;
|
|
80
80
|
}
|
|
81
81
|
let p;
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
p = f(
|
|
82
|
+
const c = q[e.valueType];
|
|
83
|
+
if (c)
|
|
84
|
+
p = f(c, g(o.field, {
|
|
85
85
|
mode: "read"
|
|
86
86
|
}), null);
|
|
87
87
|
else {
|
|
88
88
|
const l = i == null ? void 0 : i[e.valueType];
|
|
89
|
-
p = (
|
|
89
|
+
p = (m = l == null ? void 0 : l.render) == null ? void 0 : m.call(l, r, d, o.field);
|
|
90
90
|
}
|
|
91
91
|
return p ? D(e, r, p) : null;
|
|
92
92
|
}
|
|
@@ -14,15 +14,11 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
14
14
|
spin: boolean;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export default _default;
|
|
17
|
-
|
|
18
17
|
type __VLS_WithDefaults<P, D> = {
|
|
19
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
18
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
20
19
|
default: D[K];
|
|
21
20
|
}> : P[K];
|
|
22
21
|
};
|
|
23
|
-
type __VLS_Prettify<T> = {
|
|
24
|
-
[K in keyof T]: T[K];
|
|
25
|
-
} & {};
|
|
26
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
23
|
type __VLS_TypePropsToOption<T> = {
|
|
28
24
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -32,3 +28,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
32
28
|
required: true;
|
|
33
29
|
};
|
|
34
30
|
};
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
package/es/src/icon/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export declare const Icon: {
|
|
|
6
6
|
type: PropType<string | number>;
|
|
7
7
|
default: number;
|
|
8
8
|
};
|
|
9
|
+
color: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
};
|
|
9
12
|
icon: {
|
|
10
13
|
type: PropType<string>;
|
|
11
14
|
required: true;
|
|
@@ -14,9 +17,6 @@ export declare const Icon: {
|
|
|
14
17
|
type: PropType<string>;
|
|
15
18
|
default: string;
|
|
16
19
|
};
|
|
17
|
-
color: {
|
|
18
|
-
type: PropType<string>;
|
|
19
|
-
};
|
|
20
20
|
spin: {
|
|
21
21
|
type: PropType<boolean>;
|
|
22
22
|
default: boolean;
|
|
@@ -26,6 +26,9 @@ export declare const Icon: {
|
|
|
26
26
|
type: PropType<string | number>;
|
|
27
27
|
default: number;
|
|
28
28
|
};
|
|
29
|
+
color: {
|
|
30
|
+
type: PropType<string>;
|
|
31
|
+
};
|
|
29
32
|
icon: {
|
|
30
33
|
type: PropType<string>;
|
|
31
34
|
required: true;
|
|
@@ -34,9 +37,6 @@ export declare const Icon: {
|
|
|
34
37
|
type: PropType<string>;
|
|
35
38
|
default: string;
|
|
36
39
|
};
|
|
37
|
-
color: {
|
|
38
|
-
type: PropType<string>;
|
|
39
|
-
};
|
|
40
40
|
spin: {
|
|
41
41
|
type: PropType<boolean>;
|
|
42
42
|
default: boolean;
|
|
@@ -57,6 +57,9 @@ export declare const Icon: {
|
|
|
57
57
|
type: PropType<string | number>;
|
|
58
58
|
default: number;
|
|
59
59
|
};
|
|
60
|
+
color: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
};
|
|
60
63
|
icon: {
|
|
61
64
|
type: PropType<string>;
|
|
62
65
|
required: true;
|
|
@@ -65,9 +68,6 @@ export declare const Icon: {
|
|
|
65
68
|
type: PropType<string>;
|
|
66
69
|
default: string;
|
|
67
70
|
};
|
|
68
|
-
color: {
|
|
69
|
-
type: PropType<string>;
|
|
70
|
-
};
|
|
71
71
|
spin: {
|
|
72
72
|
type: PropType<boolean>;
|
|
73
73
|
default: boolean;
|
|
@@ -85,6 +85,9 @@ export declare const Icon: {
|
|
|
85
85
|
type: PropType<string | number>;
|
|
86
86
|
default: number;
|
|
87
87
|
};
|
|
88
|
+
color: {
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
};
|
|
88
91
|
icon: {
|
|
89
92
|
type: PropType<string>;
|
|
90
93
|
required: true;
|
|
@@ -93,9 +96,6 @@ export declare const Icon: {
|
|
|
93
96
|
type: PropType<string>;
|
|
94
97
|
default: string;
|
|
95
98
|
};
|
|
96
|
-
color: {
|
|
97
|
-
type: PropType<string>;
|
|
98
|
-
};
|
|
99
99
|
spin: {
|
|
100
100
|
type: PropType<boolean>;
|
|
101
101
|
default: boolean;
|
|
@@ -104,11 +104,11 @@ export declare const Icon: {
|
|
|
104
104
|
size: string | number;
|
|
105
105
|
prefix: string;
|
|
106
106
|
spin: boolean;
|
|
107
|
-
}, {}, string, {}> &
|
|
107
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
108
108
|
$props: {
|
|
109
109
|
onClick?: () => void;
|
|
110
110
|
};
|
|
111
|
-
}))
|
|
111
|
+
}));
|
|
112
112
|
export declare const SvgIcon: {
|
|
113
113
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
114
114
|
size: {
|
|
@@ -201,8 +201,8 @@ export declare const SvgIcon: {
|
|
|
201
201
|
size: string | number;
|
|
202
202
|
prefix: string;
|
|
203
203
|
spin: boolean;
|
|
204
|
-
}, {}, string, {}> &
|
|
204
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
205
205
|
$props: {
|
|
206
206
|
onClick?: () => void;
|
|
207
207
|
};
|
|
208
|
-
}))
|
|
208
|
+
}));
|
|
@@ -15,13 +15,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
15
15
|
}, {}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_WithDefaults<P, D> = {
|
|
18
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
18
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
19
19
|
default: D[K];
|
|
20
20
|
}> : P[K];
|
|
21
21
|
};
|
|
22
|
-
type __VLS_Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
25
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
23
|
type __VLS_TypePropsToOption<T> = {
|
|
27
24
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -31,3 +28,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
31
28
|
required: true;
|
|
32
29
|
};
|
|
33
30
|
};
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -33,13 +33,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
33
33
|
}, {}>;
|
|
34
34
|
export default _default;
|
|
35
35
|
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
37
37
|
default: D[K];
|
|
38
38
|
}> : P[K];
|
|
39
39
|
};
|
|
40
|
-
type __VLS_Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
40
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
41
|
type __VLS_TypePropsToOption<T> = {
|
|
45
42
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -49,3 +46,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
49
46
|
required: true;
|
|
50
47
|
};
|
|
51
48
|
};
|
|
49
|
+
type __VLS_PrettifyLocal<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -182,9 +182,9 @@ export declare const IconPicker: {
|
|
|
182
182
|
readonly: boolean;
|
|
183
183
|
allowClear: boolean;
|
|
184
184
|
pageSize: number;
|
|
185
|
-
}, {}, string, {}> &
|
|
185
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
186
186
|
$props: {
|
|
187
187
|
onClick?: () => void;
|
|
188
188
|
};
|
|
189
|
-
}))
|
|
189
|
+
}));
|
|
190
190
|
export default IconPicker;
|