liuchengxin
2022-05-23 1c01e669cca92f94eea5d1a73ff60f3bd34b9079
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<template>
  <div style="margin-right: 10px; color:#1890ff; cursor: pointer; user-select:none;" @click="moreToggle">
    <span style="margin-right: 5px">{{ showMore ? '收起' : '展开'}}</span>
    <i :class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" style="font-size: 16px;"></i>
  </div>
</template>
 
<script>
export default {
  name: 'show-more',
  data () {
    return {
      showMore: false
    }
  },
  methods: {
    moreToggle () {
      this.showMore = !this.showMore
      this.$emit('update:showMoreCondition', this.showMore)
    },
  }
}
</script>
 
<style scoped>
 
</style>