king
2020-10-11 5902ba5c3ff85efc78c95364196cd6ab5d2d1601
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React, {Component} from 'react'
import { is, fromJS } from 'immutable'
 
import { menuOptions } from './option'
import SourceWrap from './dragsource'
import './index.scss'
 
class CardChart extends Component {
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
  }
 
  render() {
    return (
      <div className="mob-card-source-box">
        {menuOptions.map((item, index) => (<SourceWrap key={index} content={item} />))}
      </div>
    )
  }
}
 
export default CardChart