VUE中实现iview的图标效果时遇到的一个问题

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

found in

---> <Affix>
       <Goodsinfo> at src\components\goods\goodsinfo.vue
         <App> at src\App.vue
           <Root>

上方是错误

 解决办法:iview是2.13.0版本

npm install iview@1.0.1 --save

 cnpm install iview@2.13.0 --save 

iView官方文档:http://v1.iviewui.com/components/affix

第一次安装:
包:iview
应用场景:使用图钉效果的时候
安装方式:

cnpm install iview --save/-S

第二次安装:
包:babel-plugin-import
应用场景:按需导入我们的iview组件
安装方式:

cnpm install babel-plugin-import --save/-S

 

实现按需导入

 

 

 

第一次使用VUE做项目,写了非常多的知识点,使用框架真的特别爽!!!

VUE中实现iview的图标效果

遇到的一个错误

https://www.iviewui.com/docs/guide/start

 下面这幅图可以说是写得非常清楚了

 

 

转载于:https://www.cnblogs.com/DZzzz/p/8946834.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值