-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs:(form) Query filter component supports custom display of control…
… quantity - Added the `defaultFormItemsNumber` property to set the number of controls displayed in a collapsed state - Updated the documentation to clarify the difference between `defaultColsNumber` and `defaultFormItemsNumber` - Added example code to demonstrate how to use the `defaultFormItemsNumber` property
- Loading branch information
1 parent
2b962b4
commit 004bab0
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
packages/form/src/components/QueryFilter/demos/query-filter-defaultFormItemsNumber.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { | ||
ProFormDatePicker, | ||
ProFormText, | ||
QueryFilter, | ||
} from '@ant-design/pro-components'; | ||
|
||
export default () => { | ||
return ( | ||
<QueryFilter defaultCollapsed split defaultFormItemsNumber={5}> | ||
<ProFormText name="name" label="应用名称" /> | ||
<ProFormDatePicker name="createDate" label="创建时间" /> | ||
<ProFormText name="status" label="应用状态" /> | ||
<ProFormDatePicker name="replyDate" label="响应日期" /> | ||
<ProFormDatePicker name="startDate" label="创建时间" /> | ||
<ProFormDatePicker name="endDate" label="结束时间" /> | ||
</QueryFilter> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters