ant-design / ant-design/pro-components
🧐[问题] 请问如何全局设置allowClear={false}呢
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🧐 问题描述
我正在使用 ProForm 系列组件,想要全局设置所有 ProForm 输入类组件的 `allowClear` 属性为 `false`。目前,我需要为每个组件单独设置这个属性,这样做很繁琐。
### 💻 示例代码
```tsx
```
### 我的疑问
是否有一种方法可以全局设置所有 ProForm 组件的 `allowClear` 属性为 `false`?
Contributor guide
Research direction
Review the ProForm input components and the `allowClear` configuration entry points mentioned in the issue; no file or test is identified. Determine whether a supported global setting exists, and document the supported approach or confirm that each component must be configured individually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100