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> {
|
export interface ComponentFormSchema<T extends ComponentType = any> extends BaseFormSchema<T> {
|
||||||
// render component
|
// render component
|
||||||
component: T;
|
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 {
|
export interface SlotFormSchema extends BaseFormSchema {
|
||||||
|
@ -21,7 +21,6 @@ export const step1Schemas: FormSchema[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'fac',
|
field: 'fac',
|
||||||
component: 'InputGroup',
|
|
||||||
label: '收款账户',
|
label: '收款账户',
|
||||||
required: true,
|
required: true,
|
||||||
defaultValue: 'test@example.com',
|
defaultValue: 'test@example.com',
|
||||||
|
@ -119,6 +119,5 @@ export const formSchema: FormSchema[] = [
|
|||||||
label: ' ',
|
label: ' ',
|
||||||
field: 'menu',
|
field: 'menu',
|
||||||
slot: 'menu',
|
slot: 'menu',
|
||||||
component: 'ApiTree',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user