update 一系列功能

This commit is contained in:
2021-04-27 14:13:28 +08:00
parent 62e32bb8fd
commit 2945ecb3b8
16 changed files with 230 additions and 35 deletions

View File

@@ -122,6 +122,10 @@ export default {
this.onUpdateSwiper()
},
onUnexpandAll() {
this.expandedKeys = []
},
onSearch(value) {
const expandedKeys = this.list
.map(p => {
@@ -136,6 +140,10 @@ export default {
this.expandedKeys = expandedKeys
this.autoExpandParent = true
this.$nextTick(() => {
this.onUpdateSwiper()
})
},
onSelect(selectedKeys) {
@@ -238,6 +246,11 @@ export default {
<a-input-search allowClear={true} placeholder="请输入检索关键字" onSearch={this.onSearch} />
</div>
</a-layout-header>
<div class="yo-tree-layout--bar">
<a-tooltip placement="bottom" title="折叠全部">
<a-icon type="switcher" onClick={this.onUnexpandAll} />
</a-tooltip>
</div>
<div class="swiper-container" ref="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">