File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ const registerIcons = async(app) => {
31
31
continue
32
32
}
33
33
const key = `${ pluginName } ${ iconName } `
34
- const iconComponent = createIconComponent ( iconName )
34
+ // 开发模式下列出所有 svg 图标,方便开发者直接查找复制使用
35
+ import . meta. env . MODE == 'development' && console . log ( `svg-icon-component: <${ key } />` )
36
+ const iconComponent = createIconComponent ( key )
35
37
config . logs . push ( {
36
38
'key' : key ,
37
- 'label' : iconName ,
39
+ 'label' : key ,
38
40
} )
39
41
app . component ( key , iconComponent )
40
42
}
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ export default ({
94
94
} ) ,
95
95
vuePlugin ( ) ,
96
96
svgBuilder ( './src/assets/icons/' ) ,
97
+ svgBuilder ( './src/plugin/' ) ,
97
98
[ Banner ( `\n Build based on gin-vue-admin \n Time : ${ timestamp } ` ) ] ,
98
99
VueFilePathPlugin ( "./src/pathInfo.json" )
99
100
] ,
You can’t perform that action at this time.
0 commit comments