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

maybe do not use $set to set property #14

Open
Kingwl opened this issue Jul 4, 2018 · 1 comment
Open

maybe do not use $set to set property #14

Kingwl opened this issue Jul 4, 2018 · 1 comment

Comments

@Kingwl
Copy link

Kingwl commented Jul 4, 2018

https://github.com/nickmessing/babel-plugin-jsx-v-model/blob/master/index.js#L29

it will broken if the render function is not included in Vue Declaration (common render)
consider to use element access expression

@givingwu
Copy link

givingwu commented Dec 13, 2018

@Kingwl , Did you mean this error? I met it too.

image

@nickmessing Those are my code:

.babelrc:

module.exports = {
  // presets: ["@vue/app"], // i use vue-cli3, it does not need this preset

  // https://github.com/nickmessing/babel-plugin-jsx-v-model
  plugins: ["jsx-v-model"]
};

jsx:

<div class="table-edit-cell__input">
    <input v-model={row[column.prop]} /* {...{ directives }} */ />
</div>

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