This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
15 changed files
with
156 additions
and
10 deletions.
There are no files selected for viewing
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,17 @@ | ||
import React from 'react'; | ||
|
||
import { SuperCheckboxGroup, SuperEmail, SuperForm, SuperInput, SuperNumber } from 'super-antd'; | ||
|
||
const Demo = () => { | ||
return ( | ||
<SuperForm itemCount={3} layout="vertical"> | ||
<SuperInput name="name" label="姓名"></SuperInput> | ||
<SuperNumber name="age" label="年龄"></SuperNumber> | ||
<SuperCheckboxGroup name="sex" label="性别" options={['男', '女']}></SuperCheckboxGroup> | ||
<SuperInput name="like" label="爱好"></SuperInput> | ||
<SuperEmail name="address" label="地址" itemSpan={16}></SuperEmail> | ||
</SuperForm> | ||
); | ||
}; | ||
|
||
export default Demo; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Radio } from 'antd'; | ||
import React, { useState } from 'react'; | ||
|
||
import { SuperCheckboxGroup, SuperEmail, SuperForm, SuperInput, SuperNumber } from 'super-antd'; | ||
|
||
const Demo = () => { | ||
const [itemCount, setItemCount] = useState<number>(3); | ||
return ( | ||
<> | ||
<div style={{ margin: 20 }}> | ||
<Radio.Group | ||
optionType="button" | ||
buttonStyle="solid" | ||
value={itemCount} | ||
onChange={(e) => setItemCount(Number(e.target.value))} | ||
options={[ | ||
{ value: 1, label: '一列' }, | ||
{ value: 2, label: '两列' }, | ||
{ value: 3, label: '三列' }, | ||
]} | ||
></Radio.Group> | ||
</div> | ||
|
||
<SuperForm itemCount={itemCount} layout="vertical"> | ||
<SuperInput name="name" label="姓名"></SuperInput> | ||
<SuperNumber name="age" label="年龄"></SuperNumber> | ||
<SuperCheckboxGroup name="sex" label="性别" options={['男', '女']}></SuperCheckboxGroup> | ||
<SuperInput name="like" label="爱好"></SuperInput> | ||
<SuperEmail name="address" label="地址" itemSpan={16}></SuperEmail> | ||
</SuperForm> | ||
</> | ||
); | ||
}; | ||
|
||
export default Demo; |
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
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
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
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
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
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