mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
chore: remove slot from ComponentFormSchema type
This commit is contained in:
parent
6bb79180fc
commit
2db4cfbd33
@ -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 {
|
||||
|
@ -21,7 +21,6 @@ export const step1Schemas: FormSchema[] = [
|
||||
},
|
||||
{
|
||||
field: 'fac',
|
||||
component: 'InputGroup',
|
||||
label: '收款账户',
|
||||
required: true,
|
||||
defaultValue: 'test@example.com',
|
||||
|
@ -119,6 +119,5 @@ export const formSchema: FormSchema[] = [
|
||||
label: ' ',
|
||||
field: 'menu',
|
||||
slot: 'menu',
|
||||
component: 'ApiTree',
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user