Tabs 标签页

Tabs 标签页_第1张图片


data() {
return {
activeName: 'first',//first
  showMyRecords: true,
  showMySubordinates: true,
  }
 },
methods: {
  	 setParam(name, value) {
      if (value.state == 'data') {
        this.$refs[name].param = value.val
      }
      else {
        this.$refs[name].loading = value.val
      }
    },
	handleClick(tab, event) {
      if (tab.name === 'first') {
        this.showMyRecords = true;
        this.showMySubordinates = false;
      } else if (tab.name === 'second') {
        this.showMyRecords = false;
        this.showMySubordinates = true;
      }
    },
}


你可能感兴趣的:(javascript,前端,css)