修改tabs层级

v1.0.0
于肖磊 2024-09-19 17:32:02 +08:00
parent afe5c03441
commit fdbd754f4a
2 changed files with 5 additions and 2 deletions

View File

@ -126,7 +126,7 @@ watch(() => props.diyData, (val) => {
// class // class
const model_class = computed(() => { const model_class = computed(() => {
return (item: { show_tabs: string; key: string; id: string }) => { return (item: { show_tabs: string; key: string; id: string }) => {
return ['plug-in-table', { 'plug-in-border': item.show_tabs == '1', 'float-window': item.key == 'float-window', 'plug-in-animation': item.show_tabs != '1' && props.showModelBorder }]; return ['plug-in-table', { 'plug-in-border': item.show_tabs == '1', 'tabs-view': item.key == 'tabs', 'float-window': item.key == 'float-window', 'plug-in-animation': item.show_tabs != '1' && props.showModelBorder }];
}; };
}); });
@ -381,4 +381,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
max-width: 39rem; max-width: 39rem;
overflow: hidden; overflow: hidden;
} }
.tabs-view {
z-index: 4;
}
</style> </style>

View File

@ -31,7 +31,7 @@
</card-container> </card-container>
</el-form> </el-form>
<div class="divider-line"></div> <div class="divider-line"></div>
<common-styles :value="form.common_style" @update:value="common_styles_update" /> <common-styles :value="form.common_style" :is-floating-up="false" @update:value="common_styles_update" />
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">