feat: 更新图标组件和Vite配置以支持自定义类名
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
<div b="1px solid pink">
|
||||
<div>pacman.svg</div>
|
||||
<icon-svg-pacman text-blue w-48 h-48 />
|
||||
<icon-svg:pacman text-blue w-48 h-48 />
|
||||
<some-icon text-cyan w-48 h-48 />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -88,6 +88,9 @@ export function Plugins() {
|
||||
return svg.replace(/^<svg /, '<svg fill="currentColor" ');
|
||||
}),
|
||||
},
|
||||
iconCustomizer(collection, icon, props) {
|
||||
props.class = 'unplugin-icons';
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user