zoukankan      html  css  js  c++  java
  • 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 srccomponentsgoodsgoodsinfo.vue
             <App> at srcApp.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

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

  • 相关阅读:
    编译nginx
    MVPN技术原理
    python中_, __, __foo__区别及使用场景
    https双向认证(python)
    http keepalive test code(python)
    压缩 KVM 的 qcow2 镜像文件
    nohup python程序,print无输出
    Less(51)
    Less(50)
    Less(49)
  • 原文地址:https://www.cnblogs.com/DZzzz/p/8946834.html
Copyright © 2011-2022 走看看