【文件属性】:
文件名称:ember-inline-svg:Ember CLI插件可内嵌渲染SVG图像
文件大小:189KB
文件格式:ZIP
更新时间:2021-05-02 13:41:57
JavaScript
ember-inline-svg
内联显示SVG图像。
兼容性
Ember.js v3.4或更高版本
Ember CLI v2.13或更高版本
Node.js v8或更高版本
安装
ember install ember-inline-svg
用法
{{ inline-svg " path/to/file " }}
这将显示在/public/path/to/file.svg找到的SVG(请参阅下面的更改方法)。
您可以为元素指定一个类,如下所示:
{{ inline-svg " my-svg " class = " foo " }}
另外,您可以执行以下操作来添加/更新<title></title> :
{{ inline-svg ' mySVG ' title = " myTitle " }}
{{ inline-svg ' mySVG ' class = " myClass
【文件预览】:
ember-inline-svg-master
----.travis.yml(1KB)
----.ember-cli(280B)
----svg-optimizer.js(1KB)
----ember-cli-build.js(574B)
----vendor()
--------.gitkeep(0B)
----addon()
--------utils()
--------.gitkeep(0B)
--------helpers()
----config()
--------ember-try.js(2KB)
--------environment.js(90B)
----index.js(1KB)
----.watchmanconfig(37B)
----package.json(2KB)
----tests()
--------acceptance()
--------test-helper.js(228B)
--------index.html(1KB)
--------unit()
--------dummy()
--------helpers()
----app()
--------.gitkeep(0B)
--------helpers()
----testem.js(556B)
----CONTRIBUTING.md(639B)
----TODO.md(152B)
----.npmignore(411B)
----.eslintrc.js(1KB)
----.template-lintrc.js(62B)
----LICENSE.md(1KB)
----.gitignore(369B)
----CHANGELOG.md(2KB)
----README.md(5KB)
----yarn.lock(430KB)
----.eslintignore(240B)
----.editorconfig(368B)