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
28
29
30
31
32
33
34
35
36
37
38
| <template>
| <el-form :inline="true" :size="size">
| <slot name="options"></slot>
| <el-form-item v-if="$slots.options">
| <el-button
| icon="Search"
| type="primary"
| :loading="loading"
| @click="search"
| @kekeyup.enter="search"
| >{{ btnText }}</el-button
| >
| <slot name="buttons"></slot>
| </el-form-item>
| </el-form>
| </template>
|
| <script>
| export default {
| props: {
| size: {
| type: String,
| default: 'default'
| },
| btnText: {
| type: String,
| default: '查询'
| },
| loading: Boolean
| },
| emits: ['search'],
| methods: {
| search() {
| this.$emit('search');
| }
| }
| };
| </script>
|
|