Skip to content

Commit

Permalink
change demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyuzhou committed Dec 20, 2016
1 parent 6baa6cb commit b3f12e5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 33 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ _site
sea-modules
spm_modules
.cache
dist
coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ import "./node_modules/bee-modal/build/Modal.css"
## API

|参数|说明|类型|默认值|
|:--|:---:|:--:|---:|
|:---|:-----|:----|:------|
|backdrop|是否弹出遮罩层/遮罩层点击是否触发关闭|boolean/"static"|true|
|keyboard|esc触发关闭|boolean|-|
|animation|显隐时是否使用动画|boolean|true|
Expand Down
17 changes: 3 additions & 14 deletions demo/index-demo-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,12 @@ class Demo extends Component {
</Button>
);

const header = (
<Row>
<Col md={11}>
{ example }
</Col>
<Col md={1}>
<Button shape="icon" onClick={ this.handleClick }>
{ caret }
</Button>
</Col>
</Row>
);

return (
<Col md={10} mdOffset={1} sm={12} smOffset={0}>
<Col md={12}>
<h3>{ title }</h3>
<p>{ desc }</p>
<Panel headerContent collapsible expanded={ this.state.open } colors='bordered' header={ header } footer={footer} footerStyle = {{padding: 0}}>
<Panel collapsible headerContent expanded={ this.state.open } colors='bordered' header={ example } footer={footer} footerStyle = {{padding: 0, borderColor: "transparent"}}>
<pre><code className="hljs javascript">{ code }</code></pre>
</Panel>
</Col>
Expand Down
19 changes: 4 additions & 15 deletions demo/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### API

|参数|说明|类型|默认值|
|:---|:----:|:---:|------:|
|:--|:----|:---|:----|
|backdrop|是否弹出遮罩层/遮罩层点击是否触发关闭|boolean/"static"|true|
|keyboard|esc触发关闭|boolean|-|
|animation|显隐时是否使用动画|boolean|true|
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bee-modal",
"version": "0.0.5",
"version": "0.0.8",
"description": "ModalDialogl ui component for react",
"keywords": [
"react",
Expand Down

0 comments on commit b3f12e5

Please sign in to comment.