<Table highlight-row ref="selection" :columns="columnsList" :border="border" :height="height" :data='data' :stripe='stripe' @on-row-dblclick='dblclick' @on-current-change='clickRow' @on-select='check' @on-select-all='checkAll' @on-selection-change='checkChange'></Table>
export default { data() { return {}; }, props: { columnsList: Array, data: Array, height: String, border: Boolean, stripe: Boolean, refs: String }, created(){ this.init(); }, }
> 父组件的 columnsList值是通过ajax异步获取数据,然后把值传给子组件,这样在子组件就会出现vue报错警告:
> **You may have an infinite update loop in watcher with expression "columns"**
不知道是不是iview组件有问题,还是异步获取数据在vue生命周期中有问题,求指教
参考文章:https://blog.csdn.net/sanstu/article/details/78722775,但是两个呈现的问题是不一样的