fix: ant design icon error in mobile

This commit is contained in:
sealday 2024-03-14 22:04:10 +08:00 committed by sealday
parent cc09966d63
commit ab66403507
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import Icon from '@ant-design/icons';
import { ISchema } from '@formily/react'; import { ISchema } from '@formily/react';
import { import {
Icon,
DataBlockInitializer, DataBlockInitializer,
useCollectionManager, useCollectionManager,
useSchemaInitializer, useSchemaInitializer,
@ -19,7 +19,7 @@ const NoticeSvg = () => (
</svg> </svg>
); );
const NoticeIcon = (props: Partial<any>) => <Icon component={NoticeSvg} {...props} />; const NoticeIcon = (props: any) => <Icon type="" component={NoticeSvg} {...props} />;
export const NoticeBlock = () => { export const NoticeBlock = () => {
return <NoticeBar content="月底冲量佣金上调" color="alert" />; return <NoticeBar content="月底冲量佣金上调" color="alert" />;

View File

@ -1,8 +1,8 @@
import Icon from '@ant-design/icons';
import { ISchema } from '@formily/react'; import { ISchema } from '@formily/react';
import { import {
DataBlockInitializer, DataBlockInitializer,
css, css,
Icon,
useCollectionManager, useCollectionManager,
useSchemaInitializer, useSchemaInitializer,
useSchemaInitializerItem, useSchemaInitializerItem,
@ -17,7 +17,7 @@ const SwiperSvg = () => (
</svg> </svg>
); );
const SwiperIcon = (props: Partial<any>) => <Icon component={SwiperSvg} {...props} />; const SwiperIcon = (props: any) => <Icon type="" component={SwiperSvg} {...props} />;
export const SwiperBlock = () => { export const SwiperBlock = () => {
const colors = ['#ace0ff', '#bcffbd', '#e4fabd', '#ffcfac']; const colors = ['#ace0ff', '#bcffbd', '#e4fabd', '#ffcfac'];
@ -72,7 +72,7 @@ export const SwiperBlockInitializer = () => {
); );
}; };
export const createGridCardBlockSchema = (options) => { const createGridCardBlockSchema = (options) => {
const { const {
formItemInitializers = 'ReadPrettyFormItemInitializers', formItemInitializers = 'ReadPrettyFormItemInitializers',
actionInitializers = 'GridCardActionInitializers', actionInitializers = 'GridCardActionInitializers',

View File

@ -1,7 +1,7 @@
import Icon from '@ant-design/icons';
import { ISchema } from '@formily/react'; import { ISchema } from '@formily/react';
import { import {
DataBlockInitializer, DataBlockInitializer,
Icon,
css, css,
useCollectionManager, useCollectionManager,
useSchemaInitializer, useSchemaInitializer,
@ -19,7 +19,7 @@ const TabSearchSvg = () => (
</svg> </svg>
); );
const TabSearchIcon = (props: Partial<any>) => <Icon component={TabSearchSvg} {...props} />; const TabSearchIcon = (props: any) => <Icon type="" component={TabSearchSvg} {...props} />;
export const TabSearchBlock = () => { export const TabSearchBlock = () => {
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);