@aplus-frontend/ui 0.3.8 → 0.3.10
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/item/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +4 -3
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
- package/es/src/ap-button/ap-button.vue.d.ts +4 -3
- package/es/src/ap-button/ap-button.vue.mjs +36 -36
- package/es/src/ap-button/interface.d.ts +4 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/es/src/ap-download/ap-download.vue.d.ts +5 -3
- package/es/src/ap-field/date/index.vue.d.ts +2 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-field/number/index.vue.d.ts +2 -1
- package/es/src/ap-field/rate/index.vue.d.ts +2 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/es/src/ap-field/select/index.vue.d.ts +2 -1
- package/es/src/ap-field/slider/index.vue.d.ts +2 -1
- package/es/src/ap-field/switch/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/password.vue.d.ts +2 -1
- package/es/src/ap-form/ap-form.vue.d.ts +6 -4
- package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/item/index.vue.d.ts +2 -1
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/es/src/ap-form/list/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
- package/es/src/ap-form/render/control.vue.d.ts +2 -1
- package/es/src/ap-form/render/item.vue.d.ts +2 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/set/index.vue.d.ts +2 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/es/src/ap-list/index.vue.d.ts +3 -5
- package/es/src/ap-list/index.vue.mjs +37 -39
- package/es/src/ap-list/interface.d.ts +3 -3
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/index.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +75 -78
- package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
- package/es/src/ap-table/interface.d.ts +4 -3
- package/es/src/ap-table/utils.d.ts +1 -0
- package/es/src/ap-table/utils.mjs +10 -5
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/index.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
- package/es/src/business/ap-batch-action/index.d.ts +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/es/src/business/ap-card/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/index.d.ts +3 -3
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +1 -1
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
- package/es/src/business/ap-ladder/index.d.ts +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +3 -4
- package/es/src/business/ap-select-layout/interface.d.ts +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -56
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
- package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/es/src/business/ap-title/index.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +2 -1
- package/es/src/check-card/index.vue.d.ts +3 -2
- package/es/src/editable-table/form-item.vue.d.ts +3 -5
- package/es/src/editable-table/index.vue.d.ts +3 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +4 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
- package/lib/src/ap-field/date/index.vue.d.ts +2 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-field/number/index.vue.d.ts +2 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/password.vue.d.ts +2 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
- package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/item/index.vue.d.ts +2 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/lib/src/ap-form/list/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/control.vue.d.ts +2 -1
- package/lib/src/ap-form/render/item.vue.d.ts +2 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/set/index.vue.d.ts +2 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/lib/src/ap-list/index.vue.d.ts +3 -5
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +3 -3
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +4 -3
- package/lib/src/ap-table/utils.d.ts +1 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
- package/lib/src/business/ap-batch-action/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/lib/src/business/ap-card/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +3 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
- package/lib/src/business/ap-ladder/index.d.ts +1 -1
- package/lib/src/business/ap-select-layout/index.d.ts +3 -4
- package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/lib/src/business/ap-title/index.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +2 -1
- package/lib/src/check-card/index.vue.d.ts +3 -2
- package/lib/src/editable-table/form-item.vue.d.ts +3 -5
- package/lib/src/editable-table/index.vue.d.ts +3 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/package.json +1 -1
- package/index.ts +0 -19
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
3
3
|
helpMessage?: any;
|
|
4
4
|
label?: any;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
label?: any;
|
|
8
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
9
7
|
export default _default;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { ApDownLoadProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
+
type __VLS_Props = ApDownLoadProps;
|
|
4
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
5
7
|
slots: {
|
|
6
8
|
icon?(_: {}): any;
|
|
7
9
|
};
|
|
8
10
|
refs: {};
|
|
9
|
-
|
|
11
|
+
rootEl: any;
|
|
10
12
|
};
|
|
11
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
14
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
15
|
downloadCallback: (...args: any[]) => void;
|
|
14
|
-
}, string, PublicProps, Readonly<
|
|
16
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
17
|
onDownloadCallback?: ((...args: any[]) => any) | undefined;
|
|
16
18
|
}>, {
|
|
17
19
|
size: "small" | "large" | "middle";
|
|
@@ -19,9 +19,10 @@ type ApFieldDataSlots = {
|
|
|
19
19
|
default?: any;
|
|
20
20
|
};
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
22
23
|
slots: Readonly<ApFieldDataSlots> & ApFieldDataSlots;
|
|
23
24
|
refs: {};
|
|
24
|
-
|
|
25
|
+
rootEl: any;
|
|
25
26
|
};
|
|
26
27
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
28
|
declare const __VLS_component: DefineComponent<ApFieldDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -20,9 +20,10 @@ type ApFieldDateRangeSlots = {
|
|
|
20
20
|
clearIcon?: any;
|
|
21
21
|
};
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
23
24
|
slots: Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots;
|
|
24
25
|
refs: {};
|
|
25
|
-
|
|
26
|
+
rootEl: any;
|
|
26
27
|
};
|
|
27
28
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
29
|
declare const __VLS_component: DefineComponent<ApFieldDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -16,6 +16,7 @@ type ApFieldNumberSlots = {
|
|
|
16
16
|
declare function focus(): void;
|
|
17
17
|
declare function blur(): void;
|
|
18
18
|
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
19
20
|
slots: Readonly<ApFieldNumberSlots> & ApFieldNumberSlots;
|
|
20
21
|
refs: {
|
|
21
22
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -339,7 +340,7 @@ declare function __VLS_template(): {
|
|
|
339
340
|
parser: (displayValue: string) => ValueType;
|
|
340
341
|
}> | null;
|
|
341
342
|
};
|
|
342
|
-
|
|
343
|
+
rootEl: any;
|
|
343
344
|
};
|
|
344
345
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
345
346
|
declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
@@ -8,6 +8,7 @@ import { FieldMode } from '..';
|
|
|
8
8
|
declare function focus(): void;
|
|
9
9
|
declare function blur(): void;
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
11
12
|
slots: Readonly<{
|
|
12
13
|
character: any;
|
|
13
14
|
}> & {
|
|
@@ -95,7 +96,7 @@ declare function __VLS_template(): {
|
|
|
95
96
|
allowHalf: boolean;
|
|
96
97
|
}> | null;
|
|
97
98
|
};
|
|
98
|
-
|
|
99
|
+
rootEl: any;
|
|
99
100
|
};
|
|
100
101
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
101
102
|
declare const __VLS_component: DefineComponent<ApFieldRateProps, {
|
|
@@ -2,6 +2,7 @@ import { ApFieldSegmentedProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '..';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
5
6
|
slots: {
|
|
6
7
|
label?(_: {
|
|
7
8
|
value: string | number;
|
|
@@ -12,7 +13,7 @@ declare function __VLS_template(): {
|
|
|
12
13
|
}): any;
|
|
13
14
|
};
|
|
14
15
|
refs: {};
|
|
15
|
-
|
|
16
|
+
rootEl: any;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: DefineComponent<ApFieldSegmentedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -26,6 +26,7 @@ declare function requestIfNeeded(clear?: boolean): Promise<void>;
|
|
|
26
26
|
declare function focus(): void;
|
|
27
27
|
declare function blur(): void;
|
|
28
28
|
declare function __VLS_template(): {
|
|
29
|
+
attrs: Partial<{}>;
|
|
29
30
|
slots: Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
|
|
30
31
|
refs: {
|
|
31
32
|
selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -430,7 +431,7 @@ declare function __VLS_template(): {
|
|
|
430
431
|
labelInValue: boolean;
|
|
431
432
|
}> | null;
|
|
432
433
|
};
|
|
433
|
-
|
|
434
|
+
rootEl: any;
|
|
434
435
|
};
|
|
435
436
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
436
437
|
declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
@@ -14,6 +14,7 @@ type ApFieldSliderSlots = {
|
|
|
14
14
|
declare function focus(): void;
|
|
15
15
|
declare function blur(): void;
|
|
16
16
|
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
17
18
|
slots: Readonly<ApFieldSliderSlots> & ApFieldSliderSlots;
|
|
18
19
|
refs: {
|
|
19
20
|
sliderRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -272,7 +273,7 @@ declare function __VLS_template(): {
|
|
|
272
273
|
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
273
274
|
}> | null;
|
|
274
275
|
};
|
|
275
|
-
|
|
276
|
+
rootEl: any;
|
|
276
277
|
};
|
|
277
278
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
278
279
|
declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
@@ -6,9 +6,10 @@ type ApFieldSwitchSlots = {
|
|
|
6
6
|
default: any;
|
|
7
7
|
};
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
9
10
|
slots: Readonly<ApFieldSwitchSlots> & ApFieldSwitchSlots;
|
|
10
11
|
refs: {};
|
|
11
|
-
|
|
12
|
+
rootEl: any;
|
|
12
13
|
};
|
|
13
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
15
|
declare const __VLS_component: DefineComponent<ApFieldSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -10,9 +10,10 @@ type ApFieldTextSlots = {
|
|
|
10
10
|
clearIcon?: any;
|
|
11
11
|
};
|
|
12
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
13
14
|
slots: Readonly<ApFieldTextSlots> & ApFieldTextSlots;
|
|
14
15
|
refs: {};
|
|
15
|
-
|
|
16
|
+
rootEl: any;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: DefineComponent<ApFieldTextProps, {
|
|
@@ -10,9 +10,10 @@ type ApFieldTextPasswordSlots = {
|
|
|
10
10
|
iconRender: any;
|
|
11
11
|
};
|
|
12
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
13
14
|
slots: Readonly<ApFieldTextPasswordSlots> & ApFieldTextPasswordSlots;
|
|
14
15
|
refs: {};
|
|
15
|
-
|
|
16
|
+
rootEl: any;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormProps, RegistedFieldType, WatchFunc } 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,7 +7,6 @@ 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 { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
/**
|
|
@@ -24,6 +23,7 @@ declare function getInternalInstance(mark: string): {
|
|
|
24
23
|
registerWatch: typeof registerWatch;
|
|
25
24
|
} | undefined;
|
|
26
25
|
declare function __VLS_template(): {
|
|
26
|
+
attrs: Partial<{}>;
|
|
27
27
|
slots: {
|
|
28
28
|
default?(_: {}): any;
|
|
29
29
|
};
|
|
@@ -288,7 +288,9 @@ declare function __VLS_template(): {
|
|
|
288
288
|
};
|
|
289
289
|
xxl: {
|
|
290
290
|
type: PropType<string | number | ColSize>;
|
|
291
|
-
default: string | number |
|
|
291
|
+
default: string | number | **
|
|
292
|
+
* 订阅事件
|
|
293
|
+
*/).ColSize;
|
|
292
294
|
};
|
|
293
295
|
prefixCls: StringConstructor;
|
|
294
296
|
flex: (StringConstructor | NumberConstructor)[];
|
|
@@ -663,7 +665,7 @@ declare function __VLS_template(): {
|
|
|
663
665
|
scrollToFirstError: boolean | Options<any>;
|
|
664
666
|
}> | null;
|
|
665
667
|
};
|
|
666
|
-
|
|
668
|
+
rootEl: any;
|
|
667
669
|
};
|
|
668
670
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
669
671
|
declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
@@ -4,9 +4,10 @@ type ApFormDependencySlots = {
|
|
|
4
4
|
default(values: Record<string, any>): any;
|
|
5
5
|
};
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: Readonly<ApFormDependencySlots> & ApFormDependencySlots;
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: any;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: DefineComponent<ApFormDependencyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormDependencyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -19,6 +19,7 @@ type ApDrawerFormSlots = {
|
|
|
19
19
|
submitter(defaultDoms: VNode[]): any;
|
|
20
20
|
};
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
22
23
|
slots: Readonly<ApDrawerFormSlots> & ApDrawerFormSlots;
|
|
23
24
|
refs: {
|
|
24
25
|
formRef: ({
|
|
@@ -115,7 +116,7 @@ declare function __VLS_template(): {
|
|
|
115
116
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
116
117
|
readonly initialValues?: Recordable | undefined;
|
|
117
118
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
118
|
-
readonly syncToUrl?:
|
|
119
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
119
120
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
120
121
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
121
122
|
$attrs: {
|
|
@@ -218,7 +219,7 @@ declare function __VLS_template(): {
|
|
|
218
219
|
};
|
|
219
220
|
}) | null;
|
|
220
221
|
};
|
|
221
|
-
|
|
222
|
+
rootEl: any;
|
|
222
223
|
};
|
|
223
224
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
224
225
|
declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
@@ -12,6 +12,7 @@ declare function clearValidate(): void;
|
|
|
12
12
|
declare function resetField(): void;
|
|
13
13
|
declare function getFieldValue(shouldFormat?: boolean): any;
|
|
14
14
|
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
15
16
|
slots: Readonly<ApFormItemSlots> & ApFormItemSlots;
|
|
16
17
|
refs: {
|
|
17
18
|
formItemRef: ({
|
|
@@ -790,7 +791,7 @@ declare function __VLS_template(): {
|
|
|
790
791
|
tooltip: StringConstructor;
|
|
791
792
|
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
792
793
|
};
|
|
793
|
-
|
|
794
|
+
rootEl: any;
|
|
794
795
|
};
|
|
795
796
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
796
797
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
@@ -3,13 +3,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
import { Breakpoint } from '@aplus-frontend/antdv/es/_util/responsiveObserve';
|
|
4
4
|
import { Gutter } from '@aplus-frontend/antdv/es/grid/Row';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
default(): any[];
|
|
8
9
|
}> & {
|
|
9
10
|
default(): any[];
|
|
10
11
|
};
|
|
11
12
|
refs: {};
|
|
12
|
-
|
|
13
|
+
rootEl: any;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
16
|
declare const __VLS_component: DefineComponent<ApFormItemGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemGroupProps> & Readonly<{}>, {
|
|
@@ -4,9 +4,10 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
4
4
|
import { ApFieldCheckboxProps } from '../../..';
|
|
5
5
|
type ApFormItemCheckboxSlots = Omit<ApFormItemSlots, 'default'>;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: Readonly<ApFormItemCheckboxSlots> & ApFormItemCheckboxSlots;
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: any;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: DefineComponent<ApFormItemCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemCheckboxProps> & Readonly<{}>, {
|
|
@@ -3,6 +3,7 @@ import { ApFormItemSlots } from '../../interface';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ApFieldDateProps } from '../../..';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
dateRender: any;
|
|
8
9
|
suffixIcon?: any;
|
|
@@ -29,7 +30,7 @@ declare function __VLS_template(): {
|
|
|
29
30
|
default?: any;
|
|
30
31
|
} & Omit<ApFormItemSlots, "default">;
|
|
31
32
|
refs: {};
|
|
32
|
-
|
|
33
|
+
rootEl: any;
|
|
33
34
|
};
|
|
34
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
36
|
declare const __VLS_component: DefineComponent<ApFormItemDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateProps> & Readonly<{}>, {
|
|
@@ -3,6 +3,7 @@ import { ApFormItemSlots } from '../../interface';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ApFieldDateRangeProps } from '../../..';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
suffixIcon?: any;
|
|
8
9
|
prevIcon?: any;
|
|
@@ -27,7 +28,7 @@ declare function __VLS_template(): {
|
|
|
27
28
|
clearIcon?: any;
|
|
28
29
|
} & Omit<ApFormItemSlots, "default">;
|
|
29
30
|
refs: {};
|
|
30
|
-
|
|
31
|
+
rootEl: any;
|
|
31
32
|
};
|
|
32
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
34
|
declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
|
|
@@ -7,6 +7,7 @@ import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniD
|
|
|
7
7
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
8
|
import { OnCleanup } from '@vue/reactivity';
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
10
11
|
slots: Readonly<{
|
|
11
12
|
addonBefore?: any;
|
|
12
13
|
addonAfter?: any;
|
|
@@ -160,7 +161,7 @@ declare function __VLS_template(): {
|
|
|
160
161
|
};
|
|
161
162
|
}) | null;
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
+
rootEl: any;
|
|
164
165
|
};
|
|
165
166
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
166
167
|
declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
@@ -4,6 +4,7 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
4
4
|
import { ApFieldRadioProps, FieldMode } from '../../..';
|
|
5
5
|
type ApFormItemRadioSlots = Omit<ApFormItemSlots, 'default'>;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: Readonly<ApFormItemRadioSlots> & ApFormItemRadioSlots;
|
|
8
9
|
refs: {
|
|
9
10
|
radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
|
|
@@ -37,7 +38,7 @@ declare function __VLS_template(): {
|
|
|
37
38
|
emptyText: string;
|
|
38
39
|
}> | null;
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
rootEl: any;
|
|
41
42
|
};
|
|
42
43
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
44
|
declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
|
|
@@ -3,6 +3,7 @@ import { ApFormItemSlots } from '../../interface';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ApFieldSelectProps } from '../../..';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
notFoundContent: any;
|
|
8
9
|
suffixIcon: any;
|
|
@@ -31,7 +32,7 @@ declare function __VLS_template(): {
|
|
|
31
32
|
default: any;
|
|
32
33
|
} & Omit<ApFormItemSlots, "default">;
|
|
33
34
|
refs: {};
|
|
34
|
-
|
|
35
|
+
rootEl: any;
|
|
35
36
|
};
|
|
36
37
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
38
|
declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
@@ -3,6 +3,7 @@ import { ApFormItemSlots } from '../../interface';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ApFieldSwitchProps } from '../../..';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
checkedChildren: any;
|
|
8
9
|
unCheckedChildren: any;
|
|
@@ -13,7 +14,7 @@ declare function __VLS_template(): {
|
|
|
13
14
|
default: any;
|
|
14
15
|
} & Omit<ApFormItemSlots, "default">;
|
|
15
16
|
refs: {};
|
|
16
|
-
|
|
17
|
+
rootEl: any;
|
|
17
18
|
};
|
|
18
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
20
|
declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSwitchProps> & Readonly<{}>, {
|
|
@@ -4,9 +4,10 @@ type ApFormItemTextSlots = {
|
|
|
4
4
|
default: any;
|
|
5
5
|
};
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: Readonly<ApFormItemTextSlots> & ApFormItemTextSlots;
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: any;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: DefineComponent<ApFormItemTextGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextGroupProps> & Readonly<{}>, {
|
|
@@ -8,6 +8,7 @@ import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, Keyboar
|
|
|
8
8
|
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
9
9
|
import { OnCleanup } from '@vue/reactivity';
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
11
12
|
slots: Readonly<{
|
|
12
13
|
addonAfter: any;
|
|
13
14
|
addonBefore: any;
|
|
@@ -159,7 +160,7 @@ declare function __VLS_template(): {
|
|
|
159
160
|
};
|
|
160
161
|
}) | null;
|
|
161
162
|
};
|
|
162
|
-
|
|
163
|
+
rootEl: any;
|
|
163
164
|
};
|
|
164
165
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
165
166
|
declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
@@ -7,6 +7,7 @@ import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, Keyboar
|
|
|
7
7
|
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
8
8
|
import { OnCleanup } from '@vue/reactivity';
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
10
11
|
slots: Readonly<{
|
|
11
12
|
addonAfter: any;
|
|
12
13
|
addonBefore: any;
|
|
@@ -170,7 +171,7 @@ declare function __VLS_template(): {
|
|
|
170
171
|
};
|
|
171
172
|
}) | null;
|
|
172
173
|
};
|
|
173
|
-
|
|
174
|
+
rootEl: any;
|
|
174
175
|
};
|
|
175
176
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
176
177
|
declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
@@ -5,6 +5,7 @@ import { CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsM
|
|
|
5
5
|
import { ApFieldTextAreaProps, FieldMode } from '../../..';
|
|
6
6
|
type ApFormItemTextAreaSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
8
9
|
slots: Readonly<ApFormItemTextAreaSlots> & ApFormItemTextAreaSlots;
|
|
9
10
|
refs: {
|
|
10
11
|
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextAreaProps> & Readonly<{
|
|
@@ -46,7 +47,7 @@ declare function __VLS_template(): {
|
|
|
46
47
|
emptyText: string;
|
|
47
48
|
}> | null;
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
rootEl: any;
|
|
50
51
|
};
|
|
51
52
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
52
53
|
declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
@@ -17,9 +17,10 @@ type ApFormListSlots = {
|
|
|
17
17
|
}): any;
|
|
18
18
|
};
|
|
19
19
|
declare function __VLS_template(): {
|
|
20
|
+
attrs: Partial<{}>;
|
|
20
21
|
slots: Readonly<ApFormListSlots> & ApFormListSlots;
|
|
21
22
|
refs: {};
|
|
22
|
-
|
|
23
|
+
rootEl: any;
|
|
23
24
|
};
|
|
24
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
26
|
declare const __VLS_component: DefineComponent<ApFormListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,6 +20,7 @@ type ApModalFormSlots = {
|
|
|
20
20
|
submitter(defaultDoms: VNode[]): any;
|
|
21
21
|
};
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
23
24
|
slots: Readonly<ApModalFormSlots> & ApModalFormSlots;
|
|
24
25
|
refs: {
|
|
25
26
|
formRef: ({
|
|
@@ -116,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
116
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
117
118
|
readonly initialValues?: Recordable | undefined;
|
|
118
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
119
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
120
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
121
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
122
123
|
$attrs: {
|
|
@@ -219,7 +220,7 @@ declare function __VLS_template(): {
|
|
|
219
220
|
};
|
|
220
221
|
}) | null;
|
|
221
222
|
};
|
|
222
|
-
|
|
223
|
+
rootEl: any;
|
|
223
224
|
};
|
|
224
225
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
225
226
|
declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const x=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const a=d,p=e.useSlots(),T=B,n=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=j.useControllableValue(a,T,{valuePropName:"open",defaultValue:!1}),{t:b}=O.useLocale(),v=U.useGlobalConfig("uiMode","aplus"),{b:N,e:g}=z.useNamespace("ap-form-modal-form");e.watch(()=>n.value,t=>{var l;t&&c.value&&((l=t.setFieldsValue)==null||l.call(t,c.value),c.value=void 0)});const y=x.getSingleVNode(p.trigger),h=y?e.cloneVNode(y,{onClick:()=>{f(!0)}}):null,P=e.computed(()=>{var l,o,u,m;const t=[];if(a.submitter===!1)return null;if(a.showCancel){let s;t.push(e.createVNode(i.Button,{onClick:V,disabled:r.value},F(s=b("ap.common.cancelText"))?s:{default:()=>[s]}))}return((l=a.submitter)==null?void 0:l.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((o=a.submitter)==null?void 0:o.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:q}),{default:()=>{var s;return[((s=a.submitter)==null?void 0:s.resetText)||b("ap.common.resetText")]}})),((u=a.submitter)==null?void 0:u.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((m=a.submitter)==null?void 0:m.submitButtonProps)||{},{loading:r.value,onClick:w}),{default:()=>{var s;return[((s=a.submitter)==null?void 0:s.submitText)||b("ap.common.okText")]}})),e.createVNode(i.Flex,{justify:"flex-end",class:g(e.unref(v)==="admin"?"footer-admin":"footer")},{default:()=>[p.submitter?p.submitter(t):e.createVNode(i.Space,null,F(t)?t:{default:()=>[t]})]})});function q(){var t,l,o;a.submitter!==!1&&((t=n.value)==null||t.resetFields(),(o=(l=a.submitter)==null?void 0:l.onReset)==null||o.call(l))}async function w(){var t,l,o,u;if(a.submitter!==!1)try{const m=await((t=n.value)==null?void 0:t.validateFields());(o=(l=a.submitter)==null?void 0:l.onSubmit)==null||o.call(l),r.value=!0;const s=(u=a.onFinish)==null?void 0:u.call(a,R.convertReactiveToRaw(m));if(a.submitTimeout&&s instanceof Promise){const S=setTimeout(()=>r.value=!1,a.submitTimeout);s.finally(()=>{clearTimeout(S),r.value=!1})}await s&&f(!1)}finally{r.value=!1}}function V(){e.unref(r)||f(!1)}function _(t){!t&&e.unref(r)||f(t)}return C({resetFields:()=>{var t;(t=n.value)==null||t.resetFields()},clearValidate:t=>{var l;(l=n.value)==null||l.clearValidate(t)},validateFields:(t,l)=>{var o;return(o=n.value)==null?void 0:o.validateFields(t,l)},getFieldsValue:t=>{var l;return(l=n.value)==null?void 0:l.getFieldsValue(t)},validate:(t,l)=>{var o;return(o=n.value)==null?void 0:o.validate(t,l)},scrollToField:(t,l={})=>{var o;(o=n.value)==null||o.scrollToField(t,l)},setFieldValue:(t,l)=>{var o,u;(u=(o=n.value)==null?void 0:o.setFieldValue)==null||u.call(o,t,l)},setFieldsValue:t=>{var l,o;if(!n.value){c.value=t;return}(o=(l=n.value)==null?void 0:l.setFieldsValue)==null||o.call(l,t)},getInternalInstance:t=>{var l;return(l=n.value)==null?void 0:l.getInternalInstance(t)}}),(t,l)=>{var o;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(t.modalProps,{open:e.unref(k),footer:null,width:t.width,class:e.unref(N)(),"body-style":{...((o=t.modalProps)==null?void 0:o.bodyStyle)||{},padding:e.unref(v)==="admin"?"0px !important":"20px !important"},"onUpdate:open":_,onCancel:V}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)(e.unref(v)==="admin"?"content-admin":"content"))},[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:n},e.unref(M.omit)(a,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),_:3},16,["open","width","class","body-style"]),e.unref(h)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{key:0})):e.createCommentVNode("",!0)],64)}}});exports.default=E;
|
|
@@ -5,9 +5,10 @@ type SlotsType = {
|
|
|
5
5
|
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
8
9
|
slots: Readonly<SlotsType> & SlotsType;
|
|
9
10
|
refs: {};
|
|
10
|
-
|
|
11
|
+
rootEl: any;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
14
|
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,13 +3,14 @@ import { ApFormControlRenderProps, ApFormItemSlots } from '../interface';
|
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ApFormItemProps } from '..';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: Readonly<{
|
|
7
8
|
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
8
9
|
} & Omit<ApFormItemSlots, "default">> & {
|
|
9
10
|
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
10
11
|
} & Omit<ApFormItemSlots, "default">;
|
|
11
12
|
refs: {};
|
|
12
|
-
|
|
13
|
+
rootEl: any;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
16
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFormItemProps> & Readonly<{}>, {
|
|
@@ -10,6 +10,7 @@ import { Recordable } from '../../type';
|
|
|
10
10
|
import { ApFormProps, WatchFunc, RegistedFieldType } from '..';
|
|
11
11
|
import { OnCleanup } from '@vue/reactivity';
|
|
12
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
13
14
|
slots: Readonly<{
|
|
14
15
|
default(): any[];
|
|
15
16
|
extra(): any;
|
|
@@ -112,7 +113,7 @@ declare function __VLS_template(): {
|
|
|
112
113
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
113
114
|
readonly initialValues?: Recordable | undefined;
|
|
114
115
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
115
|
-
readonly syncToUrl?:
|
|
116
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
116
117
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
117
118
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
118
119
|
$attrs: {
|
|
@@ -215,7 +216,7 @@ declare function __VLS_template(): {
|
|
|
215
216
|
};
|
|
216
217
|
}) | null;
|
|
217
218
|
};
|
|
218
|
-
|
|
219
|
+
rootEl: any;
|
|
219
220
|
};
|
|
220
221
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
221
222
|
declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|