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