fix: ant design icon error in mobile
This commit is contained in:
parent
cc09966d63
commit
ab66403507
@ -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 = () => (
|
||||
</svg>
|
||||
);
|
||||
|
||||
const NoticeIcon = (props: Partial<any>) => <Icon component={NoticeSvg} {...props} />;
|
||||
const NoticeIcon = (props: any) => <Icon type="" component={NoticeSvg} {...props} />;
|
||||
|
||||
export const NoticeBlock = () => {
|
||||
return <NoticeBar content="月底冲量佣金上调" color="alert" />;
|
||||
|
@ -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 = () => (
|
||||
</svg>
|
||||
);
|
||||
|
||||
const SwiperIcon = (props: Partial<any>) => <Icon component={SwiperSvg} {...props} />;
|
||||
const SwiperIcon = (props: any) => <Icon type="" component={SwiperSvg} {...props} />;
|
||||
|
||||
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',
|
||||
|
@ -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 = () => (
|
||||
</svg>
|
||||
);
|
||||
|
||||
const TabSearchIcon = (props: Partial<any>) => <Icon component={TabSearchSvg} {...props} />;
|
||||
const TabSearchIcon = (props: any) => <Icon type="" component={TabSearchSvg} {...props} />;
|
||||
|
||||
export const TabSearchBlock = () => {
|
||||
const [visible, setVisible] = useState(false);
|
||||
|
Loading…
Reference in New Issue
Block a user