Skip to content
New issue

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

🧐[问题] 请问如何全局设置allowClear={false}呢 #8745

Open
resetsix opened this issue Sep 26, 2024 · 0 comments
Open

🧐[问题] 请问如何全局设置allowClear={false}呢 #8745

resetsix opened this issue Sep 26, 2024 · 0 comments

Comments

@resetsix
Copy link

🧐 问题描述

我正在使用 ProForm 系列组件,想要全局设置所有 ProForm 输入类组件的 allowClear 属性为 false。目前,我需要为每个组件单独设置这个属性,这样做很繁琐。

💻 示例代码

<ProFormText
name="dataBase"
label="数据库"
allowClear={false}
// 其他属性...
/>

我的疑问

是否有一种方法可以全局设置所有 ProForm 组件的 allowClear 属性为 false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant