A tool for converting SVG icons to wechat miniprogram components. Besides, there're some open source icons that I have converted in the dist directory. Feel free to use them.
这是一个把SVG格式的icon转换成微信小程序组件的工具,另外我已经转换好了一些开源的SVG图标放在了dist目录下,可以直接拷贝到项目中使用。
- Create sub folder with project name in svg-icons.
- Create sub folders with icon's type name like filled, outline and sharp etc.
- Put SVG files into the right folders.
- Execute
python Convert.py
to generate wechat miniprogram component. - Copy the component in the dist folder to your wechat miniprogram project.
- 在svg-icons目录下建一个子目录,可以用开源icon项目的名称命名,比如eva-icon, fontawesome等。
- 然后在项目文件夹下建立filled, outline, sharp等文件夹,用来放不同风格的icon文件。
- 把想要转换的svg文件放到对应的文件夹里。
- 执行
python Convert.py
即可。 - 在dist目录下找到生成好的组件复制到小程序项目即可使用。