Skip to content

关于v-model内不能用中文字符的问题 #3440

@lhtuling

Description

@lhtuling

Version

3.0.7

Reproduction link

https://jsfiddle.net/o8n1qeg6/

Steps to reproduce

比如
<input v-model="data.测试">
报错
Template compilation error: v-model value must be a valid JavaScript member expression.

What is expected?

中文属性名也是可以用的

What is actually happening?

实际不可用


vue2.0支持 感觉这个需要延续下来吧 是不是还没有习惯中文命名的菜鸟来提这个问题!
如果确定以后也不支持的话基本就宣告我们这种中文命名的习惯的人要放弃使用vue3.0了
我这边老的业务代码都是中文命名的 猛的不支持了就体验很不好了

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions