/** 监听table数据对象 */
watch: {
tableData(val) {
this.doLayout();
}
}
methods: {
/** 重新渲染table组件 */
doLayout(){
let that = this
this.$nextTick(() => {
that.$refs.table.doLayout()
})
}
}
/** 监听table数据对象 */
watch: {
tableData(val) {
this.doLayout();
}
}
methods: {
/** 重新渲染table组件 */
doLayout(){
let that = this
this.$nextTick(() => {
that.$refs.table.doLayout()
})
}
}