Vue.js
vue 相关知识总结
godev
要技艺超群, 要予人温暖
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[vue warn][Invalid default value for prop xx: Props with type Object/Array]解决
对象和数组接受格式均以函数的格式原创 2023-01-02 15:32:41 · 3585 阅读 · 0 评论 -
Vue+TypeScript项目中不识别this.$refs
意思大致是`validate()`并不是`Vue`的方法,它只是你某个组件的方法。所以你需要把 `this.$refs.ruleForm` 显式标注为那个组件类型原创 2022-08-01 11:37:33 · 1613 阅读 · 0 评论 -
vue ts项目同时引入ant-design和element-ui,ts报错不能编译打包失败
错误信息:Subsequent property declarations must have the same type. Property ‘$confirm’ must be of type ‘(modalOptios: ModalOptions) => ModalConfirm’, but here has type ‘ElMessageBoxShortcutMethod’.Subsequent property declarations must have the same t..原创 2022-03-04 11:50:46 · 4706 阅读 · 3 评论 -
[Vue warn]: Property or method “contractTemplateDetailObj“ is not defined on the instance but......
vue报错: [Vue warn]: Property or method "contractTemplateDetailObj" is not defined on the instance but referenced during render.....1. 现象2. 分析与解决1. 现象2. 分析与解决原因: 在 data 中没有定义一个 contractTemplateDetailObj, 致错解决方法: 在 data 中定义一个 contractTemplateDetailOb原创 2021-12-06 14:27:25 · 455 阅读 · 0 评论 -
Vue 子组件使用 this.$parent 无法调用父组件中的方法
this.$parent 无法调用父组件中的方法1. 遇到的问题2. 分析3. 解决4. 总结1. 遇到的问题在开发 Vue 项目中,遇到了一个这样的问题:其中UI框架使用的是iview UI , 在子组件中利用 this.$parent.getList() 调用父组件中的 getList() 方法, 发 现调用不到该方法, 然后通过 this.$parent.$parent.getList() 就可以调用到2. 分析在子组件中打印 this.$parent,通过控制台的打印,发现打印出来原创 2021-04-22 18:25:41 · 4542 阅读 · 0 评论
分享