mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-20 20:53:29 +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 {
|
||||
type: 'display';
|
||||
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 {
|
||||
type: 'component';
|
||||
id: string;
|
||||
extend: any;
|
||||
display: any;
|
||||
component: any;
|
||||
extend?: any;
|
||||
display?: any;
|
||||
component?: any;
|
||||
}
|
||||
|
||||
export interface FlexLayoutConfig<T = never> extends FormItem, ContainerCommonConfig<T> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user