Closed
Description
Version
3.2.26
Reproduction link
Steps to reproduce
- npm i
- npm run serve
- Visit http://localhost:8080/
Edititem2
insrc/components/Case1.vue
, then save the changes.- Uncomment
input(v-model='row["item2"]')
insrc/components/Case1.vue
, then save the changes. - Refresh http://localhost:8080/
Use [email protected]
(has error)
- Delete the
node_modules
folder. - Switch to
5147/use-vue-3.2.13-version
branch. - Reinstall the dependencies and build.
Use [email protected]
(ok)
- Delete the
node_modules
folder. - Switch to
5147/use-vue-3.2.12-version
branch. - Reinstall the dependencies and build.
What is expected?
Compiled Successfully.
What is actually happening?
VueCompilerError: v-model value must be a valid JavaScript member expression.
at /Users/lsnsh/study/other/vue-issue-examples/src/components/Case1.vue:1:189
1 | <div><h3>[Pug template]: </h3><div :title="row['item1']">{{ row['item1'] }}</div><input v-model="row['item1']"><div :title="row["item2"]">{{ row["item2"] }}</div><input v-model="row["item2"]"></div>
| ^^^^^^^^^^^^
//- The Error code in src/components/Case1.vue
input(v-model='row["item2"]')
Because i have some Chinese object property names.
At first I thought that the value of v-model does not support Chinese, but it is not
My project works fine on [email protected]
.
Metadata
Metadata
Assignees
Labels
No labels