riku
2024-04-19 ce51d7719b4d908da5577751f0c840fab5d1a39e
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
<template>
  <el-form :inline="true">
    <slot name="options"></slot>
    <el-form-item>
      <el-button icon="Search" type="primary" @click="search">{{ btnText }}</el-button>
      <slot name="buttons"></slot>
    </el-form-item>
  </el-form>
</template>
 
<script>
export default {
  props: {
    btnText: {
      type: String,
      default: '查询'
    }
  },
  emits: ['search'],
  methods: {
    search() {
      this.$emit('search')
    }
  }
}
</script>