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
|
||||
|
||||
// https://github.com/vueComponent/ant-design-vue/issues/2745
|
||||
let validIcons = allIcons.default || allIcons;
|
||||
|
||||
VueIcon.add(...Object.keys(validIcons).map(key => validIcons[key]));
|
||||
VueIcon.add(
|
||||
...Object.keys(allIcons)
|
||||
.filter(key => key !== 'default')
|
||||
.map(key => allIcons[key]),
|
||||
);
|
||||
setTwoToneColor('#1890ff');
|
||||
const defaultTheme = 'outlined';
|
||||
let dangerousTheme;
|
||||
|
|
Loading…
Reference in New Issue