Merge pull request #911 from dataease/pr@dev@fix_cyw_1.3

fix: 选项卡选择试图有默认选项
This commit is contained in:
fit2cloud-chenyw 2021-10-12 15:32:09 +08:00 committed by GitHub
commit 69097de5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 20 deletions

View File

@ -34,7 +34,7 @@
</el-dropdown>
</span>
<div class="de-tab-content">
<div v-if="activeTabName === item.name" class="de-tab-content">
<user-view v-if="item.content" :ref="item.name" :element="item.content" :out-style="outStyle" />
</div>
@ -75,7 +75,7 @@
center
>
<div style="width: 100%;min-height: 250px; max-height: 300px; overflow-y: auto;">
<view-select ref="viewSelect" :select-model="true" />
<view-select v-if="viewDialogVisible" ref="viewSelect" :select-model="true" />
</div>
<span slot="footer" class="dialog-footer">
@ -161,6 +161,10 @@ export default {
},
sureViewSelector() {
const nodes = this.$refs.viewSelect.getCurrentSelected()
if (!nodes || nodes.length === 0) {
this.viewDialogVisible = false
return
}
const node = nodes[0]
let component
@ -250,23 +254,8 @@ export default {
}
.de-tabs {
height: 100%;
>>>div.el-tabs__content {
height: calc(100% - 55px);
.el-tab-pane {
height: 100%;
}
}
}
/* .de-tab-i {
transition: 0.1s;
opacity: 0;
transform: translateY(100%);
}
.de-tab-drop:hover .de-tab-i {
opacity: 1;
transform: translateY(0);
} */
.de-tab-content {
width: 100%;
height: 100%;

View File

@ -43,9 +43,6 @@ html {
box-sizing: border-box;
}
#app {
//height: $contentHeight;
}
*,
*:before,
@ -151,6 +148,18 @@ div:focus {
}
}
.de-tabs {
.el-tabs__header {
margin: 0 0 0 0 !important;
}
.el-tabs__content {
height: calc(100% - 55px) !important;
.el-tab-pane {
height: 100% !important;
}
}
}
.de-search-header {
.el-tabs__header {
display: none !important;;