| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Icon, Card, Spin, Empty } from 'antd' |
| | | import { Card, Spin, Empty } from 'antd' |
| | | |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | import asyncExcelComponent from './asyncButtonComponent' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import MkIcon from '@/components/mk-icon' |
| | | import '@/assets/css/table.scss' |
| | | import './index.scss' |
| | | |
| | |
| | | if (mark.position === 'front') { |
| | | position = 'front' |
| | | } |
| | | icon = <Icon className={'font ' + className} type={mark.icon} /> |
| | | icon = <MkIcon className={'font ' + className} type={mark.icon} /> |
| | | className = '' |
| | | } |
| | | |
| | |
| | | tableId: PropTypes.string, |
| | | loading: PropTypes.bool, |
| | | data: PropTypes.array, |
| | | handleTableId: PropTypes.func |
| | | } |
| | | |
| | | state = { |
| | |
| | | |
| | | this.setState({selectKey: data.key}) |
| | | |
| | | this.props.handleTableId(this.props.tableId, _id, data) |
| | | MKEmitter.emit('changeTableLine', this.props.ContainerId, this.props.tableId, _id, data) |
| | | } |
| | | |
| | | render() { |