mango525
mango525
  • 发布:2019-12-02 14:33
  • 更新:2019-12-02 14:33
  • 阅读:1023

#插件讨论# 【 Icons 图标 - DCloud 】nvue使用uni-ui组件的问题

分类:uni-app

您好,刚刚开始使用uni app开发,在nvue页面中使用uni-ui的组件,app端编译报错,报错如下,求指教:
14:29:53.247 Module parse failed: Unexpected token (1:0)
14:29:53.247 You may need an appropriate loader to handle this file type.
14:29:53.267 > <template>
14:29:53.268 | <text :style="{ color: color, 'font-size': size + 'px' }" class="uni-icons" @click="_onClick">{{icons[type]}}</text>
14:29:53.300 | </template>

引入方式如下:
import {uniIcons} from '@dcloudio/uni-ui';
export default {
components: { uniIcons },
}

2019-12-02 14:33 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复