@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
|
@@ -20,8 +20,7 @@ function T(t, r) {
|
|
|
20
20
|
}
|
|
21
21
|
function en(t, r) {
|
|
22
22
|
const { actionColumn: l } = C(t);
|
|
23
|
-
if (!l)
|
|
24
|
-
return;
|
|
23
|
+
if (!l) return;
|
|
25
24
|
const c = r.findIndex(
|
|
26
25
|
(u) => u.flag === A
|
|
27
26
|
);
|
|
@@ -85,8 +84,7 @@ function dn(t, r) {
|
|
|
85
84
|
(p) => p.flag === w
|
|
86
85
|
);
|
|
87
86
|
o ? a = d === -1 : !o && d !== -1 && s.splice(d, 1);
|
|
88
|
-
}), !a))
|
|
89
|
-
return;
|
|
87
|
+
}), !a)) return;
|
|
90
88
|
const m = s.some((d) => d.fixed === "left");
|
|
91
89
|
s.unshift({
|
|
92
90
|
flag: w,
|
|
@@ -116,8 +114,7 @@ function dn(t, r) {
|
|
|
116
114
|
}
|
|
117
115
|
function P(n) {
|
|
118
116
|
const e = F(n);
|
|
119
|
-
if (!S(e))
|
|
120
|
-
return;
|
|
117
|
+
if (!S(e)) return;
|
|
121
118
|
if (e.length <= 0) {
|
|
122
119
|
h.value = [];
|
|
123
120
|
return;
|
|
@@ -2,7 +2,6 @@ import { ComputedRef } from 'vue';
|
|
|
2
2
|
import { BasicTableProps } from '../types/table';
|
|
3
3
|
import { Key } from 'ant-design-vue/lib/table/interface';
|
|
4
4
|
import { EmitType, Recordable } from '../../type';
|
|
5
|
-
|
|
6
5
|
interface Options {
|
|
7
6
|
setSelectedRowKeys: (keyValues: Key[]) => void;
|
|
8
7
|
getSelectRowKeys: () => Key[];
|
|
@@ -14,24 +14,20 @@ function M(h, {
|
|
|
14
14
|
function b() {
|
|
15
15
|
var a;
|
|
16
16
|
const { rowSelection: s, rowKey: C, clickToRowSelect: x } = p(h);
|
|
17
|
-
if (!s || !x)
|
|
18
|
-
return;
|
|
17
|
+
if (!s || !x) return;
|
|
19
18
|
const n = m() || [], u = R(
|
|
20
19
|
C,
|
|
21
20
|
t,
|
|
22
21
|
p(w)
|
|
23
22
|
);
|
|
24
|
-
if (!u)
|
|
25
|
-
return;
|
|
23
|
+
if (!u) return;
|
|
26
24
|
if (s.type === "checkbox") {
|
|
27
25
|
const f = (a = o.composedPath) == null ? void 0 : a.call(o).find(
|
|
28
26
|
(e) => e.tagName === "TR"
|
|
29
27
|
);
|
|
30
|
-
if (!f)
|
|
31
|
-
return;
|
|
28
|
+
if (!f) return;
|
|
32
29
|
const k = f.querySelector("input[type=checkbox]");
|
|
33
|
-
if (!k || k.hasAttribute("disabled"))
|
|
34
|
-
return;
|
|
30
|
+
if (!k || k.hasAttribute("disabled")) return;
|
|
35
31
|
if (!n.includes(u)) {
|
|
36
32
|
n.push(u), i(n);
|
|
37
33
|
return;
|
|
@@ -4,7 +4,6 @@ import { ComputedRef, Ref } from 'vue';
|
|
|
4
4
|
import { Key } from 'ant-design-vue/lib/table/interface';
|
|
5
5
|
import { EmitType, Recordable } from '../../type';
|
|
6
6
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
7
|
-
|
|
8
7
|
interface ActionType {
|
|
9
8
|
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
10
9
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
@@ -16,7 +15,7 @@ interface ActionType {
|
|
|
16
15
|
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
|
|
17
16
|
getDataSourceRef: ComputedRef<Recordable[]>;
|
|
18
17
|
getDataSource: <T = Recordable>() => T[];
|
|
19
|
-
getRawDataSource: <
|
|
18
|
+
getRawDataSource: <T = Recordable>() => T;
|
|
20
19
|
getRowKey: ComputedRef<string | GetRowKey<any> | undefined>;
|
|
21
20
|
setTableData: <T = Recordable>(values: T[]) => void;
|
|
22
21
|
getAutoCreateKey: ComputedRef<boolean | undefined>;
|
|
@@ -79,8 +79,7 @@ function Ae(u, {
|
|
|
79
79
|
}
|
|
80
80
|
function te(e) {
|
|
81
81
|
var c;
|
|
82
|
-
if (!n.value || n.value.length == 0)
|
|
83
|
-
return;
|
|
82
|
+
if (!n.value || n.value.length == 0) return;
|
|
84
83
|
const t = Array.isArray(e) ? e : [e];
|
|
85
84
|
function a(o, i) {
|
|
86
85
|
const l = f(o, i);
|
|
@@ -117,8 +116,7 @@ function Ae(u, {
|
|
|
117
116
|
return r(n).splice(t, 0, ...a), r(n);
|
|
118
117
|
}
|
|
119
118
|
function M(e) {
|
|
120
|
-
if (!n.value || n.value.length == 0)
|
|
121
|
-
return;
|
|
119
|
+
if (!n.value || n.value.length == 0) return;
|
|
122
120
|
const { childrenColumnName: t = "children" } = r(u);
|
|
123
121
|
return ((c) => {
|
|
124
122
|
let o;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PaginationProps } from '../types/pagination';
|
|
2
2
|
import { BasicTableProps } from '../types/table';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
|
-
|
|
5
4
|
export declare function usePagination(refProps: ComputedRef<BasicTableProps>): {
|
|
6
5
|
getPagination: () => boolean | PaginationProps;
|
|
7
6
|
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
@@ -2,7 +2,6 @@ import { BasicTableProps, TableRowSelection } from '../types/table';
|
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import { Key } from 'ant-design-vue/lib/table/interface';
|
|
4
4
|
import { EmitType, Recordable } from '../../type';
|
|
5
|
-
|
|
6
5
|
export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
|
|
7
6
|
getRowSelection: () => TableRowSelection<any>;
|
|
8
7
|
getRowSelectionRef: ComputedRef<TableRowSelection<any> | null>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import { BasicTableProps, TableActionType } from '../types/table';
|
|
3
3
|
import { Nullable, Recordable } from '../../type';
|
|
4
|
-
|
|
5
4
|
type Instance = TableActionType & {
|
|
6
5
|
wrapRef: Ref<Nullable<HTMLElement>>;
|
|
7
6
|
getBindValues: ComputedRef<Recordable>;
|
|
@@ -2,7 +2,6 @@ import { ComputedRef, Ref } from 'vue';
|
|
|
2
2
|
import { BasicTableProps } from '../types/table';
|
|
3
3
|
import { Key } from 'ant-design-vue/lib/table/interface';
|
|
4
4
|
import { EmitType, Recordable } from '../../type';
|
|
5
|
-
|
|
6
5
|
export declare function useTableExpand(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
|
|
7
6
|
getExpandOption: ComputedRef<{
|
|
8
7
|
expandedRowKeys?: undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { BasicTableProps } from '../types/table';
|
|
3
3
|
import { ComponentRef, Recordable } from '../../type';
|
|
4
|
-
|
|
5
4
|
export declare function useTableFooter(propsRef: ComputedRef<BasicTableProps>, scrollRef: ComputedRef<BasicTableProps['scroll']>, tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable>): {
|
|
6
5
|
getFooterProps: ComputedRef<Recordable | undefined>;
|
|
7
6
|
};
|
|
@@ -2,7 +2,6 @@ import { ComputedRef, Slots } from 'vue';
|
|
|
2
2
|
import { BasicTableProps, FetchParams } from '../types/table';
|
|
3
3
|
import { ProFormProps } from '../../pro-form';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
|
-
|
|
6
5
|
export declare function useTableForm(propsRef: ComputedRef<BasicTableProps>, slots: Slots, fetch: (opt?: FetchParams | undefined) => Promise<Recordable<any>[] | undefined>, getLoading: ComputedRef<boolean | undefined>): {
|
|
7
6
|
getFormProps: ComputedRef<Partial<ProFormProps>>;
|
|
8
7
|
replaceFormSlotKey: (key: string) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComputedRef, Slots } from 'vue';
|
|
2
2
|
import { BasicTableProps, InnerHandlers, InnerMethods } from '../types/table';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
|
-
|
|
5
4
|
export declare function useTableHeader(propsRef: ComputedRef<BasicTableProps>, slots: Slots, handlers: InnerHandlers, methods: InnerMethods): {
|
|
6
5
|
getHeaderProps: ComputedRef<Recordable>;
|
|
7
6
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { BasicTableProps, TableRowSelection, BasicColumn } from '../types/table';
|
|
2
2
|
import { Ref, ComputedRef } from 'vue';
|
|
3
3
|
import { ComponentRef, Recordable } from '../../type';
|
|
4
|
-
|
|
5
4
|
export declare function useTableScroll(propsRef: ComputedRef<BasicTableProps>, tableElRef: Ref<ComponentRef>, columnsRef: ComputedRef<BasicColumn[]>, rowSelectionRef: ComputedRef<TableRowSelection | null>, getDataSourceRef: ComputedRef<Recordable[]>, wrapRef: Ref<HTMLElement | null>, formRef: Ref<ComponentRef>): {
|
|
6
5
|
getScrollRef: ComputedRef<({
|
|
7
|
-
x?: string | number | true
|
|
8
|
-
y?: string | number
|
|
6
|
+
x?: string | number | true;
|
|
7
|
+
y?: string | number;
|
|
9
8
|
} & {
|
|
10
|
-
scrollToFirstRowOnChange?: boolean
|
|
9
|
+
scrollToFirstRowOnChange?: boolean;
|
|
11
10
|
}) | undefined>;
|
|
12
11
|
redoHeight: () => void;
|
|
13
12
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ref as Y, computed as
|
|
1
|
+
import { ref as Y, computed as S, unref as i, watch as _, nextTick as B } from "vue";
|
|
2
2
|
import { getViewportOffset as I } from "@aplus-frontend/utils";
|
|
3
3
|
import { isBoolean as z } from "lodash-unified";
|
|
4
4
|
import { useWindowSizeFn as j, onMountedOrActivated as G } from "@aplus-frontend/hooks";
|
|
5
5
|
import "../../modal/index.mjs";
|
|
6
6
|
import { useDebounceFn as J } from "@vueuse/core";
|
|
7
7
|
import { useModalContext as K } from "../../modal/hooks/use-modal-context.mjs";
|
|
8
|
-
function it(a,
|
|
9
|
-
const
|
|
8
|
+
function it(a, L, P, q, w, m, O) {
|
|
9
|
+
const T = Y(167), f = K(), x = J(M, 100), C = S(() => {
|
|
10
10
|
const { canResize: e, scroll: t } = i(a);
|
|
11
11
|
return e && !(t || {}).y;
|
|
12
12
|
});
|
|
13
13
|
_(
|
|
14
14
|
() => {
|
|
15
15
|
var e;
|
|
16
|
-
return [i(
|
|
16
|
+
return [i(C), (e = i(w)) == null ? void 0 : e.length];
|
|
17
17
|
},
|
|
18
18
|
() => {
|
|
19
|
-
|
|
19
|
+
x();
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
flush: "post"
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function M() {
|
|
26
|
+
B(() => {
|
|
27
27
|
p();
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function v(e) {
|
|
31
31
|
var t;
|
|
32
|
-
|
|
32
|
+
T.value = e, (t = f == null ? void 0 : f.redoModalHeight) == null || t.call(f);
|
|
33
33
|
}
|
|
34
34
|
let g, H, d;
|
|
35
35
|
const b = 6;
|
|
@@ -48,7 +48,7 @@ function it(a, B, P, q, T, m, O) {
|
|
|
48
48
|
);
|
|
49
49
|
o = g.offsetHeight + l;
|
|
50
50
|
} else
|
|
51
|
-
o =
|
|
51
|
+
o = 34;
|
|
52
52
|
return o;
|
|
53
53
|
}
|
|
54
54
|
function $(e) {
|
|
@@ -91,8 +91,8 @@ function it(a, B, P, q, T, m, O) {
|
|
|
91
91
|
n = n.parentElement;
|
|
92
92
|
}
|
|
93
93
|
if (t) {
|
|
94
|
-
const { top: h = 0 } = t ? I(t) : {}, r = s ? 0 : 24, c = (l == null ? void 0 : l.offsetHeight) ?? 0, y = l ? s ? 0 : parseInt(getComputedStyle(l).marginTop) : 0
|
|
95
|
-
return (h > r ? h : r) + c + y +
|
|
94
|
+
const { top: h = 0 } = t ? I(t) : {}, r = s ? 0 : 24, c = (l == null ? void 0 : l.offsetHeight) ?? 0, y = l ? s ? 0 : parseInt(getComputedStyle(l).marginTop) : 0;
|
|
95
|
+
return (h > r ? h : r) + c + y + 14;
|
|
96
96
|
}
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
@@ -101,20 +101,18 @@ function it(a, B, P, q, T, m, O) {
|
|
|
101
101
|
return i(m) && e ? b : b + 16;
|
|
102
102
|
}
|
|
103
103
|
async function p() {
|
|
104
|
-
const { resizeHeightOffset: e, maxHeight: t } = i(a), o = i(
|
|
105
|
-
if (!l)
|
|
106
|
-
return;
|
|
104
|
+
const { resizeHeightOffset: e, maxHeight: t } = i(a), o = i(w), l = i(L);
|
|
105
|
+
if (!l) return;
|
|
107
106
|
const n = l.$el;
|
|
108
|
-
if (!n || !d && (d = n.querySelector(".ant-table-body"), !d) || (F(d, n), d.style.height = "unset", !i(
|
|
107
|
+
if (!n || !d && (d = n.querySelector(".ant-table-body"), !d) || (F(d, n), d.style.height = "unset", !i(C) || !i(o) || o.length === 0))
|
|
109
108
|
return;
|
|
110
|
-
await
|
|
109
|
+
await B();
|
|
111
110
|
const s = n.querySelector(".ant-table-thead");
|
|
112
|
-
if (!s)
|
|
113
|
-
|
|
114
|
-
const h = A(n), r = $(n), c = k(s), y = D(n, s), S = N(n), V = R();
|
|
111
|
+
if (!s) return;
|
|
112
|
+
const h = A(n), r = $(n), c = k(s), y = D(n, s), W = N(n), V = R();
|
|
115
113
|
let u = Math.floor(
|
|
116
114
|
y - (e || 0) - h - r - c - // 弹窗(如果有)相关高度
|
|
117
|
-
|
|
115
|
+
W - // 页面 footer 高度(非弹窗的时候)
|
|
118
116
|
// 样式间距高度
|
|
119
117
|
V - // 预留非整数高度溢出(如实际高度为100.5,offsetHeight 的值为101)
|
|
120
118
|
1
|
|
@@ -122,11 +120,11 @@ function it(a, B, P, q, T, m, O) {
|
|
|
122
120
|
u = (u > t ? t : u) ?? u, v(u);
|
|
123
121
|
}
|
|
124
122
|
j(p, { wait: 280 }), G(() => {
|
|
125
|
-
p(),
|
|
126
|
-
|
|
123
|
+
p(), B(() => {
|
|
124
|
+
x();
|
|
127
125
|
});
|
|
128
126
|
});
|
|
129
|
-
const X =
|
|
127
|
+
const X = S(() => {
|
|
130
128
|
var r;
|
|
131
129
|
let e = 0;
|
|
132
130
|
i(q) && (e += 60);
|
|
@@ -138,18 +136,18 @@ function it(a, B, P, q, T, m, O) {
|
|
|
138
136
|
(c) => !Reflect.has(c, "width") && c.ifShow !== !1
|
|
139
137
|
).length;
|
|
140
138
|
n !== 0 && (e += n * t);
|
|
141
|
-
const s = i(
|
|
139
|
+
const s = i(L);
|
|
142
140
|
return (((r = s == null ? void 0 : s.$el) == null ? void 0 : r.offsetWidth) ?? 0) > e ? "100%" : e;
|
|
143
141
|
});
|
|
144
|
-
return { getScrollRef:
|
|
145
|
-
const e = i(
|
|
142
|
+
return { getScrollRef: S(() => {
|
|
143
|
+
const e = i(T), { canResize: t, scroll: o } = i(a);
|
|
146
144
|
return {
|
|
147
145
|
x: i(X),
|
|
148
146
|
y: t ? e : null,
|
|
149
147
|
scrollToFirstRowOnChange: !1,
|
|
150
148
|
...o
|
|
151
149
|
};
|
|
152
|
-
}), redoHeight:
|
|
150
|
+
}), redoHeight: M };
|
|
153
151
|
}
|
|
154
152
|
export {
|
|
155
153
|
it as useTableScroll
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { BasicTableProps, TableCustomRecord } from '../types/table';
|
|
3
|
-
|
|
4
3
|
export declare function useTableStyle(propsRef: ComputedRef<BasicTableProps>, prefixCls: string): {
|
|
5
4
|
getRowClassName: (record: TableCustomRecord<any>, index: number) => string;
|
|
6
5
|
};
|
|
@@ -2,7 +2,6 @@ import { ProFormProps } from '../pro-form/types/form';
|
|
|
2
2
|
import { BasicColumn, BasicTableProps, FetchSetting, SizeType, SorterResult, TableCustomRecord, TableRowSelection, TableSetting } from './types/table';
|
|
3
3
|
import { Fn, Recordable } from '../type';
|
|
4
4
|
import { PaginationProps } from './types/pagination';
|
|
5
|
-
|
|
6
5
|
type Key = string | number;
|
|
7
6
|
export type ProTableProps = {
|
|
8
7
|
clickToRowSelect?: boolean;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { BasicTableProps, SizeType, FetchParams, GetColumnsParams, BasicColumn, TableRowSelection, TableSetting } from './types/table';
|
|
2
2
|
import { ProTableProps } from './interface';
|
|
3
|
+
import { TableColumnType, ColumnType } from 'ant-design-vue';
|
|
3
4
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { Recordable } from '
|
|
5
|
+
import { Recordable } from '../type';
|
|
5
6
|
import { Key } from 'ant-design-vue/es/table/interface';
|
|
6
|
-
import { PaginationProps } from '
|
|
7
|
+
import { PaginationProps } from '.';
|
|
7
8
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
8
|
-
import { TableColumnType } from 'ant-design-vue';
|
|
9
|
-
|
|
10
9
|
type ProTableSlots = 'emptyText' | 'expandIcon' | 'title' | 'footer' | 'summary' | 'bodyCell' | 'expandColumnTitle' | 'headerCell' | 'customFilterIcon' | 'customFilterDropdown';
|
|
11
|
-
declare
|
|
10
|
+
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<NonNullable<ProTableSlots>, (_: any) => any>> & {
|
|
11
|
+
headerCell?(_: {
|
|
12
|
+
column: TableColumnType<any>;
|
|
13
|
+
}): any;
|
|
14
|
+
bodyCell?(_: {
|
|
15
|
+
text: any;
|
|
16
|
+
value: any;
|
|
17
|
+
record: Record<string, any>;
|
|
18
|
+
index: number;
|
|
19
|
+
column: ColumnType<any>;
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableProps>, {
|
|
12
23
|
clickToRowSelect: boolean;
|
|
13
24
|
tableSetting: () => {};
|
|
14
25
|
autoCreateKey: boolean;
|
|
@@ -27,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
27
38
|
divideSpace: string;
|
|
28
39
|
pagination: null;
|
|
29
40
|
}>, {
|
|
30
|
-
reload: (opt?: FetchParams
|
|
41
|
+
reload: (opt?: FetchParams) => Promise< Recordable<any>[] | undefined>;
|
|
31
42
|
setSelectedRows: (rows: Recordable[]) => void;
|
|
32
43
|
getSelectRows: <T = Recordable>() => T[];
|
|
33
44
|
clearSelectedRowKeys: () => void;
|
|
@@ -39,29 +50,29 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
39
50
|
getSelectRowKeys: () => Key[];
|
|
40
51
|
deleteSelectRowByKey: (keyValue: Key) => void;
|
|
41
52
|
setPagination: (info: Partial< PaginationProps>) => void;
|
|
42
|
-
setTableData: <
|
|
43
|
-
updateTableDataRecord: (keyValue: Key, record: Recordable) =>
|
|
53
|
+
setTableData: <T = Recordable>(values: T[]) => void;
|
|
54
|
+
updateTableDataRecord: (keyValue: Key, record: Recordable) => Recordable | void;
|
|
44
55
|
deleteTableDataRecord: (keyValues: Key | Key[]) => void;
|
|
45
|
-
insertTableDataRecord: (record: Recordable | Recordable[], index?: number
|
|
46
|
-
findTableDataRecord: (keyValue: Key) =>
|
|
47
|
-
getColumns: (opt?: GetColumnsParams
|
|
48
|
-
setColumns: (columns:
|
|
49
|
-
getDataSource: <
|
|
50
|
-
getRawDataSource: <
|
|
56
|
+
insertTableDataRecord: (record: Recordable | Recordable[], index?: number) => Recordable[] | void;
|
|
57
|
+
findTableDataRecord: (keyValue: Key) => Recordable | void;
|
|
58
|
+
getColumns: (opt?: GetColumnsParams) => BasicColumn[];
|
|
59
|
+
setColumns: (columns: BasicColumn[] | string[]) => void;
|
|
60
|
+
getDataSource: <T = Recordable>() => T[];
|
|
61
|
+
getRawDataSource: <T = Recordable>() => T;
|
|
51
62
|
setLoading: (loading: boolean) => void;
|
|
52
|
-
setProps: (props: Partial<BasicTableProps
|
|
63
|
+
setProps: (props: Partial<BasicTableProps>) => void;
|
|
53
64
|
redoHeight: () => void;
|
|
54
65
|
setSelectedRowKeys: (keyValues: Key[]) => void;
|
|
55
|
-
getPaginationRef: () =>
|
|
66
|
+
getPaginationRef: () => PaginationProps | boolean;
|
|
56
67
|
getSize: () => SizeType;
|
|
57
68
|
getRowSelection: () => TableRowSelection<Recordable>;
|
|
58
69
|
getCacheColumns: () => BasicColumn[];
|
|
59
|
-
emit?:
|
|
70
|
+
emit?: ReturnType<typeof globalThis.defineEmits>;
|
|
60
71
|
updateTableData: (index: number, key: string, value: any) => Recordable;
|
|
61
72
|
setShowPagination: (show: boolean) => Promise<void>;
|
|
62
73
|
getShowPagination: () => boolean;
|
|
63
|
-
setCacheColumnsByField?: (
|
|
64
|
-
setCacheColumns?: (
|
|
74
|
+
setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void;
|
|
75
|
+
setCacheColumns?: (columns: BasicColumn[]) => void;
|
|
65
76
|
tableElRef: Ref<null>;
|
|
66
77
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
67
78
|
change: (...args: any[]) => void;
|
|
@@ -80,7 +91,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
80
91
|
"row-mouseleave": (...args: any[]) => void;
|
|
81
92
|
"columns-change": (...args: any[]) => void;
|
|
82
93
|
"expanded-rows-change": (...args: any[]) => void;
|
|
83
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
94
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableProps>, {
|
|
84
95
|
clickToRowSelect: boolean;
|
|
85
96
|
tableSetting: () => {};
|
|
86
97
|
autoCreateKey: boolean;
|
|
@@ -117,7 +128,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
117
128
|
"onExpanded-rows-change"?: ((...args: any[]) => any) | undefined;
|
|
118
129
|
}, {
|
|
119
130
|
ellipsis: boolean;
|
|
120
|
-
pagination:
|
|
131
|
+
pagination: PaginationProps | boolean | null;
|
|
121
132
|
immediate: boolean;
|
|
122
133
|
columns: BasicColumn[];
|
|
123
134
|
rowKey: string | GetRowKey<any>;
|
|
@@ -133,28 +144,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
133
144
|
canColDrag: boolean;
|
|
134
145
|
emptyDataIsShowTable: boolean;
|
|
135
146
|
divideSpace: number | SizeType;
|
|
136
|
-
}, {}
|
|
137
|
-
|
|
138
|
-
column: TableColumnType<any>;
|
|
139
|
-
}): any;
|
|
140
|
-
bodyCell?(_: {
|
|
141
|
-
text: any;
|
|
142
|
-
value: any;
|
|
143
|
-
record: Record<string, any>;
|
|
144
|
-
index: number;
|
|
145
|
-
column: TableColumnType<any>;
|
|
146
|
-
}): any;
|
|
147
|
-
}>;
|
|
147
|
+
}, {}>;
|
|
148
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
148
149
|
export default _default;
|
|
149
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
150
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
151
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
152
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
153
|
-
} : {
|
|
154
|
-
type: PropType<T[K]>;
|
|
155
|
-
required: true;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
150
|
type __VLS_WithDefaults<P, D> = {
|
|
159
151
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
160
152
|
default: D[K];
|
|
@@ -168,3 +160,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
168
160
|
$slots: S;
|
|
169
161
|
};
|
|
170
162
|
};
|
|
163
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
164
|
+
type __VLS_TypePropsToOption<T> = {
|
|
165
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
166
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
167
|
+
} : {
|
|
168
|
+
type: PropType<T[K]>;
|
|
169
|
+
required: true;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
@@ -6,7 +6,6 @@ import { ProFormProps } from '../../pro-form';
|
|
|
6
6
|
import { PaginationProps } from './pagination';
|
|
7
7
|
import { TableRowSelection as AntdTableRowSelection, Key } from 'ant-design-vue/es/table/interface';
|
|
8
8
|
import { FixedType } from 'ant-design-vue/es/vc-table/interface';
|
|
9
|
-
|
|
10
9
|
export type CellFormat = string | ((text: string, record: Recordable, index: number) => string | number) | Map<string | number, any>;
|
|
11
10
|
export interface BasicColumn extends Omit<ColumnProps<Recordable>, 'filters'> {
|
|
12
11
|
children?: BasicColumn[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PromptDialogProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<PromptDialogProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PromptDialogProps>>>, {}, {}>;
|
|
3
|
+
declare const _default: DefineComponent<__VLS_TypePropsToOption<PromptDialogProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<PromptDialogProps>>>, {}, {}>;
|
|
5
4
|
export default _default;
|
|
6
5
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
-
type
|
|
6
|
+
type __VLS_TypePropsToOption<T> = {
|
|
8
7
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
8
|
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
9
|
} : {
|
package/es/src/prompt/index.d.ts
CHANGED
package/es/src/prompt/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentFormSchema } from '
|
|
2
|
-
import { ComponentProps } from '
|
|
1
|
+
import { ComponentFormSchema } from '../pro-form';
|
|
2
|
+
import { ComponentProps } from '../pro-form/types';
|
|
3
3
|
type InputType = 'InputTextArea' | 'InputNumber' | 'Input';
|
|
4
4
|
interface GenFormSchemasOptions {
|
|
5
5
|
label?: string;
|
|
@@ -28,11 +28,9 @@ const { e: w, is: A } = y("scrollbar"), _ = S({
|
|
|
28
28
|
t.stopImmediatePropagation(), c.value = !0, h(document, "mousemove", f), h(document, "mouseup", d), document.onselectstart = () => !1;
|
|
29
29
|
}, f = (t) => {
|
|
30
30
|
var g, p;
|
|
31
|
-
if (c.value === !1)
|
|
32
|
-
return;
|
|
31
|
+
if (c.value === !1) return;
|
|
33
32
|
const l = s.value[e.value.axis];
|
|
34
|
-
if (!l)
|
|
35
|
-
return;
|
|
33
|
+
if (!l) return;
|
|
36
34
|
const i = (((g = o == null ? void 0 : o.vnode.el) == null ? void 0 : g.getBoundingClientRect()[e.value.direction]) - t[e.value.client]) * -1, v = r.value[e.value.offset] - l, u = (i - v) * 100 / ((p = o == null ? void 0 : o.vnode.el) == null ? void 0 : p[e.value.offset]);
|
|
37
35
|
n.value[e.value.scroll] = u * n.value[e.value.scrollSize] / 100;
|
|
38
36
|
};
|