335296558 / vite-plugin-svgs-icons Goto Github PK
View Code? Open in Web Editor NEW它是一个svg雪碧图插件🤪,可轻松修改Color、MultiColor、Size 内置vue组件可直接调用, 支持部份svg icon 多色修改,但可能并不是所有都支持哦!
它是一个svg雪碧图插件🤪,可轻松修改Color、MultiColor、Size 内置vue组件可直接调用, 支持部份svg icon 多色修改,但可能并不是所有都支持哦!
您好,请问能不能增加font-wight属性?
准备重新设置目录的,发现还是报错,看了一下源码,压根没用;
作者你好,svg代码如下,只能显示中间的横杠,能看下啥问题不
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="10" cy="10" r="7.5" stroke="#666666"/> <rect x="5" y="9.5" width="10" height="1" fill="#666666"/> </svg>
由于插件有默认的size,导致以下svg的rect被错误替换了,能否加入一个参数跳过设置宽高呢,或者size不要给默认值?
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"> <rect x="0.5" y="0.5" class="st0" width="15" height="15"/> <path class="st1" d="M8.7,3.6l1,2C9.7,5.7,9.9,5.8,10,5.9l2.2,0.3c0.4,0.1,0.5,0.5,0.2,0.7l-1.6,1.6c-0.1,0.1-0.1,0.2-0.1,0.4 l0.4,2.2c0.1,0.4-0.3,0.6-0.6,0.5l-2-1.1c-0.1-0.1-0.3-0.1-0.4,0l-2,1.1c-0.3,0.2-0.7-0.1-0.6-0.5l0.4-2.2c0-0.1,0-0.3-0.1-0.4 L4.1,6.9C3.8,6.7,3.9,6.2,4.3,6.2l2.2-0.3c0.1,0,0.3-0.1,0.3-0.2l1-2C8,3.3,8.5,3.3,8.7,3.6z"/> </svg>
如果svg内部有path写了with 就会导致svg的size属性失效
是否可以加入一个props开关,convertColor=false这样的
无法找到模块“vite-plugin-vue-svg-icons”的声明文件。“E:/workspace/base/base-admin/node_modules/.pnpm/[email protected]/node_modules/vite-plugin-vue-svg-icons/dist/index.js”隐式拥有 "any" 类型。
尝试使用 npm i --save-dev @types/vite-plugin-vue-svg-icons
(如果存在),或者添加一个包含 declare module 'vite-plugin-vue-svg-icons';
的新声明(.d.ts)文件ts(7016)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.