forked from github/dataease
Merge pull request #2183 from dataease/pr@dev@fix_tabs_scroll
fix: tabs选项卡过多右侧滚动被遮挡
This commit is contained in:
commit
fd348d7d22
@ -6,10 +6,13 @@
|
||||
type="card"
|
||||
style-type="radioGroup"
|
||||
class="de-tabs-height"
|
||||
:class="isEdit ? 'de-tabs-edit' : ''"
|
||||
:font-color="fontColor"
|
||||
:active-color="activeColor"
|
||||
:border-color="borderColor"
|
||||
:border-active-color="borderActiveColor"
|
||||
:addable="isEdit"
|
||||
@tab-add="addTab"
|
||||
@tab-click="handleClick"
|
||||
>
|
||||
<!-- <plugin-com ref="dataease-tabs" v-model="activeTabName" type="card" class="de-tabs" component-name="dataease-tabs" @tab-click="handleClick"> -->
|
||||
@ -400,6 +403,9 @@ export default {
|
||||
this.$store.dispatch('chart/setViewId', null)
|
||||
this.styleChange()
|
||||
},
|
||||
addTab() {
|
||||
this.addNewTab(this.element.id)
|
||||
},
|
||||
|
||||
addNewTab(componentId) {
|
||||
if (!componentId || componentId !== this.element.id) return
|
||||
|
@ -143,7 +143,9 @@ div:focus {
|
||||
height: 100vh !important;
|
||||
}
|
||||
}
|
||||
|
||||
.de-tabs-edit {
|
||||
padding-right: 50px !important;
|
||||
}
|
||||
.de-tabs {
|
||||
.el-tabs__header {
|
||||
margin: 0 0 0 0 !important;
|
||||
|
Loading…
Reference in New Issue
Block a user