| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | // import { fromJS } from 'immutable' |
| | | import { Col, Row } from 'antd' |
| | | |
| | | import './index.scss' |
| | | |
| | | |
| | | class CheckCard extends Component { |
| | | static propTpyes = { |
| | |
| | | onChange: PropTypes.func, // 数据切换 |
| | | } |
| | | |
| | | state = { |
| | | selectKeys: null, // 选中数据id |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | |
| | | } |
| | | |
| | | UNSAFE_componentWillReceiveProps (nextProps) { |
| | | |
| | | } |
| | | state = {} |
| | | |
| | | getCards = () => { |
| | | const { display, width, options, fields, ratio } = this.props |
| | |
| | | } |
| | | |
| | | render() { |
| | | |
| | | return ( |
| | | <div className="check-card-edit-box" style={{marginTop: '10px'}}> |
| | | <Row gutter={12}>{this.getCards()}</Row> |