fixed:修复demo跑不起来bug

This commit is contained in:
zhaoyuu 2017-09-11 16:02:03 +08:00
parent a51e533452
commit 9fc4b6e5ad
14 changed files with 15 additions and 1143 deletions

View File

@ -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

View File

@ -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} />;
}

View File

@ -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 = {

View File

@ -53,7 +53,7 @@ const defaultProps12 = {
param: "key"
}
};
export class Demo12 extends Component {
class Demo12 extends Component {
constructor(props) {
super(props);
this.state = {

View File

@ -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 = [{

View File

@ -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 (

View File

@ -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} />;
}

View File

@ -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 }} />;
}

View File

@ -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 }} />;
}

View File

@ -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 = {

View File

@ -25,7 +25,7 @@ const columns8 = [
}
];
export class Demo8 extends Component {
class Demo8 extends Component {
constructor(props) {
super(props);
this.state = {

View File

@ -100,7 +100,7 @@ const columns9 = [
}
];
export class Demo9 extends Component {
class Demo9 extends Component {
constructor(props) {
super(props);
this.state = {

File diff suppressed because one or more lines are too long

View File

@ -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": {