From ab664035075744a3767d7e3790c3d4a16e896aac Mon Sep 17 00:00:00 2001 From: sealday Date: Thu, 14 Mar 2024 22:04:10 +0800 Subject: [PATCH] fix: ant design icon error in mobile --- .../client/schema-initializer/NoticeBlockInitializer.tsx | 4 ++-- .../client/schema-initializer/SwiperBlockInitializer.tsx | 6 +++--- .../client/schema-initializer/TabSearchBlockInitializer.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx index f4b96f7cf..fa67805d4 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx @@ -1,6 +1,6 @@ -import Icon from '@ant-design/icons'; import { ISchema } from '@formily/react'; import { + Icon, DataBlockInitializer, useCollectionManager, useSchemaInitializer, @@ -19,7 +19,7 @@ const NoticeSvg = () => ( ); -const NoticeIcon = (props: Partial) => ; +const NoticeIcon = (props: any) => ; export const NoticeBlock = () => { return ; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx index 611b105fa..34c941f44 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx @@ -1,8 +1,8 @@ -import Icon from '@ant-design/icons'; import { ISchema } from '@formily/react'; import { DataBlockInitializer, css, + Icon, useCollectionManager, useSchemaInitializer, useSchemaInitializerItem, @@ -17,7 +17,7 @@ const SwiperSvg = () => ( ); -const SwiperIcon = (props: Partial) => ; +const SwiperIcon = (props: any) => ; export const SwiperBlock = () => { const colors = ['#ace0ff', '#bcffbd', '#e4fabd', '#ffcfac']; @@ -72,7 +72,7 @@ export const SwiperBlockInitializer = () => { ); }; -export const createGridCardBlockSchema = (options) => { +const createGridCardBlockSchema = (options) => { const { formItemInitializers = 'ReadPrettyFormItemInitializers', actionInitializers = 'GridCardActionInitializers', diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx index 6f2332e74..4e5e87b0c 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx @@ -1,7 +1,7 @@ -import Icon from '@ant-design/icons'; import { ISchema } from '@formily/react'; import { DataBlockInitializer, + Icon, css, useCollectionManager, useSchemaInitializer, @@ -19,7 +19,7 @@ const TabSearchSvg = () => ( ); -const TabSearchIcon = (props: Partial) => ; +const TabSearchIcon = (props: any) => ; export const TabSearchBlock = () => { const [visible, setVisible] = useState(false);