SimpleVue icon indicating copy to clipboard operation
SimpleVue copied to clipboard

对于 data 的多层嵌套 vue 是怎么处理的呢?

Open Liubasara opened this issue 5 years ago • 0 comments

比如说当 data 是下面这种格式的时候

function data () {
  return {
    msg: {
      content: 123
    }
  }
}

这个时候 Watcher.js 中的 update 方法应该就不能通过 const newVal = this.vm.data[this.exp.trim()]; 这种方法来获取数据了吧?

Liubasara avatar Jan 26 '20 10:01 Liubasara