From f47ec3ec25a72d656435dcfa7f6abdee051a4b8d Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 5 Mar 2022 15:04:05 +0800 Subject: [PATCH] fix: cleanup --- .../Initializers/TableRecordActionInitializers.tsx | 13 +------------ .../src/schema-initializer/SchemaInitializer.tsx | 4 +--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/client/src/schema-initializer/Initializers/TableRecordActionInitializers.tsx b/packages/client/src/schema-initializer/Initializers/TableRecordActionInitializers.tsx index dc1357f61..163a8203c 100644 --- a/packages/client/src/schema-initializer/Initializers/TableRecordActionInitializers.tsx +++ b/packages/client/src/schema-initializer/Initializers/TableRecordActionInitializers.tsx @@ -1,5 +1,4 @@ import { MenuOutlined } from '@ant-design/icons'; -import { css } from '@emotion/css'; import { useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; @@ -14,16 +13,6 @@ export const TableRecordActionInitializers = (props: any) => { const { t } = useTranslation(); return ( { const spaceSchema = fieldSchema.reduceProperties((buf, schema) => { @@ -181,7 +170,7 @@ export const TableRecordActionInitializers = (props: any) => { ], }, ]} - component={MenuOutlined} + component={} /> ); }; diff --git a/packages/client/src/schema-initializer/SchemaInitializer.tsx b/packages/client/src/schema-initializer/SchemaInitializer.tsx index 177f16aa3..dba08dcd6 100644 --- a/packages/client/src/schema-initializer/SchemaInitializer.tsx +++ b/packages/client/src/schema-initializer/SchemaInitializer.tsx @@ -124,9 +124,7 @@ SchemaInitializer.Button = observer((props: SchemaInitializerButtonProps) => { {...dropdown} overlay={menu} > - {component ? ( - React.createElement(component) - ) : ( + {component ? component : (