king
2021-04-17 ada653685c62e55b2d293f93470eaad59fb5cafb
2021-04-17
6个文件已修改
50 ■■■■■ 已修改文件
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-bar/index.jsx 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-bar-line/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-dashboard/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-pie/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-scatter/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -375,6 +375,17 @@
      forbid: !['bar'].includes(card.chartType),
      required: false
    }, {
      type: 'number',
      key: 'barRadius',
      label: '柱形圆角',
      tooltip: '柱形图上端圆角。',
      min: 0,
      max: 200,
      decimal: 0,
      initVal: card.barRadius || 0,
      forbid: !['bar'].includes(card.chartType),
      required: false
    }, {
      type: 'color',
      key: 'color',
      label: '色系',
src/menu/components/chart/antv-bar/index.jsx
@@ -511,6 +511,9 @@
            }
          })
        }
        if (plot.barRadius) {
          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
        }
      } else if (item.chartType === 'line') {
        let _chart = chart
          .line()
@@ -703,6 +706,9 @@
        if (plot.barSize || plot.correction) {
          _chart.size(plot.barSize || 35)
        }
        if (plot.barRadius) {
          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
        }
      } else if (plot.adjust === 'stack') {
        let _chart = chart
          .interval()
@@ -749,6 +755,9 @@
        if (plot.barSize || plot.correction) {
          _chart.size(plot.barSize || 35)
        }
        if (plot.barRadius) {
          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
        }
      }
  
      chart.render()
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -104,11 +104,7 @@
      _config.plot.height = _config.plot.height - 30
    }
    if (_config.style) {
      _config.style = {..._config.style, minHeight: (config.plot.height || 400)}
    } else {
      _config.style = {minHeight: (config.plot.height || 400)}
    }
    _config.style.height = config.plot.height || 400
    let transfield = {}
    _config.columns.forEach(col => {
@@ -1055,6 +1051,9 @@
            }
          })
        }
        if (plot.barRadius) {
          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
        }
      } else if (item.chartType === 'line') {
        let _chart = chart
          .line()
@@ -1277,6 +1276,9 @@
      if (plot.barSize || plot.correction) {
        _chart.size(plot.barSize || 35)
      }
      if (plot.barRadius) {
        _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
      }
    } else if (plot.adjust === 'stack') {
      let _chart = chart
        .interval()
@@ -1320,6 +1322,9 @@
      if (plot.barSize || plot.correction) {
        _chart.size(plot.barSize || 35)
      }
      if (plot.barRadius) {
        _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
      }
    }
    if (plot.linkmenu && plot.linkmenu.length > 0) {
src/tabviews/custom/components/chart/antv-dashboard/index.jsx
@@ -86,12 +86,7 @@
      _sync = false
    }
    if (_config.style) {
      _config.style = {..._config.style, minHeight: (config.plot.height || 400)}
    } else {
      _config.style = {minHeight: (config.plot.height || 400)}
    }
    _config.style.height = config.plot.height || 400
    this.setState({
      config: _config,
src/tabviews/custom/components/chart/antv-pie/index.jsx
@@ -61,11 +61,7 @@
      _config.plot.height = _config.plot.height - 30
    }
    if (_config.style) {
      _config.style = {..._config.style, minHeight: (config.plot.height || 400)}
    } else {
      _config.style = {minHeight: (config.plot.height || 400)}
    }
    _config.style.height = config.plot.height || 400
    this.setState({
      config: _config,
src/tabviews/custom/components/chart/antv-scatter/index.jsx
@@ -57,7 +57,7 @@
      _config.plot.height = _config.plot.height - 30
    }
    _config.style = {..._config.style, minHeight: config.plot.height}
    _config.style.height = config.plot.height
    this.setState({
      config: _config,