fixed:修改demo的import格式

This commit is contained in:
zhaoyuu 2017-09-08 15:07:55 +08:00
parent 264a51b571
commit a51e533452
13 changed files with 90 additions and 12 deletions

View File

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

View File

@ -5,6 +5,11 @@
* *
*/ */
import React, { Component } from 'react';
import Table from '../../src';
const columns10 = [ const columns10 = [
{ {
title: "Name", title: "Name",
@ -37,3 +42,4 @@ const columns10 = [
} }
} }
export default Demo10;

View File

@ -5,6 +5,11 @@
* *
*/ */
import React, { Component } from 'react';
import Table from '../../src';
import Icon from "bee-icon";
const columns11 = [ const columns11 = [
{ {
title: "名字", title: "名字",
@ -136,3 +141,6 @@ export class Demo11 extends Component {
} }
} }
Demo11.defaultProps = defaultProps11; Demo11.defaultProps = defaultProps11;
export default Demo11;

View File

@ -5,6 +5,11 @@
* *
*/ */
import React, { Component } from 'react';
import Table from '../../src';
import Checkbox from "bee-checkbox";
const columns12 = [ const columns12 = [
{ {
title: "名字", title: "名字",
@ -160,3 +165,5 @@ export class Demo12 extends Component {
} }
} }
Demo12.defaultProps = defaultProps12; Demo12.defaultProps = defaultProps12;
export default Demo12;

View File

@ -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 { class EditableCell extends React.Component {
state = { state = {
value: this.props.value, value: this.props.value,
@ -170,4 +179,6 @@ export class Demo2 extends React.Component {
} }
} }
export default Demo2;

View File

@ -6,6 +6,10 @@
*/ */
import Button from 'bee-button';
import React, { Component } from 'react';
import Table from '../../src';
const { ColumnGroup, Column } = Table; const { ColumnGroup, Column } = Table;
const data3 = [ const data3 = [
@ -52,3 +56,5 @@ export class Demo3 extends Component {
) )
} }
} }
export default Demo3;

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,12 @@
* *
*/ */
import React, { Component } from 'react';
import Table from '../../src';
import Pagination from "bee-pagination";
const columns8 = [ const columns8 = [
{ title: "用户名", dataIndex: "a", key: "a", width: 100 }, { title: "用户名", dataIndex: "a", key: "a", width: 100 },
{ id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 },
@ -69,3 +75,4 @@ export class Demo8 extends Component {
); );
} }
} }
export default Demo8;

View File

@ -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 { class Search extends Component {
state = { state = {
searchValue: "", searchValue: "",
@ -122,3 +130,4 @@ export class Demo9 extends Component {
} }
} }
export default Demo9;

View File

@ -4,15 +4,7 @@ import { Panel } from 'bee-panel';
import Button from 'bee-button'; import Button from 'bee-button';
import React, { Component } from 'react'; import React, { Component } from 'react';
import ReactDOM from 'react-dom'; 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 = <i className="uf uf-arrow-down"></i>; const CARET = <i className="uf uf-arrow-down"></i>;