-
Notifications
You must be signed in to change notification settings - Fork 19
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
10 changed files
with
115 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default [ | ||
{ | ||
title: "API", | ||
json: [ | ||
{ | ||
props: "color", | ||
intro: "波纹颜色", | ||
type: "string", | ||
defaultValue: "-", | ||
}, | ||
{ | ||
props: "opacity", | ||
intro: "透明度", | ||
type: "number", | ||
defaultValue: "0.3", | ||
}, | ||
{ | ||
props: "diameter", | ||
intro: "波纹半径", | ||
type: "number", | ||
defaultValue: "10", | ||
}, | ||
] | ||
} | ||
] |
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,2 @@ | ||
#### 配合其他组件使用 | ||
推荐配合`button`使用,可以提高交互体验。 |
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,13 @@ | ||
import * as React from 'react'; | ||
import { Ripple, Icon, Button } from '../../../../components/'; | ||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<Ripple color="red" opacity={0.6}><Button type="primary"><Icon type="play"/>播放</Button></Ripple> | ||
<Ripple color="blue"><Button type="primary"><Icon type="pause"/>暂停</Button></Ripple> | ||
<Ripple color="yellow"><Button type="primary"><Icon type="skip-backward"/>上一首</Button></Ripple> | ||
<Ripple color="green"><Button type="primary">下一首<Icon type="skip-forward"/></Button></Ripple> | ||
</div> | ||
) | ||
} |
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,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,21 @@ | ||
import * as React from 'react'; | ||
import { Ripple, Card, Icon } from '../../../../components/'; | ||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<Ripple style={{width: '200px'}}color="red"> | ||
<Card | ||
title="标题" | ||
extra={( | ||
<div><span>更多</span><Icon type="more"/></div> | ||
)} | ||
border | ||
shadow | ||
> | ||
<div>波纹包裹的card</div> | ||
</Card> | ||
</Ripple> | ||
</div> | ||
) | ||
} |
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,4 @@ | ||
## Ripple 波纹 | ||
用于包裹子组件,点击后有波纹特效。 | ||
|
||
## 代码演示 |
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,30 @@ | ||
import * as React from 'react'; | ||
import { Component } from 'react'; | ||
import * as md from './index.md'; | ||
import Markdown from '../../components/Markdown/'; | ||
import CodeBox from '../../components/CodeBox/'; | ||
import ApiBox from '../../components/ApiBox/'; | ||
import Api from './api'; | ||
|
||
import RippleDemo from './demo/rippleDemo'; | ||
import * as rippleDemoMd from './demo/rippleDemo.md'; | ||
const rippleDemoCode = require('!raw-loader!./demo/rippleDemo'); | ||
|
||
import RippleCustom from './demo/rippleCustom'; | ||
import * as rippleCustomMd from './demo/rippleCustom.md'; | ||
const rippleCustomCode = require('!raw-loader!./demo/rippleCustom'); | ||
|
||
export default class RipplePage extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
<Markdown text={md}/> | ||
<CodeBox text={rippleDemoMd} demo={<RippleDemo/>} code={rippleDemoCode}/> | ||
|
||
<CodeBox text={rippleCustomMd} demo={<RippleCustom/>} code={rippleCustomCode}/> | ||
<ApiBox api={Api}/> | ||
</div> | ||
) | ||
} | ||
}; | ||
|
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