From a51e5334528edb66037de5a39fb10b83b95285bd Mon Sep 17 00:00:00 2001 From: zhaoyuu Date: Fri, 8 Sep 2017 15:07:55 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E6=94=B9demo=E7=9A=84import?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demolist/Demo1.js | 7 +++++++ demo/demolist/Demo10.js | 6 ++++++ demo/demolist/Demo11.js | 10 +++++++++- demo/demolist/Demo12.js | 7 +++++++ demo/demolist/Demo2.js | 11 +++++++++++ demo/demolist/Demo3.js | 6 ++++++ demo/demolist/Demo4.js | 7 +++++++ demo/demolist/Demo5.js | 7 +++++++ demo/demolist/Demo6.js | 7 ++++++- demo/demolist/Demo7.js | 6 ++++++ demo/demolist/Demo8.js | 9 ++++++++- demo/demolist/Demo9.js | 9 +++++++++ demo/index-demo-base.js | 10 +--------- 13 files changed, 90 insertions(+), 12 deletions(-) diff --git a/demo/demolist/Demo1.js b/demo/demolist/Demo1.js index 5b7b81f..a242522 100644 --- a/demo/demolist/Demo1.js +++ b/demo/demolist/Demo1.js @@ -6,6 +6,11 @@ */ + +import React, { Component } from 'react'; +import Table from '../../src'; + + const columns = [ { title: '用户名', dataIndex: 'a', key: 'a', width: 100 }, { id: '123', title: '性别', dataIndex: 'b', key: 'b', width: 100 }, @@ -36,3 +41,5 @@ export class Demo1 extends Component { } } +export default Demo1; + diff --git a/demo/demolist/Demo10.js b/demo/demolist/Demo10.js index 75363d3..a1b5455 100644 --- a/demo/demolist/Demo10.js +++ b/demo/demolist/Demo10.js @@ -5,6 +5,11 @@ * */ + +import React, { Component } from 'react'; +import Table from '../../src'; + + const columns10 = [ { title: "Name", @@ -37,3 +42,4 @@ const columns10 = [ } } +export default Demo10; \ No newline at end of file diff --git a/demo/demolist/Demo11.js b/demo/demolist/Demo11.js index 192e4fb..f27f282 100644 --- a/demo/demolist/Demo11.js +++ b/demo/demolist/Demo11.js @@ -5,6 +5,11 @@ * */ + +import React, { Component } from 'react'; +import Table from '../../src'; +import Icon from "bee-icon"; + const columns11 = [ { title: "名字", @@ -135,4 +140,7 @@ export class Demo11 extends Component { return ; } } -Demo11.defaultProps = defaultProps11; \ No newline at end of file +Demo11.defaultProps = defaultProps11; + + +export default Demo11; \ No newline at end of file diff --git a/demo/demolist/Demo12.js b/demo/demolist/Demo12.js index f1c50d5..49c6ef8 100644 --- a/demo/demolist/Demo12.js +++ b/demo/demolist/Demo12.js @@ -5,6 +5,11 @@ * */ + +import React, { Component } from 'react'; +import Table from '../../src'; +import Checkbox from "bee-checkbox"; + const columns12 = [ { title: "名字", @@ -160,3 +165,5 @@ export class Demo12 extends Component { } } Demo12.defaultProps = defaultProps12; + +export default Demo12; \ No newline at end of file diff --git a/demo/demolist/Demo2.js b/demo/demolist/Demo2.js index b341266..5a11cf9 100644 --- a/demo/demolist/Demo2.js +++ b/demo/demolist/Demo2.js @@ -6,6 +6,15 @@ */ + +import Button from 'bee-button'; +import React, { Component } from 'react'; +import Table from '../../src'; +import Animate from 'bee-animate'; +import Icon from "bee-icon"; +import Input from 'bee-form-control'; +import Popconfirm from 'bee-popconfirm'; + class EditableCell extends React.Component { state = { value: this.props.value, @@ -170,4 +179,6 @@ export class Demo2 extends React.Component { } } +export default Demo2; + diff --git a/demo/demolist/Demo3.js b/demo/demolist/Demo3.js index cf24d93..d0a82c5 100644 --- a/demo/demolist/Demo3.js +++ b/demo/demolist/Demo3.js @@ -6,6 +6,10 @@ */ +import Button from 'bee-button'; +import React, { Component } from 'react'; +import Table from '../../src'; + const { ColumnGroup, Column } = Table; const data3 = [ @@ -52,3 +56,5 @@ export class Demo3 extends Component { ) } } + +export default Demo3; \ No newline at end of file diff --git a/demo/demolist/Demo4.js b/demo/demolist/Demo4.js index 411b98e..67123e8 100644 --- a/demo/demolist/Demo4.js +++ b/demo/demolist/Demo4.js @@ -6,6 +6,10 @@ */ +import React, { Component } from 'react'; +import Table from '../../src'; + + const columns4 = [ { title: "Name", @@ -95,3 +99,6 @@ export class Demo4 extends Component { return
; } } + + +export default Demo4; \ No newline at end of file diff --git a/demo/demolist/Demo5.js b/demo/demolist/Demo5.js index 4d822bc..99728b6 100644 --- a/demo/demolist/Demo5.js +++ b/demo/demolist/Demo5.js @@ -7,6 +7,11 @@ +import React, { Component } from 'react'; +import Table from '../../src'; + + + const columns5 = [ { title: "Full Name", @@ -58,3 +63,5 @@ export class Demo5 extends Component { return
; } } + +export default Demo5; \ No newline at end of file diff --git a/demo/demolist/Demo6.js b/demo/demolist/Demo6.js index c7ba37b..2f58987 100644 --- a/demo/demolist/Demo6.js +++ b/demo/demolist/Demo6.js @@ -6,6 +6,9 @@ */ +import React, { Component } from 'react'; +import Table from '../../src'; + const columns6 = [ { @@ -79,4 +82,6 @@ export class Demo6 extends Component { render() { return
; } -} \ No newline at end of file +} + +export default Demo6; \ No newline at end of file diff --git a/demo/demolist/Demo7.js b/demo/demolist/Demo7.js index f043f78..bec6f45 100644 --- a/demo/demolist/Demo7.js +++ b/demo/demolist/Demo7.js @@ -6,6 +6,11 @@ */ +import React, { Component } from 'react'; +import Table from '../../src'; + + + const columns7 = [ { title: "用户名", dataIndex: "a", key: "a"}, { id: "123", title: "性别", dataIndex: "b", key: "b"}, @@ -81,3 +86,4 @@ export class Demo7 extends Component { } } +export default Demo7; \ No newline at end of file diff --git a/demo/demolist/Demo8.js b/demo/demolist/Demo8.js index bbd3a9f..51375e2 100644 --- a/demo/demolist/Demo8.js +++ b/demo/demolist/Demo8.js @@ -5,6 +5,12 @@ * */ + +import React, { Component } from 'react'; +import Table from '../../src'; +import Pagination from "bee-pagination"; + + const columns8 = [ { title: "用户名", dataIndex: "a", key: "a", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, @@ -68,4 +74,5 @@ export class Demo8 extends Component { ); } -} \ No newline at end of file +} +export default Demo8; \ No newline at end of file diff --git a/demo/demolist/Demo9.js b/demo/demolist/Demo9.js index a22ddd2..7339bf5 100644 --- a/demo/demolist/Demo9.js +++ b/demo/demolist/Demo9.js @@ -6,6 +6,14 @@ */ + +import React, { Component } from 'react'; +import Table from '../../src'; +import Icon from "bee-icon"; +import InputGroup from 'bee-input-group'; +import FormControl from 'bee-form-control'; + + class Search extends Component { state = { searchValue: "", @@ -122,3 +130,4 @@ export class Demo9 extends Component { } } +export default Demo9; \ No newline at end of file diff --git a/demo/index-demo-base.js b/demo/index-demo-base.js index 4e2ee9c..494f11c 100644 --- a/demo/index-demo-base.js +++ b/demo/index-demo-base.js @@ -4,15 +4,7 @@ import { Panel } from 'bee-panel'; import Button from 'bee-button'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; -import Table from '../src'; -import Animate from 'bee-animate'; -import Pagination from "bee-pagination"; -import Icon from "bee-icon"; -import Checkbox from "bee-checkbox"; -import InputGroup from 'bee-input-group'; -import FormControl from 'bee-form-control'; -import Input from 'bee-form-control'; -import Popconfirm from 'bee-popconfirm'; + const CARET = ;