king
2024-11-02 fa3c957b2913452f3b1c7039dfab3ceb554045f4
src/tabviews/custom/components/card/data-card/index.jsx
@@ -191,12 +191,16 @@
    }
    if (_config.wrap.zHeight) {
      _config.wrap.zoomStyle = {}
      if (_config.wrap.zHeight <= 100) {
        if (_config.wrap.zHeight < 0) {
          _config.wrap.zHeight = `calc(100vh - ${-_config.wrap.zHeight}px)`
          _config.wrap.zoomStyle.maxHeight = `calc(100vh - ${-_config.wrap.zHeight}px)`
          _config.wrap.zoomStyle.minHeight = '100px'
        } else {
          _config.wrap.zHeight = _config.wrap.zHeight + 'vh'
          _config.wrap.zoomStyle.maxHeight = _config.wrap.zHeight + 'vh'
        }
      } else {
        _config.wrap.zoomStyle.maxHeight = _config.wrap.zHeight + 'px'
      }
      if (_config.style) {
@@ -204,7 +208,7 @@
      }
      _config.wrap.layout += ' fix-height'
    } else {
      _config.wrap.zHeight = 'none'
      _config.wrap.zoomStyle = null
    }
    this.setState({
@@ -1234,7 +1238,7 @@
        {config.wrap.pickup === 'true' && this.state.data.length > 0 ? <div className="pickup-wrap"><Switch title="收起" checkedChildren={window.GLOB.dict['open'] || '开'} unCheckedChildren={window.GLOB.dict['shut'] || '关'} checked={pickup} onChange={this.pickupChange} /></div> : null}
        <div className={`data-zoom ${config.wrap.wrapClass}`}>
          {switchable ? <div className={'prev-page ' + (pageIndex === 1 ? 'disabled' : '')} onClick={this.prevPage}><div><div><img src={preImg} alt=""/></div></div></div> : null}
          <Row className={'card-row-list ' + config.wrap.layout} style={{maxHeight: config.wrap.zHeight}}>
          <Row className={'card-row-list ' + config.wrap.layout} style={config.wrap.zoomStyle}>
            {precards.map((item, index) => (
              <Col key={'pre' + index} className="extend-card" style={item.wStyle} span={item.setting.width || 6}>
                {item.setting.cardRole === 'header' ? <TableHeader card={item} data={extendData} refresh={this.refreshByHeader}>