wzx ae56529cce v1.0.1 11 mesi fa
..
components ae56529cce v1.0.1 11 mesi fa
node_modules ae56529cce v1.0.1 11 mesi fa
pages ae56529cce v1.0.1 11 mesi fa
static ae56529cce v1.0.1 11 mesi fa
store ae56529cce v1.0.1 11 mesi fa
uni_modules ae56529cce v1.0.1 11 mesi fa
unpackage ae56529cce v1.0.1 11 mesi fa
utils ae56529cce v1.0.1 11 mesi fa
App.vue ae56529cce v1.0.1 11 mesi fa
favicon.ico ae56529cce v1.0.1 11 mesi fa
index.html ae56529cce v1.0.1 11 mesi fa
main.js ae56529cce v1.0.1 11 mesi fa
manifest.json ae56529cce v1.0.1 11 mesi fa
package-lock.json ae56529cce v1.0.1 11 mesi fa
package.json ae56529cce v1.0.1 11 mesi fa
pages.json ae56529cce v1.0.1 11 mesi fa
readme.md ae56529cce v1.0.1 11 mesi fa
uni.promisify.adaptor.js ae56529cce v1.0.1 11 mesi fa
uni.scss ae56529cce v1.0.1 11 mesi fa

readme.md

第三方插件

SVGInject 用于将 SVG 文件内联注入到 DOM 中,从而可以修改SVG图片的颜色。 注,需要将SVG文件内的 fill="XXX" 修改为 fill="currentColor"

安装插件:

npm install @iconfu/svg-inject

使用说明:

import SVGInject from '@iconfu/svg-inject';

<img class="ico" src="image1.svg" onload="SVGInject(this)" />

.ico {
	color: red;
}