From 2db4cfbd33c91e9bbe6e8b0ef050355d4f387aa0 Mon Sep 17 00:00:00 2001 From: likui628 <90845831+likui628@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:12:57 +0800 Subject: [PATCH] chore: remove slot from ComponentFormSchema type --- src/components/Form/src/types/form.ts | 2 -- src/views/demo/page/form/step/data.tsx | 1 - src/views/demo/system/role/role.data.ts | 1 - 3 files changed, 4 deletions(-) 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', }, ];