chore: remove slot from ComponentFormSchema type

This commit is contained in:
likui628 2023-12-21 16:12:57 +08:00
parent 6bb79180fc
commit 2db4cfbd33
3 changed files with 0 additions and 4 deletions

View File

@ -227,8 +227,6 @@ interface BaseFormSchema<T extends ComponentType = any> {
export interface ComponentFormSchema<T extends ComponentType = any> extends BaseFormSchema<T> {
// render component
component: T;
// fix: Object literal may only specify known properties, and 'slot' does not exist in type 'ComponentFormSchema'.
slot?: string;
}
export interface SlotFormSchema extends BaseFormSchema {

View File

@ -21,7 +21,6 @@ export const step1Schemas: FormSchema[] = [
},
{
field: 'fac',
component: 'InputGroup',
label: '收款账户',
required: true,
defaultValue: 'test@example.com',

View File

@ -119,6 +119,5 @@ export const formSchema: FormSchema[] = [
label: ' ',
field: 'menu',
slot: 'menu',
component: 'ApiTree',
},
];