refactor: remove global import

This commit is contained in:
vben
2021-01-18 23:37:36 +08:00
parent c2f6542b48
commit 6392b7f048
38 changed files with 256 additions and 162 deletions

View File

@@ -5,20 +5,9 @@ export function configStyleImportConfig() {
libs: [
{
libraryName: 'ant-design-vue',
esModule: true,
resolveStyle: (name) => {
// ! col row popconfirm These three components have no corresponding css files after packaging. Need special treatment
if (['col', 'row'].includes(name)) {
return 'ant-design-vue/lib/grid/style/index.css';
}
if (['popconfirm'].includes(name)) {
return [
'ant-design-vue/lib/popover/style/index.css',
'ant-design-vue/lib/button/style/index.css',
];
}
return `ant-design-vue/lib/${name}/style/index.css`;
return `ant-design-vue/es/${name}/style/css`;
},
},
],