是没有还是我没找到表单组件验证规范 #781
Replies: 1 comment
-
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
各个组件库验证实现都不太一样 vue官方好像也没有定义表单组件标准 按道理说 表单组件至少需要 输入值 读取值 验证三个方法 验证方法要能够在表单提交前阻止表单提交 表单组件内部的验证逻辑应该内聚在组件内部而不是在表单层面一个个去写rule 表单层面的rule应该归属于 表单级别的验证 各个组件库各自为政 再加上 form 应该统一提供给后代组件 一个钩子在提交前可调用 现在貌似没有统一规范 各个组件库都在高自己的一套
Beta Was this translation helpful? Give feedback.
All reactions