data () { return { list: [ { text: '周', value: 'week', active: true }, { text: '月', value: 'month' }, { text: '季', value: 'quarter' }, { text: '年', value: 'year' } ] } }, handleClick (item) { this.list.forEach(v => { this.$set(v, 'active', false) }) this.$set(item, 'active', true) this.$emit('click', item) },