2017-08-30 11:18:38 +08:00
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @title 无数据时显示
|
|
|
|
|
* @description 无数据时显示效果展示
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const columns10 = [
|
|
|
|
|
{
|
|
|
|
|
title: "Name",
|
|
|
|
|
dataIndex: "name",
|
|
|
|
|
key: "name",
|
|
|
|
|
width: "40%"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Age",
|
|
|
|
|
dataIndex: "age",
|
|
|
|
|
key: "age",
|
|
|
|
|
width: "30%"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Address",
|
|
|
|
|
dataIndex: "address",
|
|
|
|
|
key: "address"
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const data10 = [
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const emptyFunc = () => <span>这里没有数据!</span>
|
|
|
|
|
|
2017-09-07 16:06:49 +08:00
|
|
|
|
export class Demo10 extends Component {
|
2017-08-30 11:18:38 +08:00
|
|
|
|
render() {
|
|
|
|
|
return <Table columns={columns10} data={data10} emptyText={emptyFunc} />;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-08-30 13:31:26 +08:00
|
|
|
|
|