mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-23 05:52:25 +00:00
fix(form-schema): 表单 schema 中 display 与 component 部分字段改为可选
Made-with: Cursor
This commit is contained in:
parent
35aa81514b
commit
e36d8d7cf8
@ -348,7 +348,7 @@ export interface HtmlField extends FormItem {
|
|||||||
export interface DisplayConfig extends FormItem {
|
export interface DisplayConfig extends FormItem {
|
||||||
type: 'display';
|
type: 'display';
|
||||||
initValue?: string | number | boolean;
|
initValue?: string | number | boolean;
|
||||||
displayText: FilterFunction<string> | string;
|
displayText?: FilterFunction<string> | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 文本输入框 */
|
/** 文本输入框 */
|
||||||
@ -820,9 +820,9 @@ export interface StepConfig<T = never> extends FormItem {
|
|||||||
export interface ComponentConfig extends FormItem {
|
export interface ComponentConfig extends FormItem {
|
||||||
type: 'component';
|
type: 'component';
|
||||||
id: string;
|
id: string;
|
||||||
extend: any;
|
extend?: any;
|
||||||
display: any;
|
display?: any;
|
||||||
component: any;
|
component?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FlexLayoutConfig<T = never> extends FormItem, ContainerCommonConfig<T> {
|
export interface FlexLayoutConfig<T = never> extends FormItem, ContainerCommonConfig<T> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user