-
因为必须这样写 import { IconFont } from '@nutui/icons-vue-taro';
<IconFont font-class-name="iconfont" class-prefix="icon" name="close" /> |
Beta Was this translation helpful? Give feedback.
Answered by
eiinu
Jun 12, 2023
Replies: 1 comment 5 replies
-
目前是这样的,icon 样式文件是放在 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
意思是文档中的使用方式是没有问题的,但是因为小程序下的图标只能采用 iconfont 方案,因此并没有实现「按需引入图标」的功能。
不管是单独引入某个
<Add>
,还是使用<IconFont>
,最终结果都是全量引入字体图标。文档已修改。