提交 6543f06d authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: tabs选项卡过多右侧滚动被遮挡

上级 51f5cc47
...@@ -6,10 +6,13 @@ ...@@ -6,10 +6,13 @@
type="card" type="card"
style-type="radioGroup" style-type="radioGroup"
class="de-tabs-height" class="de-tabs-height"
:class="isEdit ? 'de-tabs-edit' : ''"
:font-color="fontColor" :font-color="fontColor"
:active-color="activeColor" :active-color="activeColor"
:border-color="borderColor" :border-color="borderColor"
:border-active-color="borderActiveColor" :border-active-color="borderActiveColor"
:addable="isEdit"
@tab-add="addTab"
@tab-click="handleClick" @tab-click="handleClick"
> >
<!-- <plugin-com ref="dataease-tabs" v-model="activeTabName" type="card" class="de-tabs" component-name="dataease-tabs" @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 { ...@@ -400,6 +403,9 @@ export default {
this.$store.dispatch('chart/setViewId', null) this.$store.dispatch('chart/setViewId', null)
this.styleChange() this.styleChange()
}, },
addTab() {
this.addNewTab(this.element.id)
},
addNewTab(componentId) { addNewTab(componentId) {
if (!componentId || componentId !== this.element.id) return if (!componentId || componentId !== this.element.id) return
......
...@@ -143,7 +143,9 @@ div:focus { ...@@ -143,7 +143,9 @@ div:focus {
height: 100vh !important; height: 100vh !important;
} }
} }
.de-tabs-edit {
padding-right: 50px !important;
}
.de-tabs { .de-tabs {
.el-tabs__header { .el-tabs__header {
margin: 0 0 0 0 !important; margin: 0 0 0 0 !important;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论