@aplus-frontend/ui 0.0.40 → 0.1.1
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.d.ts +0 -1
- package/es/src/ap-action/group/index.vue.d.ts +12 -13
- package/es/src/ap-action/index.d.ts +0 -1
- package/es/src/ap-action/interface.d.ts +0 -1
- package/es/src/ap-action/item/index.vue.d.ts +16 -15
- package/es/src/ap-action/item/index.vue2.mjs +24 -26
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +19 -18
- package/es/src/ap-action/item-modal/index.vue.d.ts +16 -15
- package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +26 -25
- package/es/src/ap-action/style/item.css +10 -25
- package/es/src/ap-custom-column/column-select.vue.d.ts +3 -4
- package/es/src/ap-custom-column/custom-column.vue.d.ts +3 -4
- package/es/src/ap-custom-column/index.d.ts +0 -1
- package/es/src/ap-custom-column/interfaces.d.ts +0 -1
- package/es/src/ap-custom-column/storage.mjs +11 -11
- package/es/src/ap-custom-column/useCacheColumnSetting.d.ts +0 -1
- package/es/src/ap-custom-column/utils.d.ts +0 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -10
- package/es/src/ap-descriptions/formatter/index.d.ts +0 -1
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +14 -12
- package/es/src/ap-descriptions/helper.d.ts +0 -1
- package/es/src/ap-descriptions/index.d.ts +0 -1
- package/es/src/ap-descriptions/interface.d.ts +0 -1
- package/es/src/ap-download/ap-download.vue.d.ts +18 -17
- package/es/src/ap-download/ap-download.vue.mjs +4 -1
- package/es/src/ap-download/hooks/index.d.ts +0 -1
- package/es/src/ap-download/index.d.ts +0 -1
- package/es/src/ap-download/interface.d.ts +0 -1
- package/es/src/ap-field/checkbox/helper.d.ts +0 -1
- package/es/src/ap-field/checkbox/index.vue.d.ts +11 -12
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
- package/es/src/ap-field/checkbox/style.css +7 -0
- package/es/src/ap-field/date/constant.d.ts +0 -1
- package/es/src/ap-field/date/helper.d.ts +0 -1
- package/es/src/ap-field/date/index.vue.d.ts +25 -24
- package/es/src/ap-field/date/index.vue.mjs +4 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +23 -22
- package/es/src/ap-field/date-range/index.vue.mjs +7 -1
- package/es/src/ap-field/hooks/use-default-placeholder.d.ts +3 -3
- package/es/src/ap-field/index.d.ts +0 -1
- package/es/src/ap-field/interface.d.ts +2 -1
- package/es/src/ap-field/number/helper.d.ts +0 -1
- package/es/src/ap-field/number/index.vue.d.ts +14 -13
- package/es/src/ap-field/radio/helper.d.ts +0 -1
- package/es/src/ap-field/radio/index.vue.d.ts +14 -12
- package/es/src/ap-field/radio/index.vue.mjs +44 -29
- package/es/src/ap-field/radio/style.css +4 -0
- package/es/src/ap-field/rate/index.vue.d.ts +19 -18
- package/es/src/ap-field/segmented/index.vue.d.ts +23 -22
- package/es/src/ap-field/select/index.vue.d.ts +20 -19
- package/es/src/ap-field/slider/index.vue.d.ts +14 -13
- package/es/src/ap-field/slider/index.vue.mjs +1 -4
- package/es/src/ap-field/switch/index.vue.d.ts +15 -14
- package/es/src/ap-field/text/index.d.ts +0 -1
- package/es/src/ap-field/text/index.vue.d.ts +17 -16
- package/es/src/ap-field/text/input-password-props.d.ts +0 -1
- package/es/src/ap-field/text/password.vue.d.ts +18 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +13 -14
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +0 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -18
- package/es/src/ap-form/ap-form-item.vue.d.ts +15 -14
- package/es/src/ap-form/ap-form-list.vue.d.ts +9 -8
- package/es/src/ap-form/ap-form.vue.d.ts +22 -21
- package/es/src/ap-form/constant.d.ts +0 -1
- package/es/src/ap-form/context.d.ts +0 -1
- package/es/src/ap-form/hooks/use-watch.d.ts +0 -1
- package/es/src/ap-form/hooks/use-watch.mjs +7 -7
- package/es/src/ap-form/index.d.ts +0 -1
- package/es/src/ap-form/interface.d.ts +0 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -16
- package/es/src/ap-form/items/date/index.vue.d.ts +38 -37
- package/es/src/ap-form/items/date-range/index.vue.d.ts +38 -37
- package/es/src/ap-form/items/index.d.ts +0 -1
- package/es/src/ap-form/items/interface.d.ts +0 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +31 -30
- package/es/src/ap-form/items/radio/index.vue.d.ts +17 -16
- package/es/src/ap-form/items/select/index.vue.d.ts +41 -40
- package/es/src/ap-form/items/switch/index.vue.d.ts +25 -24
- package/es/src/ap-form/items/text/index.d.ts +0 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +31 -30
- package/es/src/ap-form/items/text/password.vue.d.ts +31 -30
- package/es/src/ap-form/items/text-area/index.vue.d.ts +18 -17
- package/es/src/ap-form/modal-form/index.vue.d.ts +30 -29
- package/es/src/ap-form/search-form/index.vue.d.ts +23 -22
- package/es/src/ap-form/search-form/utils.d.ts +0 -1
- package/es/src/ap-form/search-form/utils.mjs +1 -2
- package/es/src/ap-form/style/ap-form-item.css +6 -6
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -19
- package/es/src/ap-layout/index.d.ts +0 -1
- package/es/src/ap-list/hooks/use-offline-list.d.ts +0 -1
- package/es/src/ap-list/index.d.ts +0 -1
- package/es/src/ap-list/index.vue.d.ts +9 -122
- package/es/src/ap-list/interface.d.ts +0 -1
- package/es/src/ap-modal/index.d.ts +0 -1
- package/es/src/ap-modal/type.d.ts +0 -1
- package/es/src/ap-modal/utils/createModal.d.ts +0 -1
- package/es/src/ap-table/ap-table.vue.d.ts +16 -2222
- package/es/src/ap-table/ap-table.vue.mjs +125 -126
- package/es/src/ap-table/components/index/index.vue.d.ts +11 -12
- package/es/src/ap-table/components/interface.d.ts +0 -1
- package/es/src/ap-table/components/status/index.vue.d.ts +2 -3
- package/es/src/ap-table/constants.d.ts +4816 -6356
- package/es/src/ap-table/hooks/use-table-paging.d.ts +0 -1
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +0 -1
- package/es/src/ap-table/index.d.ts +0 -1
- package/es/src/ap-table/interface.d.ts +0 -1
- package/es/src/ap-table/style/ap-table.css +1 -21
- package/es/src/ap-table/utils.d.ts +1 -2
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +14 -13
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -7
- package/es/src/ap-tag/ap-tag.vue.d.ts +13 -14
- package/es/src/ap-tag/index.d.ts +0 -1
- package/es/src/ap-tag/interface.d.ts +0 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +2 -3
- package/es/src/ap-upload/apUpload.vue.mjs +4 -1
- package/es/src/ap-upload/apUploadTypes.d.ts +0 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +0 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +0 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +15 -5
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +0 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +5 -1
- package/es/src/ap-upload/hooks/useOss.d.ts +0 -1
- package/es/src/ap-upload/index.d.ts +0 -1
- package/es/src/ap-upload/utils/accept.d.ts +0 -1
- package/es/src/ap-upload/utils/accept.mjs +1 -2
- package/es/src/base-button/button.vue.d.ts +17 -16
- package/es/src/base-button/constants.d.ts +0 -1
- package/es/src/base-button/index.d.ts +55 -55
- package/es/src/base-button/interface.d.ts +0 -1
- package/es/src/basic/arrow.vue.d.ts +2 -3
- package/es/src/basic/help.vue.d.ts +4 -9
- package/es/src/basic/index.d.ts +27 -35
- package/es/src/basic/interface.d.ts +0 -1
- package/es/src/basic/title.vue.d.ts +16 -15
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -3
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +1 -2
- package/es/src/business/ap-export-group/interface.d.ts +0 -1
- package/es/src/business/ap-label/ApLabel.vue.d.ts +17 -16
- package/es/src/business/ap-label/index.d.ts +0 -1
- package/es/src/business/ap-label/interface.d.ts +0 -1
- package/es/src/business/ap-select-layout/index.css +8 -0
- package/es/src/business/ap-select-layout/index.d.ts +0 -1
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +16 -58
- package/es/src/business/ap-status/ApStatus.vue.d.ts +11 -12
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +14 -17
- package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
- package/es/src/business/ap-status/index.d.ts +0 -1
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +18 -17
- package/es/src/business/index.d.ts +213 -248
- package/es/src/business/title/ApTitle.vue.d.ts +19 -18
- package/es/src/button/button.vue.d.ts +25 -0
- package/es/src/button/index.d.ts +7 -7
- package/es/src/check-card/checked.svg.mjs +2 -2
- package/es/src/check-card/context.d.ts +0 -1
- package/es/src/check-card/group.vue.d.ts +21 -20
- package/es/src/check-card/index.d.ts +0 -1
- package/es/src/check-card/index.vue.d.ts +16 -15
- package/es/src/check-card/index.vue2.mjs +45 -49
- package/es/src/check-card/interface.d.ts +0 -1
- package/es/src/check-card/style/index.css +10 -42
- package/es/src/config-provider/config-provider-props.d.ts +22 -23
- package/es/src/config-provider/config-provider.d.ts +59 -204
- package/es/src/config-provider/constants.d.ts +0 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +24 -25
- package/es/src/config-provider/hooks/use-locale.d.ts +0 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +0 -1
- package/es/src/config-provider/index.d.ts +129 -130
- package/es/src/container/collapse/header.vue.d.ts +4 -5
- package/es/src/container/collapse/index.vue.d.ts +5 -6
- package/es/src/container/index.d.ts +26 -26
- package/es/src/container/scroll-container.vue.d.ts +13 -12
- package/es/src/count-down/button.vue.d.ts +11 -12
- package/es/src/count-down/index.d.ts +13 -13
- package/es/src/count-down/input.vue.d.ts +14 -13
- package/es/src/count-down/interface.d.ts +0 -1
- package/es/src/cropper/cropper-avatar.vue.d.ts +12 -13
- package/es/src/cropper/cropper-image.vue.d.ts +12 -13
- package/es/src/cropper/cropper-modal.vue.d.ts +0 -1
- package/es/src/cropper/index.d.ts +63 -63
- package/es/src/cropper/interface.d.ts +0 -1
- package/es/src/description/description.vue.d.ts +1 -2
- package/es/src/description/index.d.ts +10 -10
- package/es/src/description/interface.d.ts +0 -1
- package/es/src/description/use-description.d.ts +0 -1
- package/es/src/design-token/index.d.ts +0 -1
- package/es/src/design-token/index.mjs +4 -2
- package/es/src/dropdown/dropdown.vue.d.ts +18 -17
- package/es/src/dropdown/index.d.ts +18 -18
- package/es/src/dropdown/interface.d.ts +0 -1
- package/es/src/editable-table/form-item.vue.d.ts +14 -915
- package/es/src/editable-table/form-item.vue.mjs +57 -58
- package/es/src/editable-table/hooks/use-get-columns.d.ts +0 -1
- package/es/src/editable-table/index.d.ts +0 -1
- package/es/src/editable-table/index.vue.d.ts +18 -568
- package/es/src/editable-table/index.vue.mjs +54 -55
- package/es/src/editable-table/interface.d.ts +0 -1
- package/es/src/editable-table/style/index.css +1 -21
- package/es/src/editable-table/utils.d.ts +0 -1
- package/es/src/hooks/useControllableValue.d.ts +0 -1
- package/es/src/hooks/useMessage.d.ts +0 -1
- package/es/src/icon/icon.vue.d.ts +12 -12
- package/es/src/icon/icon.vue2.mjs +3 -6
- package/es/src/icon/index.d.ts +36 -36
- package/es/src/icon/svg-icon.vue.d.ts +11 -12
- package/es/src/icon-picker/icon-picker.vue.d.ts +12 -13
- package/es/src/icon-picker/index.d.ts +25 -25
- package/es/src/locale/index.d.ts +0 -1
- package/es/src/locale/lang/en.d.ts +0 -1
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.d.ts +0 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -22
- package/es/src/modal/basic.vue.d.ts +18 -206
- package/es/src/modal/components/modal-close.vue.d.ts +11 -12
- package/es/src/modal/components/modal-footer.vue.d.ts +20 -209
- package/es/src/modal/components/modal-header.vue.d.ts +2 -3
- package/es/src/modal/components/modal-wrapper.vue.d.ts +7 -5
- package/es/src/modal/components/modal-wrapper.vue2.mjs +4 -8
- package/es/src/modal/components/modal.d.ts +11 -201
- package/es/src/modal/hooks/use-moda-full-screen.d.ts +0 -1
- package/es/src/modal/hooks/use-modal-drag.d.ts +0 -1
- package/es/src/modal/hooks/use-modal-drag.mjs +3 -6
- package/es/src/modal/hooks/use-modal.d.ts +0 -1
- package/es/src/modal/hooks/use-modal.mjs +1 -2
- package/es/src/modal/index.d.ts +37 -130
- package/es/src/modal/interface.d.ts +0 -1
- package/es/src/modal/props.d.ts +6 -103
- package/es/src/pro-form/component-map.d.ts +0 -1
- package/es/src/pro-form/components/api-cascader.vue.d.ts +11 -12
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +12 -13
- package/es/src/pro-form/components/api-select.vue.d.ts +15 -14
- package/es/src/pro-form/components/api-transfer.vue.d.ts +14 -15
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +14 -13
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +15 -14
- package/es/src/pro-form/components/api-tree.vue.mjs +1 -2
- package/es/src/pro-form/components/form-action.vue.d.ts +19 -18
- package/es/src/pro-form/components/form-item.vue.d.ts +0 -1
- package/es/src/pro-form/components/interface.d.ts +0 -1
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +11 -12
- package/es/src/pro-form/helper.d.ts +1 -2
- package/es/src/pro-form/helper.mjs +4 -4
- package/es/src/pro-form/hooks/use-advanced.d.ts +0 -1
- package/es/src/pro-form/hooks/use-auto-focus.d.ts +0 -1
- package/es/src/pro-form/hooks/use-component-register.d.ts +0 -1
- package/es/src/pro-form/hooks/use-form-events.d.ts +0 -1
- package/es/src/pro-form/hooks/use-form-events.mjs +11 -11
- package/es/src/pro-form/hooks/use-form-item.d.ts +0 -1
- package/es/src/pro-form/hooks/use-form-values.d.ts +0 -1
- package/es/src/pro-form/hooks/use-form.d.ts +0 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +122 -123
- package/es/src/pro-form/index.d.ts +0 -1
- package/es/src/pro-form/pro-form.vue.d.ts +24 -23
- package/es/src/pro-form/table-form-inner.vue.d.ts +13 -14
- package/es/src/pro-form/table-form.vue.d.ts +12 -13
- package/es/src/pro-form/types/form-item.d.ts +0 -1
- package/es/src/pro-form/types/form.d.ts +0 -1
- package/es/src/pro-form/types/index.d.ts +37 -38
- package/es/src/pro-form/types/table-form.d.ts +0 -1
- package/es/src/pro-table/component-map.d.ts +0 -1
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -4
- package/es/src/pro-table/components/editable/cell-component.d.ts +0 -1
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +7 -8
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +38 -42
- package/es/src/pro-table/components/editable/helper.d.ts +0 -1
- package/es/src/pro-table/components/editable/index.d.ts +0 -1
- package/es/src/pro-table/components/header-cell.vue.d.ts +0 -1
- package/es/src/pro-table/components/settings/column-setting.vue.d.ts +0 -1
- package/es/src/pro-table/components/settings/index.vue.d.ts +0 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +7 -6
- package/es/src/pro-table/components/table-action.vue.mjs +4 -3
- package/es/src/pro-table/components/table-footer.vue.d.ts +19 -20
- package/es/src/pro-table/components/table-header.vue.d.ts +11 -10
- package/es/src/pro-table/components/table-image.vue.d.ts +12 -13
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +15 -16
- package/es/src/pro-table/components/table-title.vue.d.ts +0 -1
- package/es/src/pro-table/const.d.ts +0 -1
- package/es/src/pro-table/directives/click-outside.d.ts +0 -1
- package/es/src/pro-table/helper.d.ts +0 -1
- package/es/src/pro-table/hooks/use-columns.d.ts +0 -1
- package/es/src/pro-table/hooks/use-columns.mjs +3 -6
- package/es/src/pro-table/hooks/use-custom-row.d.ts +0 -1
- package/es/src/pro-table/hooks/use-custom-row.mjs +4 -8
- package/es/src/pro-table/hooks/use-data-source.d.ts +1 -2
- package/es/src/pro-table/hooks/use-data-source.mjs +2 -4
- package/es/src/pro-table/hooks/use-loading.d.ts +0 -1
- package/es/src/pro-table/hooks/use-pagination.d.ts +0 -1
- package/es/src/pro-table/hooks/use-row-selection.d.ts +0 -1
- package/es/src/pro-table/hooks/use-scroll-to.d.ts +0 -1
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -2
- package/es/src/pro-table/hooks/use-table-context.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table-expand.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table-footer.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +1 -2
- package/es/src/pro-table/hooks/use-table-form.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table-header.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table-scroll.d.ts +3 -4
- package/es/src/pro-table/hooks/use-table-scroll.mjs +25 -27
- package/es/src/pro-table/hooks/use-table-style.d.ts +0 -1
- package/es/src/pro-table/hooks/use-table.d.ts +0 -1
- package/es/src/pro-table/interface.d.ts +0 -1
- package/es/src/pro-table/pro-table.vue.d.ts +43 -42
- package/es/src/pro-table/types/pagination.d.ts +0 -1
- package/es/src/pro-table/types/table-action.d.ts +0 -1
- package/es/src/pro-table/types/table.d.ts +0 -1
- package/es/src/prompt/dialog.vue.d.ts +2 -3
- package/es/src/prompt/index.d.ts +0 -1
- package/es/src/prompt/interface.d.ts +0 -1
- package/es/src/prompt/utils.d.ts +2 -2
- package/es/src/scroll-bar/bar-item.d.ts +0 -1
- package/es/src/scroll-bar/bar-item.mjs +2 -4
- package/es/src/scroll-bar/index.d.ts +27 -27
- package/es/src/scroll-bar/interface.d.ts +0 -1
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +18 -17
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +1 -2
- package/es/src/scroll-bar/utils.d.ts +0 -1
- package/es/src/strength-meter/index.d.ts +19 -19
- package/es/src/strength-meter/strength-meter.vue.d.ts +14 -13
- package/es/src/strength-meter/strength-meter.vue2.mjs +1 -2
- package/es/src/tests/wrapper.d.ts +8 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +5 -5
- package/es/src/theme/antd-global-overwrite/admin/steps.css +5 -5
- package/es/src/theme/antd-global-overwrite/aplus/form.css +1 -1
- package/es/src/theme/antd-global-overwrite/aplus/index.css +6 -6
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +5 -5
- package/es/src/theme/ap-action/item.css +10 -25
- package/es/src/theme/ap-field/checkbox.css +7 -0
- package/es/src/theme/ap-field/radio.css +4 -0
- package/es/src/theme/ap-form/ap-form-item.css +6 -6
- package/es/src/theme/ap-select-layout/ap-select-layout.css +8 -0
- package/es/src/theme/ap-table/ap-table.css +1 -21
- package/es/src/theme/check-card/index.css +10 -42
- package/es/src/theme/css-var/index.mjs +83 -19
- package/es/src/theme/editable-table/index.css +1 -21
- package/es/src/transition/collapse-transition.vue.d.ts +4 -3
- package/es/src/transition/create-transition.d.ts +0 -1
- package/es/src/type.d.ts +0 -1
- package/es/src/utils/config-provider-preset.d.ts +16 -17
- package/es/src/utils/index.d.ts +0 -1
- package/es/src/utils/slot.d.ts +0 -1
- package/es/src/utils/slot.mjs +1 -2
- package/es/src/utils/tree.d.ts +0 -1
- package/es/src/utils/tree.mjs +1 -2
- package/es/src/work-order-modal/createWorkOrder.d.ts +0 -1
- package/es/src/work-order-modal/index.d.ts +0 -1
- package/es/src/work-order-modal/interfaces.d.ts +0 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
- package/lib/index.d.ts +0 -1
- package/lib/src/ap-action/group/index.vue.d.ts +12 -13
- package/lib/src/ap-action/index.d.ts +0 -1
- package/lib/src/ap-action/interface.d.ts +0 -1
- package/lib/src/ap-action/item/index.vue.d.ts +16 -15
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +19 -18
- package/lib/src/ap-action/item-modal/index.vue.d.ts +16 -15
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +26 -25
- package/lib/src/ap-action/style/item.css +10 -25
- package/lib/src/ap-custom-column/column-select.vue.d.ts +3 -4
- package/lib/src/ap-custom-column/custom-column.vue.d.ts +3 -4
- package/lib/src/ap-custom-column/index.d.ts +0 -1
- package/lib/src/ap-custom-column/interfaces.d.ts +0 -1
- package/lib/src/ap-custom-column/storage.js +1 -1
- package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +0 -1
- package/lib/src/ap-custom-column/utils.d.ts +0 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -10
- package/lib/src/ap-descriptions/formatter/index.d.ts +0 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +14 -12
- package/lib/src/ap-descriptions/helper.d.ts +0 -1
- package/lib/src/ap-descriptions/index.d.ts +0 -1
- package/lib/src/ap-descriptions/interface.d.ts +0 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +18 -17
- package/lib/src/ap-download/hooks/index.d.ts +0 -1
- package/lib/src/ap-download/index.d.ts +0 -1
- package/lib/src/ap-download/interface.d.ts +0 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +0 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +11 -12
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/style.css +7 -0
- package/lib/src/ap-field/date/constant.d.ts +0 -1
- package/lib/src/ap-field/date/helper.d.ts +0 -1
- package/lib/src/ap-field/date/index.vue.d.ts +25 -24
- package/lib/src/ap-field/date-range/index.vue.d.ts +23 -22
- package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +3 -3
- package/lib/src/ap-field/index.d.ts +0 -1
- package/lib/src/ap-field/interface.d.ts +2 -1
- package/lib/src/ap-field/number/helper.d.ts +0 -1
- package/lib/src/ap-field/number/index.vue.d.ts +14 -13
- package/lib/src/ap-field/radio/helper.d.ts +0 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +14 -12
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/style.css +4 -0
- package/lib/src/ap-field/rate/index.vue.d.ts +19 -18
- package/lib/src/ap-field/segmented/index.vue.d.ts +23 -22
- package/lib/src/ap-field/select/index.vue.d.ts +20 -19
- package/lib/src/ap-field/slider/index.vue.d.ts +14 -13
- package/lib/src/ap-field/switch/index.vue.d.ts +15 -14
- package/lib/src/ap-field/text/index.d.ts +0 -1
- package/lib/src/ap-field/text/index.vue.d.ts +17 -16
- package/lib/src/ap-field/text/input-password-props.d.ts +0 -1
- package/lib/src/ap-field/text/password.vue.d.ts +18 -17
- package/lib/src/ap-field/text-area/index.vue.d.ts +13 -14
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +0 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -18
- package/lib/src/ap-form/ap-form-item.vue.d.ts +15 -14
- package/lib/src/ap-form/ap-form-list.vue.d.ts +9 -8
- package/lib/src/ap-form/ap-form.vue.d.ts +22 -21
- package/lib/src/ap-form/constant.d.ts +0 -1
- package/lib/src/ap-form/context.d.ts +0 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +0 -1
- package/lib/src/ap-form/index.d.ts +0 -1
- package/lib/src/ap-form/interface.d.ts +0 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -16
- package/lib/src/ap-form/items/date/index.vue.d.ts +38 -37
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +38 -37
- package/lib/src/ap-form/items/index.d.ts +0 -1
- package/lib/src/ap-form/items/interface.d.ts +0 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -30
- package/lib/src/ap-form/items/radio/index.vue.d.ts +17 -16
- package/lib/src/ap-form/items/select/index.vue.d.ts +41 -40
- package/lib/src/ap-form/items/switch/index.vue.d.ts +25 -24
- package/lib/src/ap-form/items/text/index.d.ts +0 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +31 -30
- package/lib/src/ap-form/items/text/password.vue.d.ts +31 -30
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +18 -17
- package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -29
- package/lib/src/ap-form/search-form/index.vue.d.ts +23 -22
- package/lib/src/ap-form/search-form/utils.d.ts +0 -1
- package/lib/src/ap-form/style/ap-form-item.css +6 -6
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -19
- package/lib/src/ap-layout/index.d.ts +0 -1
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +0 -1
- package/lib/src/ap-list/index.d.ts +0 -1
- package/lib/src/ap-list/index.vue.d.ts +9 -122
- package/lib/src/ap-list/interface.d.ts +0 -1
- package/lib/src/ap-modal/index.d.ts +0 -1
- package/lib/src/ap-modal/type.d.ts +0 -1
- package/lib/src/ap-modal/utils/createModal.d.ts +0 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +16 -2222
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +11 -12
- package/lib/src/ap-table/components/interface.d.ts +0 -1
- package/lib/src/ap-table/components/status/index.vue.d.ts +2 -3
- package/lib/src/ap-table/constants.d.ts +4816 -6356
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +0 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +0 -1
- package/lib/src/ap-table/index.d.ts +0 -1
- package/lib/src/ap-table/interface.d.ts +0 -1
- package/lib/src/ap-table/style/ap-table.css +1 -21
- package/lib/src/ap-table/utils.d.ts +1 -2
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +14 -13
- package/lib/src/ap-tag/ap-tag.vue.d.ts +13 -14
- package/lib/src/ap-tag/index.d.ts +0 -1
- package/lib/src/ap-tag/interface.d.ts +0 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +2 -3
- package/lib/src/ap-upload/apUploadTypes.d.ts +0 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +0 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +0 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +0 -1
- package/lib/src/ap-upload/hooks/useOss.d.ts +0 -1
- package/lib/src/ap-upload/index.d.ts +0 -1
- package/lib/src/ap-upload/utils/accept.d.ts +0 -1
- package/lib/src/base-button/button.vue.d.ts +17 -16
- package/lib/src/base-button/constants.d.ts +0 -1
- package/lib/src/base-button/index.d.ts +55 -55
- package/lib/src/base-button/interface.d.ts +0 -1
- package/lib/src/basic/arrow.vue.d.ts +2 -3
- package/lib/src/basic/help.vue.d.ts +4 -9
- package/lib/src/basic/index.d.ts +27 -35
- package/lib/src/basic/interface.d.ts +0 -1
- package/lib/src/basic/title.vue.d.ts +16 -15
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -3
- package/lib/src/business/ap-export-group/interface.d.ts +0 -1
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +17 -16
- package/lib/src/business/ap-label/index.d.ts +0 -1
- package/lib/src/business/ap-label/interface.d.ts +0 -1
- package/lib/src/business/ap-select-layout/index.css +8 -0
- package/lib/src/business/ap-select-layout/index.d.ts +0 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +16 -58
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +11 -12
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +14 -17
- package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/ap-status/index.d.ts +0 -1
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +18 -17
- package/lib/src/business/index.d.ts +213 -248
- package/lib/src/business/title/ApTitle.vue.d.ts +19 -18
- package/lib/src/button/button.vue.d.ts +25 -0
- package/lib/src/button/index.d.ts +7 -7
- package/lib/src/check-card/checked.svg.js +1 -1
- package/lib/src/check-card/context.d.ts +0 -1
- package/lib/src/check-card/group.vue.d.ts +21 -20
- package/lib/src/check-card/index.d.ts +0 -1
- package/lib/src/check-card/index.vue.d.ts +16 -15
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/interface.d.ts +0 -1
- package/lib/src/check-card/style/index.css +10 -42
- package/lib/src/config-provider/config-provider-props.d.ts +22 -23
- package/lib/src/config-provider/config-provider.d.ts +59 -204
- package/lib/src/config-provider/constants.d.ts +0 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +24 -25
- package/lib/src/config-provider/hooks/use-locale.d.ts +0 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +0 -1
- package/lib/src/config-provider/index.d.ts +129 -130
- package/lib/src/container/collapse/header.vue.d.ts +4 -5
- package/lib/src/container/collapse/index.vue.d.ts +5 -6
- package/lib/src/container/index.d.ts +26 -26
- package/lib/src/container/scroll-container.vue.d.ts +13 -12
- package/lib/src/count-down/button.vue.d.ts +11 -12
- package/lib/src/count-down/index.d.ts +13 -13
- package/lib/src/count-down/input.vue.d.ts +14 -13
- package/lib/src/count-down/interface.d.ts +0 -1
- package/lib/src/cropper/cropper-avatar.vue.d.ts +12 -13
- package/lib/src/cropper/cropper-image.vue.d.ts +12 -13
- package/lib/src/cropper/cropper-modal.vue.d.ts +0 -1
- package/lib/src/cropper/index.d.ts +63 -63
- package/lib/src/cropper/interface.d.ts +0 -1
- package/lib/src/description/description.vue.d.ts +1 -2
- package/lib/src/description/index.d.ts +10 -10
- package/lib/src/description/interface.d.ts +0 -1
- package/lib/src/description/use-description.d.ts +0 -1
- package/lib/src/design-token/index.d.ts +0 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/dropdown/dropdown.vue.d.ts +18 -17
- package/lib/src/dropdown/index.d.ts +18 -18
- package/lib/src/dropdown/interface.d.ts +0 -1
- package/lib/src/editable-table/form-item.vue.d.ts +14 -915
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +0 -1
- package/lib/src/editable-table/index.d.ts +0 -1
- package/lib/src/editable-table/index.vue.d.ts +18 -568
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +0 -1
- package/lib/src/editable-table/style/index.css +1 -21
- package/lib/src/editable-table/utils.d.ts +0 -1
- package/lib/src/hooks/useControllableValue.d.ts +0 -1
- package/lib/src/hooks/useMessage.d.ts +0 -1
- package/lib/src/icon/icon.vue.d.ts +12 -12
- package/lib/src/icon/index.d.ts +36 -36
- package/lib/src/icon/svg-icon.vue.d.ts +11 -12
- package/lib/src/icon-picker/icon-picker.vue.d.ts +12 -13
- package/lib/src/icon-picker/index.d.ts +25 -25
- package/lib/src/locale/index.d.ts +0 -1
- package/lib/src/locale/lang/en.d.ts +0 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.d.ts +0 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +18 -206
- package/lib/src/modal/components/modal-close.vue.d.ts +11 -12
- package/lib/src/modal/components/modal-footer.vue.d.ts +20 -209
- package/lib/src/modal/components/modal-header.vue.d.ts +2 -3
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +7 -5
- package/lib/src/modal/components/modal.d.ts +11 -201
- package/lib/src/modal/hooks/use-moda-full-screen.d.ts +0 -1
- package/lib/src/modal/hooks/use-modal-drag.d.ts +0 -1
- package/lib/src/modal/hooks/use-modal.d.ts +0 -1
- package/lib/src/modal/index.d.ts +37 -130
- package/lib/src/modal/interface.d.ts +0 -1
- package/lib/src/modal/props.d.ts +6 -103
- package/lib/src/pro-form/component-map.d.ts +0 -1
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +11 -12
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +12 -13
- package/lib/src/pro-form/components/api-select.vue.d.ts +15 -14
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +14 -15
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +14 -13
- package/lib/src/pro-form/components/api-tree.vue.d.ts +15 -14
- package/lib/src/pro-form/components/form-action.vue.d.ts +19 -18
- package/lib/src/pro-form/components/form-item.vue.d.ts +0 -1
- package/lib/src/pro-form/components/interface.d.ts +0 -1
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +11 -12
- package/lib/src/pro-form/helper.d.ts +1 -2
- package/lib/src/pro-form/helper.js +1 -1
- package/lib/src/pro-form/hooks/use-advanced.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-auto-focus.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-form-events.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-form-events.js +1 -1
- package/lib/src/pro-form/hooks/use-form-item.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-form-values.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-form.d.ts +0 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +122 -123
- package/lib/src/pro-form/index.d.ts +0 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +24 -23
- package/lib/src/pro-form/table-form-inner.vue.d.ts +13 -14
- package/lib/src/pro-form/table-form.vue.d.ts +12 -13
- package/lib/src/pro-form/types/form-item.d.ts +0 -1
- package/lib/src/pro-form/types/form.d.ts +0 -1
- package/lib/src/pro-form/types/index.d.ts +37 -38
- package/lib/src/pro-form/types/table-form.d.ts +0 -1
- package/lib/src/pro-table/component-map.d.ts +0 -1
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -4
- package/lib/src/pro-table/components/editable/cell-component.d.ts +0 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +7 -8
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/helper.d.ts +0 -1
- package/lib/src/pro-table/components/editable/index.d.ts +0 -1
- package/lib/src/pro-table/components/header-cell.vue.d.ts +0 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +0 -1
- package/lib/src/pro-table/components/settings/index.vue.d.ts +0 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +7 -6
- package/lib/src/pro-table/components/table-footer.vue.d.ts +19 -20
- package/lib/src/pro-table/components/table-header.vue.d.ts +11 -10
- package/lib/src/pro-table/components/table-image.vue.d.ts +12 -13
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +15 -16
- package/lib/src/pro-table/components/table-title.vue.d.ts +0 -1
- package/lib/src/pro-table/const.d.ts +0 -1
- package/lib/src/pro-table/directives/click-outside.d.ts +0 -1
- package/lib/src/pro-table/helper.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-columns.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-custom-row.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +1 -2
- package/lib/src/pro-table/hooks/use-loading.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-pagination.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-scroll-to.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-context.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-expand.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-footer.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-form.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-header.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table-scroll.d.ts +3 -4
- package/lib/src/pro-table/hooks/use-table-scroll.js +1 -1
- package/lib/src/pro-table/hooks/use-table-style.d.ts +0 -1
- package/lib/src/pro-table/hooks/use-table.d.ts +0 -1
- package/lib/src/pro-table/interface.d.ts +0 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +43 -42
- package/lib/src/pro-table/types/pagination.d.ts +0 -1
- package/lib/src/pro-table/types/table-action.d.ts +0 -1
- package/lib/src/pro-table/types/table.d.ts +0 -1
- package/lib/src/prompt/dialog.vue.d.ts +2 -3
- package/lib/src/prompt/index.d.ts +0 -1
- package/lib/src/prompt/interface.d.ts +0 -1
- package/lib/src/prompt/utils.d.ts +2 -2
- package/lib/src/scroll-bar/bar-item.d.ts +0 -1
- package/lib/src/scroll-bar/index.d.ts +27 -27
- package/lib/src/scroll-bar/interface.d.ts +0 -1
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +18 -17
- package/lib/src/scroll-bar/utils.d.ts +0 -1
- package/lib/src/strength-meter/index.d.ts +19 -19
- package/lib/src/strength-meter/strength-meter.vue.d.ts +14 -13
- package/lib/src/tests/wrapper.d.ts +8 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +5 -5
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +5 -5
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +1 -1
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +6 -6
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +5 -5
- package/lib/src/theme/ap-action/item.css +10 -25
- package/lib/src/theme/ap-field/checkbox.css +7 -0
- package/lib/src/theme/ap-field/radio.css +4 -0
- package/lib/src/theme/ap-form/ap-form-item.css +6 -6
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +8 -0
- package/lib/src/theme/ap-table/ap-table.css +1 -21
- package/lib/src/theme/check-card/index.css +10 -42
- package/lib/src/theme/css-var/index.js +1 -1
- package/lib/src/theme/editable-table/index.css +1 -21
- package/lib/src/transition/collapse-transition.vue.d.ts +4 -3
- package/lib/src/transition/create-transition.d.ts +0 -1
- package/lib/src/type.d.ts +0 -1
- package/lib/src/utils/config-provider-preset.d.ts +16 -17
- package/lib/src/utils/index.d.ts +0 -1
- package/lib/src/utils/slot.d.ts +0 -1
- package/lib/src/utils/tree.d.ts +0 -1
- package/lib/src/work-order-modal/createWorkOrder.d.ts +0 -1
- package/lib/src/work-order-modal/index.d.ts +0 -1
- package/lib/src/work-order-modal/interfaces.d.ts +0 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
|
|
3
2
|
export type ComponentType = 'Input' | 'InputNumber' | 'Select' | 'ApiSelect' | 'AutoComplete' | 'ApiTreeSelect' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'RadioGroup' | 'RadioButtonGroup' | 'ApiRadioGroup';
|
|
4
3
|
declare const componentMap: Map<ComponentType, Component>;
|
|
5
4
|
export declare function add(compName: ComponentType, component: Component): void;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: DefineComponent<{
|
|
3
6
|
title: {
|
|
4
7
|
type: StringConstructor;
|
|
5
8
|
default: string;
|
|
@@ -11,9 +14,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
11
14
|
};
|
|
12
15
|
}>>, {
|
|
13
16
|
title: string;
|
|
14
|
-
}, {}
|
|
15
|
-
|
|
16
|
-
}>;
|
|
17
|
+
}, {}>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
19
|
export default _default;
|
|
18
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
21
|
new (): {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, PropType, DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { BasicColumn } from '../../types/table';
|
|
3
3
|
import { Recordable } from '../../../type';
|
|
4
|
-
import { ComponentType } from '
|
|
5
|
-
|
|
4
|
+
import { ComponentType } from '../../component-map';
|
|
6
5
|
declare const _default: DefineComponent<{
|
|
7
6
|
value: {
|
|
8
7
|
type: PropType<string | number | boolean | Record<string, any>>;
|
|
@@ -24,12 +23,12 @@ declare const _default: DefineComponent<{
|
|
|
24
23
|
ns: {
|
|
25
24
|
namespace: ComputedRef<string>;
|
|
26
25
|
b: (blockSuffix?: string) => string;
|
|
27
|
-
e: (element?: string
|
|
28
|
-
m: (modifier?: string
|
|
29
|
-
be: (blockSuffix?: string
|
|
30
|
-
em: (element?: string
|
|
31
|
-
bm: (blockSuffix?: string
|
|
32
|
-
bem: (blockSuffix?: string
|
|
26
|
+
e: (element?: string) => string;
|
|
27
|
+
m: (modifier?: string) => string;
|
|
28
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
29
|
+
em: (element?: string, modifier?: string) => string;
|
|
30
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
31
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
33
32
|
is: {
|
|
34
33
|
(name: string, state: boolean | undefined): string;
|
|
35
34
|
(name: string): string;
|
|
@@ -9,7 +9,7 @@ import { isBoolean as p, set as U, pick as Re } from "lodash-unified";
|
|
|
9
9
|
import { treeToList as Ve } from "../../../utils/tree.mjs";
|
|
10
10
|
import { Spin as X } from "ant-design-vue";
|
|
11
11
|
import { parseRowKey as we } from "../../helper.mjs";
|
|
12
|
-
import { isType as
|
|
12
|
+
import { isType as O, isFunction as k, isArray as P } from "@fruits-chain/utils";
|
|
13
13
|
import "../style/editable-cell.css";
|
|
14
14
|
import { useLocale as xe } from "../../../config-provider/hooks/use-locale.mjs";
|
|
15
15
|
import { useNamespace as Ee } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -43,7 +43,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(n) {
|
|
46
|
-
const a = pe(), R = v(!1), j = v(),
|
|
46
|
+
const a = pe(), R = v(!1), j = v(), I = v(!1), g = v(""), D = v([]), u = v(n.value), B = v(n.value), N = v(!1), {
|
|
47
47
|
t: $
|
|
48
48
|
} = xe(), Y = Ee("editable-cell"), h = f(() => {
|
|
49
49
|
var e;
|
|
@@ -51,7 +51,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
51
51
|
}), Z = f(() => {
|
|
52
52
|
var e;
|
|
53
53
|
return (e = n.column) == null ? void 0 : e.editRule;
|
|
54
|
-
}), ee = f(() => l(g) && l(
|
|
54
|
+
}), ee = f(() => l(g) && l(I)), L = f(() => {
|
|
55
55
|
const e = l(h);
|
|
56
56
|
return ["Checkbox", "Switch"].includes(e);
|
|
57
57
|
}), V = f(() => {
|
|
@@ -63,7 +63,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
63
63
|
unCheckedValue: o
|
|
64
64
|
} = t, c = e ? "checked" : "value", s = l(u);
|
|
65
65
|
let r = s;
|
|
66
|
-
e && (typeof i < "u" ? r = s === i ? i : o : typeof o < "u" ? r = s === o ? o : i : r =
|
|
66
|
+
e && (typeof i < "u" ? r = s === i ? i : o : typeof o < "u" ? r = s === o ? o : i : r = O("Number")(s) || p(s) ? s : !!s);
|
|
67
67
|
const {
|
|
68
68
|
record: d,
|
|
69
69
|
column: b,
|
|
@@ -83,21 +83,19 @@ const Le = /* @__PURE__ */ he({
|
|
|
83
83
|
...y,
|
|
84
84
|
...t,
|
|
85
85
|
[c]: r,
|
|
86
|
-
disabled: l(
|
|
86
|
+
disabled: l(T)
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
89
|
function te(e, t, i) {
|
|
90
|
-
if (!e)
|
|
91
|
-
return !1;
|
|
90
|
+
if (!e) return !1;
|
|
92
91
|
const {
|
|
93
92
|
key: o,
|
|
94
93
|
dataIndex: c
|
|
95
94
|
} = t;
|
|
96
|
-
if (!o && !c)
|
|
97
|
-
return;
|
|
95
|
+
if (!o && !c) return;
|
|
98
96
|
U(e, c || o, i);
|
|
99
97
|
}
|
|
100
|
-
const
|
|
98
|
+
const T = f(() => {
|
|
101
99
|
const {
|
|
102
100
|
editDynamicDisabled: e
|
|
103
101
|
} = n.column;
|
|
@@ -122,7 +120,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
122
120
|
const i = l(h);
|
|
123
121
|
if (!i.includes("Select") && !i.includes("Radio"))
|
|
124
122
|
return t;
|
|
125
|
-
const c = (((s = l(V)) == null ? void 0 : s.options) ?? (l(
|
|
123
|
+
const c = (((s = l(V)) == null ? void 0 : s.options) ?? (l(D) || [])).find((r) => `${r.value}` == `${t}`);
|
|
126
124
|
return (c == null ? void 0 : c.label) ?? t;
|
|
127
125
|
}), ie = f(() => l(L) || l(C) ? {} : {
|
|
128
126
|
width: "calc(100% - 48px)"
|
|
@@ -147,7 +145,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
147
145
|
});
|
|
148
146
|
function ce(e) {
|
|
149
147
|
var t;
|
|
150
|
-
e.stopPropagation(), !(l(C) || l((t = n.column) == null ? void 0 : t.editRow) || l(
|
|
148
|
+
e.stopPropagation(), !(l(C) || l((t = n.column) == null ? void 0 : t.editRow) || l(T)) && (g.value = "", R.value = !0, ve(() => {
|
|
151
149
|
var o;
|
|
152
150
|
const i = l(j);
|
|
153
151
|
(o = i == null ? void 0 : i.focus) == null || o.call(i);
|
|
@@ -156,15 +154,15 @@ const Le = /* @__PURE__ */ he({
|
|
|
156
154
|
async function oe(e) {
|
|
157
155
|
var o, c;
|
|
158
156
|
const t = l(h);
|
|
159
|
-
e ? t === "Checkbox" ? u.value = e.target.checked : t === "Switch" ? u.value = e : e != null && e.target && Reflect.has(e.target, "value") ? u.value = e.target.value : (
|
|
157
|
+
e ? t === "Checkbox" ? u.value = e.target.checked : t === "Switch" ? u.value = e : e != null && e.target && Reflect.has(e.target, "value") ? u.value = e.target.value : (O("String")(e) || p(e) || O("Number")(e) || P(e)) && (u.value = e) : u.value = e;
|
|
160
158
|
const i = (o = l(V)) == null ? void 0 : o.onChangeTemp;
|
|
161
159
|
i && k(i) && i(...arguments), (c = a.emit) == null || c.call(a, "edit-change", {
|
|
162
160
|
column: n.column,
|
|
163
161
|
value: l(u),
|
|
164
162
|
record: ge(n.record)
|
|
165
|
-
}),
|
|
163
|
+
}), F();
|
|
166
164
|
}
|
|
167
|
-
async function
|
|
165
|
+
async function F() {
|
|
168
166
|
const {
|
|
169
167
|
column: e,
|
|
170
168
|
record: t
|
|
@@ -172,35 +170,33 @@ const Le = /* @__PURE__ */ he({
|
|
|
172
170
|
editRule: i
|
|
173
171
|
} = e, o = l(u);
|
|
174
172
|
if (i) {
|
|
175
|
-
if (p(i) && !o && !
|
|
176
|
-
|
|
173
|
+
if (p(i) && !o && !O("Number")(o)) {
|
|
174
|
+
I.value = !0;
|
|
177
175
|
const c = l(h);
|
|
178
176
|
return g.value = Q(c, $), !1;
|
|
179
177
|
}
|
|
180
178
|
if (k(i)) {
|
|
181
179
|
const c = await i(o, t);
|
|
182
|
-
return c ? (g.value = c,
|
|
180
|
+
return c ? (g.value = c, I.value = !0, !1) : (g.value = "", !0);
|
|
183
181
|
}
|
|
184
182
|
}
|
|
185
183
|
return g.value = "", !0;
|
|
186
184
|
}
|
|
187
185
|
async function w(e = !0, t = !0) {
|
|
188
186
|
var x;
|
|
189
|
-
if (t && !await
|
|
187
|
+
if (t && !await F())
|
|
190
188
|
return !1;
|
|
191
189
|
const {
|
|
192
190
|
column: i,
|
|
193
191
|
index: o,
|
|
194
192
|
record: c
|
|
195
193
|
} = n;
|
|
196
|
-
if (!c)
|
|
197
|
-
return !1;
|
|
194
|
+
if (!c) return !1;
|
|
198
195
|
const {
|
|
199
196
|
key: s,
|
|
200
197
|
dataIndex: r
|
|
201
198
|
} = i, d = l(u);
|
|
202
|
-
if (!s && !r)
|
|
203
|
-
return;
|
|
199
|
+
if (!s && !r) return;
|
|
204
200
|
const b = r || s;
|
|
205
201
|
if (!c.editable) {
|
|
206
202
|
const {
|
|
@@ -211,22 +207,22 @@ const Le = /* @__PURE__ */ he({
|
|
|
211
207
|
rowKey: de
|
|
212
208
|
} = l(E), fe = we(de, c);
|
|
213
209
|
if (y && k(y)) {
|
|
214
|
-
|
|
215
|
-
const me = S.map((
|
|
216
|
-
let
|
|
210
|
+
N.value = !0;
|
|
211
|
+
const me = S.map((W) => W.dataIndex).filter((W) => !!W);
|
|
212
|
+
let A = !0;
|
|
217
213
|
try {
|
|
218
|
-
|
|
214
|
+
A = await y({
|
|
219
215
|
record: Re(c, [fe, ...me]),
|
|
220
216
|
index: o,
|
|
221
217
|
key: b,
|
|
222
218
|
value: d
|
|
223
219
|
});
|
|
224
220
|
} catch {
|
|
225
|
-
|
|
221
|
+
A = !1;
|
|
226
222
|
} finally {
|
|
227
|
-
|
|
223
|
+
N.value = !1;
|
|
228
224
|
}
|
|
229
|
-
if (
|
|
225
|
+
if (A === !1)
|
|
230
226
|
return;
|
|
231
227
|
}
|
|
232
228
|
}
|
|
@@ -244,7 +240,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
244
240
|
function ae() {
|
|
245
241
|
w();
|
|
246
242
|
}
|
|
247
|
-
function
|
|
243
|
+
function K() {
|
|
248
244
|
var s;
|
|
249
245
|
R.value = !1, u.value = B.value;
|
|
250
246
|
const {
|
|
@@ -266,7 +262,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
266
262
|
var t;
|
|
267
263
|
if ((t = n.column) != null && t.editable || l(C))
|
|
268
264
|
return;
|
|
269
|
-
l(h).includes("Input") &&
|
|
265
|
+
l(h).includes("Input") && K();
|
|
270
266
|
}
|
|
271
267
|
function re(e) {
|
|
272
268
|
const {
|
|
@@ -284,20 +280,20 @@ const Le = /* @__PURE__ */ he({
|
|
|
284
280
|
r = r.map((d) => ({
|
|
285
281
|
label: d[o],
|
|
286
282
|
value: d[c]
|
|
287
|
-
})),
|
|
283
|
+
})), D.value = r;
|
|
288
284
|
} else
|
|
289
|
-
|
|
285
|
+
D.value = e;
|
|
290
286
|
}
|
|
291
|
-
function
|
|
287
|
+
function M(e, t) {
|
|
292
288
|
var i;
|
|
293
|
-
n.record && (
|
|
289
|
+
n.record && (P(n.record[e]) ? (i = n.record[e]) == null || i.push(t) : n.record[e] = [t]);
|
|
294
290
|
}
|
|
295
|
-
return n.record && (
|
|
291
|
+
return n.record && (M("submitCbs", w), M("validCbs", F), M("cancelCbs", K), n.column.dataIndex && (n.record.editValueRefs || (n.record.editValueRefs = {}), n.record.editValueRefs[n.column.dataIndex] = u), n.record.onCancelEdit = () => {
|
|
296
292
|
var e, t;
|
|
297
|
-
|
|
293
|
+
P((e = n.record) == null ? void 0 : e.cancelCbs) && ((t = n.record) == null || t.cancelCbs.forEach((i) => i()));
|
|
298
294
|
}, n.record.onSubmitEdit = async () => {
|
|
299
295
|
var e, t, i, o, c;
|
|
300
|
-
if (
|
|
296
|
+
if (P((e = n.record) == null ? void 0 : e.submitCbs))
|
|
301
297
|
return (i = (t = n.record) == null ? void 0 : t.onValid) != null && i.call(t) ? ((((o = n.record) == null ? void 0 : o.submitCbs) || []).forEach((r) => r(!1, !1)), (c = a.emit) == null || c.call(a, "edit-row-end"), !0) : void 0;
|
|
302
298
|
}), {
|
|
303
299
|
isEdit: R,
|
|
@@ -306,7 +302,7 @@ const Le = /* @__PURE__ */ he({
|
|
|
306
302
|
currentValueRef: u,
|
|
307
303
|
handleSubmit: w,
|
|
308
304
|
handleChange: oe,
|
|
309
|
-
handleCancel:
|
|
305
|
+
handleCancel: K,
|
|
310
306
|
elRef: j,
|
|
311
307
|
getComponent: h,
|
|
312
308
|
getRule: Z,
|
|
@@ -321,8 +317,8 @@ const Le = /* @__PURE__ */ he({
|
|
|
321
317
|
getValues: ne,
|
|
322
318
|
handleEnter: se,
|
|
323
319
|
handleSubmitClick: ae,
|
|
324
|
-
spinning:
|
|
325
|
-
getDisable:
|
|
320
|
+
spinning: N,
|
|
321
|
+
getDisable: T
|
|
326
322
|
};
|
|
327
323
|
},
|
|
328
324
|
render() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
|
|
3
2
|
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
3
|
"columns-change": (...args: any[]) => void;
|
|
5
4
|
}, string, PublicProps, Readonly< ExtractPropTypes<{}>> & {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ActionItem } from '../types/table-action';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
more?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: DefineComponent<{
|
|
5
7
|
actions: {
|
|
6
8
|
type: PropType<ActionItem[]>;
|
|
7
9
|
default: null;
|
|
@@ -42,14 +44,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
42
44
|
default: boolean;
|
|
43
45
|
};
|
|
44
46
|
}>>, {
|
|
45
|
-
actions: ActionItem[];
|
|
46
47
|
outside: boolean;
|
|
48
|
+
actions: ActionItem[];
|
|
47
49
|
dropDownActions: ActionItem[];
|
|
48
50
|
divider: boolean;
|
|
49
51
|
stopButtonPropagation: boolean;
|
|
50
|
-
}, {}
|
|
51
|
-
|
|
52
|
-
}>;
|
|
52
|
+
}, {}>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
54
|
export default _default;
|
|
54
55
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
56
|
new (): {
|
|
@@ -74,7 +74,9 @@ const me = /* @__PURE__ */ O({
|
|
|
74
74
|
});
|
|
75
75
|
}), L = y(() => {
|
|
76
76
|
var s;
|
|
77
|
-
const e = (((s = l == null ? void 0 : l.getColumns) == null ? void 0 : s.call(l)) || []).find(
|
|
77
|
+
const e = (((s = l == null ? void 0 : l.getColumns) == null ? void 0 : s.call(l)) || []).find(
|
|
78
|
+
(o) => o.flag === j
|
|
79
|
+
);
|
|
78
80
|
return (e == null ? void 0 : e.align) ?? "left";
|
|
79
81
|
});
|
|
80
82
|
function $(t) {
|
|
@@ -85,8 +87,7 @@ const me = /* @__PURE__ */ O({
|
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
89
|
function M(t) {
|
|
88
|
-
if (!m.stopButtonPropagation)
|
|
89
|
-
return;
|
|
90
|
+
if (!m.stopButtonPropagation) return;
|
|
90
91
|
t.composedPath().find((o) => {
|
|
91
92
|
var r;
|
|
92
93
|
return ((r = o.tagName) == null ? void 0 : r.toUpperCase()) === "BUTTON";
|
|
@@ -2,21 +2,20 @@ import { BasicTableProps } from '../types/table';
|
|
|
2
2
|
import { Fn, Recordable } from '../../type';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rowKey?: BasicTableProps['rowKey'];
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
|
+
summaryFunc?: Fn | null;
|
|
7
|
+
summaryData?: Recordable[] | null;
|
|
8
|
+
scroll?: BasicTableProps["scroll"];
|
|
9
|
+
rowKey?: BasicTableProps["rowKey"];
|
|
11
10
|
}>, {
|
|
12
11
|
summaryFunc: null;
|
|
13
12
|
summaryData: null;
|
|
14
13
|
rowKey: string;
|
|
15
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
16
|
-
summaryFunc?: Fn
|
|
17
|
-
summaryData?: Recordable[] | null
|
|
18
|
-
scroll?: BasicTableProps[
|
|
19
|
-
rowKey?: BasicTableProps[
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
|
+
summaryFunc?: Fn | null;
|
|
16
|
+
summaryData?: Recordable[] | null;
|
|
17
|
+
scroll?: BasicTableProps["scroll"];
|
|
18
|
+
rowKey?: BasicTableProps["rowKey"];
|
|
20
19
|
}>, {
|
|
21
20
|
summaryFunc: null;
|
|
22
21
|
summaryData: null;
|
|
@@ -27,15 +26,6 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
27
26
|
summaryData: Recordable[] | null;
|
|
28
27
|
}, {}>;
|
|
29
28
|
export default _default;
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
29
|
type __VLS_WithDefaults<P, D> = {
|
|
40
30
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
31
|
default: D[K];
|
|
@@ -44,3 +34,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
44
34
|
type __VLS_Prettify<T> = {
|
|
45
35
|
[K in keyof T]: T[K];
|
|
46
36
|
} & {};
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToOption<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { TableSetting } from '../types/table';
|
|
1
|
+
import { TableSetting, TableActionType } from '../types/table';
|
|
2
2
|
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
headerTop?(_: {}): any;
|
|
5
|
+
tableTitle?(_: {}): any;
|
|
6
|
+
toolbar?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: DefineComponent<{
|
|
5
9
|
title: {
|
|
6
10
|
type: PropType<string | ((data: any) => string)>;
|
|
7
11
|
};
|
|
@@ -16,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
16
20
|
default: string;
|
|
17
21
|
};
|
|
18
22
|
clearSelectedRowKeys: {
|
|
19
|
-
type: PropType<
|
|
23
|
+
type: PropType<TableActionType["clearSelectedRowKeys"]>;
|
|
20
24
|
};
|
|
21
25
|
count: {
|
|
22
26
|
type: NumberConstructor;
|
|
@@ -43,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
43
47
|
default: string;
|
|
44
48
|
};
|
|
45
49
|
clearSelectedRowKeys: {
|
|
46
|
-
type: PropType<
|
|
50
|
+
type: PropType<TableActionType["clearSelectedRowKeys"]>;
|
|
47
51
|
};
|
|
48
52
|
count: {
|
|
49
53
|
type: NumberConstructor;
|
|
@@ -60,11 +64,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
60
64
|
showTableSetting: boolean;
|
|
61
65
|
titleHelpMessage: string | string[];
|
|
62
66
|
showSelectionBar: boolean;
|
|
63
|
-
}, {}
|
|
64
|
-
|
|
65
|
-
tableTitle?(_: {}): any;
|
|
66
|
-
toolbar?(_: {}): any;
|
|
67
|
-
}>;
|
|
67
|
+
}, {}>;
|
|
68
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
68
69
|
export default _default;
|
|
69
70
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
71
|
new (): {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
2
|
type TableImageProps = {
|
|
4
3
|
imgList?: string[];
|
|
5
4
|
size?: number;
|
|
@@ -9,13 +8,13 @@ type TableImageProps = {
|
|
|
9
8
|
srcPrefix?: string;
|
|
10
9
|
fallback?: string;
|
|
11
10
|
};
|
|
12
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<
|
|
11
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TableImageProps>, {
|
|
13
12
|
size: number;
|
|
14
13
|
showBadge: boolean;
|
|
15
14
|
margin: number;
|
|
16
15
|
srcPrefix: string;
|
|
17
16
|
fallback: string;
|
|
18
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
17
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TableImageProps>, {
|
|
19
18
|
size: number;
|
|
20
19
|
showBadge: boolean;
|
|
21
20
|
margin: number;
|
|
@@ -24,20 +23,11 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
24
23
|
}>>>, {
|
|
25
24
|
size: number;
|
|
26
25
|
margin: number;
|
|
27
|
-
fallback: string;
|
|
28
26
|
showBadge: boolean;
|
|
29
27
|
srcPrefix: string;
|
|
28
|
+
fallback: string;
|
|
30
29
|
}, {}>;
|
|
31
30
|
export default _default;
|
|
32
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
-
} : {
|
|
37
|
-
type: PropType<T[K]>;
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
31
|
type __VLS_WithDefaults<P, D> = {
|
|
42
32
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
33
|
default: D[K];
|
|
@@ -46,3 +36,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
46
36
|
type __VLS_Prettify<T> = {
|
|
47
37
|
[K in keyof T]: T[K];
|
|
48
38
|
} & {};
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToOption<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import { TableActionType } from '../types/table';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
clearSelectedRowKeys: TableActionType['clearSelectedRowKeys'];
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
+
count?: number;
|
|
5
|
+
clearSelectedRowKeys: TableActionType["clearSelectedRowKeys"];
|
|
7
6
|
}>, {
|
|
8
7
|
count: () => 0;
|
|
9
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
10
|
-
count?: number
|
|
11
|
-
clearSelectedRowKeys: TableActionType[
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
|
+
count?: number;
|
|
10
|
+
clearSelectedRowKeys: TableActionType["clearSelectedRowKeys"];
|
|
12
11
|
}>, {
|
|
13
12
|
count: () => 0;
|
|
14
13
|
}>>>, {
|
|
15
14
|
count: number;
|
|
16
15
|
}, {}>;
|
|
17
16
|
export default _default;
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
17
|
type __VLS_WithDefaults<P, D> = {
|
|
28
18
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
19
|
default: D[K];
|
|
@@ -32,3 +22,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
32
22
|
type __VLS_Prettify<T> = {
|
|
33
23
|
[K in keyof T]: T[K];
|
|
34
24
|
} & {};
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToOption<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { BasicTableProps } from './types/table';
|
|
2
|
-
|
|
3
2
|
export declare function parseRowKey<RecordType = any>(rowKey: BasicTableProps['rowKey'], record: RecordType, autoCreateKey?: boolean): number | string;
|
|
4
3
|
export declare function parseRowKeyValue<RecordType = any>(rowKey: BasicTableProps['rowKey'], record: RecordType, autoCreateKey?: boolean): number | string;
|
|
@@ -3,7 +3,6 @@ import { PaginationProps } from '../types/pagination';
|
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
4
|
import { ColumnType } from 'ant-design-vue/es/table';
|
|
5
5
|
import { Recordable } from '../../type';
|
|
6
|
-
|
|
7
6
|
export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPaginationRef: ComputedRef<boolean | PaginationProps>): {
|
|
8
7
|
getColumnsRef: ComputedRef<BasicColumn[]>;
|
|
9
8
|
getCacheColumns: () => BasicColumn[];
|