@tmagic/form 1.8.0-beta.1 → 1.8.0-beta.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/dist/es/Form.vue_vue_type_script_setup_true_lang.js +25 -6
- package/dist/es/FormBox.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/es/FormDialog.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/es/FormDrawer.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/es/containers/Col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Container.vue_vue_type_script_setup_true_lang.js +195 -78
- package/dist/es/containers/Fieldset.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/es/containers/FlexLayout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/FormLabel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/GroupList.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/es/containers/GroupListItem.vue_vue_type_script_setup_true_lang.js +10 -9
- package/dist/es/containers/Panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Tabs.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/es/containers/table/ActionsColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/SortColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/Table.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/es/containers/table-group-list/TableGroupList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Cascader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/ColorPicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Date.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DateTime.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Daterange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Display.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DynamicField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Hidden.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Number.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/NumberRange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Textarea.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Time.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Timerange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/index.js +2 -1
- package/dist/es/schema.js +4 -0
- package/dist/es/style.css +4 -1
- package/dist/es/submitForm.js +14 -2
- package/dist/es/utils/form.js +2 -2
- package/dist/style.css +4 -1
- package/dist/tmagic-form.umd.cjs +1779 -1603
- package/package.json +5 -5
- package/src/Form.vue +64 -3
- package/src/FormBox.vue +4 -0
- package/src/FormDialog.vue +4 -0
- package/src/FormDrawer.vue +4 -0
- package/src/containers/Container.vue +178 -54
- package/src/containers/Fieldset.vue +5 -2
- package/src/containers/GroupList.vue +1 -1
- package/src/containers/GroupListItem.vue +4 -3
- package/src/containers/Tabs.vue +10 -2
- package/src/containers/table/Table.vue +9 -3
- package/src/schema.ts +47 -0
- package/src/submitForm.ts +34 -3
- package/src/theme/container.scss +4 -1
- package/types/index.d.ts +1005 -421
package/types/index.d.ts
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { App, AppContext, Component, InjectionKey } from "vue";
|
|
2
|
+
import { FlexLayoutConfig, FormItemConfig, GroupListConfig, TableConfig } from "@tmagic/form-schema";
|
|
3
3
|
export * from "@tmagic/form-schema";
|
|
4
4
|
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
6
|
declare namespace schema_d_exports {
|
|
7
|
-
export { ChangeRecord, ContainerChangeEventData, ValidateError };
|
|
7
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormLabelSlotProps, FormSlots, ValidateError };
|
|
8
8
|
}
|
|
9
9
|
import * as import__tmagic_form_schema from "@tmagic/form-schema";
|
|
10
|
+
/**
|
|
11
|
+
* 对比模式相关配置,由 `MForm` 通过 `provide` 注入,
|
|
12
|
+
* 所有层级的 Container(含嵌套在 fieldset / panel 等容器组件内部的 Container)通过 `inject` 获取,
|
|
13
|
+
* 无需逐层透传 prop。
|
|
14
|
+
*/
|
|
15
|
+
interface FormDiffConfig {
|
|
16
|
+
/**
|
|
17
|
+
* 自定义"是否展示对比内容"的判断函数(仅在对比模式下生效)。
|
|
18
|
+
*
|
|
19
|
+
* - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
|
|
20
|
+
* - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
|
|
21
|
+
*/
|
|
22
|
+
showDiff?: (_data: {
|
|
23
|
+
curValue: any;
|
|
24
|
+
lastValue: any;
|
|
25
|
+
config: FormItemConfig;
|
|
26
|
+
}) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
|
|
29
|
+
*
|
|
30
|
+
* - 传数组:在内置类型基础上「追加」这些类型;
|
|
31
|
+
* - 传函数:入参为内置类型数组,返回值作为「最终」完整类型列表(可完全替换内置项)。
|
|
32
|
+
*/
|
|
33
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
34
|
+
}
|
|
35
|
+
declare const FORM_DIFF_CONFIG_KEY: InjectionKey<FormDiffConfig>;
|
|
10
36
|
interface ValidateError {
|
|
11
37
|
message: string;
|
|
12
38
|
field: string;
|
|
@@ -19,6 +45,23 @@ interface ContainerChangeEventData {
|
|
|
19
45
|
modifyKey?: string;
|
|
20
46
|
changeRecords?: ChangeRecord[];
|
|
21
47
|
}
|
|
48
|
+
/** 自定义 label slot 的作用域参数 */
|
|
49
|
+
interface FormLabelSlotProps {
|
|
50
|
+
/** 当前表单项配置 */
|
|
51
|
+
config: FormItemConfig;
|
|
52
|
+
/** 经处理后的类型 */
|
|
53
|
+
type: string;
|
|
54
|
+
/** 经 filterFunction 处理后的 label 文案 */
|
|
55
|
+
text?: string;
|
|
56
|
+
/** 完整字段路径(包含父级前缀) */
|
|
57
|
+
prop: string;
|
|
58
|
+
/** 经 filterFunction 处理后的最终禁用状态 */
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** Form / Container 暴露的具名 slot 定义 */
|
|
62
|
+
interface FormSlots {
|
|
63
|
+
label(_props: FormLabelSlotProps): any;
|
|
64
|
+
}
|
|
22
65
|
//#endregion
|
|
23
66
|
//#region temp/packages/form/src/submitForm.d.ts
|
|
24
67
|
/**
|
|
@@ -44,9 +87,19 @@ interface SubmitFormOptions {
|
|
|
44
87
|
keyProp?: string;
|
|
45
88
|
popperClass?: string;
|
|
46
89
|
preventSubmitDefault?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* 表单校验失败时,错误提示前缀是否使用字段的 text 文案(通过 `getTextByName` 从 config 中查找)。
|
|
92
|
+
* 默认 `true`,置为 `false` 时直接使用字段 name。
|
|
93
|
+
*/
|
|
94
|
+
useFieldTextInError?: boolean;
|
|
47
95
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
48
96
|
/** 透传给 Form.submitForm 的参数:是否直接返回原始响应式 values */
|
|
49
97
|
native?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* 是否在 resolve 结果中携带 changeRecords(变更记录)。
|
|
100
|
+
* 开启后 resolve 的结果为 `{ values, changeRecords }`,否则仅 resolve values。
|
|
101
|
+
*/
|
|
102
|
+
returnChangeRecords?: boolean;
|
|
50
103
|
/**
|
|
51
104
|
* 父级应用上下文,用于继承全局组件、指令、provide 等。
|
|
52
105
|
* 通常通过 `app._context` 或 `getCurrentInstance()?.appContext` 获取。
|
|
@@ -55,6 +108,15 @@ interface SubmitFormOptions {
|
|
|
55
108
|
/** 等待表单初始化的最长时间(毫秒),超时将以错误 reject。默认 10000ms */
|
|
56
109
|
timeout?: number;
|
|
57
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* 开启 `returnChangeRecords` 时 submitForm 的返回结果
|
|
113
|
+
*/
|
|
114
|
+
interface SubmitFormResult {
|
|
115
|
+
/** 校验通过后的表单值 */
|
|
116
|
+
values: any;
|
|
117
|
+
/** 表单变更记录 */
|
|
118
|
+
changeRecords: ChangeRecord[];
|
|
119
|
+
}
|
|
58
120
|
/**
|
|
59
121
|
* 以命令式方式调用 Form.vue 完成一次表单校验/提交。
|
|
60
122
|
*
|
|
@@ -75,6 +137,13 @@ interface SubmitFormOptions {
|
|
|
75
137
|
* } catch (e) {
|
|
76
138
|
* console.error(e);
|
|
77
139
|
* }
|
|
140
|
+
*
|
|
141
|
+
* // 需要同时获取变更记录时:
|
|
142
|
+
* const { values, changeRecords } = await submitForm({
|
|
143
|
+
* config: [...],
|
|
144
|
+
* initValues: { name: 'foo' },
|
|
145
|
+
* returnChangeRecords: true,
|
|
146
|
+
* });
|
|
78
147
|
* ```
|
|
79
148
|
*/
|
|
80
149
|
declare const submitForm: (options: SubmitFormOptions) => Promise<any>;
|
|
@@ -104,6 +173,7 @@ declare const createObjectProp: (prop: string, key: string, name?: string | numb
|
|
|
104
173
|
declare const useAddField: (prop?: string) => void;
|
|
105
174
|
//#endregion
|
|
106
175
|
//#region temp/packages/form/src/Form.vue.d.ts
|
|
176
|
+
type __VLS_Slots$5 = FormSlots;
|
|
107
177
|
type __VLS_Props$30 = {
|
|
108
178
|
/** 表单配置 */config: schema_d_exports.FormConfig; /** 表单值 */
|
|
109
179
|
initValues: Record<string, any>; /** 需对比的值(开启对比模式时传入) */
|
|
@@ -120,9 +190,47 @@ type __VLS_Props$30 = {
|
|
|
120
190
|
keyProp?: string;
|
|
121
191
|
popperClass?: string;
|
|
122
192
|
preventSubmitDefault?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* 表单校验失败时,错误提示前缀是否使用字段的 text 文案(通过 `getTextByName` 从 config 中查找)。
|
|
195
|
+
*
|
|
196
|
+
* - `true`(默认):错误提示形如 `字段文案 -> 错误信息`,找不到 text 时回退为字段 name;
|
|
197
|
+
* - `false`:跳过查找,直接使用字段 name 作为错误提示前缀(形如 `字段name -> 错误信息`)。
|
|
198
|
+
*/
|
|
199
|
+
useFieldTextInError?: boolean;
|
|
123
200
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
201
|
+
/**
|
|
202
|
+
* 自定义"是否展示对比内容"的判断函数(仅在 `isCompare === true` 时生效)。
|
|
203
|
+
*
|
|
204
|
+
* - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
|
|
205
|
+
* - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
|
|
206
|
+
*
|
|
207
|
+
* 通过 provide 下发给所有层级的 Container(含嵌套在容器组件内部的 Container),
|
|
208
|
+
* 调用方只需在 MForm 这一层传一次即可对整棵表单生效。
|
|
209
|
+
*
|
|
210
|
+
* 典型场景:某些字段语义上相等但结构不同(例如 `code-select` 字段中 `''` 与
|
|
211
|
+
* `{ hookType: 'code', hookData: [] }` 应视为相等),调用方在此处显式声明,
|
|
212
|
+
* 避免被 lodash `isEqual` 误判为差异。
|
|
213
|
+
*/
|
|
214
|
+
showDiff?: (_data: {
|
|
215
|
+
curValue: any;
|
|
216
|
+
lastValue: any;
|
|
217
|
+
config: any;
|
|
218
|
+
}) => boolean;
|
|
219
|
+
/**
|
|
220
|
+
* 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
|
|
221
|
+
*
|
|
222
|
+
* 自接管对比的字段不会渲染前后两份独立组件,而是只渲染一次并由字段组件内部展示前后差异
|
|
223
|
+
* (如 vs-code 使用 monaco diff 编辑器;event-select / code-select-col 等复合字段逐项展示差异)。
|
|
224
|
+
*
|
|
225
|
+
* 支持两种形式:
|
|
226
|
+
* - 传数组:在内置类型基础上「追加」这些类型;
|
|
227
|
+
* - 传函数:入参为内置类型数组,返回值作为「最终」完整列表(可完全替换内置项)。
|
|
228
|
+
*
|
|
229
|
+
* 通过 provide 下发,对整棵表单的所有层级 Container 生效,只需在 MForm 这一层传一次。
|
|
230
|
+
*/
|
|
231
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
124
232
|
};
|
|
125
|
-
declare const
|
|
233
|
+
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {
|
|
126
234
|
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
127
235
|
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
128
236
|
formState: schema_d_exports.FormState;
|
|
@@ -157,8 +265,15 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
157
265
|
keyProp: string;
|
|
158
266
|
parentValues: Record<string, any>;
|
|
159
267
|
stepActive: string | number;
|
|
268
|
+
useFieldTextInError: boolean;
|
|
160
269
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
270
|
+
declare const __VLS_export$30: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
161
271
|
declare const _default$12: typeof __VLS_export$30;
|
|
272
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
273
|
+
new (): {
|
|
274
|
+
$slots: S;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
162
277
|
//#endregion
|
|
163
278
|
//#region temp/packages/form/src/FormDialog.vue.d.ts
|
|
164
279
|
type __VLS_Props$29 = {
|
|
@@ -180,58 +295,145 @@ type __VLS_Props$29 = {
|
|
|
180
295
|
closeOnPressEscape?: boolean;
|
|
181
296
|
destroyOnClose?: boolean;
|
|
182
297
|
showClose?: boolean;
|
|
183
|
-
showCancel?: boolean; /** 透传给内部 `MForm
|
|
298
|
+
showCancel?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
299
|
+
useFieldTextInError?: boolean; /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
|
|
184
300
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
185
301
|
};
|
|
186
302
|
declare var __VLS_19: {}, __VLS_34: {}, __VLS_42: {};
|
|
187
|
-
type __VLS_Slots$
|
|
303
|
+
type __VLS_Slots$4 = {} & {
|
|
188
304
|
default?: (props: typeof __VLS_19) => any;
|
|
189
305
|
} & {
|
|
190
306
|
left?: (props: typeof __VLS_34) => any;
|
|
191
307
|
} & {
|
|
192
308
|
footer?: (props: typeof __VLS_42) => any;
|
|
193
309
|
};
|
|
194
|
-
declare const __VLS_base$
|
|
195
|
-
form: import("@vue/reactivity").Ref<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
310
|
+
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {
|
|
311
|
+
form: import("@vue/reactivity").Ref<({
|
|
312
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
313
|
+
$data: {};
|
|
314
|
+
$props: {
|
|
315
|
+
readonly config: schema_d_exports.FormConfig;
|
|
316
|
+
readonly initValues: Record<string, any>;
|
|
317
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
318
|
+
readonly isCompare?: boolean | undefined;
|
|
319
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
320
|
+
readonly labelWidth?: string | undefined;
|
|
321
|
+
readonly disabled?: boolean | undefined;
|
|
322
|
+
readonly height?: string | undefined;
|
|
323
|
+
readonly stepActive?: string | number | undefined;
|
|
324
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
325
|
+
readonly inline?: boolean | undefined;
|
|
326
|
+
readonly labelPosition?: string | undefined;
|
|
327
|
+
readonly keyProp?: string | undefined;
|
|
328
|
+
readonly popperClass?: string | undefined;
|
|
329
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
330
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
331
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
332
|
+
readonly showDiff?: ((_data: {
|
|
333
|
+
curValue: any;
|
|
334
|
+
lastValue: any;
|
|
335
|
+
config: any;
|
|
336
|
+
}) => boolean) | undefined;
|
|
337
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
338
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
339
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
340
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
341
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
342
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
343
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
344
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
345
|
+
$refs: {
|
|
346
|
+
[x: string]: unknown;
|
|
347
|
+
};
|
|
348
|
+
$slots: Readonly<{
|
|
349
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
352
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
353
|
+
$host: Element | null;
|
|
354
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
355
|
+
$el: any;
|
|
356
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
357
|
+
config: schema_d_exports.FormConfig;
|
|
358
|
+
initValues: Record<string, any>;
|
|
359
|
+
lastValues?: Record<string, any>;
|
|
360
|
+
isCompare?: boolean;
|
|
361
|
+
parentValues?: Record<string, any>;
|
|
362
|
+
labelWidth?: string;
|
|
363
|
+
disabled?: boolean;
|
|
364
|
+
height?: string;
|
|
365
|
+
stepActive?: string | number;
|
|
366
|
+
size?: "small" | "default" | "large";
|
|
367
|
+
inline?: boolean;
|
|
368
|
+
labelPosition?: string;
|
|
369
|
+
keyProp?: string;
|
|
370
|
+
popperClass?: string;
|
|
371
|
+
preventSubmitDefault?: boolean;
|
|
372
|
+
useFieldTextInError?: boolean;
|
|
373
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
374
|
+
showDiff?: (_data: {
|
|
375
|
+
curValue: any;
|
|
376
|
+
lastValue: any;
|
|
377
|
+
config: any;
|
|
378
|
+
}) => boolean;
|
|
379
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
380
|
+
}> & Readonly<{
|
|
381
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
382
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
383
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
384
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
385
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
386
|
+
}>, {
|
|
387
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
388
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
389
|
+
formState: schema_d_exports.FormState;
|
|
390
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
391
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
392
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
393
|
+
resetForm: () => void;
|
|
394
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
395
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
396
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
397
|
+
error: (...args: any[]) => void;
|
|
398
|
+
change: (...args: any[]) => void;
|
|
399
|
+
"field-input": (...args: any[]) => void;
|
|
400
|
+
"field-change": (...args: any[]) => void;
|
|
401
|
+
"update:stepActive": (...args: any[]) => void;
|
|
402
|
+
}, string, {
|
|
403
|
+
disabled: boolean;
|
|
404
|
+
labelWidth: string;
|
|
405
|
+
inline: boolean;
|
|
406
|
+
labelPosition: string;
|
|
407
|
+
config: schema_d_exports.FormConfig;
|
|
408
|
+
height: string;
|
|
409
|
+
initValues: Record<string, any>;
|
|
410
|
+
lastValues: Record<string, any>;
|
|
411
|
+
isCompare: boolean;
|
|
412
|
+
keyProp: string;
|
|
413
|
+
parentValues: Record<string, any>;
|
|
414
|
+
stepActive: string | number;
|
|
415
|
+
useFieldTextInError: boolean;
|
|
416
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
417
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
418
|
+
created?: (() => void) | (() => void)[];
|
|
419
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
420
|
+
mounted?: (() => void) | (() => void)[];
|
|
421
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
422
|
+
updated?: (() => void) | (() => void)[];
|
|
423
|
+
activated?: (() => void) | (() => void)[];
|
|
424
|
+
deactivated?: (() => void) | (() => void)[];
|
|
425
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
426
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
427
|
+
destroyed?: (() => void) | (() => void)[];
|
|
428
|
+
unmounted?: (() => void) | (() => void)[];
|
|
429
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
430
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
431
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
432
|
+
};
|
|
433
|
+
$forceUpdate: () => void;
|
|
434
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
435
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
436
|
+
} & Readonly<{
|
|
235
437
|
disabled: boolean;
|
|
236
438
|
labelWidth: string;
|
|
237
439
|
inline: boolean;
|
|
@@ -244,14 +446,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
244
446
|
keyProp: string;
|
|
245
447
|
parentValues: Record<string, any>;
|
|
246
448
|
stepActive: string | number;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
B: {};
|
|
250
|
-
D: {};
|
|
251
|
-
C: {};
|
|
252
|
-
M: {};
|
|
253
|
-
Defaults: {};
|
|
254
|
-
}, Readonly<{
|
|
449
|
+
useFieldTextInError: boolean;
|
|
450
|
+
}> & Omit<Readonly<{
|
|
255
451
|
config: schema_d_exports.FormConfig;
|
|
256
452
|
initValues: Record<string, any>;
|
|
257
453
|
lastValues?: Record<string, any>;
|
|
@@ -267,24 +463,158 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
267
463
|
keyProp?: string;
|
|
268
464
|
popperClass?: string;
|
|
269
465
|
preventSubmitDefault?: boolean;
|
|
466
|
+
useFieldTextInError?: boolean;
|
|
270
467
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
468
|
+
showDiff?: (_data: {
|
|
469
|
+
curValue: any;
|
|
470
|
+
lastValue: any;
|
|
471
|
+
config: any;
|
|
472
|
+
}) => boolean;
|
|
473
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
271
474
|
}> & Readonly<{
|
|
272
475
|
onError?: ((...args: any[]) => any) | undefined;
|
|
273
476
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
274
477
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
275
478
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
276
479
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
277
|
-
}>, {
|
|
278
|
-
values:
|
|
279
|
-
lastValuesProcessed:
|
|
480
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
481
|
+
values: schema_d_exports.FormValue;
|
|
482
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
280
483
|
formState: schema_d_exports.FormState;
|
|
281
|
-
initialized:
|
|
282
|
-
changeRecords: import("@
|
|
484
|
+
initialized: boolean;
|
|
485
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
283
486
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
284
487
|
resetForm: () => void;
|
|
285
488
|
submitForm: (native?: boolean) => Promise<any>;
|
|
286
489
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
287
|
-
}
|
|
490
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
491
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
492
|
+
}) | undefined, ({
|
|
493
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
494
|
+
$data: {};
|
|
495
|
+
$props: {
|
|
496
|
+
readonly config: schema_d_exports.FormConfig;
|
|
497
|
+
readonly initValues: Record<string, any>;
|
|
498
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
499
|
+
readonly isCompare?: boolean | undefined;
|
|
500
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
501
|
+
readonly labelWidth?: string | undefined;
|
|
502
|
+
readonly disabled?: boolean | undefined;
|
|
503
|
+
readonly height?: string | undefined;
|
|
504
|
+
readonly stepActive?: string | number | undefined;
|
|
505
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
506
|
+
readonly inline?: boolean | undefined;
|
|
507
|
+
readonly labelPosition?: string | undefined;
|
|
508
|
+
readonly keyProp?: string | undefined;
|
|
509
|
+
readonly popperClass?: string | undefined;
|
|
510
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
511
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
512
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
513
|
+
readonly showDiff?: ((_data: {
|
|
514
|
+
curValue: any;
|
|
515
|
+
lastValue: any;
|
|
516
|
+
config: any;
|
|
517
|
+
}) => boolean) | undefined;
|
|
518
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
519
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
520
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
521
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
522
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
523
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
524
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
525
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
526
|
+
$refs: {
|
|
527
|
+
[x: string]: unknown;
|
|
528
|
+
};
|
|
529
|
+
$slots: Readonly<{
|
|
530
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
531
|
+
}>;
|
|
532
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
533
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
534
|
+
$host: Element | null;
|
|
535
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
536
|
+
$el: any;
|
|
537
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
538
|
+
config: schema_d_exports.FormConfig;
|
|
539
|
+
initValues: Record<string, any>;
|
|
540
|
+
lastValues?: Record<string, any>;
|
|
541
|
+
isCompare?: boolean;
|
|
542
|
+
parentValues?: Record<string, any>;
|
|
543
|
+
labelWidth?: string;
|
|
544
|
+
disabled?: boolean;
|
|
545
|
+
height?: string;
|
|
546
|
+
stepActive?: string | number;
|
|
547
|
+
size?: "small" | "default" | "large";
|
|
548
|
+
inline?: boolean;
|
|
549
|
+
labelPosition?: string;
|
|
550
|
+
keyProp?: string;
|
|
551
|
+
popperClass?: string;
|
|
552
|
+
preventSubmitDefault?: boolean;
|
|
553
|
+
useFieldTextInError?: boolean;
|
|
554
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
555
|
+
showDiff?: (_data: {
|
|
556
|
+
curValue: any;
|
|
557
|
+
lastValue: any;
|
|
558
|
+
config: any;
|
|
559
|
+
}) => boolean;
|
|
560
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
561
|
+
}> & Readonly<{
|
|
562
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
563
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
564
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
565
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
566
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
567
|
+
}>, {
|
|
568
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
569
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
570
|
+
formState: schema_d_exports.FormState;
|
|
571
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
572
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
573
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
574
|
+
resetForm: () => void;
|
|
575
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
576
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
577
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
578
|
+
error: (...args: any[]) => void;
|
|
579
|
+
change: (...args: any[]) => void;
|
|
580
|
+
"field-input": (...args: any[]) => void;
|
|
581
|
+
"field-change": (...args: any[]) => void;
|
|
582
|
+
"update:stepActive": (...args: any[]) => void;
|
|
583
|
+
}, string, {
|
|
584
|
+
disabled: boolean;
|
|
585
|
+
labelWidth: string;
|
|
586
|
+
inline: boolean;
|
|
587
|
+
labelPosition: string;
|
|
588
|
+
config: schema_d_exports.FormConfig;
|
|
589
|
+
height: string;
|
|
590
|
+
initValues: Record<string, any>;
|
|
591
|
+
lastValues: Record<string, any>;
|
|
592
|
+
isCompare: boolean;
|
|
593
|
+
keyProp: string;
|
|
594
|
+
parentValues: Record<string, any>;
|
|
595
|
+
stepActive: string | number;
|
|
596
|
+
useFieldTextInError: boolean;
|
|
597
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
598
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
599
|
+
created?: (() => void) | (() => void)[];
|
|
600
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
601
|
+
mounted?: (() => void) | (() => void)[];
|
|
602
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
603
|
+
updated?: (() => void) | (() => void)[];
|
|
604
|
+
activated?: (() => void) | (() => void)[];
|
|
605
|
+
deactivated?: (() => void) | (() => void)[];
|
|
606
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
607
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
608
|
+
destroyed?: (() => void) | (() => void)[];
|
|
609
|
+
unmounted?: (() => void) | (() => void)[];
|
|
610
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
611
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
612
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
613
|
+
};
|
|
614
|
+
$forceUpdate: () => void;
|
|
615
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
616
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
617
|
+
} & Readonly<{
|
|
288
618
|
disabled: boolean;
|
|
289
619
|
labelWidth: string;
|
|
290
620
|
inline: boolean;
|
|
@@ -297,7 +627,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
297
627
|
keyProp: string;
|
|
298
628
|
parentValues: Record<string, any>;
|
|
299
629
|
stepActive: string | number;
|
|
300
|
-
|
|
630
|
+
useFieldTextInError: boolean;
|
|
631
|
+
}> & Omit<Readonly<{
|
|
301
632
|
config: schema_d_exports.FormConfig;
|
|
302
633
|
initValues: Record<string, any>;
|
|
303
634
|
lastValues?: Record<string, any>;
|
|
@@ -313,96 +644,33 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
313
644
|
keyProp?: string;
|
|
314
645
|
popperClass?: string;
|
|
315
646
|
preventSubmitDefault?: boolean;
|
|
647
|
+
useFieldTextInError?: boolean;
|
|
316
648
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
649
|
+
showDiff?: (_data: {
|
|
650
|
+
curValue: any;
|
|
651
|
+
lastValue: any;
|
|
652
|
+
config: any;
|
|
653
|
+
}) => boolean;
|
|
654
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
317
655
|
}> & Readonly<{
|
|
318
656
|
onError?: ((...args: any[]) => any) | undefined;
|
|
319
657
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
320
658
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
321
659
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
322
660
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
323
|
-
}>, {
|
|
324
|
-
values:
|
|
325
|
-
lastValuesProcessed:
|
|
661
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
662
|
+
values: schema_d_exports.FormValue;
|
|
663
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
326
664
|
formState: schema_d_exports.FormState;
|
|
327
|
-
initialized:
|
|
328
|
-
changeRecords: import("@
|
|
665
|
+
initialized: boolean;
|
|
666
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
329
667
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
330
668
|
resetForm: () => void;
|
|
331
669
|
submitForm: (native?: boolean) => Promise<any>;
|
|
332
670
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"field-input": (...args: any[]) => void;
|
|
337
|
-
"field-change": (...args: any[]) => void;
|
|
338
|
-
"update:stepActive": (...args: any[]) => void;
|
|
339
|
-
}, import("@vue/runtime-core").PublicProps, {
|
|
340
|
-
disabled: boolean;
|
|
341
|
-
labelWidth: string;
|
|
342
|
-
inline: boolean;
|
|
343
|
-
labelPosition: string;
|
|
344
|
-
config: schema_d_exports.FormConfig;
|
|
345
|
-
height: string;
|
|
346
|
-
initValues: Record<string, any>;
|
|
347
|
-
lastValues: Record<string, any>;
|
|
348
|
-
isCompare: boolean;
|
|
349
|
-
keyProp: string;
|
|
350
|
-
parentValues: Record<string, any>;
|
|
351
|
-
stepActive: string | number;
|
|
352
|
-
}, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
|
|
353
|
-
P: {};
|
|
354
|
-
B: {};
|
|
355
|
-
D: {};
|
|
356
|
-
C: {};
|
|
357
|
-
M: {};
|
|
358
|
-
Defaults: {};
|
|
359
|
-
}, Readonly<{
|
|
360
|
-
config: schema_d_exports.FormConfig;
|
|
361
|
-
initValues: Record<string, any>;
|
|
362
|
-
lastValues?: Record<string, any>;
|
|
363
|
-
isCompare?: boolean;
|
|
364
|
-
parentValues?: Record<string, any>;
|
|
365
|
-
labelWidth?: string;
|
|
366
|
-
disabled?: boolean;
|
|
367
|
-
height?: string;
|
|
368
|
-
stepActive?: string | number;
|
|
369
|
-
size?: "small" | "default" | "large";
|
|
370
|
-
inline?: boolean;
|
|
371
|
-
labelPosition?: string;
|
|
372
|
-
keyProp?: string;
|
|
373
|
-
popperClass?: string;
|
|
374
|
-
preventSubmitDefault?: boolean;
|
|
375
|
-
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
376
|
-
}> & Readonly<{
|
|
377
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
378
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
379
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
380
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
381
|
-
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
382
|
-
}>, {
|
|
383
|
-
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
384
|
-
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
385
|
-
formState: schema_d_exports.FormState;
|
|
386
|
-
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
387
|
-
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
388
|
-
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
389
|
-
resetForm: () => void;
|
|
390
|
-
submitForm: (native?: boolean) => Promise<any>;
|
|
391
|
-
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
392
|
-
}, {}, {}, {}, {
|
|
393
|
-
disabled: boolean;
|
|
394
|
-
labelWidth: string;
|
|
395
|
-
inline: boolean;
|
|
396
|
-
labelPosition: string;
|
|
397
|
-
config: schema_d_exports.FormConfig;
|
|
398
|
-
height: string;
|
|
399
|
-
initValues: Record<string, any>;
|
|
400
|
-
lastValues: Record<string, any>;
|
|
401
|
-
isCompare: boolean;
|
|
402
|
-
keyProp: string;
|
|
403
|
-
parentValues: Record<string, any>;
|
|
404
|
-
stepActive: string | number;
|
|
405
|
-
}> | undefined>;
|
|
671
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
672
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
673
|
+
}) | undefined>;
|
|
406
674
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
407
675
|
dialogVisible: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
408
676
|
cancel: () => void;
|
|
@@ -426,12 +694,13 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
426
694
|
destroyOnClose: boolean;
|
|
427
695
|
showClose: boolean;
|
|
428
696
|
config: schema_d_exports.FormConfig;
|
|
697
|
+
useFieldTextInError: boolean;
|
|
429
698
|
confirmText: string;
|
|
430
699
|
showCancel: boolean;
|
|
431
700
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
432
|
-
declare const __VLS_export$29: __VLS_WithSlots$
|
|
701
|
+
declare const __VLS_export$29: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
433
702
|
declare const _default$14: typeof __VLS_export$29;
|
|
434
|
-
type __VLS_WithSlots$
|
|
703
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
435
704
|
new (): {
|
|
436
705
|
$slots: S;
|
|
437
706
|
};
|
|
@@ -452,112 +721,146 @@ type __VLS_Props$28 = {
|
|
|
452
721
|
confirmText?: string;
|
|
453
722
|
inline?: boolean;
|
|
454
723
|
labelPosition?: string;
|
|
455
|
-
preventSubmitDefault?: boolean; /**
|
|
724
|
+
preventSubmitDefault?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
725
|
+
useFieldTextInError?: boolean; /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
|
|
456
726
|
beforeClose?: (_done: (_cancel?: boolean) => void) => void; /** 透传给内部 `MForm`,用于扩展 `formState`(如注入 `$message` / `$store` 等) */
|
|
457
727
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
458
728
|
};
|
|
459
729
|
declare var __VLS_23: {}, __VLS_38: {}, __VLS_46: {};
|
|
460
|
-
type __VLS_Slots$
|
|
730
|
+
type __VLS_Slots$3 = {} & {
|
|
461
731
|
default?: (props: typeof __VLS_23) => any;
|
|
462
732
|
} & {
|
|
463
733
|
left?: (props: typeof __VLS_38) => any;
|
|
464
734
|
} & {
|
|
465
735
|
footer?: (props: typeof __VLS_46) => any;
|
|
466
736
|
};
|
|
467
|
-
declare const __VLS_base$
|
|
468
|
-
form: import("@vue/reactivity").Ref<
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
737
|
+
declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {
|
|
738
|
+
form: import("@vue/reactivity").Ref<({
|
|
739
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
740
|
+
$data: {};
|
|
741
|
+
$props: {
|
|
742
|
+
readonly config: schema_d_exports.FormConfig;
|
|
743
|
+
readonly initValues: Record<string, any>;
|
|
744
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
745
|
+
readonly isCompare?: boolean | undefined;
|
|
746
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
747
|
+
readonly labelWidth?: string | undefined;
|
|
748
|
+
readonly disabled?: boolean | undefined;
|
|
749
|
+
readonly height?: string | undefined;
|
|
750
|
+
readonly stepActive?: string | number | undefined;
|
|
751
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
752
|
+
readonly inline?: boolean | undefined;
|
|
753
|
+
readonly labelPosition?: string | undefined;
|
|
754
|
+
readonly keyProp?: string | undefined;
|
|
755
|
+
readonly popperClass?: string | undefined;
|
|
756
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
757
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
758
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
759
|
+
readonly showDiff?: ((_data: {
|
|
760
|
+
curValue: any;
|
|
761
|
+
lastValue: any;
|
|
762
|
+
config: any;
|
|
763
|
+
}) => boolean) | undefined;
|
|
764
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
765
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
766
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
767
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
768
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
769
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
770
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
771
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
772
|
+
$refs: {
|
|
773
|
+
[x: string]: unknown;
|
|
774
|
+
};
|
|
775
|
+
$slots: Readonly<{
|
|
776
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
777
|
+
}>;
|
|
778
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
779
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
780
|
+
$host: Element | null;
|
|
781
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
782
|
+
$el: any;
|
|
783
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
784
|
+
config: schema_d_exports.FormConfig;
|
|
785
|
+
initValues: Record<string, any>;
|
|
786
|
+
lastValues?: Record<string, any>;
|
|
787
|
+
isCompare?: boolean;
|
|
788
|
+
parentValues?: Record<string, any>;
|
|
789
|
+
labelWidth?: string;
|
|
790
|
+
disabled?: boolean;
|
|
791
|
+
height?: string;
|
|
792
|
+
stepActive?: string | number;
|
|
793
|
+
size?: "small" | "default" | "large";
|
|
794
|
+
inline?: boolean;
|
|
795
|
+
labelPosition?: string;
|
|
796
|
+
keyProp?: string;
|
|
797
|
+
popperClass?: string;
|
|
798
|
+
preventSubmitDefault?: boolean;
|
|
799
|
+
useFieldTextInError?: boolean;
|
|
800
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
801
|
+
showDiff?: (_data: {
|
|
802
|
+
curValue: any;
|
|
803
|
+
lastValue: any;
|
|
804
|
+
config: any;
|
|
805
|
+
}) => boolean;
|
|
806
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
807
|
+
}> & Readonly<{
|
|
808
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
809
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
810
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
811
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
812
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
813
|
+
}>, {
|
|
814
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
815
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
816
|
+
formState: schema_d_exports.FormState;
|
|
817
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
818
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
819
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
820
|
+
resetForm: () => void;
|
|
821
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
822
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
823
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
824
|
+
error: (...args: any[]) => void;
|
|
825
|
+
change: (...args: any[]) => void;
|
|
826
|
+
"field-input": (...args: any[]) => void;
|
|
827
|
+
"field-change": (...args: any[]) => void;
|
|
828
|
+
"update:stepActive": (...args: any[]) => void;
|
|
829
|
+
}, string, {
|
|
830
|
+
disabled: boolean;
|
|
831
|
+
labelWidth: string;
|
|
832
|
+
inline: boolean;
|
|
833
|
+
labelPosition: string;
|
|
834
|
+
config: schema_d_exports.FormConfig;
|
|
835
|
+
height: string;
|
|
836
|
+
initValues: Record<string, any>;
|
|
837
|
+
lastValues: Record<string, any>;
|
|
838
|
+
isCompare: boolean;
|
|
839
|
+
keyProp: string;
|
|
840
|
+
parentValues: Record<string, any>;
|
|
841
|
+
stepActive: string | number;
|
|
842
|
+
useFieldTextInError: boolean;
|
|
843
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
844
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
845
|
+
created?: (() => void) | (() => void)[];
|
|
846
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
847
|
+
mounted?: (() => void) | (() => void)[];
|
|
848
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
849
|
+
updated?: (() => void) | (() => void)[];
|
|
850
|
+
activated?: (() => void) | (() => void)[];
|
|
851
|
+
deactivated?: (() => void) | (() => void)[];
|
|
852
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
853
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
854
|
+
destroyed?: (() => void) | (() => void)[];
|
|
855
|
+
unmounted?: (() => void) | (() => void)[];
|
|
856
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
857
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
858
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
859
|
+
};
|
|
860
|
+
$forceUpdate: () => void;
|
|
861
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
862
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
863
|
+
} & Readonly<{
|
|
561
864
|
disabled: boolean;
|
|
562
865
|
labelWidth: string;
|
|
563
866
|
inline: boolean;
|
|
@@ -570,7 +873,8 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
570
873
|
keyProp: string;
|
|
571
874
|
parentValues: Record<string, any>;
|
|
572
875
|
stepActive: string | number;
|
|
573
|
-
|
|
876
|
+
useFieldTextInError: boolean;
|
|
877
|
+
}> & Omit<Readonly<{
|
|
574
878
|
config: schema_d_exports.FormConfig;
|
|
575
879
|
initValues: Record<string, any>;
|
|
576
880
|
lastValues?: Record<string, any>;
|
|
@@ -586,30 +890,158 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
586
890
|
keyProp?: string;
|
|
587
891
|
popperClass?: string;
|
|
588
892
|
preventSubmitDefault?: boolean;
|
|
893
|
+
useFieldTextInError?: boolean;
|
|
589
894
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
895
|
+
showDiff?: (_data: {
|
|
896
|
+
curValue: any;
|
|
897
|
+
lastValue: any;
|
|
898
|
+
config: any;
|
|
899
|
+
}) => boolean;
|
|
900
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
590
901
|
}> & Readonly<{
|
|
591
902
|
onError?: ((...args: any[]) => any) | undefined;
|
|
592
903
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
593
904
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
594
905
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
595
906
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
596
|
-
}>, {
|
|
597
|
-
values:
|
|
598
|
-
lastValuesProcessed:
|
|
907
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
908
|
+
values: schema_d_exports.FormValue;
|
|
909
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
599
910
|
formState: schema_d_exports.FormState;
|
|
600
|
-
initialized:
|
|
601
|
-
changeRecords: import("@
|
|
911
|
+
initialized: boolean;
|
|
912
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
602
913
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
603
914
|
resetForm: () => void;
|
|
604
915
|
submitForm: (native?: boolean) => Promise<any>;
|
|
605
916
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
"
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
917
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
918
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
919
|
+
}) | undefined, ({
|
|
920
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
921
|
+
$data: {};
|
|
922
|
+
$props: {
|
|
923
|
+
readonly config: schema_d_exports.FormConfig;
|
|
924
|
+
readonly initValues: Record<string, any>;
|
|
925
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
926
|
+
readonly isCompare?: boolean | undefined;
|
|
927
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
928
|
+
readonly labelWidth?: string | undefined;
|
|
929
|
+
readonly disabled?: boolean | undefined;
|
|
930
|
+
readonly height?: string | undefined;
|
|
931
|
+
readonly stepActive?: string | number | undefined;
|
|
932
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
933
|
+
readonly inline?: boolean | undefined;
|
|
934
|
+
readonly labelPosition?: string | undefined;
|
|
935
|
+
readonly keyProp?: string | undefined;
|
|
936
|
+
readonly popperClass?: string | undefined;
|
|
937
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
938
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
939
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
940
|
+
readonly showDiff?: ((_data: {
|
|
941
|
+
curValue: any;
|
|
942
|
+
lastValue: any;
|
|
943
|
+
config: any;
|
|
944
|
+
}) => boolean) | undefined;
|
|
945
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
946
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
947
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
948
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
949
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
950
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
951
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
952
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
953
|
+
$refs: {
|
|
954
|
+
[x: string]: unknown;
|
|
955
|
+
};
|
|
956
|
+
$slots: Readonly<{
|
|
957
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
958
|
+
}>;
|
|
959
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
960
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
961
|
+
$host: Element | null;
|
|
962
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
963
|
+
$el: any;
|
|
964
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
965
|
+
config: schema_d_exports.FormConfig;
|
|
966
|
+
initValues: Record<string, any>;
|
|
967
|
+
lastValues?: Record<string, any>;
|
|
968
|
+
isCompare?: boolean;
|
|
969
|
+
parentValues?: Record<string, any>;
|
|
970
|
+
labelWidth?: string;
|
|
971
|
+
disabled?: boolean;
|
|
972
|
+
height?: string;
|
|
973
|
+
stepActive?: string | number;
|
|
974
|
+
size?: "small" | "default" | "large";
|
|
975
|
+
inline?: boolean;
|
|
976
|
+
labelPosition?: string;
|
|
977
|
+
keyProp?: string;
|
|
978
|
+
popperClass?: string;
|
|
979
|
+
preventSubmitDefault?: boolean;
|
|
980
|
+
useFieldTextInError?: boolean;
|
|
981
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
982
|
+
showDiff?: (_data: {
|
|
983
|
+
curValue: any;
|
|
984
|
+
lastValue: any;
|
|
985
|
+
config: any;
|
|
986
|
+
}) => boolean;
|
|
987
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
988
|
+
}> & Readonly<{
|
|
989
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
990
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
991
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
992
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
993
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
994
|
+
}>, {
|
|
995
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
996
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
997
|
+
formState: schema_d_exports.FormState;
|
|
998
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
999
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
1000
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
1001
|
+
resetForm: () => void;
|
|
1002
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
1003
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
1004
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
1005
|
+
error: (...args: any[]) => void;
|
|
1006
|
+
change: (...args: any[]) => void;
|
|
1007
|
+
"field-input": (...args: any[]) => void;
|
|
1008
|
+
"field-change": (...args: any[]) => void;
|
|
1009
|
+
"update:stepActive": (...args: any[]) => void;
|
|
1010
|
+
}, string, {
|
|
1011
|
+
disabled: boolean;
|
|
1012
|
+
labelWidth: string;
|
|
1013
|
+
inline: boolean;
|
|
1014
|
+
labelPosition: string;
|
|
1015
|
+
config: schema_d_exports.FormConfig;
|
|
1016
|
+
height: string;
|
|
1017
|
+
initValues: Record<string, any>;
|
|
1018
|
+
lastValues: Record<string, any>;
|
|
1019
|
+
isCompare: boolean;
|
|
1020
|
+
keyProp: string;
|
|
1021
|
+
parentValues: Record<string, any>;
|
|
1022
|
+
stepActive: string | number;
|
|
1023
|
+
useFieldTextInError: boolean;
|
|
1024
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
1025
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1026
|
+
created?: (() => void) | (() => void)[];
|
|
1027
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1028
|
+
mounted?: (() => void) | (() => void)[];
|
|
1029
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1030
|
+
updated?: (() => void) | (() => void)[];
|
|
1031
|
+
activated?: (() => void) | (() => void)[];
|
|
1032
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1033
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1034
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1035
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1036
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1037
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1038
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1039
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1040
|
+
};
|
|
1041
|
+
$forceUpdate: () => void;
|
|
1042
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
1043
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
1044
|
+
} & Readonly<{
|
|
613
1045
|
disabled: boolean;
|
|
614
1046
|
labelWidth: string;
|
|
615
1047
|
inline: boolean;
|
|
@@ -622,14 +1054,8 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
622
1054
|
keyProp: string;
|
|
623
1055
|
parentValues: Record<string, any>;
|
|
624
1056
|
stepActive: string | number;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
B: {};
|
|
628
|
-
D: {};
|
|
629
|
-
C: {};
|
|
630
|
-
M: {};
|
|
631
|
-
Defaults: {};
|
|
632
|
-
}, Readonly<{
|
|
1057
|
+
useFieldTextInError: boolean;
|
|
1058
|
+
}> & Omit<Readonly<{
|
|
633
1059
|
config: schema_d_exports.FormConfig;
|
|
634
1060
|
initValues: Record<string, any>;
|
|
635
1061
|
lastValues?: Record<string, any>;
|
|
@@ -645,37 +1071,33 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
645
1071
|
keyProp?: string;
|
|
646
1072
|
popperClass?: string;
|
|
647
1073
|
preventSubmitDefault?: boolean;
|
|
1074
|
+
useFieldTextInError?: boolean;
|
|
648
1075
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1076
|
+
showDiff?: (_data: {
|
|
1077
|
+
curValue: any;
|
|
1078
|
+
lastValue: any;
|
|
1079
|
+
config: any;
|
|
1080
|
+
}) => boolean;
|
|
1081
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
649
1082
|
}> & Readonly<{
|
|
650
1083
|
onError?: ((...args: any[]) => any) | undefined;
|
|
651
1084
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
652
1085
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
653
1086
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
654
1087
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
655
|
-
}>, {
|
|
656
|
-
values:
|
|
657
|
-
lastValuesProcessed:
|
|
1088
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
1089
|
+
values: schema_d_exports.FormValue;
|
|
1090
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
658
1091
|
formState: schema_d_exports.FormState;
|
|
659
|
-
initialized:
|
|
660
|
-
changeRecords: import("@
|
|
1092
|
+
initialized: boolean;
|
|
1093
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
661
1094
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
662
1095
|
resetForm: () => void;
|
|
663
1096
|
submitForm: (native?: boolean) => Promise<any>;
|
|
664
1097
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
inline: boolean;
|
|
669
|
-
labelPosition: string;
|
|
670
|
-
config: schema_d_exports.FormConfig;
|
|
671
|
-
height: string;
|
|
672
|
-
initValues: Record<string, any>;
|
|
673
|
-
lastValues: Record<string, any>;
|
|
674
|
-
isCompare: boolean;
|
|
675
|
-
keyProp: string;
|
|
676
|
-
parentValues: Record<string, any>;
|
|
677
|
-
stepActive: string | number;
|
|
678
|
-
}> | undefined>;
|
|
1098
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1099
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1100
|
+
}) | undefined>;
|
|
679
1101
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
680
1102
|
bodyHeight: import("@vue/reactivity").Ref<number, number>;
|
|
681
1103
|
show: () => void;
|
|
@@ -701,11 +1123,12 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
701
1123
|
values: Object;
|
|
702
1124
|
closeOnPressEscape: boolean;
|
|
703
1125
|
config: schema_d_exports.FormConfig;
|
|
1126
|
+
useFieldTextInError: boolean;
|
|
704
1127
|
confirmText: string;
|
|
705
1128
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
706
|
-
declare const __VLS_export$28: __VLS_WithSlots$
|
|
1129
|
+
declare const __VLS_export$28: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
707
1130
|
declare const _default$15: typeof __VLS_export$28;
|
|
708
|
-
type __VLS_WithSlots$
|
|
1131
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
709
1132
|
new (): {
|
|
710
1133
|
$slots: S;
|
|
711
1134
|
};
|
|
@@ -724,58 +1147,145 @@ type __VLS_Props$27 = {
|
|
|
724
1147
|
confirmText?: string;
|
|
725
1148
|
inline?: boolean;
|
|
726
1149
|
labelPosition?: string;
|
|
727
|
-
preventSubmitDefault?: boolean;
|
|
1150
|
+
preventSubmitDefault?: boolean; /** 透传给内部 `MForm`,控制表单校验失败时错误提示前缀是否使用字段的 text 文案 */
|
|
1151
|
+
useFieldTextInError?: boolean;
|
|
728
1152
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
729
1153
|
};
|
|
730
1154
|
declare var __VLS_16$1: {}, __VLS_18$1: {}, __VLS_20: {};
|
|
731
|
-
type __VLS_Slots$
|
|
1155
|
+
type __VLS_Slots$2 = {} & {
|
|
732
1156
|
default?: (props: typeof __VLS_16$1) => any;
|
|
733
1157
|
} & {
|
|
734
1158
|
left?: (props: typeof __VLS_18$1) => any;
|
|
735
1159
|
} & {
|
|
736
1160
|
footer?: (props: typeof __VLS_20) => any;
|
|
737
1161
|
};
|
|
738
|
-
declare const __VLS_base$
|
|
739
|
-
form: import("@vue/reactivity").Ref<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
1162
|
+
declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {
|
|
1163
|
+
form: import("@vue/reactivity").Ref<({
|
|
1164
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
1165
|
+
$data: {};
|
|
1166
|
+
$props: {
|
|
1167
|
+
readonly config: schema_d_exports.FormConfig;
|
|
1168
|
+
readonly initValues: Record<string, any>;
|
|
1169
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
1170
|
+
readonly isCompare?: boolean | undefined;
|
|
1171
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
1172
|
+
readonly labelWidth?: string | undefined;
|
|
1173
|
+
readonly disabled?: boolean | undefined;
|
|
1174
|
+
readonly height?: string | undefined;
|
|
1175
|
+
readonly stepActive?: string | number | undefined;
|
|
1176
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
1177
|
+
readonly inline?: boolean | undefined;
|
|
1178
|
+
readonly labelPosition?: string | undefined;
|
|
1179
|
+
readonly keyProp?: string | undefined;
|
|
1180
|
+
readonly popperClass?: string | undefined;
|
|
1181
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
1182
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
1183
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1184
|
+
readonly showDiff?: ((_data: {
|
|
1185
|
+
curValue: any;
|
|
1186
|
+
lastValue: any;
|
|
1187
|
+
config: any;
|
|
1188
|
+
}) => boolean) | undefined;
|
|
1189
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
1190
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
1191
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
1192
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1193
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1194
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1195
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
1196
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
1197
|
+
$refs: {
|
|
1198
|
+
[x: string]: unknown;
|
|
1199
|
+
};
|
|
1200
|
+
$slots: Readonly<{
|
|
1201
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
1202
|
+
}>;
|
|
1203
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1204
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1205
|
+
$host: Element | null;
|
|
1206
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
1207
|
+
$el: any;
|
|
1208
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
1209
|
+
config: schema_d_exports.FormConfig;
|
|
1210
|
+
initValues: Record<string, any>;
|
|
1211
|
+
lastValues?: Record<string, any>;
|
|
1212
|
+
isCompare?: boolean;
|
|
1213
|
+
parentValues?: Record<string, any>;
|
|
1214
|
+
labelWidth?: string;
|
|
1215
|
+
disabled?: boolean;
|
|
1216
|
+
height?: string;
|
|
1217
|
+
stepActive?: string | number;
|
|
1218
|
+
size?: "small" | "default" | "large";
|
|
1219
|
+
inline?: boolean;
|
|
1220
|
+
labelPosition?: string;
|
|
1221
|
+
keyProp?: string;
|
|
1222
|
+
popperClass?: string;
|
|
1223
|
+
preventSubmitDefault?: boolean;
|
|
1224
|
+
useFieldTextInError?: boolean;
|
|
1225
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1226
|
+
showDiff?: (_data: {
|
|
1227
|
+
curValue: any;
|
|
1228
|
+
lastValue: any;
|
|
1229
|
+
config: any;
|
|
1230
|
+
}) => boolean;
|
|
1231
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
1232
|
+
}> & Readonly<{
|
|
1233
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
1234
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1235
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1236
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1237
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1238
|
+
}>, {
|
|
1239
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1240
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1241
|
+
formState: schema_d_exports.FormState;
|
|
1242
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
1243
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
1244
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
1245
|
+
resetForm: () => void;
|
|
1246
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
1247
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
1248
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
1249
|
+
error: (...args: any[]) => void;
|
|
1250
|
+
change: (...args: any[]) => void;
|
|
1251
|
+
"field-input": (...args: any[]) => void;
|
|
1252
|
+
"field-change": (...args: any[]) => void;
|
|
1253
|
+
"update:stepActive": (...args: any[]) => void;
|
|
1254
|
+
}, string, {
|
|
1255
|
+
disabled: boolean;
|
|
1256
|
+
labelWidth: string;
|
|
1257
|
+
inline: boolean;
|
|
1258
|
+
labelPosition: string;
|
|
1259
|
+
config: schema_d_exports.FormConfig;
|
|
1260
|
+
height: string;
|
|
1261
|
+
initValues: Record<string, any>;
|
|
1262
|
+
lastValues: Record<string, any>;
|
|
1263
|
+
isCompare: boolean;
|
|
1264
|
+
keyProp: string;
|
|
1265
|
+
parentValues: Record<string, any>;
|
|
1266
|
+
stepActive: string | number;
|
|
1267
|
+
useFieldTextInError: boolean;
|
|
1268
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
1269
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1270
|
+
created?: (() => void) | (() => void)[];
|
|
1271
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1272
|
+
mounted?: (() => void) | (() => void)[];
|
|
1273
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1274
|
+
updated?: (() => void) | (() => void)[];
|
|
1275
|
+
activated?: (() => void) | (() => void)[];
|
|
1276
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1277
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1278
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1279
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1280
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1281
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1282
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1283
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1284
|
+
};
|
|
1285
|
+
$forceUpdate: () => void;
|
|
1286
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
1287
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
1288
|
+
} & Readonly<{
|
|
779
1289
|
disabled: boolean;
|
|
780
1290
|
labelWidth: string;
|
|
781
1291
|
inline: boolean;
|
|
@@ -788,14 +1298,8 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
788
1298
|
keyProp: string;
|
|
789
1299
|
parentValues: Record<string, any>;
|
|
790
1300
|
stepActive: string | number;
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
B: {};
|
|
794
|
-
D: {};
|
|
795
|
-
C: {};
|
|
796
|
-
M: {};
|
|
797
|
-
Defaults: {};
|
|
798
|
-
}, Readonly<{
|
|
1301
|
+
useFieldTextInError: boolean;
|
|
1302
|
+
}> & Omit<Readonly<{
|
|
799
1303
|
config: schema_d_exports.FormConfig;
|
|
800
1304
|
initValues: Record<string, any>;
|
|
801
1305
|
lastValues?: Record<string, any>;
|
|
@@ -811,24 +1315,158 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
811
1315
|
keyProp?: string;
|
|
812
1316
|
popperClass?: string;
|
|
813
1317
|
preventSubmitDefault?: boolean;
|
|
1318
|
+
useFieldTextInError?: boolean;
|
|
814
1319
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1320
|
+
showDiff?: (_data: {
|
|
1321
|
+
curValue: any;
|
|
1322
|
+
lastValue: any;
|
|
1323
|
+
config: any;
|
|
1324
|
+
}) => boolean;
|
|
1325
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
815
1326
|
}> & Readonly<{
|
|
816
1327
|
onError?: ((...args: any[]) => any) | undefined;
|
|
817
1328
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
818
1329
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
819
1330
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
820
1331
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
821
|
-
}>, {
|
|
822
|
-
values:
|
|
823
|
-
lastValuesProcessed:
|
|
1332
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
1333
|
+
values: schema_d_exports.FormValue;
|
|
1334
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
824
1335
|
formState: schema_d_exports.FormState;
|
|
825
|
-
initialized:
|
|
826
|
-
changeRecords: import("@
|
|
1336
|
+
initialized: boolean;
|
|
1337
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
827
1338
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
828
1339
|
resetForm: () => void;
|
|
829
1340
|
submitForm: (native?: boolean) => Promise<any>;
|
|
830
1341
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
831
|
-
}
|
|
1342
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1343
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1344
|
+
}) | undefined, ({
|
|
1345
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
1346
|
+
$data: {};
|
|
1347
|
+
$props: {
|
|
1348
|
+
readonly config: schema_d_exports.FormConfig;
|
|
1349
|
+
readonly initValues: Record<string, any>;
|
|
1350
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
1351
|
+
readonly isCompare?: boolean | undefined;
|
|
1352
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
1353
|
+
readonly labelWidth?: string | undefined;
|
|
1354
|
+
readonly disabled?: boolean | undefined;
|
|
1355
|
+
readonly height?: string | undefined;
|
|
1356
|
+
readonly stepActive?: string | number | undefined;
|
|
1357
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
1358
|
+
readonly inline?: boolean | undefined;
|
|
1359
|
+
readonly labelPosition?: string | undefined;
|
|
1360
|
+
readonly keyProp?: string | undefined;
|
|
1361
|
+
readonly popperClass?: string | undefined;
|
|
1362
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
1363
|
+
readonly useFieldTextInError?: boolean | undefined;
|
|
1364
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1365
|
+
readonly showDiff?: ((_data: {
|
|
1366
|
+
curValue: any;
|
|
1367
|
+
lastValue: any;
|
|
1368
|
+
config: any;
|
|
1369
|
+
}) => boolean) | undefined;
|
|
1370
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
1371
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
1372
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
1373
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1374
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1375
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1376
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
1377
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
1378
|
+
$refs: {
|
|
1379
|
+
[x: string]: unknown;
|
|
1380
|
+
};
|
|
1381
|
+
$slots: Readonly<{
|
|
1382
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
1383
|
+
}>;
|
|
1384
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1385
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1386
|
+
$host: Element | null;
|
|
1387
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
1388
|
+
$el: any;
|
|
1389
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
1390
|
+
config: schema_d_exports.FormConfig;
|
|
1391
|
+
initValues: Record<string, any>;
|
|
1392
|
+
lastValues?: Record<string, any>;
|
|
1393
|
+
isCompare?: boolean;
|
|
1394
|
+
parentValues?: Record<string, any>;
|
|
1395
|
+
labelWidth?: string;
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
height?: string;
|
|
1398
|
+
stepActive?: string | number;
|
|
1399
|
+
size?: "small" | "default" | "large";
|
|
1400
|
+
inline?: boolean;
|
|
1401
|
+
labelPosition?: string;
|
|
1402
|
+
keyProp?: string;
|
|
1403
|
+
popperClass?: string;
|
|
1404
|
+
preventSubmitDefault?: boolean;
|
|
1405
|
+
useFieldTextInError?: boolean;
|
|
1406
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1407
|
+
showDiff?: (_data: {
|
|
1408
|
+
curValue: any;
|
|
1409
|
+
lastValue: any;
|
|
1410
|
+
config: any;
|
|
1411
|
+
}) => boolean;
|
|
1412
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
1413
|
+
}> & Readonly<{
|
|
1414
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
1415
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1416
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1417
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1418
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1419
|
+
}>, {
|
|
1420
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1421
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1422
|
+
formState: schema_d_exports.FormState;
|
|
1423
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
1424
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
1425
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
1426
|
+
resetForm: () => void;
|
|
1427
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
1428
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
1429
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
1430
|
+
error: (...args: any[]) => void;
|
|
1431
|
+
change: (...args: any[]) => void;
|
|
1432
|
+
"field-input": (...args: any[]) => void;
|
|
1433
|
+
"field-change": (...args: any[]) => void;
|
|
1434
|
+
"update:stepActive": (...args: any[]) => void;
|
|
1435
|
+
}, string, {
|
|
1436
|
+
disabled: boolean;
|
|
1437
|
+
labelWidth: string;
|
|
1438
|
+
inline: boolean;
|
|
1439
|
+
labelPosition: string;
|
|
1440
|
+
config: schema_d_exports.FormConfig;
|
|
1441
|
+
height: string;
|
|
1442
|
+
initValues: Record<string, any>;
|
|
1443
|
+
lastValues: Record<string, any>;
|
|
1444
|
+
isCompare: boolean;
|
|
1445
|
+
keyProp: string;
|
|
1446
|
+
parentValues: Record<string, any>;
|
|
1447
|
+
stepActive: string | number;
|
|
1448
|
+
useFieldTextInError: boolean;
|
|
1449
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
1450
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1451
|
+
created?: (() => void) | (() => void)[];
|
|
1452
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1453
|
+
mounted?: (() => void) | (() => void)[];
|
|
1454
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1455
|
+
updated?: (() => void) | (() => void)[];
|
|
1456
|
+
activated?: (() => void) | (() => void)[];
|
|
1457
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1458
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1459
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1460
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1461
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1462
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1463
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1464
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1465
|
+
};
|
|
1466
|
+
$forceUpdate: () => void;
|
|
1467
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
1468
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
1469
|
+
} & Readonly<{
|
|
832
1470
|
disabled: boolean;
|
|
833
1471
|
labelWidth: string;
|
|
834
1472
|
inline: boolean;
|
|
@@ -841,7 +1479,8 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
841
1479
|
keyProp: string;
|
|
842
1480
|
parentValues: Record<string, any>;
|
|
843
1481
|
stepActive: string | number;
|
|
844
|
-
|
|
1482
|
+
useFieldTextInError: boolean;
|
|
1483
|
+
}> & Omit<Readonly<{
|
|
845
1484
|
config: schema_d_exports.FormConfig;
|
|
846
1485
|
initValues: Record<string, any>;
|
|
847
1486
|
lastValues?: Record<string, any>;
|
|
@@ -857,96 +1496,33 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
857
1496
|
keyProp?: string;
|
|
858
1497
|
popperClass?: string;
|
|
859
1498
|
preventSubmitDefault?: boolean;
|
|
1499
|
+
useFieldTextInError?: boolean;
|
|
860
1500
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1501
|
+
showDiff?: (_data: {
|
|
1502
|
+
curValue: any;
|
|
1503
|
+
lastValue: any;
|
|
1504
|
+
config: any;
|
|
1505
|
+
}) => boolean;
|
|
1506
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
861
1507
|
}> & Readonly<{
|
|
862
1508
|
onError?: ((...args: any[]) => any) | undefined;
|
|
863
1509
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
864
1510
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
865
1511
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
866
1512
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
867
|
-
}>, {
|
|
868
|
-
values:
|
|
869
|
-
lastValuesProcessed:
|
|
1513
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
|
|
1514
|
+
values: schema_d_exports.FormValue;
|
|
1515
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
870
1516
|
formState: schema_d_exports.FormState;
|
|
871
|
-
initialized:
|
|
872
|
-
changeRecords: import("@
|
|
1517
|
+
initialized: boolean;
|
|
1518
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
873
1519
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
874
1520
|
resetForm: () => void;
|
|
875
1521
|
submitForm: (native?: boolean) => Promise<any>;
|
|
876
1522
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
"field-input": (...args: any[]) => void;
|
|
881
|
-
"field-change": (...args: any[]) => void;
|
|
882
|
-
"update:stepActive": (...args: any[]) => void;
|
|
883
|
-
}, import("@vue/runtime-core").PublicProps, {
|
|
884
|
-
disabled: boolean;
|
|
885
|
-
labelWidth: string;
|
|
886
|
-
inline: boolean;
|
|
887
|
-
labelPosition: string;
|
|
888
|
-
config: schema_d_exports.FormConfig;
|
|
889
|
-
height: string;
|
|
890
|
-
initValues: Record<string, any>;
|
|
891
|
-
lastValues: Record<string, any>;
|
|
892
|
-
isCompare: boolean;
|
|
893
|
-
keyProp: string;
|
|
894
|
-
parentValues: Record<string, any>;
|
|
895
|
-
stepActive: string | number;
|
|
896
|
-
}, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
|
|
897
|
-
P: {};
|
|
898
|
-
B: {};
|
|
899
|
-
D: {};
|
|
900
|
-
C: {};
|
|
901
|
-
M: {};
|
|
902
|
-
Defaults: {};
|
|
903
|
-
}, Readonly<{
|
|
904
|
-
config: schema_d_exports.FormConfig;
|
|
905
|
-
initValues: Record<string, any>;
|
|
906
|
-
lastValues?: Record<string, any>;
|
|
907
|
-
isCompare?: boolean;
|
|
908
|
-
parentValues?: Record<string, any>;
|
|
909
|
-
labelWidth?: string;
|
|
910
|
-
disabled?: boolean;
|
|
911
|
-
height?: string;
|
|
912
|
-
stepActive?: string | number;
|
|
913
|
-
size?: "small" | "default" | "large";
|
|
914
|
-
inline?: boolean;
|
|
915
|
-
labelPosition?: string;
|
|
916
|
-
keyProp?: string;
|
|
917
|
-
popperClass?: string;
|
|
918
|
-
preventSubmitDefault?: boolean;
|
|
919
|
-
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
920
|
-
}> & Readonly<{
|
|
921
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
922
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
923
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
924
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
925
|
-
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
926
|
-
}>, {
|
|
927
|
-
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
928
|
-
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
929
|
-
formState: schema_d_exports.FormState;
|
|
930
|
-
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
931
|
-
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
932
|
-
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
933
|
-
resetForm: () => void;
|
|
934
|
-
submitForm: (native?: boolean) => Promise<any>;
|
|
935
|
-
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
936
|
-
}, {}, {}, {}, {
|
|
937
|
-
disabled: boolean;
|
|
938
|
-
labelWidth: string;
|
|
939
|
-
inline: boolean;
|
|
940
|
-
labelPosition: string;
|
|
941
|
-
config: schema_d_exports.FormConfig;
|
|
942
|
-
height: string;
|
|
943
|
-
initValues: Record<string, any>;
|
|
944
|
-
lastValues: Record<string, any>;
|
|
945
|
-
isCompare: boolean;
|
|
946
|
-
keyProp: string;
|
|
947
|
-
parentValues: Record<string, any>;
|
|
948
|
-
stepActive: string | number;
|
|
949
|
-
}> | undefined>;
|
|
1523
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1524
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1525
|
+
}) | undefined>;
|
|
950
1526
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
951
1527
|
show: () => void;
|
|
952
1528
|
hide: () => void;
|
|
@@ -961,17 +1537,19 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
961
1537
|
}>, {
|
|
962
1538
|
values: Object;
|
|
963
1539
|
config: schema_d_exports.FormConfig;
|
|
1540
|
+
useFieldTextInError: boolean;
|
|
964
1541
|
confirmText: string;
|
|
965
1542
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
966
|
-
declare const __VLS_export$27: __VLS_WithSlots$
|
|
1543
|
+
declare const __VLS_export$27: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
967
1544
|
declare const _default$13: typeof __VLS_export$27;
|
|
968
|
-
type __VLS_WithSlots$
|
|
1545
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
969
1546
|
new (): {
|
|
970
1547
|
$slots: S;
|
|
971
1548
|
};
|
|
972
1549
|
};
|
|
973
1550
|
//#endregion
|
|
974
1551
|
//#region temp/packages/form/src/containers/Container.vue.d.ts
|
|
1552
|
+
type __VLS_Slots$1 = FormSlots;
|
|
975
1553
|
type __VLS_Props$26 = {
|
|
976
1554
|
/** 表单值 */model: schema_d_exports.FormValue; /** 需对比的值(开启对比模式时传入) */
|
|
977
1555
|
lastValues?: schema_d_exports.FormValue;
|
|
@@ -984,7 +1562,7 @@ type __VLS_Props$26 = {
|
|
|
984
1562
|
size?: string; /** 是否开启对比模式 */
|
|
985
1563
|
isCompare?: boolean;
|
|
986
1564
|
};
|
|
987
|
-
declare const
|
|
1565
|
+
declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
988
1566
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
989
1567
|
addDiffCount: () => any;
|
|
990
1568
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
|
|
@@ -997,7 +1575,13 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
997
1575
|
isCompare: boolean;
|
|
998
1576
|
expandMore: boolean;
|
|
999
1577
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
1578
|
+
declare const __VLS_export$26: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
1000
1579
|
declare const _default$4: typeof __VLS_export$26;
|
|
1580
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
1581
|
+
new (): {
|
|
1582
|
+
$slots: S;
|
|
1583
|
+
};
|
|
1584
|
+
};
|
|
1001
1585
|
//#endregion
|
|
1002
1586
|
//#region temp/packages/form/src/containers/Fieldset.vue.d.ts
|
|
1003
1587
|
type __VLS_Props$25 = {
|
|
@@ -1383,8 +1967,8 @@ declare const _default$31: {
|
|
|
1383
1967
|
install(app: App, opt?: FormInstallOptions): void;
|
|
1384
1968
|
};
|
|
1385
1969
|
declare namespace index_d_exports {
|
|
1386
|
-
export { ChangeRecord, ContainerChangeEventData, FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1970
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1387
1971
|
}
|
|
1388
1972
|
declare const createForm: <T extends [] = []>(config: schema_d_exports.FormConfig | T) => schema_d_exports.FormConfig | T;
|
|
1389
1973
|
//#endregion
|
|
1390
|
-
export { ChangeRecord, ContainerChangeEventData, type FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1974
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, type FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|