@aplus-frontend/ui 6.19.1 → 6.20.0
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/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
- package/es/src/ap-button/ap-button.vue.mjs +24 -20
- package/es/src/ap-button/ap-confirm-button.vue.mjs +15 -11
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +21 -18
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +13 -13
- package/es/src/ap-field/date-range/index.vue.mjs +16 -16
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.d.ts +29 -29
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +4 -4
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +17 -12
- package/es/src/ap-field/select/index.vue.d.ts +97 -97
- package/es/src/ap-field/select/index.vue.mjs +10 -10
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.d.ts +8 -8
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/es/src/ap-field/text-area/index.vue.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/es/src/ap-field/tree-select/index.vue.mjs +19 -19
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +14 -15
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +107 -107
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +9 -9
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +41 -41
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -14
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +332 -332
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +4 -3
- package/es/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +5 -5
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +33 -33
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/config-provider-props.d.ts +4 -5
- package/es/src/config-provider/config-provider.d.ts +8 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +13 -14
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +37 -38
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +15 -16
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/utils/config-provider-preset.d.ts +5 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +29 -29
- package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +97 -97
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
- package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +14 -15
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +107 -107
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/lib/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/lib/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +332 -332
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/lib/src/config-provider/config-provider-props.d.ts +4 -5
- package/lib/src/config-provider/config-provider.d.ts +8 -9
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +13 -14
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/config-provider-preset.d.ts +5 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/package.json +4 -4
- package/theme/antd-global-overwrite/admin/alert.css +0 -37
- package/theme/antd-global-overwrite/admin/alert.less +0 -51
- package/theme/antd-global-overwrite/admin/button.css +0 -27
- package/theme/antd-global-overwrite/admin/button.less +0 -31
- package/theme/antd-global-overwrite/admin/field.css +0 -42
- package/theme/antd-global-overwrite/admin/field.less +0 -43
- package/theme/antd-global-overwrite/admin/form.css +0 -57
- package/theme/antd-global-overwrite/admin/form.less +0 -97
- package/theme/antd-global-overwrite/admin/message.css +0 -10
- package/theme/antd-global-overwrite/admin/message.less +0 -13
- package/theme/antd-global-overwrite/admin/modal.css +0 -94
- package/theme/antd-global-overwrite/admin/modal.less +0 -128
- package/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/theme/antd-global-overwrite/admin/pagination.less +0 -91
- package/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/theme/antd-global-overwrite/admin/steps.less +0 -197
- package/theme/antd-global-overwrite/admin/table.css +0 -78
- package/theme/antd-global-overwrite/admin/table.less +0 -62
- package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
- package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
- package/theme/antd-global-overwrite/aplus/alert.css +0 -40
- package/theme/antd-global-overwrite/aplus/alert.less +0 -55
- package/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/theme/antd-global-overwrite/aplus/button.less +0 -31
- package/theme/antd-global-overwrite/aplus/field.css +0 -42
- package/theme/antd-global-overwrite/aplus/field.less +0 -43
- package/theme/antd-global-overwrite/aplus/form.css +0 -87
- package/theme/antd-global-overwrite/aplus/form.less +0 -133
- package/theme/antd-global-overwrite/aplus/message.css +0 -10
- package/theme/antd-global-overwrite/aplus/message.less +0 -13
- package/theme/antd-global-overwrite/aplus/modal.css +0 -87
- package/theme/antd-global-overwrite/aplus/modal.less +0 -120
- package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
- package/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/theme/antd-global-overwrite/aplus/steps.less +0 -198
- package/theme/antd-global-overwrite/aplus/table.css +0 -78
- package/theme/antd-global-overwrite/aplus/table.less +0 -61
- package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
- package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
- package/theme/ap-table/ap-table-pagination.css +0 -12
- package/theme/ap-table/ap-table-pagination.less +0 -14
- package/theme/ui-mode.css +0 -60
- package/theme/ui-mode.less +0 -109
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -7,8 +7,7 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import {
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
10
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
14
13
|
attrs: Partial<{}>;
|
|
@@ -212,8 +211,8 @@ declare function __VLS_template(): {
|
|
|
212
211
|
default: string | string[];
|
|
213
212
|
};
|
|
214
213
|
size: {
|
|
215
|
-
type: PropType<
|
|
216
|
-
default:
|
|
214
|
+
type: PropType<ButtonSize>;
|
|
215
|
+
default: ButtonSize;
|
|
217
216
|
};
|
|
218
217
|
disabled: {
|
|
219
218
|
type: BooleanConstructor;
|
|
@@ -240,7 +239,7 @@ declare function __VLS_template(): {
|
|
|
240
239
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
241
240
|
};
|
|
242
241
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
243
|
-
size:
|
|
242
|
+
size: ButtonSize;
|
|
244
243
|
onSubmit: (e: Event) => void;
|
|
245
244
|
disabled: boolean;
|
|
246
245
|
validateTrigger: string | string[];
|
|
@@ -532,8 +531,8 @@ declare function __VLS_template(): {
|
|
|
532
531
|
default: string | string[];
|
|
533
532
|
};
|
|
534
533
|
size: {
|
|
535
|
-
type: PropType<
|
|
536
|
-
default:
|
|
534
|
+
type: PropType<ButtonSize>;
|
|
535
|
+
default: ButtonSize;
|
|
537
536
|
};
|
|
538
537
|
disabled: {
|
|
539
538
|
type: BooleanConstructor;
|
|
@@ -560,7 +559,7 @@ declare function __VLS_template(): {
|
|
|
560
559
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
561
560
|
};
|
|
562
561
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
563
|
-
size:
|
|
562
|
+
size: ButtonSize;
|
|
564
563
|
onSubmit: (e: Event) => void;
|
|
565
564
|
disabled: boolean;
|
|
566
565
|
validateTrigger: string | string[];
|
|
@@ -872,8 +871,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
872
871
|
default: string | string[];
|
|
873
872
|
};
|
|
874
873
|
size: {
|
|
875
|
-
type: PropType<
|
|
876
|
-
default:
|
|
874
|
+
type: PropType<ButtonSize>;
|
|
875
|
+
default: ButtonSize;
|
|
877
876
|
};
|
|
878
877
|
disabled: {
|
|
879
878
|
type: BooleanConstructor;
|
|
@@ -900,7 +899,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
900
899
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
901
900
|
};
|
|
902
901
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
903
|
-
size:
|
|
902
|
+
size: ButtonSize;
|
|
904
903
|
onSubmit: (e: Event) => void;
|
|
905
904
|
disabled: boolean;
|
|
906
905
|
validateTrigger: string | string[];
|
|
@@ -1192,8 +1191,8 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1192
1191
|
default: string | string[];
|
|
1193
1192
|
};
|
|
1194
1193
|
size: {
|
|
1195
|
-
type: PropType<
|
|
1196
|
-
default:
|
|
1194
|
+
type: PropType<ButtonSize>;
|
|
1195
|
+
default: ButtonSize;
|
|
1197
1196
|
};
|
|
1198
1197
|
disabled: {
|
|
1199
1198
|
type: BooleanConstructor;
|
|
@@ -1220,7 +1219,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
1220
1219
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1221
1220
|
};
|
|
1222
1221
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1223
|
-
size:
|
|
1222
|
+
size: ButtonSize;
|
|
1224
1223
|
onSubmit: (e: Event) => void;
|
|
1225
1224
|
disabled: boolean;
|
|
1226
1225
|
validateTrigger: string | string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z,
|
|
1
|
+
import { defineComponent as z, reactive as ee, ref as x, unref as p, nextTick as te, toRaw as R, watch as re, onWatcherCleanup as le, computed as oe, createBlock as ie, openBlock as ne, mergeProps as se, withCtx as ae, renderSlot as ue } from "vue";
|
|
2
2
|
import { Form as ce } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useProvideForm as fe } from "./context.mjs";
|
|
4
4
|
import { isArray as d, cloneDeep as de, isEqual as ge, isFunction as B, isPlainObject as _, omit as me } from "lodash-unified";
|
|
@@ -233,7 +233,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
233
233
|
setFieldValue: P,
|
|
234
234
|
getInitialValues: j
|
|
235
235
|
}
|
|
236
|
-
}), W(A), (e, t) => (
|
|
236
|
+
}), W(A), (e, t) => (ne(), ie(p(ce), se(
|
|
237
237
|
{
|
|
238
238
|
ref_key: "formRef",
|
|
239
239
|
ref: a
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
4
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
6
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
7
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
9
|
import { Recordable } from '../../type';
|
|
9
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -28,7 +27,7 @@ declare function __VLS_template(): {
|
|
|
28
27
|
$: ComponentInternalInstance;
|
|
29
28
|
$data: {};
|
|
30
29
|
$props: {
|
|
31
|
-
readonly size?:
|
|
30
|
+
readonly size?: SizeType;
|
|
32
31
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
33
32
|
readonly layout?: string | undefined;
|
|
34
33
|
readonly disabled?: boolean | undefined;
|
|
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
118
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
118
|
readonly initialValues?: Recordable | undefined;
|
|
120
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
123
|
$attrs: {
|
|
@@ -323,8 +322,8 @@ declare function __VLS_template(): {
|
|
|
323
322
|
default: string | string[];
|
|
324
323
|
};
|
|
325
324
|
size: {
|
|
326
|
-
type: PropType<
|
|
327
|
-
default:
|
|
325
|
+
type: PropType<ButtonSize>;
|
|
326
|
+
default: ButtonSize;
|
|
328
327
|
};
|
|
329
328
|
disabled: {
|
|
330
329
|
type: BooleanConstructor;
|
|
@@ -351,7 +350,7 @@ declare function __VLS_template(): {
|
|
|
351
350
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
352
351
|
};
|
|
353
352
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
354
|
-
size:
|
|
353
|
+
size: ButtonSize;
|
|
355
354
|
onSubmit: (e: Event) => void;
|
|
356
355
|
disabled: boolean;
|
|
357
356
|
validateTrigger: string | string[];
|
|
@@ -643,8 +642,8 @@ declare function __VLS_template(): {
|
|
|
643
642
|
default: string | string[];
|
|
644
643
|
};
|
|
645
644
|
size: {
|
|
646
|
-
type: PropType<
|
|
647
|
-
default:
|
|
645
|
+
type: PropType<ButtonSize>;
|
|
646
|
+
default: ButtonSize;
|
|
648
647
|
};
|
|
649
648
|
disabled: {
|
|
650
649
|
type: BooleanConstructor;
|
|
@@ -671,7 +670,7 @@ declare function __VLS_template(): {
|
|
|
671
670
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
672
671
|
};
|
|
673
672
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
674
|
-
size:
|
|
673
|
+
size: ButtonSize;
|
|
675
674
|
onSubmit: (e: Event) => void;
|
|
676
675
|
disabled: boolean;
|
|
677
676
|
validateTrigger: string | string[];
|
|
@@ -976,7 +975,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
976
975
|
$: ComponentInternalInstance;
|
|
977
976
|
$data: {};
|
|
978
977
|
$props: {
|
|
979
|
-
readonly size?:
|
|
978
|
+
readonly size?: SizeType;
|
|
980
979
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
981
980
|
readonly layout?: string | undefined;
|
|
982
981
|
readonly disabled?: boolean | undefined;
|
|
@@ -1066,7 +1065,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1066
1065
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1067
1066
|
readonly initialValues?: Recordable | undefined;
|
|
1068
1067
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1069
|
-
readonly syncToUrl?:
|
|
1068
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1070
1069
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1071
1070
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1072
1071
|
$attrs: {
|
|
@@ -1271,8 +1270,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1271
1270
|
default: string | string[];
|
|
1272
1271
|
};
|
|
1273
1272
|
size: {
|
|
1274
|
-
type: PropType<
|
|
1275
|
-
default:
|
|
1273
|
+
type: PropType<ButtonSize>;
|
|
1274
|
+
default: ButtonSize;
|
|
1276
1275
|
};
|
|
1277
1276
|
disabled: {
|
|
1278
1277
|
type: BooleanConstructor;
|
|
@@ -1299,7 +1298,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1299
1298
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1300
1299
|
};
|
|
1301
1300
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1302
|
-
size:
|
|
1301
|
+
size: ButtonSize;
|
|
1303
1302
|
onSubmit: (e: Event) => void;
|
|
1304
1303
|
disabled: boolean;
|
|
1305
1304
|
validateTrigger: string | string[];
|
|
@@ -1591,8 +1590,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1591
1590
|
default: string | string[];
|
|
1592
1591
|
};
|
|
1593
1592
|
size: {
|
|
1594
|
-
type: PropType<
|
|
1595
|
-
default:
|
|
1593
|
+
type: PropType<ButtonSize>;
|
|
1594
|
+
default: ButtonSize;
|
|
1596
1595
|
};
|
|
1597
1596
|
disabled: {
|
|
1598
1597
|
type: BooleanConstructor;
|
|
@@ -1619,7 +1618,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1619
1618
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1620
1619
|
};
|
|
1621
1620
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1622
|
-
size:
|
|
1621
|
+
size: ButtonSize;
|
|
1623
1622
|
onSubmit: (e: Event) => void;
|
|
1624
1623
|
disabled: boolean;
|
|
1625
1624
|
validateTrigger: string | string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as h, computed as V, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b,
|
|
1
|
+
import { isVNode as K, defineComponent as Q, useSlots as Y, ref as h, computed as V, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b, createElementBlock as N, openBlock as F, Fragment as ee, createBlock as M, createCommentVNode as S, withCtx as g, renderSlot as _, withModifiers as te, normalizeClass as ie, resolveDynamicComponent as L, createTextVNode as ne, toDisplayString as oe } from "vue";
|
|
2
2
|
import { Button as w, Flex as ae, Space as le, Drawer as se } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -283,23 +283,23 @@ const je = /* @__PURE__ */ Q({
|
|
|
283
283
|
"onUpdate:open": H,
|
|
284
284
|
onCancel: O
|
|
285
285
|
}), {
|
|
286
|
-
title: g(() => [
|
|
287
|
-
footer: g(() => [(F(),
|
|
286
|
+
title: g(() => [_(e.$slots, "title", {}, () => [ne(oe(n.title), 1)])]),
|
|
287
|
+
footer: g(() => [(F(), M(L(A.value)))]),
|
|
288
288
|
default: g(() => [d(he, b({
|
|
289
289
|
ref_key: "formRef",
|
|
290
290
|
ref: a
|
|
291
291
|
}, l(me)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
|
|
292
|
-
default: g(() => [
|
|
292
|
+
default: g(() => [_(e.$slots, "default")]),
|
|
293
293
|
_: 3
|
|
294
294
|
}, 16), e.resize ? (F(), N("div", {
|
|
295
295
|
key: 0,
|
|
296
|
-
class:
|
|
297
|
-
onMousedown:
|
|
298
|
-
}, null, 34)) :
|
|
296
|
+
class: ie(q.value),
|
|
297
|
+
onMousedown: te(I, ["stop", "prevent"])
|
|
298
|
+
}, null, 34)) : S("", !0)]),
|
|
299
299
|
_: 3
|
|
300
|
-
}, 16, ["open", "width"]), l(x) ? (F(),
|
|
300
|
+
}, 16, ["open", "width"]), l(x) ? (F(), M(L(l(x)), {
|
|
301
301
|
key: 0
|
|
302
|
-
})) :
|
|
302
|
+
})) : S("", !0)], 64));
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as L, ref as b, onMounted as _, computed as $, unref as l, cloneVNode as j,
|
|
1
|
+
import { defineComponent as D, useSlots as L, ref as b, onMounted as _, computed as $, unref as l, cloneVNode as j, createBlock as v, openBlock as F, mergeProps as q, createSlots as E, withCtx as i, resolveDynamicComponent as K, renderList as O, createElementVNode as Q, normalizeClass as U, createVNode as p, normalizeStyle as Y, renderSlot as G, normalizeProps as H, guardReactiveProps as J } from "vue";
|
|
2
2
|
import { Form as M, Tooltip as W, TypographyText as X } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Z } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { isFunction as V, cloneDeep as ee, isArray as oe, omit as g } from "lodash-unified";
|
|
@@ -118,7 +118,7 @@ const Ve = /* @__PURE__ */ D({
|
|
|
118
118
|
clearValidate: I,
|
|
119
119
|
resetField: z,
|
|
120
120
|
getFieldValue: R
|
|
121
|
-
}), (e, t) => (
|
|
121
|
+
}), (e, t) => (F(), v(l(M).Item, q(
|
|
122
122
|
{
|
|
123
123
|
ref_key: "formItemRef",
|
|
124
124
|
ref: a
|
|
@@ -134,22 +134,22 @@ const Ve = /* @__PURE__ */ D({
|
|
|
134
134
|
}
|
|
135
135
|
), E({
|
|
136
136
|
default: i(() => [
|
|
137
|
-
(
|
|
137
|
+
(F(), v(K(k())))
|
|
138
138
|
]),
|
|
139
139
|
_: 2
|
|
140
140
|
}, [
|
|
141
141
|
o.tooltip ? {
|
|
142
142
|
name: "tooltip",
|
|
143
143
|
fn: i(({ class: r }) => [
|
|
144
|
-
|
|
145
|
-
class:
|
|
144
|
+
Q("span", {
|
|
145
|
+
class: U(r)
|
|
146
146
|
}, [
|
|
147
147
|
p(l(W), {
|
|
148
148
|
title: o.tooltip
|
|
149
149
|
}, {
|
|
150
150
|
default: i(() => [
|
|
151
151
|
p(l(te), {
|
|
152
|
-
style:
|
|
152
|
+
style: Y({
|
|
153
153
|
color: l(C).colorTextTertiary,
|
|
154
154
|
fontSize: "14px",
|
|
155
155
|
transform: "translateY(1px)"
|
|
@@ -173,7 +173,7 @@ const Ve = /* @__PURE__ */ D({
|
|
|
173
173
|
]),
|
|
174
174
|
key: "1"
|
|
175
175
|
} : void 0,
|
|
176
|
-
|
|
176
|
+
O(l(g)(s, "default"), (r, n) => ({
|
|
177
177
|
name: n,
|
|
178
178
|
fn: i((A) => [
|
|
179
179
|
G(e.$slots, n, H(J(A || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as _, defineComponent as k, useSlots as w, ref as h, onBeforeUpdate as B, watch as N, unref as a, createVNode as P, mergeProps as d,
|
|
1
|
+
import { isVNode as _, defineComponent as k, useSlots as w, ref as h, onBeforeUpdate as B, watch as N, unref as a, createVNode as P, mergeProps as d, createBlock as f, openBlock as p, withCtx as R, createElementBlock as S, Fragment as b, renderList as x, resolveDynamicComponent as j } from "vue";
|
|
2
2
|
import { Col as v, Row as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as V } from "../constant.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, useSlots as m,
|
|
1
|
+
import { defineComponent as f, useSlots as m, createBlock as u, openBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as v, renderSlot as x } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as i } from "lodash-unified";
|
|
@@ -53,7 +53,7 @@ const w = /* @__PURE__ */ f({
|
|
|
53
53
|
},
|
|
54
54
|
setup(d) {
|
|
55
55
|
const s = d, n = m();
|
|
56
|
-
return (e, h) => (
|
|
56
|
+
return (e, h) => (c(), u(y, a(t(o(i)(s, ["field", "disabled"]))), b({
|
|
57
57
|
default: r(() => [
|
|
58
58
|
B(o(g), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
59
59
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as v,
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -64,7 +64,7 @@ const L = /* @__PURE__ */ h({
|
|
|
64
64
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
return (o, P) => (
|
|
67
|
+
return (o, P) => (x(), y(k, a(t(r(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
68
68
|
default: i(() => [
|
|
69
69
|
g(C, a(t(b.value)), s({ _: 2 }, [
|
|
70
70
|
p(r(m)(n, r(u)), (_, l) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as g, computed as v,
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as n, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -64,7 +64,7 @@ const I = /* @__PURE__ */ B({
|
|
|
64
64
|
bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
return (l, d) => (
|
|
67
|
+
return (l, d) => (x(), y(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
68
68
|
default: n(() => [
|
|
69
69
|
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
70
70
|
f(o(u)(s, o(c)), (h, a) => ({
|
|
@@ -2,9 +2,9 @@ import { ApFormItemNumberProps } from '../interface';
|
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
5
6
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
7
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
-
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
8
8
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
9
9
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
10
10
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
|
|
|
33
33
|
readonly mode?: FieldMode | undefined;
|
|
34
34
|
readonly class?: unknown;
|
|
35
35
|
readonly style?: unknown;
|
|
36
|
-
readonly size?:
|
|
36
|
+
readonly size?: SizeType;
|
|
37
37
|
readonly step?: ValueType | undefined;
|
|
38
38
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
39
39
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
@@ -87,8 +87,8 @@ declare function __VLS_template(): {
|
|
|
87
87
|
} & {
|
|
88
88
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
89
89
|
size: {
|
|
90
|
-
type: PropType<
|
|
91
|
-
default:
|
|
90
|
+
type: PropType<SizeType>;
|
|
91
|
+
default: SizeType;
|
|
92
92
|
};
|
|
93
93
|
bordered: {
|
|
94
94
|
type: BooleanConstructor;
|
|
@@ -207,7 +207,7 @@ declare function __VLS_template(): {
|
|
|
207
207
|
default: (e: FocusEvent) => void;
|
|
208
208
|
};
|
|
209
209
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
210
|
-
size:
|
|
210
|
+
size: SizeType;
|
|
211
211
|
value: ValueType;
|
|
212
212
|
onFocus: (e: FocusEvent) => void;
|
|
213
213
|
onBlur: (e: FocusEvent) => void;
|
|
@@ -217,13 +217,13 @@ declare function __VLS_template(): {
|
|
|
217
217
|
max: ValueType;
|
|
218
218
|
min: ValueType;
|
|
219
219
|
prefixCls: string;
|
|
220
|
+
bordered: boolean;
|
|
221
|
+
defaultValue: ValueType;
|
|
222
|
+
status: "" | "error" | "warning";
|
|
223
|
+
step: ValueType;
|
|
220
224
|
autofocus: boolean;
|
|
221
225
|
readonly: boolean;
|
|
222
|
-
status: "" | "error" | "warning";
|
|
223
|
-
defaultValue: ValueType;
|
|
224
226
|
'onUpdate:value': (value: ValueType) => void;
|
|
225
|
-
step: ValueType;
|
|
226
|
-
bordered: boolean;
|
|
227
227
|
onPressEnter: KeyboardEventHandler;
|
|
228
228
|
formatter: (value: ValueType, info: {
|
|
229
229
|
userTyping: boolean;
|
|
@@ -254,8 +254,8 @@ declare function __VLS_template(): {
|
|
|
254
254
|
Defaults: {};
|
|
255
255
|
}, Readonly< ExtractPropTypes<{
|
|
256
256
|
size: {
|
|
257
|
-
type: PropType<
|
|
258
|
-
default:
|
|
257
|
+
type: PropType<SizeType>;
|
|
258
|
+
default: SizeType;
|
|
259
259
|
};
|
|
260
260
|
bordered: {
|
|
261
261
|
type: BooleanConstructor;
|
|
@@ -374,7 +374,7 @@ declare function __VLS_template(): {
|
|
|
374
374
|
default: (e: FocusEvent) => void;
|
|
375
375
|
};
|
|
376
376
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
377
|
-
size:
|
|
377
|
+
size: SizeType;
|
|
378
378
|
value: ValueType;
|
|
379
379
|
onFocus: (e: FocusEvent) => void;
|
|
380
380
|
onBlur: (e: FocusEvent) => void;
|
|
@@ -384,13 +384,13 @@ declare function __VLS_template(): {
|
|
|
384
384
|
max: ValueType;
|
|
385
385
|
min: ValueType;
|
|
386
386
|
prefixCls: string;
|
|
387
|
+
bordered: boolean;
|
|
388
|
+
defaultValue: ValueType;
|
|
389
|
+
status: "" | "error" | "warning";
|
|
390
|
+
step: ValueType;
|
|
387
391
|
autofocus: boolean;
|
|
388
392
|
readonly: boolean;
|
|
389
|
-
status: "" | "error" | "warning";
|
|
390
|
-
defaultValue: ValueType;
|
|
391
393
|
'onUpdate:value': (value: ValueType) => void;
|
|
392
|
-
step: ValueType;
|
|
393
|
-
bordered: boolean;
|
|
394
394
|
onPressEnter: KeyboardEventHandler;
|
|
395
395
|
formatter: (value: ValueType, info: {
|
|
396
396
|
userTyping: boolean;
|
|
@@ -506,7 +506,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
506
506
|
readonly mode?: FieldMode | undefined;
|
|
507
507
|
readonly class?: unknown;
|
|
508
508
|
readonly style?: unknown;
|
|
509
|
-
readonly size?:
|
|
509
|
+
readonly size?: SizeType;
|
|
510
510
|
readonly step?: ValueType | undefined;
|
|
511
511
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
512
512
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
@@ -560,8 +560,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
560
560
|
} & {
|
|
561
561
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
562
562
|
size: {
|
|
563
|
-
type: PropType<
|
|
564
|
-
default:
|
|
563
|
+
type: PropType<SizeType>;
|
|
564
|
+
default: SizeType;
|
|
565
565
|
};
|
|
566
566
|
bordered: {
|
|
567
567
|
type: BooleanConstructor;
|
|
@@ -680,7 +680,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
680
680
|
default: (e: FocusEvent) => void;
|
|
681
681
|
};
|
|
682
682
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
683
|
-
size:
|
|
683
|
+
size: SizeType;
|
|
684
684
|
value: ValueType;
|
|
685
685
|
onFocus: (e: FocusEvent) => void;
|
|
686
686
|
onBlur: (e: FocusEvent) => void;
|
|
@@ -690,13 +690,13 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
690
690
|
max: ValueType;
|
|
691
691
|
min: ValueType;
|
|
692
692
|
prefixCls: string;
|
|
693
|
+
bordered: boolean;
|
|
694
|
+
defaultValue: ValueType;
|
|
695
|
+
status: "" | "error" | "warning";
|
|
696
|
+
step: ValueType;
|
|
693
697
|
autofocus: boolean;
|
|
694
698
|
readonly: boolean;
|
|
695
|
-
status: "" | "error" | "warning";
|
|
696
|
-
defaultValue: ValueType;
|
|
697
699
|
'onUpdate:value': (value: ValueType) => void;
|
|
698
|
-
step: ValueType;
|
|
699
|
-
bordered: boolean;
|
|
700
700
|
onPressEnter: KeyboardEventHandler;
|
|
701
701
|
formatter: (value: ValueType, info: {
|
|
702
702
|
userTyping: boolean;
|
|
@@ -727,8 +727,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
727
727
|
Defaults: {};
|
|
728
728
|
}, Readonly< ExtractPropTypes<{
|
|
729
729
|
size: {
|
|
730
|
-
type: PropType<
|
|
731
|
-
default:
|
|
730
|
+
type: PropType<SizeType>;
|
|
731
|
+
default: SizeType;
|
|
732
732
|
};
|
|
733
733
|
bordered: {
|
|
734
734
|
type: BooleanConstructor;
|
|
@@ -847,7 +847,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
847
847
|
default: (e: FocusEvent) => void;
|
|
848
848
|
};
|
|
849
849
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
850
|
-
size:
|
|
850
|
+
size: SizeType;
|
|
851
851
|
value: ValueType;
|
|
852
852
|
onFocus: (e: FocusEvent) => void;
|
|
853
853
|
onBlur: (e: FocusEvent) => void;
|
|
@@ -857,13 +857,13 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
857
857
|
max: ValueType;
|
|
858
858
|
min: ValueType;
|
|
859
859
|
prefixCls: string;
|
|
860
|
+
bordered: boolean;
|
|
861
|
+
defaultValue: ValueType;
|
|
862
|
+
status: "" | "error" | "warning";
|
|
863
|
+
step: ValueType;
|
|
860
864
|
autofocus: boolean;
|
|
861
865
|
readonly: boolean;
|
|
862
|
-
status: "" | "error" | "warning";
|
|
863
|
-
defaultValue: ValueType;
|
|
864
866
|
'onUpdate:value': (value: ValueType) => void;
|
|
865
|
-
step: ValueType;
|
|
866
|
-
bordered: boolean;
|
|
867
867
|
onPressEnter: KeyboardEventHandler;
|
|
868
868
|
formatter: (value: ValueType, info: {
|
|
869
869
|
userTyping: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B, ref as _,
|
|
1
|
+
import { defineComponent as y, useSlots as B, ref as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as p, withCtx as d, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
4
|
import { omit as f, pick as N } from "lodash-unified";
|
|
@@ -65,7 +65,7 @@ const T = /* @__PURE__ */ y({
|
|
|
65
65
|
var e;
|
|
66
66
|
(e = r.value) == null || e.blur();
|
|
67
67
|
}
|
|
68
|
-
}), (e, R) => (
|
|
68
|
+
}), (e, R) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), p({
|
|
69
69
|
default: d(() => [
|
|
70
70
|
k(C, F({
|
|
71
71
|
ref_key: "inputNumberRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as m, ref as c,
|
|
1
|
+
import { defineComponent as u, useSlots as m, ref as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as h } from "lodash-unified";
|
|
@@ -62,7 +62,7 @@ const q = /* @__PURE__ */ u({
|
|
|
62
62
|
var e;
|
|
63
63
|
(e = o.value) == null || e.blur();
|
|
64
64
|
}
|
|
65
|
-
}), (e, P) => (
|
|
65
|
+
}), (e, P) => (v(), b(k, a(t(r(h)(n, ["field", "disabled"]))), _({
|
|
66
66
|
default: s(() => [
|
|
67
67
|
y(r(C), B({
|
|
68
68
|
ref_key: "radioRef",
|