fix(icon): fix the warning of not export default at webpack5 (#4579)
parent
74133d18af
commit
7b317a2765
|
@ -19,9 +19,11 @@ import Base from '../base';
|
||||||
// Initial setting
|
// Initial setting
|
||||||
|
|
||||||
// https://github.com/vueComponent/ant-design-vue/issues/2745
|
// https://github.com/vueComponent/ant-design-vue/issues/2745
|
||||||
let validIcons = allIcons.default || allIcons;
|
VueIcon.add(
|
||||||
|
...Object.keys(allIcons)
|
||||||
VueIcon.add(...Object.keys(validIcons).map(key => validIcons[key]));
|
.filter(key => key !== 'default')
|
||||||
|
.map(key => allIcons[key]),
|
||||||
|
);
|
||||||
setTwoToneColor('#1890ff');
|
setTwoToneColor('#1890ff');
|
||||||
const defaultTheme = 'outlined';
|
const defaultTheme = 'outlined';
|
||||||
let dangerousTheme;
|
let dangerousTheme;
|
||||||
|
|
Loading…
Reference in New Issue