Fixed:demo文档修改import方式

This commit is contained in:
zhaoyuu 2017-08-30 13:31:26 +08:00
parent 69e0751360
commit ca7fcadd2e
12 changed files with 85 additions and 810 deletions

View File

@ -5,6 +5,11 @@
*
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Table from '../../src';
const columns = [
{ title: '用户名', dataIndex: 'a', key: 'a', width: 100 },
{ id: '123', title: '性别', dataIndex: 'b', key: 'b', width: 100 },
@ -34,3 +39,6 @@ class Demo1 extends Component {
)
}
}
export default Demo1;

View File

@ -5,6 +5,9 @@
*
*/
import React, { Component } from 'react';
import Table from '../../src';
const columns10 = [
{
title: "Name",
@ -36,4 +39,6 @@ const columns10 = [
return <Table columns={columns10} data={data10} emptyText={emptyFunc} />;
}
}
export default Demo10;

View File

@ -5,6 +5,14 @@
*
*/
import React, { Component } from 'react';
import Button from 'bee-button';
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,
@ -61,7 +69,7 @@ class EditableCell extends React.Component {
}
}
class Demo2 extends React.Component {
export default class Demo2 extends React.Component {
constructor(props) {
super(props);
this.columns = [{
@ -168,3 +176,5 @@ class Demo2 extends React.Component {
</div>);
}
}

View File

@ -5,6 +5,14 @@
*
*/
import React, { Component } from 'react';
import Button from 'bee-button';
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';
const { ColumnGroup, Column } = Table;
const data3 = [
@ -51,3 +59,5 @@ class Demo3 extends Component {
)
}
}
export default Demo3;

View File

@ -5,6 +5,11 @@
*
*/
import React, { Component } from 'react';
import Table from '../../src';
const columns4 = [
{
title: "Name",
@ -94,3 +99,5 @@ class Demo4 extends Component {
return <Table columns={columns4} data={data4} />;
}
}
export default Demo4;

View File

@ -5,6 +5,11 @@
*
*/
import React, { Component } from 'react';
import Table from '../../src';
const columns5 = [
{
title: "Full Name",
@ -56,3 +61,5 @@ class Demo5 extends Component {
return <Table columns={columns5} data={data5} scroll={{ x: 1500 }} />;
}
}
export default Demo5;

View File

@ -5,6 +5,11 @@
*
*/
import React, { Component } from 'react';
import Table from '../../src';
const columns6 = [
{
title: "Full Name",
@ -78,3 +83,5 @@ class Demo6 extends Component {
return <Table columns={columns6} data={data6} scroll={{ y: 150 }} />;
}
}
export default Demo6;

View File

@ -5,6 +5,11 @@
*
*/
import React, { Component } from 'react';
import Table from '../../src';
const columns7 = [
{ title: "用户名", dataIndex: "a", key: "a"},
{ id: "123", title: "性别", dataIndex: "b", key: "b"},
@ -79,3 +84,6 @@ class Demo7 extends Component {
);
}
}
export default Demo7;

View File

@ -4,6 +4,12 @@
* @description 点击分页联动表格
*
*/
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,3 +74,5 @@ class Demo8 extends Component {
);
}
}
export default Demo8;

View File

@ -5,6 +5,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: "",
@ -77,7 +85,6 @@ class Search extends Component {
}
}
export default Search;
const columns9 = [
{ title: "用户名", dataIndex: "a", key: "a", width: 100 },
{ id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 },
@ -121,3 +128,6 @@ class Demo9 extends Component {
);
}
}
export default Demo9;

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@
"bee-pagination": "^0.1.7",
"bee-panel": "latest",
"bee-popconfirm": "^0.2.2",
"bee-tools": "^0.2.1",
"bee-tools": "^0.3.0",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"enzyme": "^2.4.1",