king
2020-11-16 3ca91a731665962918a026f521c556f4745ebf35
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -26,7 +26,7 @@
    loading: false,            // 数据加载状态
    activeKey: '',             // 选中数据
    sync: false,               // 是否统一请求数据
    data: null,                // 数据
    data: {}                   // 数据
  }
  UNSAFE_componentWillMount () {
@@ -34,7 +34,7 @@
    let _config = fromJS(this.props.config).toJS()
    let _cols = new Map()
    let _data = null
    let _data = {}
    let _sync = false
    if (_config.setting && _config.wrap.datatype !== 'static') {
      _sync = _config.setting.sync === 'true'
@@ -219,13 +219,13 @@
            <Spin />
          </div> : null
        }
        {data ? <div className="card-row-list">
        <div className="card-row-list">
          {config.subcards.map((item, index) => (
            <Col className={activeKey === index ? 'active' : ''} key={index} span={item.setting.width || 6} onClick={() => {this.changeCard(index, item)}}>
              <CardItem BID={BID} card={item} cards={config} data={data} updateStatus={this.updateStatus}/>
            </Col>
          ))}
        </div> : null}
        </div>
      </div>
    )
  }