fixed:修改demo的import格式
This commit is contained in:
parent
264a51b571
commit
a51e533452
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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 <Table columns={columns} data={this.state.data} />;
|
||||
}
|
||||
}
|
||||
Demo11.defaultProps = defaultProps11;
|
||||
Demo11.defaultProps = defaultProps11;
|
||||
|
||||
|
||||
export default Demo11;
|
|
@ -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;
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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 <Table columns={columns4} data={data4} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default Demo4;
|
|
@ -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 <Table columns={columns5} data={data5} scroll={{ x: 1500 }} />;
|
||||
}
|
||||
}
|
||||
|
||||
export default Demo5;
|
|
@ -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 <Table columns={columns6} data={data6} scroll={{ y: 150 }} />;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Demo6;
|
|
@ -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;
|
|
@ -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 {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
export default Demo8;
|
|
@ -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;
|
|
@ -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 = <i className="uf uf-arrow-down"></i>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue