fixed:修复demo跑不起来bug
This commit is contained in:
parent
a51e533452
commit
9fc4b6e5ad
|
@ -5,8 +5,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import Table from '../../src';
|
||||
|
||||
|
@ -28,7 +26,7 @@ const data = [
|
|||
{ a: '郭靖', b: '男', c: 25, key: '3' },
|
||||
];
|
||||
|
||||
export class Demo1 extends Component {
|
||||
class Demo1 extends Component {
|
||||
render () {
|
||||
return (
|
||||
<Table
|
||||
|
|
|
@ -36,7 +36,7 @@ const columns10 = [
|
|||
|
||||
const emptyFunc = () => <span>这里没有数据!</span>
|
||||
|
||||
export class Demo10 extends Component {
|
||||
class Demo10 extends Component {
|
||||
render() {
|
||||
return <Table columns={columns10} data={data10} emptyText={emptyFunc} />;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ const data11 = [
|
|||
const defaultProps11 = {
|
||||
prefixCls: "bee-table"
|
||||
};
|
||||
export class Demo11 extends Component {
|
||||
class Demo11 extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
|
|
@ -53,7 +53,7 @@ const defaultProps12 = {
|
|||
param: "key"
|
||||
}
|
||||
};
|
||||
export class Demo12 extends Component {
|
||||
class Demo12 extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
|
|
@ -71,7 +71,7 @@ class EditableCell extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
export class Demo2 extends React.Component {
|
||||
class Demo2 extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.columns = [{
|
||||
|
|
|
@ -16,7 +16,7 @@ const data3 = [
|
|||
{ a: '北京', b: '北京', c: '250', d: 2, key: '1' },
|
||||
];
|
||||
|
||||
export class Demo3 extends Component {
|
||||
class Demo3 extends Component {
|
||||
render () {
|
||||
return (
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ const data4 = [
|
|||
address: "Sidney No. 1 Lake Park"
|
||||
}
|
||||
];
|
||||
export class Demo4 extends Component {
|
||||
class Demo4 extends Component {
|
||||
render() {
|
||||
return <Table columns={columns4} data={data4} />;
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ const data5 = [
|
|||
}
|
||||
];
|
||||
|
||||
export class Demo5 extends Component {
|
||||
class Demo5 extends Component {
|
||||
render() {
|
||||
return <Table columns={columns5} data={data5} scroll={{ x: 1500 }} />;
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ const data6 = [
|
|||
}
|
||||
];
|
||||
|
||||
export class Demo6 extends Component {
|
||||
class Demo6 extends Component {
|
||||
render() {
|
||||
return <Table columns={columns6} data={data6} scroll={{ y: 150 }} />;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ const columns7_1 = [
|
|||
{ title: "系别", dataIndex: "c", key: "c"}
|
||||
];
|
||||
|
||||
export class Demo7 extends Component {
|
||||
class Demo7 extends Component {
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state = {
|
||||
|
|
|
@ -25,7 +25,7 @@ const columns8 = [
|
|||
}
|
||||
];
|
||||
|
||||
export class Demo8 extends Component {
|
||||
class Demo8 extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
|
|
@ -100,7 +100,7 @@ const columns9 = [
|
|||
}
|
||||
];
|
||||
|
||||
export class Demo9 extends Component {
|
||||
class Demo9 extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
|
1130
demo/index.js
1130
demo/index.js
File diff suppressed because one or more lines are too long
|
@ -36,7 +36,7 @@
|
|||
"classnames": "^2.2.5",
|
||||
"object-path": "^0.11.3",
|
||||
"shallowequal": "^0.2.2",
|
||||
"tinper-bee-core": "latest",
|
||||
"tinper-bee-core": "^0.1.6",
|
||||
"warning": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in New Issue