king
2021-08-26 e9c48bd7356462ba9257540b130a47a65ad1861d
src/menu/components/chart/antv-scatter/index.jsx
@@ -187,16 +187,11 @@
    const { card } = this.state
    const plot = card.plot
    const data = this.getdata()
    let height = plot.height - 25
    if (card.plot.title || card.search.length > 0) {
      height = plot.height - 70
    }
    const chart = new Chart({
      container: card.uuid + 'canvas',
      autoFit: true,
      height: height
      height: this.wrap.offsetHeight - 25
    })
    chart.data(data);
@@ -313,7 +308,6 @@
    newcard.execSuccess = 'grid'
    newcard.execError = 'never'
    newcard.popClose = 'never'
    newcard.errorTime = 10
    newcard.verify = null
    newcard.show = 'icon'
@@ -324,7 +318,7 @@
  changeStyle = () => {
    const { card } = this.state
    MKEmitter.emit('changeStyle', [card.uuid], ['background', 'border', 'padding', 'margin'], card.style)
    MKEmitter.emit('changeStyle', [card.uuid], ['background', 'border', 'padding', 'margin', 'shadow'], card.style)
  }
  getStyle = (comIds, style) => {
@@ -394,7 +388,7 @@
          <Icon type="tool" />
        </Popover>
        {card.plot.title || card.search.length > 0 ? <NormalHeader config={card} updateComponent={this.updateComponent}/> : null}
        <div className="canvas" id={card.uuid + 'canvas'}></div>
        <div className="canvas" id={card.uuid + 'canvas'} ref={ref => this.wrap = ref}></div>
        {appType !== 'mob' ? <ActionComponent type="chart" config={card} updateaction={this.updateComponent}/> : null}
      </div>
    )