import TyComponent from '../common/component'

TyComponent({
  source: true,
  /**
   * 组件的属性列表
   */
  properties: {
    useSlot: {
      type: Boolean,
      value: false
    },
    index: {
      type: [String, Number]
    }

  },
  relations: {
    '../ht-index-bar/index': {
      type: 'ancestor',
      linked(target) {
        this.parent = target
      },
      unlinked() {
        this.parent = null
      }
    }
  },
  data: {
    active: false,
    wrapperStyle: '',
    anchorStyle: ''
  }
})
