babel-plugin-jsx-v-model icon indicating copy to clipboard operation
babel-plugin-jsx-v-model copied to clipboard

maybe do not use $set to set property

Open Kingwl opened this issue 6 years ago • 1 comments

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

Kingwl avatar Jul 04 '18 07:07 Kingwl

@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>

givingwu avatar Dec 13 '18 03:12 givingwu