Replies: 3 comments 4 replies
-
另外尝试发现,triggerType只允许传入一种类型,能否允许传入一个数组,如["onChange", "onBlur"] |
Beta Was this translation helpful? Give feedback.
2 replies
-
registerTypeDefaultComponents 要求必须enablePolyfill('1.0') |
Beta Was this translation helpful? Give feedback.
1 reply
-
本来就是默认的onChange触发校验的 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://codesandbox.io/s/delicate-frog-x6jcz?file=/src/App.vue
这个sandbox里总共发现了两个问题
1.Schema.registerTypeDefaultComponents无效,于是我使用registerPatches实现类似效果
2.registerPatches似乎是在处理$ref之前处理的,而且没有处理到definitions
三个建议
1.是否可以添加Schema.registerTypeDefaultDecorator方法?可以定义默认的decorator
2.registerPathes可以处理到definitions下的定义
3.看文档描述triggerType需要单独定义,可否针对组件也提供一个默认的triggerType的配置
比如input组件可以单独定义默认在onBlur时校验,其它组件不提供配置默认还是在onChange时校验
Beta Was this translation helpful? Give feedback.
All reactions