mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
refactor: remove global import
This commit is contained in:
@@ -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`;
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user