-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
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,5 @@ | ||
--- | ||
"@hi-ui/select": minor | ||
--- | ||
|
||
feat: add size api |
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,5 @@ | ||
--- | ||
"@hi-ui/hiui": patch | ||
--- | ||
|
||
Select feat: add size api |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react' | ||
import Select from '../src' | ||
|
||
/** | ||
* @title 不同尺寸 | ||
*/ | ||
export const Size = () => { | ||
const [data] = React.useState([ | ||
{ title: '电视', id: '3', disabled: true }, | ||
{ title: '手机', id: '2' }, | ||
{ title: '笔记本', id: '4', disabled: true }, | ||
{ | ||
title: '生活周边超长文案展示超长文案展示', | ||
id: '5', | ||
}, | ||
{ title: '办公', id: '6' }, | ||
{ title: '生活周边7', id: '7' }, | ||
{ title: '办公8', id: '8' }, | ||
]) | ||
|
||
return ( | ||
<> | ||
<h1>Size</h1> | ||
<div className="select-size__wrap"> | ||
<h2>sm</h2> | ||
<Select style={{ width: 240 }} size="sm" clearable={false} data={data} /> | ||
<h2>md</h2> | ||
<Select style={{ width: 240 }} size="md" clearable={false} data={data} /> | ||
<h2>lg</h2> | ||
<Select style={{ width: 240 }} size="lg" clearable={false} data={data} /> | ||
</div> | ||
</> | ||
) | ||
} |