OutputBar.js 587 Bytes
// packageOutput/pages/boutique/components/OutputBar/OutputBar.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    opts: {
      type: Object,
      value: {}
    },
    chartData:{
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    dataType: 3,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    selectCondition(e) {
      let {
        condition,
        type
      } = e.currentTarget.dataset
      this.setData({
        [condition]: type
      })
      this.triggerEvent('selectEvent')
    },
  }
})