@geelato/gl-ui-web-arco 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/GlPdf-CP236wBj.js +891 -0
- package/dist/GlPdf-CP236wBj.js.gz +0 -0
- package/dist/gl-ui-web-arco.css +1 -0
- package/dist/gl-ui-web-arco.css.gz +0 -0
- package/dist/gl-ui-web-arco.js +21 -0
- package/dist/gl-ui-web-arco.js.gz +0 -0
- package/dist/main-D7ErSddl.js +164000 -0
- package/dist/main-D7ErSddl.js.gz +0 -0
- package/dist/pdfjs-Cvb5nkrC.js +26706 -0
- package/dist/pdfjs-Cvb5nkrC.js.gz +0 -0
- package/dist/types/api/SelectOptions.d.ts +41 -0
- package/dist/types/components/MetaHelper.d.ts +6 -0
- package/dist/types/components/gl-alert/GlAlert.vue.d.ts +27 -0
- package/dist/types/components/gl-button/GlButton.vue.d.ts +117 -0
- package/dist/types/components/gl-card/index.vue.d.ts +134 -0
- package/dist/types/components/gl-checkbox/GlCheckbox.vue.d.ts +19 -0
- package/dist/types/components/gl-color/GlColor.vue.d.ts +143 -0
- package/dist/types/components/gl-color-clipboard/GlColorClipboard.vue.d.ts +19 -0
- package/dist/types/components/gl-color-input/GlColorInput.vue.d.ts +37 -0
- package/dist/types/components/gl-comment/GlComment.vue.d.ts +80 -0
- package/dist/types/components/gl-comment/comment.vue.d.ts +72 -0
- package/dist/types/components/gl-comment/type.d.ts +30 -0
- package/dist/types/components/gl-countdown/GlCountdown.vue.d.ts +43 -0
- package/dist/types/components/gl-crontab/GlCrontab.vue.d.ts +39 -0
- package/dist/types/components/gl-crontab/tabs/day.vue.d.ts +30 -0
- package/dist/types/components/gl-crontab/tabs/hour.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/minute.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/mixin.d.ts +100 -0
- package/dist/types/components/gl-crontab/tabs/month.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/second.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/week.vue.d.ts +30 -0
- package/dist/types/components/gl-crontab/tabs/year.vue.d.ts +21 -0
- package/dist/types/components/gl-descriptions/GlDescriptions.vue.d.ts +36 -0
- package/dist/types/components/gl-dict/GlDict.vue.d.ts +444 -0
- package/dist/types/components/gl-dict/locale/en-US.d.ts +10 -0
- package/dist/types/components/gl-dict/locale/zh-CN.d.ts +10 -0
- package/dist/types/components/gl-divider/GlDevider.vue.d.ts +7 -0
- package/dist/types/components/gl-drag-verify/GlDragVerify.vue.d.ts +161 -0
- package/dist/types/components/gl-dropdown/GlDropdown.vue.d.ts +93 -0
- package/dist/types/components/gl-dynamic-select/GlDynamicSelect.vue.d.ts +582 -0
- package/dist/types/components/gl-email/GlEmailPreview.vue.d.ts +20 -0
- package/dist/types/components/gl-email/GlEmailSelect.vue.d.ts +1364 -0
- package/dist/types/components/gl-email/composables/index.d.ts +8 -0
- package/dist/types/components/gl-email/composables/useEmailData.d.ts +19 -0
- package/dist/types/components/gl-email/composables/useEmailForm.d.ts +57 -0
- package/dist/types/components/gl-email/composables/useEmailOperations.d.ts +15 -0
- package/dist/types/components/gl-email/composables/useEmailPreview.d.ts +10 -0
- package/dist/types/components/gl-email/composables/useEmailSchedule.d.ts +19 -0
- package/dist/types/components/gl-email/composables/useEmailValidation.d.ts +8 -0
- package/dist/types/components/gl-email/composables/useUserInfo.d.ts +18 -0
- package/dist/types/components/gl-email/locale/en-US.d.ts +51 -0
- package/dist/types/components/gl-email/locale/zh-CN.d.ts +51 -0
- package/dist/types/components/gl-email/types/index.d.ts +51 -0
- package/dist/types/components/gl-empty/GlEmpty.vue.d.ts +13 -0
- package/dist/types/components/gl-encode/GlEncode.vue.d.ts +152 -0
- package/dist/types/components/gl-entity-cascader/GlEntityCascader.vue.d.ts +26 -0
- package/dist/types/components/gl-entity-form/GlEntityForm.vue.d.ts +918 -0
- package/dist/types/components/gl-entity-form/composables/index.d.ts +16 -0
- package/dist/types/components/gl-entity-form/composables/useEmpty.d.ts +9 -0
- package/dist/types/components/gl-entity-form/composables/useFormCore.d.ts +560 -0
- package/dist/types/components/gl-entity-form/composables/useFormParams.d.ts +30 -0
- package/dist/types/components/gl-entity-form/composables/useFormValidation.d.ts +77 -0
- package/dist/types/components/gl-entity-table-plus/FilterManager.vue.d.ts +34 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTable.vue.d.ts +2910 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTableEdit.vue.d.ts +1322 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTableToolbar.vue.d.ts +471 -0
- package/dist/types/components/gl-entity-table-plus/constants.d.ts +292 -0
- package/dist/types/components/gl-entity-table-plus/index.vue.d.ts +3720 -0
- package/dist/types/components/gl-entity-table-plus/locale/en-US.d.ts +94 -0
- package/dist/types/components/gl-entity-table-plus/locale/zh-CN.d.ts +94 -0
- package/dist/types/components/gl-entity-table-plus/querySignature.d.ts +7 -0
- package/dist/types/components/gl-entity-table-plus/table.d.ts +137 -0
- package/dist/types/components/gl-entity-table-plus/useCellEditing.d.ts +55 -0
- package/dist/types/components/gl-entity-table-plus/useColumns.d.ts +20 -0
- package/dist/types/components/gl-entity-table-plus/useConvert.d.ts +5 -0
- package/dist/types/components/gl-entity-table-plus/useExport.d.ts +43 -0
- package/dist/types/components/gl-entity-table-plus/useFilters.d.ts +37 -0
- package/dist/types/components/gl-entity-table-plus/useLayout.d.ts +34 -0
- package/dist/types/components/gl-entity-table-plus/useMatch.d.ts +22 -0
- package/dist/types/components/gl-entity-table-plus/usePushedRecords.d.ts +39 -0
- package/dist/types/components/gl-entity-table-plus/useRow.d.ts +8 -0
- package/dist/types/components/gl-entity-table-plus/useRowHighlight.d.ts +33 -0
- package/dist/types/components/gl-entity-table-plus/useSelectedRecords.d.ts +25 -0
- package/dist/types/components/gl-entity-table-plus/useStore.d.ts +119 -0
- package/dist/types/components/gl-entity-table-plus/useSummary.d.ts +47 -0
- package/dist/types/components/gl-entity-table-plus/useTableDataAnalysis.d.ts +63 -0
- package/dist/types/components/gl-entity-table-plus/useTableHeight.d.ts +63 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityCardView.vue.d.ts +76 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityGalleryView.vue.d.ts +62 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityPivotView.vue.d.ts +90 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityTableStatView.vue.d.ts +127 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityTableView.vue.d.ts +1150 -0
- package/dist/types/components/gl-entity-tree/GlBaseTree.vue.d.ts +944 -0
- package/dist/types/components/gl-entity-tree/GlEntityTree.vue.d.ts +1407 -0
- package/dist/types/components/gl-entity-tree/types.d.ts +11 -0
- package/dist/types/components/gl-flex-layout/GlFlexLayout.vue.d.ts +246 -0
- package/dist/types/components/gl-hidden-area/GlHiddenArea.vue.d.ts +109 -0
- package/dist/types/components/gl-iconfont-select/GlIconfontSelect.vue.d.ts +58 -0
- package/dist/types/components/gl-image/GlImage.vue.d.ts +554 -0
- package/dist/types/components/gl-import/GlImport.vue.d.ts +33 -0
- package/dist/types/components/gl-inst-runtime/GlInstRuntime.vue.d.ts +119 -0
- package/dist/types/components/gl-inst-runtime/GlInstsRuntime.vue.d.ts +100 -0
- package/dist/types/components/gl-layout-page/GlLayoutPage.vue.d.ts +224 -0
- package/dist/types/components/gl-layout-site/GlLayout.d.ts +24 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeCollapse.vue.d.ts +19 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeSidebar.vue.d.ts +41 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeTopNav.vue.d.ts +19 -0
- package/dist/types/components/gl-layout-site/GlLayoutSite.vue.d.ts +26 -0
- package/dist/types/components/gl-layout-site/LayoutStore.d.ts +86 -0
- package/dist/types/components/gl-layout-site/ThemeSetting.vue.d.ts +19 -0
- package/dist/types/components/gl-list/GlList.vue.d.ts +104 -0
- package/dist/types/components/gl-metric-comparison-table/GlMetricComparisonTable.vue.d.ts +302 -0
- package/dist/types/components/gl-multi-components/GlMultiComponents.vue.d.ts +183 -0
- package/dist/types/components/gl-multi-components/locale/en-US.d.ts +5 -0
- package/dist/types/components/gl-multi-components/locale/zh-CN.d.ts +5 -0
- package/dist/types/components/gl-op-record/GlOpRecord.vue.d.ts +19 -0
- package/dist/types/components/gl-org-select/choose.vue.d.ts +124 -0
- package/dist/types/components/gl-org-select/index.vue.d.ts +178 -0
- package/dist/types/components/gl-org-select/tree.vue.d.ts +125 -0
- package/dist/types/components/gl-org-user-select/choose.vue.d.ts +428 -0
- package/dist/types/components/gl-org-user-select/index.vue.d.ts +178 -0
- package/dist/types/components/gl-org-user-select/list.vue.d.ts +133 -0
- package/dist/types/components/gl-page/GlPage.vue.d.ts +372 -0
- package/dist/types/components/gl-page-help/GlPageHelp.vue.d.ts +13 -0
- package/dist/types/components/gl-page-template/GlPageTemplateFlow.vue.d.ts +197 -0
- package/dist/types/components/gl-page-template/GlPageTemplateFlowApprove.vue.d.ts +19 -0
- package/dist/types/components/gl-page-template/ItemsManager.d.ts +23 -0
- package/dist/types/components/gl-page-template/locale/en-US.d.ts +25 -0
- package/dist/types/components/gl-page-template/locale/zh-CN.d.ts +25 -0
- package/dist/types/components/gl-page-template/state-wf/StateWFApprove.vue.d.ts +293 -0
- package/dist/types/components/gl-page-template/state-wf/StateWFTransfer.vue.d.ts +30 -0
- package/dist/types/components/gl-page-template/state-wf/stateWfApi.d.ts +114 -0
- package/dist/types/components/gl-pagination/GlPagination.vue.d.ts +19 -0
- package/dist/types/components/gl-pdf/GlPdf.vue.d.ts +90 -0
- package/dist/types/components/gl-popover/GlPopover.vue.d.ts +138 -0
- package/dist/types/components/gl-query/index.vue.d.ts +243 -0
- package/dist/types/components/gl-query/query.d.ts +47 -0
- package/dist/types/components/gl-rate/GlRate.vue.d.ts +19 -0
- package/dist/types/components/gl-ref-page/GlRefPage.vue.d.ts +171 -0
- package/dist/types/components/gl-regular-expression/GlRegularExpression.vue.d.ts +134 -0
- package/dist/types/components/gl-regular-expression/common.vue.d.ts +248 -0
- package/dist/types/components/gl-regular-expression/select.vue.d.ts +352 -0
- package/dist/types/components/gl-regular-expression/type.d.ts +17 -0
- package/dist/types/components/gl-row-col-layout/GlRowColLayout.vue.d.ts +189 -0
- package/dist/types/components/gl-select/GlSelect.vue.d.ts +83 -0
- package/dist/types/components/gl-slot/GlSlot.vue.d.ts +105 -0
- package/dist/types/components/gl-space/GlSpace.vue.d.ts +121 -0
- package/dist/types/components/gl-static-dict/GlStaticDict.vue.d.ts +32 -0
- package/dist/types/components/gl-static-dict/list.vue.d.ts +86 -0
- package/dist/types/components/gl-static-dict/type.d.ts +4 -0
- package/dist/types/components/gl-statistic/GlStatistic.vue.d.ts +65 -0
- package/dist/types/components/gl-table-select/GlTableSelect.vue.d.ts +474 -0
- package/dist/types/components/gl-table-select/GlTableSelectList.vue.d.ts +87 -0
- package/dist/types/components/gl-table-select/index.d.ts +4 -0
- package/dist/types/components/gl-tabs/GlDynamicTabs.vue.d.ts +226 -0
- package/dist/types/components/gl-tabs/GlTabs.vue.d.ts +152 -0
- package/dist/types/components/gl-tag/GlTag.vue.d.ts +122 -0
- package/dist/types/components/gl-text/GlText.vue.d.ts +152 -0
- package/dist/types/components/gl-textarea/GlTextarea.vue.d.ts +37 -0
- package/dist/types/components/gl-timeline/GlTimeline.vue.d.ts +110 -0
- package/dist/types/components/gl-timeline/type.d.ts +16 -0
- package/dist/types/components/gl-toolbar/index.vue.d.ts +65 -0
- package/dist/types/components/gl-toolbar/locale/en-US.d.ts +4 -0
- package/dist/types/components/gl-toolbar/locale/zh-CN.d.ts +4 -0
- package/dist/types/components/gl-toolbar/toolbar.d.ts +10 -0
- package/dist/types/components/gl-tooltip/GlTooltip.vue.d.ts +100 -0
- package/dist/types/components/gl-tree-select/GlTreeSelect.vue.d.ts +163 -0
- package/dist/types/components/gl-trigger-select/GlTriggerSelect.vue.d.ts +129 -0
- package/dist/types/components/gl-upload/GlUpload.vue.d.ts +559 -0
- package/dist/types/components/gl-upload/clipboard.vue.d.ts +370 -0
- package/dist/types/components/gl-upload/composables/useExternalDropArea.d.ts +11 -0
- package/dist/types/components/gl-upload/composables/useFileManager.d.ts +19 -0
- package/dist/types/components/gl-upload/locale/en-US.d.ts +10 -0
- package/dist/types/components/gl-upload/locale/zh-CN.d.ts +10 -0
- package/dist/types/components/gl-user-select/GlUserSelect.vue.d.ts +239 -0
- package/dist/types/components/gl-user-select/GlUserSelectInline.vue.d.ts +189 -0
- package/dist/types/components/gl-user-select/GlUserSelectPanel.vue.d.ts +97 -0
- package/dist/types/components/gl-user-select/GlUserSelectWorkflow.vue.d.ts +186 -0
- package/dist/types/components/gl-user-select/locale/en-US.d.ts +32 -0
- package/dist/types/components/gl-user-select/locale/zh-CN.d.ts +32 -0
- package/dist/types/components/gl-user-select/types.d.ts +62 -0
- package/dist/types/components/gl-workflow/GlWorkflowApprove.vue.d.ts +395 -0
- package/dist/types/components/gl-workflow/GlWorkflowModal.vue.d.ts +2086 -0
- package/dist/types/components/gl-workflow/GlWorkflowStart.vue.d.ts +19 -0
- package/dist/types/components/gl-workflow/GlWorkflowStartForm.vue.d.ts +294 -0
- package/dist/types/components/gl-workflow/GlWorkflowTasks.vue.d.ts +17 -0
- package/dist/types/components/gl-workflow/composables/useWorkflow.d.ts +99 -0
- package/dist/types/components/gl-workflow/index.d.ts +1075 -0
- package/dist/types/components/gl-workflow/types.d.ts +232 -0
- package/dist/types/composables/index.d.ts +3 -0
- package/dist/types/composables/useDropdownTriggerProps.d.ts +12 -0
- package/dist/types/composables/useStatus.d.ts +17 -0
- package/dist/types/composables/useTree.d.ts +31 -0
- package/dist/types/hooks/useEntityQuery.d.ts +8 -0
- package/dist/types/locale/en-US.d.ts +203 -0
- package/dist/types/locale/zh-CN.d.ts +203 -0
- package/dist/types/main.d.ts +16 -0
- package/dist/types/types/global.d.ts +64 -0
- package/package.json +78 -0
- package/src/main.ts +231 -0
|
@@ -0,0 +1,918 @@
|
|
|
1
|
+
import { PropType, Ref, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
import { EntitySaver, GetEntitySaversResult, Param, PageCustomType, PagePermission } from '@geelato/gl-runtime-core';
|
|
3
|
+
import { LayoutType } from './composables';
|
|
4
|
+
import { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
5
|
+
import { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
6
|
+
import { Options } from 'scroll-into-view-if-needed';
|
|
7
|
+
import { IComponentInstance } from '@geelato/gl-types';
|
|
8
|
+
import { ComponentInstance } from '@geelato/gl-ui-schema';
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
16
|
+
model: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
layout: {
|
|
21
|
+
type: PropType<"inline" | "horizontal" | "vertical">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
26
|
+
};
|
|
27
|
+
labelColProps: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => {
|
|
30
|
+
span: number;
|
|
31
|
+
offset: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
wrapperColProps: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default: () => {
|
|
37
|
+
span: number;
|
|
38
|
+
offset: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
labelColStyle: ObjectConstructor;
|
|
42
|
+
wrapperColStyle: ObjectConstructor;
|
|
43
|
+
labelAlign: {
|
|
44
|
+
type: PropType<"left" | "right">;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
disabled: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
rules: {
|
|
52
|
+
type: PropType<Record<string, FieldRule<any> | FieldRule<any>[]>>;
|
|
53
|
+
};
|
|
54
|
+
autoLabelWidth: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
id: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
};
|
|
61
|
+
scrollToFirstError: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onSubmit?: ((data: {
|
|
67
|
+
values: Record<string, any>;
|
|
68
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
69
|
+
}, ev: Event) => any) | undefined;
|
|
70
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
71
|
+
onSubmitFailed?: ((data: {
|
|
72
|
+
values: Record<string, any>;
|
|
73
|
+
errors: Record<string, ValidatedError>;
|
|
74
|
+
}, ev: Event) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
cls: ComputedRef<(string | {
|
|
77
|
+
[x: string]: boolean;
|
|
78
|
+
})[]>;
|
|
79
|
+
formRef: Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
80
|
+
handleSubmit: (e: Event) => void;
|
|
81
|
+
innerValidate: (callback
|
|
82
|
+
/**
|
|
83
|
+
* 表单组件
|
|
84
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
85
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
86
|
+
*
|
|
87
|
+
* 表单复制
|
|
88
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
89
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
90
|
+
*/
|
|
91
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
92
|
+
innerValidateField: (field: string | string[], callback
|
|
93
|
+
/**
|
|
94
|
+
* 表单组件
|
|
95
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
96
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
97
|
+
*
|
|
98
|
+
* 表单复制
|
|
99
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
100
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
101
|
+
*/
|
|
102
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
103
|
+
innerResetFields: (field
|
|
104
|
+
/**
|
|
105
|
+
* 表单组件
|
|
106
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
107
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
108
|
+
*
|
|
109
|
+
* 表单复制
|
|
110
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
111
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
112
|
+
*/
|
|
113
|
+
?: string | string[] | undefined) => void;
|
|
114
|
+
innerClearValidate: (field
|
|
115
|
+
/**
|
|
116
|
+
* 表单组件
|
|
117
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
118
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
119
|
+
*
|
|
120
|
+
* 表单复制
|
|
121
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
122
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
123
|
+
*/
|
|
124
|
+
?: string | string[] | undefined) => void;
|
|
125
|
+
innerSetFields: (data: Record<string, FieldData>) => void;
|
|
126
|
+
innerScrollToField: (field: string, options
|
|
127
|
+
/**
|
|
128
|
+
* 表单组件
|
|
129
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
130
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
131
|
+
*
|
|
132
|
+
* 表单复制
|
|
133
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
134
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
135
|
+
*/
|
|
136
|
+
?: Options<any> | undefined) => void;
|
|
137
|
+
}, {}, {}, {
|
|
138
|
+
validate(callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
139
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
140
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
141
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
142
|
+
setFields(data: Record<string, FieldData>): void;
|
|
143
|
+
scrollToField(field: string): void;
|
|
144
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
145
|
+
submit: (data: {
|
|
146
|
+
values: Record<string, any>;
|
|
147
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
148
|
+
}, ev: Event) => true;
|
|
149
|
+
submitSuccess: (values: Record<string, any>, ev: Event) => true;
|
|
150
|
+
submitFailed: (data: {
|
|
151
|
+
values: Record<string, any>;
|
|
152
|
+
errors: Record<string, ValidatedError>;
|
|
153
|
+
}, ev: Event) => true;
|
|
154
|
+
}, PublicProps, {
|
|
155
|
+
disabled: boolean;
|
|
156
|
+
layout: "inline" | "horizontal" | "vertical";
|
|
157
|
+
labelColProps: Record<string, any>;
|
|
158
|
+
wrapperColProps: Record<string, any>;
|
|
159
|
+
labelAlign: "left" | "right";
|
|
160
|
+
autoLabelWidth: boolean;
|
|
161
|
+
scrollToFirstError: boolean;
|
|
162
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
163
|
+
P: {};
|
|
164
|
+
B: {};
|
|
165
|
+
D: {};
|
|
166
|
+
C: {};
|
|
167
|
+
M: {};
|
|
168
|
+
Defaults: {};
|
|
169
|
+
}, Readonly< ExtractPropTypes<{
|
|
170
|
+
model: {
|
|
171
|
+
type: ObjectConstructor;
|
|
172
|
+
required: true;
|
|
173
|
+
};
|
|
174
|
+
layout: {
|
|
175
|
+
type: PropType<"inline" | "horizontal" | "vertical">;
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
size: {
|
|
179
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
180
|
+
};
|
|
181
|
+
labelColProps: {
|
|
182
|
+
type: ObjectConstructor;
|
|
183
|
+
default: () => {
|
|
184
|
+
span: number;
|
|
185
|
+
offset: number;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
wrapperColProps: {
|
|
189
|
+
type: ObjectConstructor;
|
|
190
|
+
default: () => {
|
|
191
|
+
span: number;
|
|
192
|
+
offset: number;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
labelColStyle: ObjectConstructor;
|
|
196
|
+
wrapperColStyle: ObjectConstructor;
|
|
197
|
+
labelAlign: {
|
|
198
|
+
type: PropType<"left" | "right">;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
disabled: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: undefined;
|
|
204
|
+
};
|
|
205
|
+
rules: {
|
|
206
|
+
type: PropType<Record<string, FieldRule<any> | FieldRule<any>[]>>;
|
|
207
|
+
};
|
|
208
|
+
autoLabelWidth: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
id: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
};
|
|
215
|
+
scrollToFirstError: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
}>> & Readonly<{
|
|
220
|
+
onSubmit?: ((data: {
|
|
221
|
+
values: Record<string, any>;
|
|
222
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
223
|
+
}, ev: Event) => any) | undefined;
|
|
224
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
225
|
+
onSubmitFailed?: ((data: {
|
|
226
|
+
values: Record<string, any>;
|
|
227
|
+
errors: Record<string, ValidatedError>;
|
|
228
|
+
}, ev: Event) => any) | undefined;
|
|
229
|
+
}>, {
|
|
230
|
+
cls: ComputedRef<(string | {
|
|
231
|
+
[x: string]: boolean;
|
|
232
|
+
})[]>;
|
|
233
|
+
formRef: Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
234
|
+
handleSubmit: (e: Event) => void;
|
|
235
|
+
innerValidate: (callback
|
|
236
|
+
/**
|
|
237
|
+
* 表单组件
|
|
238
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
239
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
240
|
+
*
|
|
241
|
+
* 表单复制
|
|
242
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
243
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
244
|
+
*/
|
|
245
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
246
|
+
innerValidateField: (field: string | string[], callback
|
|
247
|
+
/**
|
|
248
|
+
* 表单组件
|
|
249
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
250
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
251
|
+
*
|
|
252
|
+
* 表单复制
|
|
253
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
254
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
255
|
+
*/
|
|
256
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
257
|
+
innerResetFields: (field
|
|
258
|
+
/**
|
|
259
|
+
* 表单组件
|
|
260
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
261
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
262
|
+
*
|
|
263
|
+
* 表单复制
|
|
264
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
265
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
266
|
+
*/
|
|
267
|
+
?: string | string[] | undefined) => void;
|
|
268
|
+
innerClearValidate: (field
|
|
269
|
+
/**
|
|
270
|
+
* 表单组件
|
|
271
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
272
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
273
|
+
*
|
|
274
|
+
* 表单复制
|
|
275
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
276
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
277
|
+
*/
|
|
278
|
+
?: string | string[] | undefined) => void;
|
|
279
|
+
innerSetFields: (data: Record<string, FieldData>) => void;
|
|
280
|
+
innerScrollToField: (field: string, options
|
|
281
|
+
/**
|
|
282
|
+
* 表单组件
|
|
283
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
284
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
285
|
+
*
|
|
286
|
+
* 表单复制
|
|
287
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
288
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
289
|
+
*/
|
|
290
|
+
?: Options<any> | undefined) => void;
|
|
291
|
+
}, {}, {}, {
|
|
292
|
+
validate(callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
293
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
294
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
295
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
296
|
+
setFields(data: Record<string, FieldData>): void;
|
|
297
|
+
scrollToField(field: string): void;
|
|
298
|
+
}, {
|
|
299
|
+
disabled: boolean;
|
|
300
|
+
layout: "inline" | "horizontal" | "vertical";
|
|
301
|
+
labelColProps: Record<string, any>;
|
|
302
|
+
wrapperColProps: Record<string, any>;
|
|
303
|
+
labelAlign: "left" | "right";
|
|
304
|
+
autoLabelWidth: boolean;
|
|
305
|
+
scrollToFirstError: boolean;
|
|
306
|
+
}> | null;
|
|
307
|
+
};
|
|
308
|
+
rootEl: HTMLDivElement;
|
|
309
|
+
};
|
|
310
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
311
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
312
|
+
parentId: {
|
|
313
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
314
|
+
};
|
|
315
|
+
glComponentInst: {
|
|
316
|
+
type: PropType< IComponentInstance>;
|
|
317
|
+
default(): ComponentInstance;
|
|
318
|
+
};
|
|
319
|
+
glChildren: {
|
|
320
|
+
type: PropType<Array< IComponentInstance>>;
|
|
321
|
+
default(): never[];
|
|
322
|
+
};
|
|
323
|
+
glCtx: {
|
|
324
|
+
type: ObjectConstructor;
|
|
325
|
+
default(): {};
|
|
326
|
+
};
|
|
327
|
+
glIsRuntime: {
|
|
328
|
+
type: BooleanConstructor;
|
|
329
|
+
default(): boolean;
|
|
330
|
+
};
|
|
331
|
+
glRuntimeFlag: {
|
|
332
|
+
type: StringConstructor;
|
|
333
|
+
default(): string;
|
|
334
|
+
};
|
|
335
|
+
glIndex: {
|
|
336
|
+
type: NumberConstructor;
|
|
337
|
+
};
|
|
338
|
+
glLoopItem: ObjectConstructor;
|
|
339
|
+
glLoopIndex: NumberConstructor;
|
|
340
|
+
glIgnoreInjectPageProxy: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default(): boolean;
|
|
343
|
+
};
|
|
344
|
+
componentStoreId: {
|
|
345
|
+
type: StringConstructor;
|
|
346
|
+
default(): string;
|
|
347
|
+
};
|
|
348
|
+
pageCustom: PropType< PageCustomType>;
|
|
349
|
+
pagePermission: PropType< PagePermission>;
|
|
350
|
+
glDoAction: {
|
|
351
|
+
type: FunctionConstructor;
|
|
352
|
+
required: boolean;
|
|
353
|
+
};
|
|
354
|
+
layout: {
|
|
355
|
+
type: PropType<LayoutType>;
|
|
356
|
+
default(): string;
|
|
357
|
+
};
|
|
358
|
+
autoLabelWidth: {
|
|
359
|
+
type: BooleanConstructor;
|
|
360
|
+
default(): boolean;
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* 在表单为只读状态时,若未传相应的表单id,是否告警提醒
|
|
364
|
+
* 默认为否,在开发调试阶段可以配置为true,便于及时发现问题(如漏了传表单id)
|
|
365
|
+
*/
|
|
366
|
+
alarmWhenReadInRuntime: BooleanConstructor;
|
|
367
|
+
/**
|
|
368
|
+
* 表单没有数据时的显示模式
|
|
369
|
+
*/
|
|
370
|
+
dataEmptyShowMode: {
|
|
371
|
+
type: StringConstructor;
|
|
372
|
+
default(): string;
|
|
373
|
+
};
|
|
374
|
+
compact: {
|
|
375
|
+
type: BooleanConstructor;
|
|
376
|
+
default(): boolean;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* 是否验证未绑定的字段,默认不验证
|
|
380
|
+
*/
|
|
381
|
+
validateNotBindField: {
|
|
382
|
+
type: BooleanConstructor;
|
|
383
|
+
default(): boolean;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* 外键字段加载配置
|
|
387
|
+
* 示例:[{field: 'salesmanId', referenceEntity: 'platform_user', referenceField: 'name', alias: 'salesmanName'}]
|
|
388
|
+
*/
|
|
389
|
+
foreignKeys: {
|
|
390
|
+
type: PropType<Array<{
|
|
391
|
+
field: string;
|
|
392
|
+
referenceEntity: string;
|
|
393
|
+
referenceField: string;
|
|
394
|
+
alias: string;
|
|
395
|
+
}>>;
|
|
396
|
+
default(): never[];
|
|
397
|
+
};
|
|
398
|
+
readonly: BooleanConstructor;
|
|
399
|
+
disabled: BooleanConstructor;
|
|
400
|
+
isSubForm: BooleanConstructor;
|
|
401
|
+
subFormPidName: StringConstructor;
|
|
402
|
+
title: StringConstructor;
|
|
403
|
+
/**
|
|
404
|
+
* 绑定实体对象
|
|
405
|
+
* {entityName:string}
|
|
406
|
+
*/
|
|
407
|
+
bindEntity: {
|
|
408
|
+
type: ObjectConstructor;
|
|
409
|
+
required: true;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* 表单参数
|
|
413
|
+
* 表的的参数值来源,一般是从页面传参中获取
|
|
414
|
+
* 如果在此处配置了值,则以此的值为准,该值将覆盖从页面传参中获取的值
|
|
415
|
+
*/
|
|
416
|
+
params: {
|
|
417
|
+
type: PropType<Array<Param>>;
|
|
418
|
+
default(): never[];
|
|
419
|
+
};
|
|
420
|
+
immediate: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default(): boolean;
|
|
423
|
+
};
|
|
424
|
+
saveMode: {
|
|
425
|
+
type: StringConstructor;
|
|
426
|
+
default(): string;
|
|
427
|
+
};
|
|
428
|
+
}>, {
|
|
429
|
+
fetchData: (params?: {
|
|
430
|
+
id: string;
|
|
431
|
+
[key: string]: any;
|
|
432
|
+
}, reRender?: boolean) => Promise<void>;
|
|
433
|
+
submitForm: (params?: {
|
|
434
|
+
notifyIfSuccess?: boolean;
|
|
435
|
+
notifyIfFail?: boolean;
|
|
436
|
+
}) => Promise<boolean>;
|
|
437
|
+
getEntitySavers: (params?: {
|
|
438
|
+
notifyIfFail?: boolean;
|
|
439
|
+
}) => Promise<GetEntitySaversResult>;
|
|
440
|
+
/**
|
|
441
|
+
* 为作子表单时,该方法会被夫表单自动调用
|
|
442
|
+
*/
|
|
443
|
+
createEntitySavers: (subFormPidValue: string) => Promise<EntitySaver[] | string>;
|
|
444
|
+
getValue: () => any;
|
|
445
|
+
getData: () => Ref<any, any>;
|
|
446
|
+
getForeignKeyExtraData: () => Ref<any, any>;
|
|
447
|
+
getRecordId: () => string;
|
|
448
|
+
validate: () => Promise<undefined | Record<string, any>>;
|
|
449
|
+
clearValidate: (field?: string | string[]) => void;
|
|
450
|
+
validateField: (field: string | string[]) => Promise<any>;
|
|
451
|
+
resetValidation: () => void;
|
|
452
|
+
isSubForm: () => boolean;
|
|
453
|
+
isNoSaveForm: () => boolean;
|
|
454
|
+
isNormalForm: () => boolean;
|
|
455
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
456
|
+
changedFormDebounced: (...args: any[]) => void;
|
|
457
|
+
changedForm: (...args: any[]) => void;
|
|
458
|
+
creatingEntitySavers: (...args: any[]) => void;
|
|
459
|
+
loadingData: (...args: any[]) => void;
|
|
460
|
+
loadedData: (...args: any[]) => void;
|
|
461
|
+
createdEntitySavers: (...args: any[]) => void;
|
|
462
|
+
selectSwfTransfer: (...args: any[]) => void;
|
|
463
|
+
savingEntity: (...args: any[]) => void;
|
|
464
|
+
submittingForm: (...args: any[]) => void;
|
|
465
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
466
|
+
parentId: {
|
|
467
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
468
|
+
};
|
|
469
|
+
glComponentInst: {
|
|
470
|
+
type: PropType< IComponentInstance>;
|
|
471
|
+
default(): ComponentInstance;
|
|
472
|
+
};
|
|
473
|
+
glChildren: {
|
|
474
|
+
type: PropType<Array< IComponentInstance>>;
|
|
475
|
+
default(): never[];
|
|
476
|
+
};
|
|
477
|
+
glCtx: {
|
|
478
|
+
type: ObjectConstructor;
|
|
479
|
+
default(): {};
|
|
480
|
+
};
|
|
481
|
+
glIsRuntime: {
|
|
482
|
+
type: BooleanConstructor;
|
|
483
|
+
default(): boolean;
|
|
484
|
+
};
|
|
485
|
+
glRuntimeFlag: {
|
|
486
|
+
type: StringConstructor;
|
|
487
|
+
default(): string;
|
|
488
|
+
};
|
|
489
|
+
glIndex: {
|
|
490
|
+
type: NumberConstructor;
|
|
491
|
+
};
|
|
492
|
+
glLoopItem: ObjectConstructor;
|
|
493
|
+
glLoopIndex: NumberConstructor;
|
|
494
|
+
glIgnoreInjectPageProxy: {
|
|
495
|
+
type: BooleanConstructor;
|
|
496
|
+
default(): boolean;
|
|
497
|
+
};
|
|
498
|
+
componentStoreId: {
|
|
499
|
+
type: StringConstructor;
|
|
500
|
+
default(): string;
|
|
501
|
+
};
|
|
502
|
+
pageCustom: PropType< PageCustomType>;
|
|
503
|
+
pagePermission: PropType< PagePermission>;
|
|
504
|
+
glDoAction: {
|
|
505
|
+
type: FunctionConstructor;
|
|
506
|
+
required: boolean;
|
|
507
|
+
};
|
|
508
|
+
layout: {
|
|
509
|
+
type: PropType<LayoutType>;
|
|
510
|
+
default(): string;
|
|
511
|
+
};
|
|
512
|
+
autoLabelWidth: {
|
|
513
|
+
type: BooleanConstructor;
|
|
514
|
+
default(): boolean;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* 在表单为只读状态时,若未传相应的表单id,是否告警提醒
|
|
518
|
+
* 默认为否,在开发调试阶段可以配置为true,便于及时发现问题(如漏了传表单id)
|
|
519
|
+
*/
|
|
520
|
+
alarmWhenReadInRuntime: BooleanConstructor;
|
|
521
|
+
/**
|
|
522
|
+
* 表单没有数据时的显示模式
|
|
523
|
+
*/
|
|
524
|
+
dataEmptyShowMode: {
|
|
525
|
+
type: StringConstructor;
|
|
526
|
+
default(): string;
|
|
527
|
+
};
|
|
528
|
+
compact: {
|
|
529
|
+
type: BooleanConstructor;
|
|
530
|
+
default(): boolean;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* 是否验证未绑定的字段,默认不验证
|
|
534
|
+
*/
|
|
535
|
+
validateNotBindField: {
|
|
536
|
+
type: BooleanConstructor;
|
|
537
|
+
default(): boolean;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* 外键字段加载配置
|
|
541
|
+
* 示例:[{field: 'salesmanId', referenceEntity: 'platform_user', referenceField: 'name', alias: 'salesmanName'}]
|
|
542
|
+
*/
|
|
543
|
+
foreignKeys: {
|
|
544
|
+
type: PropType<Array<{
|
|
545
|
+
field: string;
|
|
546
|
+
referenceEntity: string;
|
|
547
|
+
referenceField: string;
|
|
548
|
+
alias: string;
|
|
549
|
+
}>>;
|
|
550
|
+
default(): never[];
|
|
551
|
+
};
|
|
552
|
+
readonly: BooleanConstructor;
|
|
553
|
+
disabled: BooleanConstructor;
|
|
554
|
+
isSubForm: BooleanConstructor;
|
|
555
|
+
subFormPidName: StringConstructor;
|
|
556
|
+
title: StringConstructor;
|
|
557
|
+
/**
|
|
558
|
+
* 绑定实体对象
|
|
559
|
+
* {entityName:string}
|
|
560
|
+
*/
|
|
561
|
+
bindEntity: {
|
|
562
|
+
type: ObjectConstructor;
|
|
563
|
+
required: true;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* 表单参数
|
|
567
|
+
* 表的的参数值来源,一般是从页面传参中获取
|
|
568
|
+
* 如果在此处配置了值,则以此的值为准,该值将覆盖从页面传参中获取的值
|
|
569
|
+
*/
|
|
570
|
+
params: {
|
|
571
|
+
type: PropType<Array<Param>>;
|
|
572
|
+
default(): never[];
|
|
573
|
+
};
|
|
574
|
+
immediate: {
|
|
575
|
+
type: BooleanConstructor;
|
|
576
|
+
default(): boolean;
|
|
577
|
+
};
|
|
578
|
+
saveMode: {
|
|
579
|
+
type: StringConstructor;
|
|
580
|
+
default(): string;
|
|
581
|
+
};
|
|
582
|
+
}>> & Readonly<{
|
|
583
|
+
onChangedFormDebounced?: ((...args: any[]) => any) | undefined;
|
|
584
|
+
onChangedForm?: ((...args: any[]) => any) | undefined;
|
|
585
|
+
onCreatingEntitySavers?: ((...args: any[]) => any) | undefined;
|
|
586
|
+
onLoadingData?: ((...args: any[]) => any) | undefined;
|
|
587
|
+
onLoadedData?: ((...args: any[]) => any) | undefined;
|
|
588
|
+
onCreatedEntitySavers?: ((...args: any[]) => any) | undefined;
|
|
589
|
+
onSelectSwfTransfer?: ((...args: any[]) => any) | undefined;
|
|
590
|
+
onSavingEntity?: ((...args: any[]) => any) | undefined;
|
|
591
|
+
onSubmittingForm?: ((...args: any[]) => any) | undefined;
|
|
592
|
+
}>, {
|
|
593
|
+
disabled: boolean;
|
|
594
|
+
immediate: boolean;
|
|
595
|
+
params: Param[];
|
|
596
|
+
glComponentInst: IComponentInstance;
|
|
597
|
+
glChildren: IComponentInstance[];
|
|
598
|
+
glCtx: Record<string, any>;
|
|
599
|
+
glIsRuntime: boolean;
|
|
600
|
+
glRuntimeFlag: string;
|
|
601
|
+
glIgnoreInjectPageProxy: boolean;
|
|
602
|
+
componentStoreId: string;
|
|
603
|
+
readonly: boolean;
|
|
604
|
+
layout: LayoutType;
|
|
605
|
+
compact: boolean;
|
|
606
|
+
autoLabelWidth: boolean;
|
|
607
|
+
foreignKeys: {
|
|
608
|
+
field: string;
|
|
609
|
+
referenceEntity: string;
|
|
610
|
+
referenceField: string;
|
|
611
|
+
alias: string;
|
|
612
|
+
}[];
|
|
613
|
+
isSubForm: boolean;
|
|
614
|
+
validateNotBindField: boolean;
|
|
615
|
+
saveMode: string;
|
|
616
|
+
alarmWhenReadInRuntime: boolean;
|
|
617
|
+
dataEmptyShowMode: string;
|
|
618
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
619
|
+
formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
620
|
+
model: {
|
|
621
|
+
type: ObjectConstructor;
|
|
622
|
+
required: true;
|
|
623
|
+
};
|
|
624
|
+
layout: {
|
|
625
|
+
type: PropType<"inline" | "horizontal" | "vertical">;
|
|
626
|
+
default: string;
|
|
627
|
+
};
|
|
628
|
+
size: {
|
|
629
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
630
|
+
};
|
|
631
|
+
labelColProps: {
|
|
632
|
+
type: ObjectConstructor;
|
|
633
|
+
default: () => {
|
|
634
|
+
span: number;
|
|
635
|
+
offset: number;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
wrapperColProps: {
|
|
639
|
+
type: ObjectConstructor;
|
|
640
|
+
default: () => {
|
|
641
|
+
span: number;
|
|
642
|
+
offset: number;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
labelColStyle: ObjectConstructor;
|
|
646
|
+
wrapperColStyle: ObjectConstructor;
|
|
647
|
+
labelAlign: {
|
|
648
|
+
type: PropType<"left" | "right">;
|
|
649
|
+
default: string;
|
|
650
|
+
};
|
|
651
|
+
disabled: {
|
|
652
|
+
type: BooleanConstructor;
|
|
653
|
+
default: undefined;
|
|
654
|
+
};
|
|
655
|
+
rules: {
|
|
656
|
+
type: PropType<Record<string, FieldRule<any> | FieldRule<any>[]>>;
|
|
657
|
+
};
|
|
658
|
+
autoLabelWidth: {
|
|
659
|
+
type: BooleanConstructor;
|
|
660
|
+
default: boolean;
|
|
661
|
+
};
|
|
662
|
+
id: {
|
|
663
|
+
type: StringConstructor;
|
|
664
|
+
};
|
|
665
|
+
scrollToFirstError: {
|
|
666
|
+
type: BooleanConstructor;
|
|
667
|
+
default: boolean;
|
|
668
|
+
};
|
|
669
|
+
}>> & Readonly<{
|
|
670
|
+
onSubmit?: ((data: {
|
|
671
|
+
values: Record<string, any>;
|
|
672
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
673
|
+
}, ev: Event) => any) | undefined;
|
|
674
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
675
|
+
onSubmitFailed?: ((data: {
|
|
676
|
+
values: Record<string, any>;
|
|
677
|
+
errors: Record<string, ValidatedError>;
|
|
678
|
+
}, ev: Event) => any) | undefined;
|
|
679
|
+
}>, {
|
|
680
|
+
cls: ComputedRef<(string | {
|
|
681
|
+
[x: string]: boolean;
|
|
682
|
+
})[]>;
|
|
683
|
+
formRef: Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
684
|
+
handleSubmit: (e: Event) => void;
|
|
685
|
+
innerValidate: (callback
|
|
686
|
+
/**
|
|
687
|
+
* 表单组件
|
|
688
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
689
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
690
|
+
*
|
|
691
|
+
* 表单复制
|
|
692
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
693
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
694
|
+
*/
|
|
695
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
696
|
+
innerValidateField: (field: string | string[], callback
|
|
697
|
+
/**
|
|
698
|
+
* 表单组件
|
|
699
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
700
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
701
|
+
*
|
|
702
|
+
* 表单复制
|
|
703
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
704
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
705
|
+
*/
|
|
706
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
707
|
+
innerResetFields: (field
|
|
708
|
+
/**
|
|
709
|
+
* 表单组件
|
|
710
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
711
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
712
|
+
*
|
|
713
|
+
* 表单复制
|
|
714
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
715
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
716
|
+
*/
|
|
717
|
+
?: string | string[] | undefined) => void;
|
|
718
|
+
innerClearValidate: (field
|
|
719
|
+
/**
|
|
720
|
+
* 表单组件
|
|
721
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
722
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
723
|
+
*
|
|
724
|
+
* 表单复制
|
|
725
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
726
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
727
|
+
*/
|
|
728
|
+
?: string | string[] | undefined) => void;
|
|
729
|
+
innerSetFields: (data: Record<string, FieldData>) => void;
|
|
730
|
+
innerScrollToField: (field: string, options
|
|
731
|
+
/**
|
|
732
|
+
* 表单组件
|
|
733
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
734
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
735
|
+
*
|
|
736
|
+
* 表单复制
|
|
737
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
738
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
739
|
+
*/
|
|
740
|
+
?: Options<any> | undefined) => void;
|
|
741
|
+
}, {}, {}, {
|
|
742
|
+
validate(callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
743
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
744
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
745
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
746
|
+
setFields(data: Record<string, FieldData>): void;
|
|
747
|
+
scrollToField(field: string): void;
|
|
748
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
749
|
+
submit: (data: {
|
|
750
|
+
values: Record<string, any>;
|
|
751
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
752
|
+
}, ev: Event) => true;
|
|
753
|
+
submitSuccess: (values: Record<string, any>, ev: Event) => true;
|
|
754
|
+
submitFailed: (data: {
|
|
755
|
+
values: Record<string, any>;
|
|
756
|
+
errors: Record<string, ValidatedError>;
|
|
757
|
+
}, ev: Event) => true;
|
|
758
|
+
}, PublicProps, {
|
|
759
|
+
disabled: boolean;
|
|
760
|
+
layout: "inline" | "horizontal" | "vertical";
|
|
761
|
+
labelColProps: Record<string, any>;
|
|
762
|
+
wrapperColProps: Record<string, any>;
|
|
763
|
+
labelAlign: "left" | "right";
|
|
764
|
+
autoLabelWidth: boolean;
|
|
765
|
+
scrollToFirstError: boolean;
|
|
766
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
767
|
+
P: {};
|
|
768
|
+
B: {};
|
|
769
|
+
D: {};
|
|
770
|
+
C: {};
|
|
771
|
+
M: {};
|
|
772
|
+
Defaults: {};
|
|
773
|
+
}, Readonly< ExtractPropTypes<{
|
|
774
|
+
model: {
|
|
775
|
+
type: ObjectConstructor;
|
|
776
|
+
required: true;
|
|
777
|
+
};
|
|
778
|
+
layout: {
|
|
779
|
+
type: PropType<"inline" | "horizontal" | "vertical">;
|
|
780
|
+
default: string;
|
|
781
|
+
};
|
|
782
|
+
size: {
|
|
783
|
+
type: PropType<"mini" | "small" | "medium" | "large">;
|
|
784
|
+
};
|
|
785
|
+
labelColProps: {
|
|
786
|
+
type: ObjectConstructor;
|
|
787
|
+
default: () => {
|
|
788
|
+
span: number;
|
|
789
|
+
offset: number;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
wrapperColProps: {
|
|
793
|
+
type: ObjectConstructor;
|
|
794
|
+
default: () => {
|
|
795
|
+
span: number;
|
|
796
|
+
offset: number;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
labelColStyle: ObjectConstructor;
|
|
800
|
+
wrapperColStyle: ObjectConstructor;
|
|
801
|
+
labelAlign: {
|
|
802
|
+
type: PropType<"left" | "right">;
|
|
803
|
+
default: string;
|
|
804
|
+
};
|
|
805
|
+
disabled: {
|
|
806
|
+
type: BooleanConstructor;
|
|
807
|
+
default: undefined;
|
|
808
|
+
};
|
|
809
|
+
rules: {
|
|
810
|
+
type: PropType<Record<string, FieldRule<any> | FieldRule<any>[]>>;
|
|
811
|
+
};
|
|
812
|
+
autoLabelWidth: {
|
|
813
|
+
type: BooleanConstructor;
|
|
814
|
+
default: boolean;
|
|
815
|
+
};
|
|
816
|
+
id: {
|
|
817
|
+
type: StringConstructor;
|
|
818
|
+
};
|
|
819
|
+
scrollToFirstError: {
|
|
820
|
+
type: BooleanConstructor;
|
|
821
|
+
default: boolean;
|
|
822
|
+
};
|
|
823
|
+
}>> & Readonly<{
|
|
824
|
+
onSubmit?: ((data: {
|
|
825
|
+
values: Record<string, any>;
|
|
826
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
827
|
+
}, ev: Event) => any) | undefined;
|
|
828
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
829
|
+
onSubmitFailed?: ((data: {
|
|
830
|
+
values: Record<string, any>;
|
|
831
|
+
errors: Record<string, ValidatedError>;
|
|
832
|
+
}, ev: Event) => any) | undefined;
|
|
833
|
+
}>, {
|
|
834
|
+
cls: ComputedRef<(string | {
|
|
835
|
+
[x: string]: boolean;
|
|
836
|
+
})[]>;
|
|
837
|
+
formRef: Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
838
|
+
handleSubmit: (e: Event) => void;
|
|
839
|
+
innerValidate: (callback
|
|
840
|
+
/**
|
|
841
|
+
* 表单组件
|
|
842
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
843
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
844
|
+
*
|
|
845
|
+
* 表单复制
|
|
846
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
847
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
848
|
+
*/
|
|
849
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
850
|
+
innerValidateField: (field: string | string[], callback
|
|
851
|
+
/**
|
|
852
|
+
* 表单组件
|
|
853
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
854
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
855
|
+
*
|
|
856
|
+
* 表单复制
|
|
857
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
858
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
859
|
+
*/
|
|
860
|
+
?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, ValidatedError> | undefined>;
|
|
861
|
+
innerResetFields: (field
|
|
862
|
+
/**
|
|
863
|
+
* 表单组件
|
|
864
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
865
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
866
|
+
*
|
|
867
|
+
* 表单复制
|
|
868
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
869
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
870
|
+
*/
|
|
871
|
+
?: string | string[] | undefined) => void;
|
|
872
|
+
innerClearValidate: (field
|
|
873
|
+
/**
|
|
874
|
+
* 表单组件
|
|
875
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
876
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
877
|
+
*
|
|
878
|
+
* 表单复制
|
|
879
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
880
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
881
|
+
*/
|
|
882
|
+
?: string | string[] | undefined) => void;
|
|
883
|
+
innerSetFields: (data: Record<string, FieldData>) => void;
|
|
884
|
+
innerScrollToField: (field: string, options
|
|
885
|
+
/**
|
|
886
|
+
* 表单组件
|
|
887
|
+
* 有关表单id,如果在表单组件中,有字段组件显性地绑定了id字段,则id值以该组件值为准
|
|
888
|
+
* 一般地,不需要有组件绑定id字段,在表单组件中默认会有id字段
|
|
889
|
+
*
|
|
890
|
+
* 表单复制
|
|
891
|
+
* 如果页面传的参数为复制创建,即isPageStatusCopyCreate为true
|
|
892
|
+
* 则基于复制的id(formParams.id的值)进行数据加载
|
|
893
|
+
*/
|
|
894
|
+
?: Options<any> | undefined) => void;
|
|
895
|
+
}, {}, {}, {
|
|
896
|
+
validate(callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
897
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, ValidatedError> | undefined) => void) | undefined): Promise<Record<string, ValidatedError> | undefined>;
|
|
898
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
899
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
900
|
+
setFields(data: Record<string, FieldData>): void;
|
|
901
|
+
scrollToField(field: string): void;
|
|
902
|
+
}, {
|
|
903
|
+
disabled: boolean;
|
|
904
|
+
layout: "inline" | "horizontal" | "vertical";
|
|
905
|
+
labelColProps: Record<string, any>;
|
|
906
|
+
wrapperColProps: Record<string, any>;
|
|
907
|
+
labelAlign: "left" | "right";
|
|
908
|
+
autoLabelWidth: boolean;
|
|
909
|
+
scrollToFirstError: boolean;
|
|
910
|
+
}> | null;
|
|
911
|
+
}, HTMLDivElement>;
|
|
912
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
913
|
+
export default _default;
|
|
914
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
915
|
+
new (): {
|
|
916
|
+
$slots: S;
|
|
917
|
+
};
|
|
918
|
+
};
|