Git Product home page Git Product logo

vite-plugin-svgs-icons's People

Contributors

335296558 avatar devxtools avatar twoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gangguo twoer

vite-plugin-svgs-icons's Issues

svg circle修改颜色修改不成功

作者你好,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>

现在有一种场景是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>

缺少typescript 类型声明

无法找到模块“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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.