Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use "model" on the props #156

Open
AllenZho opened this issue Sep 17, 2020 · 2 comments
Open

use "model" on the props #156

AllenZho opened this issue Sep 17, 2020 · 2 comments

Comments

@AllenZho
Copy link

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

@AllenZho
Copy link
Author

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

@ding-js
Copy link

ding-js commented Dec 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants