jsx-vue2 icon indicating copy to clipboard operation
jsx-vue2 copied to clipboard

use "model" on the props

Open AllenZho opened this issue 5 years ago • 2 comments

when i user expect h(custom, { props: {model: this.object}}) actually h(custom, { model: this.object})

AllenZho avatar Sep 17 '20 08:09 AllenZho

use <custom model={this.object} />

AllenZho avatar Sep 18 '20 00:09 AllenZho

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

ding-js avatar Dec 16 '21 08:12 ding-js