重写表格工具栏右侧添加刷新&显隐查询栏

This commit is contained in:
平凡
2020-08-09 11:07:10 +08:00
parent a7eb07c7a0
commit 5b04f388e9
20 changed files with 166 additions and 354 deletions

View File

@ -0,0 +1,38 @@
<!-- @author Shiyn/ huangmx 20200807优化-->
<template>
<div class="top-right-btn">
<el-row>
<el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top">
<el-button size="mini" circle icon="el-icon-search" @click="clickSearch()" />
</el-tooltip>
<el-tooltip class="item" effect="dark" content="刷新" placement="top">
<el-button size="mini" circle icon="el-icon-refresh" @click="clickFresh()" />
</el-tooltip>
</el-row>
</div>
</template>
<script>
export default {
name: "TableToolsExt",
data() {
return {};
},
props: {
showSearch: {
type: Boolean,
default: true,
},
},
methods: {
//搜索
clickSearch() {
this.$emit("update:showSearch", !this.showSearch);
},
//刷新
clickFresh() {
this.$emit("queryTable");
},
},
};
</script>