
export default {
  props: {
    data: {
      type: Array,
      default: function () {
        return [
          {
            id: '1',
            name: '选项一'
          },
          {
            id: '2',
            name: '选项二'
          }
        ]
      }
    },

  },
  data () {
    return {
      currentClick: '1'
    };
  },
  created () {
  },
  methods: {
    tabClick (info) {
      this.currentClick = info.id
      this.$emit('change', info)
    }
  }
};
