diff --git a/docs/使用图标.md b/docs/使用图标.md new file mode 100644 index 0000000..8e0bf91 --- /dev/null +++ b/docs/使用图标.md @@ -0,0 +1,40 @@ +## 使用 iconify 图标 + +首先去图标库地址:[icones](https://icones.js.org/) 找合适的图标 + +### 1. 结合 unocss 使用 + +```html + + +``` + +### 2. 结合插件 unplugin-icons 自定义标签使用 + +` + +``` + +这种方式还支持自定义 svg 图标,本项目自定义 svg 图标固定放在 src/assets/svg 下 + +` +``` + +具体配置参看 build/plugin/unplugin.js + +### 3. 结合 Naive UI 的 NIcon 组件封装使用 + +```html + + + + +``` + +封装组件参看 src/components/icon \ No newline at end of file