Vue+iview报TypeError: this.$parent.updateGutter is not a function

来源:互联网 发布:ubuntu如何退出root 编辑:程序博客网 时间:2024/06/06 17:32
今天对之前写的代码拆分了下component,然后就遇到

TypeError: this.$parent.updateGutter is not a function

仔细调了下,发现<Col span="6" v-for="item in zones" :key="item">这里面循环多少个就出现多少次错误,然后想到parent,就找到问题了,外层少了row。应该是col元素必须在row元素内

阅读全文
0 0
原创粉丝点击