use "model" on the props
AllenZho opened this issue · 2 comments
AllenZho commented
when i user
expect h(custom, { props: {model: this.object}})
actually h(custom, { model: this.object})
AllenZho commented
use <custom model={this.object} />
ding-js commented
Why model was set as rootAttributes here?
https://github.com/vuejs/jsx/blob/5368c63ec768c070cfc259a506d9de43cb930bdb/packages/babel-plugin-transform-vue-jsx/src/index.js#L8
It seems that model is not the field of data object. vue doc