@aplus-frontend/ui 0.1.0 → 0.1.2
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 +18 -19
- 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-popconfirm/index.vue.d.ts +26 -25
- package/es/src/ap-action/style/item.css +5 -5
- 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/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 +0 -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 +11 -12
- 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/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 +4804 -6359
- 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 -1
- 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 +9 -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/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 +16 -16
- package/es/src/check-card/interface.d.ts +0 -1
- package/es/src/check-card/style/index.css +5 -5
- 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/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/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/interface.d.ts +0 -1
- package/es/src/editable-table/style/index.css +1 -1
- 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 +22 -22
- 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 +5 -5
- package/es/src/theme/ap-form/ap-form-item.css +6 -6
- package/es/src/theme/ap-select-layout/ap-select-layout.css +9 -0
- package/es/src/theme/ap-table/ap-table.css +1 -1
- package/es/src/theme/check-card/index.css +5 -5
- package/es/src/theme/editable-table/index.css +1 -1
- 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-popconfirm/index.vue.d.ts +26 -25
- package/lib/src/ap-action/style/item.css +5 -5
- 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/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 +0 -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 +11 -12
- 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/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 +4804 -6359
- 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 -1
- 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 +9 -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/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 +5 -5
- 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/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/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/interface.d.ts +0 -1
- package/lib/src/editable-table/style/index.css +1 -1
- 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 +5 -5
- package/lib/src/theme/ap-form/ap-form-item.css +6 -6
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +9 -0
- package/lib/src/theme/ap-table/ap-table.css +1 -1
- package/lib/src/theme/check-card/index.css +5 -5
- package/lib/src/theme/editable-table/index.css +1 -1
- 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 +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),l=require("lodash-unified"),U=require("../../utils/index.js"),Y=require("@aplus-frontend/utils"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),l=require("lodash-unified"),U=require("../../utils/index.js"),Y=require("@aplus-frontend/utils"),w=require("../helper.js"),z=require("dayjs");function Z(u,F={}){const f=/^\[(.+)\]$/;if(f.test(u)){const c=u.match(f);if(c&&c[1]){const v=c[1].split(",");if(!v.length)return;const d=[];return v.forEach((b,A)=>{l.set(d,A,F[b.trim()])}),d.filter(Boolean).length?d:void 0}}}function _(u,F={}){const f=/^\{(.+)\}$/;if(f.test(u)){const c=u.match(f);if(c&&c[1]){const v=c[1].split(",");if(!v.length)return;const d={};return v.forEach(b=>{l.set(d,b.trim(),F[b.trim()])}),Object.values(d).filter(Boolean).length?d:void 0}}}function K({emit:u,getProps:F,formModel:f,getSchema:c,defaultValueRef:v,formElRef:d,schemaRef:b,handleFormValues:A}){async function m(){const{resetFunc:e,submitOnReset:n}=i.unref(F);e&&l.isFunction(e)&&await e(),i.unref(d)&&(Object.keys(f).forEach(t=>{const o=i.unref(c).find(a=>a.field===t),r=o==null?void 0:o.defaultValueObj,h=Object.keys(r||{});h.length&&h.map(a=>{f[a]=r[a]}),f[t]=k(o,v,t)}),i.nextTick(()=>E()),u("reset",i.toRaw(f)),n&&V())}const T=()=>i.unref(c).map(e=>[...e.fields||[],e.field]).flat(1).filter(Boolean);async function O(e){if(Object.keys(e).length===0)return;const n=T(),s=".",t=n.filter(r=>String(r).indexOf(s)>=0),o=[];n.forEach(r=>{const h=i.unref(c).find(p=>p.field===r);let a=l.get(e,r);const W=Reflect.has(e,r);a=w.handleInputNumberValue(h==null?void 0:h.component,a);const{componentProps:$}=h||{};let y=$;typeof $=="function"&&(y=y({formModel:i.unref(f),formActionType:Q}));const L=Z(r,e)||_(r,e);if(W||L){const p=L||a;if(H(r))if(Array.isArray(p)){const S=[];for(const I of p)S.push(I?z(I):null);i.unref(f)[r]=S}else i.unref(f)[r]=p?y!=null&&y.valueFormat?p:z(p):null;else i.unref(f)[r]=p;y!=null&&y.onChange&&(y==null||y.onChange(p)),o.push(r)}else t.forEach(p=>{try{const S=p.split(".").reduce((I,X)=>I[X],e);U.isDef(S)&&(i.unref(f)[p]=i.unref(S),o.push(p))}catch{U.isDef(v.value[p])&&(i.unref(f)[p]=l.cloneDeep(i.unref(v.value[p])))}})}),j(o).catch(r=>{})}async function C(e){const n=l.cloneDeep(i.unref(c));if(!e)return;let s=l.isString(e)?[e]:e;l.isString(e)&&(s=[e]);for(const t of s)G(t,n);b.value=n}function G(e,n){if(l.isString(e)){const s=n.findIndex(t=>t.field===e);s!==-1&&(delete f[e],n.splice(s,1))}}async function q(e,n,s=!1){const t=l.cloneDeep(i.unref(c)),o=Array.isArray(e)?e.map(a=>a.field):[e.field];if(t.find(a=>o.includes(a.field)))throw new Error("There are schemas that have already been added");const r=t.findIndex(a=>a.field===n),h=l.isObject(e)?[e]:e;!n||r===-1||s?s?t.unshift(...h):t.push(...h):r!==-1&&t.splice(r+1,0,...h),b.value=t,P(e)}async function B(e){let n=[];if(l.isObject(e)&&n.push(e),l.isArray(e)&&(n=[...e]),!n.every(t=>w.isIncludeSimpleComponents(t.component)||Reflect.has(t,"field")&&t.field))throw new Error("All children of the form Schema array that need to be updated must contain the `field` field");b.value=n}async function x(e){let n=[];if(l.isObject(e)&&n.push(e),l.isArray(e)&&(n=[...e]),!n.every(r=>w.isIncludeSimpleComponents(r.component)||Reflect.has(r,"field")&&r.field))throw new Error("All children of the form Schema array that need to be updated must contain the `field` field");const t=[],o=[];i.unref(c).forEach(r=>{const h=n.find(a=>r.field===a.field);if(h){const a=Y.deepMerge(r,h);o.push(a),t.push(a)}else t.push(r)}),P(o),b.value=l.uniqBy(t,"field")}function P(e){let n=[];l.isObject(e)&&n.push(e),l.isArray(e)&&(n=[...e]);const s={},t=g();n.forEach(o=>{!w.isIncludeSimpleComponents(o.component)&&Reflect.has(o,"field")&&o.field&&!l.isNil(o.defaultValue)&&(!(o.field in t)||l.isNil(t[o.field]))&&(s[o.field]=o.defaultValue)}),O(s)}function g(){return i.unref(d)?A(i.toRaw(i.unref(f))):{}}function H(e){return i.unref(c).some(n=>n.field===e&&n.component?w.dateItemType.includes(n.component):!1)}async function j(e){var s;const n=await((s=i.unref(d))==null?void 0:s.validateFields(e));return A(n)}async function J(e){var n;await((n=i.unref(d))==null?void 0:n.setProps(e))}async function D(e){var t;let n;e===void 0?n=T():n=e===Array.isArray(e)?e:void 0;const s=await((t=i.unref(d))==null?void 0:t.validate(n));return A(s)}async function E(e){var n;await((n=i.unref(d))==null?void 0:n.clearValidate(e))}async function N(e,n){var s;await((s=i.unref(d))==null?void 0:s.scrollToField(e,n))}async function V(e){e&&e.preventDefault();const{submitFunc:n}=i.unref(F);if(n&&l.isFunction(n)){await n();return}if(i.unref(d))try{const t=await D();u("submit",t)}catch(t){if((t==null?void 0:t.outOfDate)===!1&&(t!=null&&t.errorFields))return;throw new Error(t)}}const Q={getFieldsValue:g,setFieldsValue:O,resetFields:m,updateSchema:x,resetSchema:B,setProps:J,removeSchemaByField:C,appendSchemaByField:q,clearValidate:E,validateFields:j,validate:D,submit:V,scrollToField:N};return{handleSubmit:V,clearValidate:E,validate:D,validateFields:j,getFieldsValue:g,updateSchema:x,resetSchema:B,appendSchemaByField:q,removeSchemaByField:C,resetFields:m,setFieldsValue:O,scrollToField:N}}function k(u,F,f){let c=l.cloneDeep(F.value[f]);return M(u)?c||void 0:(!c&&u&&R(u)&&(c=[0,0]),!c&&u&&u.component==="ApiTree"&&(c=[]),c)}function R(u){if(u.component==="Slider"&&u.componentProps&&"range"in u.componentProps)return!0}function M(u){return(u==null?void 0:u.component)&&w.defaultValueComponents.includes(u.component)}exports.useFormEvents=K;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { UnwrapRef, Ref, WritableComputedRef, DeepReadonly } from 'vue';
|
|
2
|
-
|
|
3
2
|
export declare function useRuleFormItem<T extends Record<string, any>, K extends keyof T, V = UnwrapRef<T[K]>>(props: T, key?: K, changeEvent?: string, emitData?: Ref<any[]>): [WritableComputedRef<V>, (val: V) => void, DeepReadonly<V>];
|
|
@@ -2,7 +2,6 @@ import { ProFormProps, UseFormReturnType } from '../types/form';
|
|
|
2
2
|
import { NamePath } from 'ant-design-vue/lib/form/interface';
|
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
|
-
|
|
6
5
|
type DynamicProps<T> = {
|
|
7
6
|
[P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
|
|
8
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef, ExtractPropTypes, PropType, HTMLAttributes } from 'vue';
|
|
2
2
|
import { ProFormProps, FormSchemaInner as FormSchema } from '../types/form';
|
|
3
3
|
import { ColSize } from 'ant-design-vue/lib/grid/Col';
|
|
4
|
-
|
|
5
4
|
export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<ProFormProps>): ComputedRef<{
|
|
6
5
|
labelCol: Partial< ExtractPropTypes<{
|
|
7
6
|
span: (StringConstructor | NumberConstructor)[];
|
|
@@ -71,126 +70,126 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
71
70
|
}>>;
|
|
72
71
|
} | {
|
|
73
72
|
labelCol: {
|
|
74
|
-
|
|
73
|
+
xxl?: (string | number) | {
|
|
75
74
|
span: string | number;
|
|
76
75
|
offset: string | number;
|
|
77
|
-
} | undefined;
|
|
78
|
-
|
|
76
|
+
} | ColSize | undefined;
|
|
77
|
+
xl?: (string | number) | {
|
|
79
78
|
span: string | number;
|
|
80
79
|
offset: string | number;
|
|
81
|
-
} | undefined;
|
|
82
|
-
|
|
80
|
+
} | ColSize | undefined;
|
|
81
|
+
lg?: (string | number) | {
|
|
83
82
|
span: string | number;
|
|
84
83
|
offset: string | number;
|
|
85
|
-
} | undefined;
|
|
86
|
-
|
|
84
|
+
} | ColSize | undefined;
|
|
85
|
+
md?: (string | number) | {
|
|
87
86
|
span: string | number;
|
|
88
87
|
offset: string | number;
|
|
89
|
-
} | undefined;
|
|
90
|
-
|
|
88
|
+
} | ColSize | undefined;
|
|
89
|
+
sm?: (string | number) | {
|
|
91
90
|
span: string | number;
|
|
92
91
|
offset: string | number;
|
|
93
|
-
} | undefined;
|
|
94
|
-
|
|
92
|
+
} | ColSize | undefined;
|
|
93
|
+
xs?: (string | number) | {
|
|
95
94
|
span: string | number;
|
|
96
95
|
offset: string | number;
|
|
97
|
-
} | undefined;
|
|
96
|
+
} | ColSize | undefined;
|
|
97
|
+
span?: string | number;
|
|
98
|
+
push?: string | number;
|
|
99
|
+
flex?: string | number;
|
|
98
100
|
prefixCls?: string | undefined;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
offset?: (string | number) | undefined;
|
|
104
|
-
pull?: (string | number) | undefined;
|
|
105
|
-
innerHTML?: string | undefined;
|
|
101
|
+
order?: string | number;
|
|
102
|
+
offset?: string | number;
|
|
103
|
+
pull?: string | number;
|
|
104
|
+
innerHTML?: string;
|
|
106
105
|
class?: any;
|
|
107
106
|
style: any;
|
|
108
|
-
accesskey?: string
|
|
109
|
-
contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only"
|
|
110
|
-
contextmenu?: string
|
|
111
|
-
dir?: string
|
|
112
|
-
draggable?:
|
|
113
|
-
hidden?:
|
|
114
|
-
id?: string
|
|
115
|
-
inert?:
|
|
116
|
-
lang?: string
|
|
117
|
-
placeholder?: string
|
|
118
|
-
spellcheck?:
|
|
119
|
-
tabindex?:
|
|
120
|
-
title?: string
|
|
121
|
-
translate?: "yes" | "no"
|
|
122
|
-
radiogroup?: string
|
|
123
|
-
role?: string
|
|
124
|
-
about?: string
|
|
125
|
-
datatype?: string
|
|
107
|
+
accesskey?: string;
|
|
108
|
+
contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
109
|
+
contextmenu?: string;
|
|
110
|
+
dir?: string;
|
|
111
|
+
draggable?: boolean | "true" | "false";
|
|
112
|
+
hidden?: (boolean | "true" | "false") | "" | "hidden" | "until-found";
|
|
113
|
+
id?: string;
|
|
114
|
+
inert?: boolean | "true" | "false";
|
|
115
|
+
lang?: string;
|
|
116
|
+
placeholder?: string;
|
|
117
|
+
spellcheck?: boolean | "true" | "false";
|
|
118
|
+
tabindex?: string | number;
|
|
119
|
+
title?: string;
|
|
120
|
+
translate?: "yes" | "no";
|
|
121
|
+
radiogroup?: string;
|
|
122
|
+
role?: string;
|
|
123
|
+
about?: string;
|
|
124
|
+
datatype?: string;
|
|
126
125
|
inlist?: any;
|
|
127
|
-
prefix?: string
|
|
128
|
-
property?: string
|
|
129
|
-
resource?: string
|
|
130
|
-
typeof?: string
|
|
131
|
-
vocab?: string
|
|
132
|
-
autocapitalize?: string
|
|
133
|
-
autocorrect?: string
|
|
134
|
-
autosave?: string
|
|
135
|
-
color?: string
|
|
136
|
-
itemprop?: string
|
|
137
|
-
itemscope?:
|
|
138
|
-
itemtype?: string
|
|
139
|
-
itemid?: string
|
|
140
|
-
itemref?: string
|
|
141
|
-
results?:
|
|
142
|
-
security?: string
|
|
143
|
-
unselectable?: "on" | "off"
|
|
144
|
-
inputmode?: "
|
|
145
|
-
is?: string
|
|
146
|
-
'aria-activedescendant'?: string
|
|
147
|
-
'aria-atomic'?:
|
|
148
|
-
'aria-autocomplete'?: "none" | "inline" | "
|
|
149
|
-
'aria-busy'?:
|
|
150
|
-
'aria-checked'?: (boolean | "true" | "false") | "mixed"
|
|
151
|
-
'aria-colcount'?:
|
|
152
|
-
'aria-colindex'?:
|
|
153
|
-
'aria-colspan'?:
|
|
154
|
-
'aria-controls'?: string
|
|
155
|
-
'aria-current'?:
|
|
156
|
-
'aria-describedby'?: string
|
|
157
|
-
'aria-details'?: string
|
|
158
|
-
'aria-disabled'?:
|
|
159
|
-
'aria-dropeffect'?: "
|
|
160
|
-
'aria-errormessage'?: string
|
|
161
|
-
'aria-expanded'?:
|
|
162
|
-
'aria-flowto'?: string
|
|
163
|
-
'aria-grabbed'?:
|
|
164
|
-
'aria-haspopup'?:
|
|
165
|
-
'aria-hidden'?:
|
|
166
|
-
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling"
|
|
167
|
-
'aria-keyshortcuts'?: string
|
|
168
|
-
'aria-label'?: string
|
|
169
|
-
'aria-labelledby'?: string
|
|
170
|
-
'aria-level'?:
|
|
171
|
-
'aria-live'?: "off" | "assertive" | "polite"
|
|
172
|
-
'aria-modal'?:
|
|
173
|
-
'aria-multiline'?:
|
|
174
|
-
'aria-multiselectable'?:
|
|
175
|
-
'aria-orientation'?: "
|
|
176
|
-
'aria-owns'?: string
|
|
177
|
-
'aria-placeholder'?: string
|
|
178
|
-
'aria-posinset'?:
|
|
179
|
-
'aria-pressed'?: (boolean | "true" | "false") | "mixed"
|
|
180
|
-
'aria-readonly'?:
|
|
181
|
-
'aria-relevant'?: "
|
|
182
|
-
'aria-required'?:
|
|
183
|
-
'aria-roledescription'?: string
|
|
184
|
-
'aria-rowcount'?:
|
|
185
|
-
'aria-rowindex'?:
|
|
186
|
-
'aria-rowspan'?:
|
|
187
|
-
'aria-selected'?:
|
|
188
|
-
'aria-setsize'?:
|
|
189
|
-
'aria-sort'?: "none" | "ascending" | "descending" | "other"
|
|
190
|
-
'aria-valuemax'?:
|
|
191
|
-
'aria-valuemin'?:
|
|
192
|
-
'aria-valuenow'?:
|
|
193
|
-
'aria-valuetext'?: string
|
|
126
|
+
prefix?: string;
|
|
127
|
+
property?: string;
|
|
128
|
+
resource?: string;
|
|
129
|
+
typeof?: string;
|
|
130
|
+
vocab?: string;
|
|
131
|
+
autocapitalize?: string;
|
|
132
|
+
autocorrect?: string;
|
|
133
|
+
autosave?: string;
|
|
134
|
+
color?: string;
|
|
135
|
+
itemprop?: string;
|
|
136
|
+
itemscope?: boolean | "true" | "false";
|
|
137
|
+
itemtype?: string;
|
|
138
|
+
itemid?: string;
|
|
139
|
+
itemref?: string;
|
|
140
|
+
results?: string | number;
|
|
141
|
+
security?: string;
|
|
142
|
+
unselectable?: "on" | "off";
|
|
143
|
+
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
144
|
+
is?: string;
|
|
145
|
+
'aria-activedescendant'?: string;
|
|
146
|
+
'aria-atomic'?: boolean | "true" | "false";
|
|
147
|
+
'aria-autocomplete'?: "none" | "inline" | "list" | "both";
|
|
148
|
+
'aria-busy'?: boolean | "true" | "false";
|
|
149
|
+
'aria-checked'?: (boolean | "true" | "false") | "mixed";
|
|
150
|
+
'aria-colcount'?: string | number;
|
|
151
|
+
'aria-colindex'?: string | number;
|
|
152
|
+
'aria-colspan'?: string | number;
|
|
153
|
+
'aria-controls'?: string;
|
|
154
|
+
'aria-current'?: (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time";
|
|
155
|
+
'aria-describedby'?: string;
|
|
156
|
+
'aria-details'?: string;
|
|
157
|
+
'aria-disabled'?: boolean | "true" | "false";
|
|
158
|
+
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup";
|
|
159
|
+
'aria-errormessage'?: string;
|
|
160
|
+
'aria-expanded'?: boolean | "true" | "false";
|
|
161
|
+
'aria-flowto'?: string;
|
|
162
|
+
'aria-grabbed'?: boolean | "true" | "false";
|
|
163
|
+
'aria-haspopup'?: (boolean | "true" | "false") | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
164
|
+
'aria-hidden'?: boolean | "true" | "false";
|
|
165
|
+
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling";
|
|
166
|
+
'aria-keyshortcuts'?: string;
|
|
167
|
+
'aria-label'?: string;
|
|
168
|
+
'aria-labelledby'?: string;
|
|
169
|
+
'aria-level'?: string | number;
|
|
170
|
+
'aria-live'?: "off" | "assertive" | "polite";
|
|
171
|
+
'aria-modal'?: boolean | "true" | "false";
|
|
172
|
+
'aria-multiline'?: boolean | "true" | "false";
|
|
173
|
+
'aria-multiselectable'?: boolean | "true" | "false";
|
|
174
|
+
'aria-orientation'?: "horizontal" | "vertical";
|
|
175
|
+
'aria-owns'?: string;
|
|
176
|
+
'aria-placeholder'?: string;
|
|
177
|
+
'aria-posinset'?: string | number;
|
|
178
|
+
'aria-pressed'?: (boolean | "true" | "false") | "mixed";
|
|
179
|
+
'aria-readonly'?: boolean | "true" | "false";
|
|
180
|
+
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
|
|
181
|
+
'aria-required'?: boolean | "true" | "false";
|
|
182
|
+
'aria-roledescription'?: string;
|
|
183
|
+
'aria-rowcount'?: string | number;
|
|
184
|
+
'aria-rowindex'?: string | number;
|
|
185
|
+
'aria-rowspan'?: string | number;
|
|
186
|
+
'aria-selected'?: boolean | "true" | "false";
|
|
187
|
+
'aria-setsize'?: string | number;
|
|
188
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
189
|
+
'aria-valuemax'?: string | number;
|
|
190
|
+
'aria-valuemin'?: string | number;
|
|
191
|
+
'aria-valuenow'?: string | number;
|
|
192
|
+
'aria-valuetext'?: string;
|
|
194
193
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
195
194
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
196
195
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -276,37 +275,37 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
276
275
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
277
276
|
};
|
|
278
277
|
wrapperCol: {
|
|
279
|
-
|
|
278
|
+
xxl?: (string | number) | {
|
|
280
279
|
span: string | number;
|
|
281
280
|
offset: string | number;
|
|
282
|
-
} | undefined;
|
|
283
|
-
|
|
281
|
+
} | ColSize | undefined;
|
|
282
|
+
xl?: (string | number) | {
|
|
284
283
|
span: string | number;
|
|
285
284
|
offset: string | number;
|
|
286
|
-
} | undefined;
|
|
287
|
-
|
|
285
|
+
} | ColSize | undefined;
|
|
286
|
+
lg?: (string | number) | {
|
|
288
287
|
span: string | number;
|
|
289
288
|
offset: string | number;
|
|
290
|
-
} | undefined;
|
|
291
|
-
|
|
289
|
+
} | ColSize | undefined;
|
|
290
|
+
md?: (string | number) | {
|
|
292
291
|
span: string | number;
|
|
293
292
|
offset: string | number;
|
|
294
|
-
} | undefined;
|
|
295
|
-
|
|
293
|
+
} | ColSize | undefined;
|
|
294
|
+
sm?: (string | number) | {
|
|
296
295
|
span: string | number;
|
|
297
296
|
offset: string | number;
|
|
298
|
-
} | undefined;
|
|
299
|
-
|
|
297
|
+
} | ColSize | undefined;
|
|
298
|
+
xs?: (string | number) | {
|
|
300
299
|
span: string | number;
|
|
301
300
|
offset: string | number;
|
|
302
|
-
} | undefined;
|
|
301
|
+
} | ColSize | undefined;
|
|
302
|
+
span?: string | number;
|
|
303
|
+
push?: string | number;
|
|
304
|
+
flex?: string | number;
|
|
303
305
|
prefixCls?: string | undefined;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
order?: (string | number) | undefined;
|
|
308
|
-
offset?: (string | number) | undefined;
|
|
309
|
-
pull?: (string | number) | undefined;
|
|
306
|
+
order?: string | number;
|
|
307
|
+
offset?: string | number;
|
|
308
|
+
pull?: string | number;
|
|
310
309
|
style: any;
|
|
311
310
|
};
|
|
312
311
|
}>;
|
|
@@ -8,7 +8,6 @@ import { default as RadioButtonGroup } from './components/radio-button-group.vue
|
|
|
8
8
|
import { default as ProForm } from './pro-form.vue';
|
|
9
9
|
import { default as ProTableForm } from './table-form.vue';
|
|
10
10
|
import { default as ProTableFormInner } from './table-form-inner.vue';
|
|
11
|
-
|
|
12
11
|
type FieldType = {
|
|
13
12
|
ApiCascader: typeof ApiCascader;
|
|
14
13
|
ApiRadioGroup: typeof ApiRadioGroup;
|
|
@@ -3,9 +3,12 @@ import { Recordable } from '../type';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { NamePath } from 'ant-design-vue/lib/form/interface';
|
|
5
5
|
import { ColEx } from './types';
|
|
6
|
-
|
|
7
6
|
declare function setProps(formProps: Partial<ProFormProps>): Promise<void>;
|
|
8
|
-
declare
|
|
7
|
+
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
8
|
+
formHeader?(_: {}): any;
|
|
9
|
+
formFooter?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ProFormProps>, {
|
|
9
12
|
model: () => {};
|
|
10
13
|
labelWidth: number;
|
|
11
14
|
fieldMapToTime: () => never[];
|
|
@@ -30,11 +33,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
33
|
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
31
34
|
setProps: typeof setProps;
|
|
32
35
|
removeSchemaByField: (fields: string | string[]) => Promise<void>;
|
|
33
|
-
appendSchemaByField: (schema: FormSchema | FormSchema[], prefixField?: string
|
|
34
|
-
clearValidate: (name?: string | string[]
|
|
36
|
+
appendSchemaByField: (schema: FormSchema | FormSchema[], prefixField?: string, first?: boolean) => Promise<void>;
|
|
37
|
+
clearValidate: (name?: string | string[]) => Promise<void>;
|
|
35
38
|
validateFields: (nameList?: NamePath[] | undefined) => Promise<any>;
|
|
36
|
-
validate: (nameList?:
|
|
37
|
-
submit: (e?: Event
|
|
39
|
+
validate: (nameList?: NamePath[] | false | undefined) => Promise<any>;
|
|
40
|
+
submit: (e?: Event) => Promise<void>;
|
|
38
41
|
scrollToField: (name: NamePath, options?: ScrollOptions | undefined) => Promise<void>;
|
|
39
42
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
43
|
reset: (...args: any[]) => void;
|
|
@@ -42,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
42
45
|
register: (...args: any[]) => void;
|
|
43
46
|
"advanced-change": (...args: any[]) => void;
|
|
44
47
|
"field-value-change": (...args: any[]) => void;
|
|
45
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
48
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ProFormProps>, {
|
|
46
49
|
model: () => {};
|
|
47
50
|
labelWidth: number;
|
|
48
51
|
fieldMapToTime: () => never[];
|
|
@@ -67,11 +70,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
67
70
|
"onField-value-change"?: ((...args: any[]) => any) | undefined;
|
|
68
71
|
}, {
|
|
69
72
|
size: "default" | "small" | "large";
|
|
70
|
-
layout: "
|
|
71
|
-
|
|
72
|
-
labelWidth: string | number;
|
|
73
|
+
layout: "vertical" | "inline" | "horizontal";
|
|
74
|
+
labelWidth: number | string;
|
|
73
75
|
rulesMessageJoinLabel: boolean;
|
|
74
76
|
autoSetPlaceHolder: boolean;
|
|
77
|
+
model: Record<string, any>;
|
|
75
78
|
showActionButtonGroup: boolean;
|
|
76
79
|
showResetButton: boolean;
|
|
77
80
|
showSubmitButton: boolean;
|
|
@@ -82,20 +85,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
82
85
|
autoAdvancedLine: number;
|
|
83
86
|
alwaysShowLines: number;
|
|
84
87
|
transformDateFunc: (date: any) => string;
|
|
85
|
-
}, {}
|
|
86
|
-
|
|
87
|
-
formFooter?(_: {}): any;
|
|
88
|
-
}>;
|
|
88
|
+
}, {}>;
|
|
89
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
89
90
|
export default _default;
|
|
90
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
91
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
92
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
93
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
94
|
-
} : {
|
|
95
|
-
type: PropType<T[K]>;
|
|
96
|
-
required: true;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
91
|
type __VLS_WithDefaults<P, D> = {
|
|
100
92
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
101
93
|
default: D[K];
|
|
@@ -109,3 +101,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
109
101
|
$slots: S;
|
|
110
102
|
};
|
|
111
103
|
};
|
|
104
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
105
|
+
type __VLS_TypePropsToOption<T> = {
|
|
106
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
107
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
108
|
+
} : {
|
|
109
|
+
type: PropType<T[K]>;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EditColumn, Recordable, ProTableFormInnerProps, TableActionTypes } from './types/table-form';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormInnerProps>, {
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableFormInnerProps>, {
|
|
5
4
|
disabled: boolean;
|
|
6
5
|
dataPath: () => never[];
|
|
7
6
|
actions: () => never[];
|
|
@@ -9,7 +8,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
9
8
|
editableFunc: () => true;
|
|
10
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
10
|
editChange: (...args: any[]) => void;
|
|
12
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
11
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableFormInnerProps>, {
|
|
13
12
|
disabled: boolean;
|
|
14
13
|
dataPath: () => never[];
|
|
15
14
|
actions: () => never[];
|
|
@@ -21,19 +20,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
21
20
|
disabled: boolean;
|
|
22
21
|
bordered: boolean;
|
|
23
22
|
actions: TableActionTypes;
|
|
24
|
-
dataPath: string
|
|
25
|
-
editableFunc: (column: EditColumn
|
|
23
|
+
dataPath: Array<string>;
|
|
24
|
+
editableFunc: (column: EditColumn, record: Recordable) => boolean;
|
|
26
25
|
}, {}>;
|
|
27
26
|
export default _default;
|
|
28
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
-
} : {
|
|
33
|
-
type: PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
27
|
type __VLS_WithDefaults<P, D> = {
|
|
38
28
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
29
|
default: D[K];
|
|
@@ -42,3 +32,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
42
32
|
type __VLS_Prettify<T> = {
|
|
43
33
|
[K in keyof T]: T[K];
|
|
44
34
|
} & {};
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToOption<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ProTableFormProps, TableActionTypes } from './types/table-form';
|
|
2
2
|
import { ValidateOptions } from 'ant-design-vue/lib/form/interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
|
|
5
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableFormProps>, {
|
|
4
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableFormProps>, {
|
|
6
5
|
disabled: boolean;
|
|
7
6
|
actions: () => never[];
|
|
8
7
|
bordered: boolean;
|
|
@@ -10,10 +9,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
10
9
|
validate: () => Promise<{
|
|
11
10
|
[key: string]: any;
|
|
12
11
|
} | undefined>;
|
|
13
|
-
validateFields: (fields:
|
|
12
|
+
validateFields: (fields: Array<string | Array<string>>, options?: ValidateOptions) => Promise<{
|
|
14
13
|
[key: string]: any;
|
|
15
14
|
} | undefined>;
|
|
16
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<
|
|
15
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ProTableFormProps>, {
|
|
17
16
|
disabled: boolean;
|
|
18
17
|
actions: () => never[];
|
|
19
18
|
bordered: boolean;
|
|
@@ -23,15 +22,6 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
23
22
|
actions: TableActionTypes;
|
|
24
23
|
}, {}>;
|
|
25
24
|
export default _default;
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
25
|
type __VLS_WithDefaults<P, D> = {
|
|
36
26
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
27
|
default: D[K];
|
|
@@ -40,3 +30,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
40
30
|
type __VLS_Prettify<T> = {
|
|
41
31
|
[K in keyof T]: T[K];
|
|
42
32
|
} & {};
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToOption<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NamePath } from 'ant-design-vue/lib/form/interface';
|
|
2
2
|
import { ColProps } from 'ant-design-vue/lib/grid/Col';
|
|
3
3
|
import { HTMLAttributes, VNode, VNodeChild } from 'vue';
|
|
4
|
-
|
|
5
4
|
export interface ProFormItem {
|
|
6
5
|
/**
|
|
7
6
|
* Used with label, whether to display : after label text.
|
|
@@ -4,7 +4,6 @@ import { ButtonProps as AntdButtonProps } from '../../base-button';
|
|
|
4
4
|
import { ProFormItem } from './form-item';
|
|
5
5
|
import { ColEx, ComponentType, ComponentProps } from './';
|
|
6
6
|
import { RowProps } from 'ant-design-vue/lib/grid/Row';
|
|
7
|
-
|
|
8
7
|
export type FieldMapToTime = [
|
|
9
8
|
string,
|
|
10
9
|
[
|