Replies: 1 comment
-
1.0版本是这么和react这么设计的, 基于element-ui是用户量比较大,大家都习惯了v-model的写法, 所以2.0开始也切换成v-model的写法了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
主要说的是这里的设计,在 ant-design 中 Form.Item 设置name后,表单控件无需设置 value 值,也无需设置 onChange ,数据同步被 form 接管。
而ant-design-vue版本在设计上基本其他vue组件库基本一致,在 Form 和 FormItem 层面不会接管表单数据,只会用来做数据校验,具体数据同步还是与表单控件绑定。
代码使用层面区别
Beta Was this translation helpful? Give feedback.
All reactions