diff --git a/src/components/Form/src/types/form.ts b/src/components/Form/src/types/form.ts index 7beabe2c3..56f75e26f 100644 --- a/src/components/Form/src/types/form.ts +++ b/src/components/Form/src/types/form.ts @@ -227,8 +227,6 @@ interface BaseFormSchema { export interface ComponentFormSchema extends BaseFormSchema { // 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 { diff --git a/src/views/demo/page/form/step/data.tsx b/src/views/demo/page/form/step/data.tsx index 618b97d0a..d7fe07d62 100644 --- a/src/views/demo/page/form/step/data.tsx +++ b/src/views/demo/page/form/step/data.tsx @@ -21,7 +21,6 @@ export const step1Schemas: FormSchema[] = [ }, { field: 'fac', - component: 'InputGroup', label: '收款账户', required: true, defaultValue: 'test@example.com', diff --git a/src/views/demo/system/role/role.data.ts b/src/views/demo/system/role/role.data.ts index b28a22a3d..1db47679f 100644 --- a/src/views/demo/system/role/role.data.ts +++ b/src/views/demo/system/role/role.data.ts @@ -119,6 +119,5 @@ export const formSchema: FormSchema[] = [ label: ' ', field: 'menu', slot: 'menu', - component: 'ApiTree', }, ];