import React, { Component } from 'react';
import { Checkbox, Tooltip } from 'antd';
import styles from '../../index.less';
class ShowTableCellComponent extends Component {
constructor(props) {
super(props);
this.state = {
value: this.props.value || false,
dataIndex: this.props.dataIndex || '',
content: '',
width: props.width,
};
}
componentWillMount() {
const { dataIndex, value, width } = this.state;
const firstDataIndex = dataIndex.substring(0, 1);
let content =