Failed to resolve directive: el vue2报错 (vue v-sl)
来源:互联网 发布:知乎 长青春痘 编辑:程序博客网 时间:2024/06/06 03:56
vue2报错 Failed to resolve directive: el
为什么会报这个错呢,主要还是因为vue升级的时候,v-el在vue2.x以后被淘汰。使用新的标签ref替换v-el,接下来告诉大家怎么使用。
- 之前v-el的写法
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 这是使用ref的写法
*请注意:menuWrapper不能使用menu-wrapper这种写法了
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 对应的这里通过js获取dom元素的时候,写法也发生变化
阅读全文
0 0
- Failed to resolve directive: el vue2报错 (vue v-sl)
- Failed to resolve directive: el vue2报错
- Vue报错笔记(3):[Vue warn]: Failed to resolve directive: mod (found in <ComponentA>)
- Vue 报错 Failed to resolve filter
- 终极报错解决方案:Failed to resolve:annotationProcessor
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- Android Studio报错:Failed to resolve:annotationProcessor解决方案
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- vue2.0—— Vue.directive
- Vue2+Webpack报错:Failed to mount component: template or render function not defined.
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- Lenovo X3650 M5 安装 ESXi-5.5.0u3 报错failed to resolve circular relocation
- Android开发:android studio报错: Failed to resolve: com.android.support.constraint:constraint-layout:1.0.
- failed to resolve :com.facebook.fresco:0.6.0+ 报错解决
- springboot 返回json格式数据时间格式配置
- 【个人笔记】2017-12-13小记-html
- 解决maven工程compile failure的问题
- Winform开发中使用FastReport基本操作创建与设计
- Spark集群搭建
- Failed to resolve directive: el vue2报错 (vue v-sl)
- Oracle systemstate dump介绍
- python3 文件的读取和通用操作
- php接口开发简单实例
- jstat
- jquery文档操作
- 【资料合集】2017云栖大会•苏州峰会回顾合集:PDF下载
- Spring中bean的作用域
- spring boot 添加数据源 整合 mybaties (三)