mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Icon): add woff2 icon tip
This commit is contained in:
parent
46fdc15ce5
commit
58fa4fee1c
@ -59,6 +59,8 @@ Icon 组件默认引用有赞 CDN 提供的字体文件,并通过网络下载
|
|||||||
import 'vant/lib/icon/local.css';
|
import 'vant/lib/icon/local.css';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Tips: 从 2.10.13 版本开始,Vant 会默认使用 woff2 格式的本地字体文件,只有在不支持 woff2 字体的低端浏览器才会加载有赞 CDN 的网络图标。
|
||||||
|
|
||||||
### 自定义图标
|
### 自定义图标
|
||||||
|
|
||||||
如果需要在现有 Icon 的基础上使用更多图标,可以引入第三方 iconfont 对应的字体文件和 CSS 文件,之后就可以在 Icon 组件中直接使用。
|
如果需要在现有 Icon 的基础上使用更多图标,可以引入第三方 iconfont 对应的字体文件和 CSS 文件,之后就可以在 Icon 组件中直接使用。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user