import {
WeaDialog,
WeaFormItem,
WeaNewScroll,
WeaSearchGroup,
WeaMoreButton,
WeaTable
} from 'ecCom'
import {
Spin,
Button,
} from 'antd'
import {
WeaSwitch
} from 'comsMobx'
import {
i18n
} from '../public/i18n';
export default class NewTableDialog extends React.Component {
constructor(props) {
super(props);
this.state = {
width: 800,
}
}
render() {
const {
title,
visible,
onCancel,
loading,
height,
dataSource,
columns
} = this.props, {
width,
} = this.state;
const pagination = {
total: dataSource.length,
showSizeChanger: true,
showQuickJumper: true,
onShowSizeChange(current, pageSize) {
},
onChange(current) {
},
showTotal(total) {
return `共 ${total} 条`
}
};
const buttons = [
//(),
()
];
return (
onCancel()}
buttons={buttons}
style={{ width: width, height: height }}
>
{
loading ?
: record.id}
dataSource={dataSource} childrenColumnName="children"
columns={columns}
loading={loading}
pagination={pagination}
indentSize={15}
/>
}
)
}
}