import TyComponent from '../common/component'

TyComponent({
  /**
   * 组件的属性列表
   */
  properties: {
    text: {
      type: String
    },
    mode: {
      type: String
    },
    delay: {
      type: Number,
      value: 1
    },
    speed: {
      type: Number,
      value: 50
    },
    scrollable: {
      type: Boolean,
      value: true
    },
    wrapable: {
      type: Boolean,
      value: false
    },
    leftIcon: {
      type: String
    },
    color: {
      type: String,
      value: '#ed6a0c'
    },
    backgroundColor: {
      type: String,
      value: '#fffbe8'
    },
    openType: {
      type: String,
      value: 'navigate'
    },
    customClass: {
      type: String
    }

  },

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

  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleClick({detail}) {
      this.triggerEvent('click', detail)
    },
  }
})
