This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/upgrade_semchen' into refactor/dropdownButton_fmw
- Loading branch information
Showing
14 changed files
with
172 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { Col, Form, Row } from 'react-bootstrap'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Form | Checkbox', module).add('inline', () => ( | ||
<Form> | ||
<Form.Group as={Row}> | ||
<Form.Label column xs="auto"> | ||
业务场景: | ||
</Form.Label> | ||
<Col xs="auto" style={{ padding: '7px 0'}}> | ||
<Form.Check inline type="checkbox" id="default" label="块存储" value="block" /> | ||
<Form.Check inline type="checkbox" id="priority" label="文件存储" value="file" /> | ||
<Form.Check inline type="checkbox" id="priority" label="对象存储" value="object" /> | ||
</Col> | ||
</Form.Group> | ||
</Form> | ||
)); |
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,48 @@ | ||
import React from 'react'; | ||
import { Col, Form, Row } from 'react-bootstrap'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Form | Radio', module) | ||
.add('inline', () => ( | ||
<Form> | ||
<Form.Group as={Row}> | ||
<Form.Label column xs="auto"> | ||
性能优先级: | ||
</Form.Label> | ||
<Col xs="auto" style={{ padding: '7px 0' }}> | ||
<Form.Check inline name="name1" type="radio" id="default" label="默认" value="default" /> | ||
<Form.Check | ||
inline | ||
name="name1" | ||
type="radio" | ||
id="priority" | ||
label="优先" | ||
value="priority" | ||
/> | ||
</Col> | ||
</Form.Group> | ||
</Form> | ||
)) | ||
.add('with help text', () => ( | ||
<Form> | ||
<Form.Group as={Row}> | ||
<Form.Label column xs="auto"> | ||
迁移速度级别: | ||
</Form.Label> | ||
<Col xs="auto" style={{ padding: '7px 0' }}> | ||
<Form.Check name="name1" type="radio" id="low" label="低速" value="low" /> | ||
<Form.Text style={{ marginLeft: '1.5em' }}> | ||
以较低的速度迁移数据,迁移时间可能较长,但是基本不影响业务。 | ||
</Form.Text> | ||
<Form.Check name="name1" type="radio" id="middle" label="中速" value="middle" /> | ||
<Form.Text style={{ marginLeft: '1.5em' }}> | ||
以中等的速度迁移数据,迁移时间适中,在大部分场景不影响业务,除非业务压力很大。 | ||
</Form.Text> | ||
<Form.Check name="name1" type="radio" id="hight" label="高速" value="hight" /> | ||
<Form.Text style={{ marginLeft: '1.5em' }}> | ||
以较高的速度迁移数据,迁移时间较短,可能会影响业务的 IO 时延。 | ||
</Form.Text> | ||
</Col> | ||
</Form.Group> | ||
</Form> | ||
)); |
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,8 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { Steps } from '../src'; | ||
|
||
storiesOf('Steps', module).add('default', () => { | ||
const stepTexts = ['选择资源', '设置恢复任务', '确认信息']; | ||
return <Steps steps={stepTexts} currentStep={2} />; | ||
}); |
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,20 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { Tooltip } from '../src'; | ||
|
||
storiesOf('Tooltip', module).add('default', () => { | ||
return ( | ||
<div> | ||
<div> | ||
<h5>1. 图标提示</h5> | ||
<Tooltip placement="right" style={{ maxWidth: 800 }} children="测试" /> | ||
</div> | ||
<div style={{ marginTop: '20px' }}> | ||
<h5>2. 文字提示</h5> | ||
<Tooltip placement="right" label={<span>测试</span>}> | ||
测试2 | ||
</Tooltip> | ||
</div> | ||
</div> | ||
); | ||
}); |