Coder Social home page Coder Social logo

svg无法正常展示 about mp-html HOT 4 CLOSED

Xuzhangzheng avatar Xuzhangzheng commented on June 24, 2024
svg无法正常展示

from mp-html.

Comments (4)

Xuzhangzheng avatar Xuzhangzheng commented on June 24, 2024

[](ur
svg3.txt
svg2.txt
svg1.txt

from mp-html.

Xuzhangzheng avatar Xuzhangzheng commented on June 24, 2024

[](ur svg3.txt svg2.txt svg1.txt

这是3个svg的文本

from mp-html.

Xuzhangzheng avatar Xuzhangzheng commented on June 24, 2024

最新版本mp-html组件无法展示的第一个和第二个svg展示效果:
image
使用jyfparser渲染第一个和第二个svg的效果:
image
image

from mp-html.

Xuzhangzheng avatar Xuzhangzheng commented on June 24, 2024

作者您好,看了您提交的commit以后我对我本地的组件进行了修改,修改后发现依旧无法展示,然后排查了一下发现,可能是我们的svg格式问题导致的无法正常显示,我参照您的commit修改了一下,就正常显示了,如下:
src += ${config.svgDict[item] || item}="${val.replaceAll('"', '')}"

感谢您给出的方向

from mp-html.

Related Issues (20)

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.