import TyComponent from '../common/component'

TyComponent({
  /**
   * 组件的属性列表
   */
  properties: {
    inactive: {
      type: Boolean,
      value: false,
      observer(value) {
        if (value) {
          this.setData({
            inactive: false,
            color: '#8C8C8C'
          })
        }
      }
    },
    percentage: {
      type: Number,
      value: false
    },
    strokeWidth: {
      type: [String, Number],
      value: '4px'
    },
    showPivot: {
      type: Boolean,
      value: true
    },
    color: {
      type: String,
      value: '#228EF8'
    },
    textColor: {
      type: String,
      value: '#fff'
    },
    trackColor: {
      type: String,
      value: '#BFBFBF'
    },
    pivotText: {
      type: String
    },
    pivotColor: {
      type: String
    },
    customClass: {
      type: String
    }

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
