@58fe/v5-icon 中文文档教程
V5 Icons
Install
npm i @58fe/v5-icon
Basic Usage
首先,您应该将需要的图标添加到库中。
import { Close } from '@58fe/v5-icon';
//OR
import Close from '@58fe/v5-icon/lib/icons/close';
Vue.component(Close.name, Close);
之后,你可以在你的 Vue 组件中使用 antd 图标,就像这样简单:
<v5-icon-close />
Build project
npm run generate # Generate files to ./src/icons/
npm run build # Generate files to ./lib
V5 Icons
Install
npm i @58fe/v5-icon
Basic Usage
First, you should add the icons that you need into the library.
import { Close } from '@58fe/v5-icon';
//OR
import Close from '@58fe/v5-icon/lib/icons/close';
Vue.component(Close.name, Close);
After that, you can use antd icons in your Vue components as simply as this:
<v5-icon-close />
Build project
npm run generate # Generate files to ./src/icons/
npm run build # Generate files to ./lib