mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 23:25:33 +08:00
chore: remove slot from ComponentFormSchema type
This commit is contained in:
@@ -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',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user