We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有时需要封装一些复杂的表单控件,比如我这个控件里面有一个搜索框,会搜索部分数据。如果该FormItem校验错误,会给该搜索框Input注入error的状态,这显然是不合理的,需要关闭这个搜索框的error状态
The text was updated successfully, but these errors were encountered:
<template> <div><slot /></div> </template> <script lang="ts" setup> import { provide, inject } from 'vue'; import { formItemInjectionKey } from '@arco-design/web-vue/es/form/context'; provide(formItemInjectionKey, { ...inject(formItemInjectionKey), error: false }); </script>
a-input
Sorry, something went wrong.
No branches or pull requests
基本信息
复现步骤
有时需要封装一些复杂的表单控件,比如我这个控件里面有一个搜索框,会搜索部分数据。如果该FormItem校验错误,会给该搜索框Input注入error的状态,这显然是不合理的,需要关闭这个搜索框的error状态
The text was updated successfully, but these errors were encountered: