mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-11 09:08:14 +08:00
💄 修复 tabs 渲染异常
This commit is contained in:
@@ -183,9 +183,9 @@ function getBox(id: number): TItemBoxData {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.gro-tabs {
|
||||
@@ -194,8 +194,8 @@ function getBox(id: number): TItemBoxData {
|
||||
}
|
||||
|
||||
/* stylelint-disable-next-line selector-class-pattern */
|
||||
.v-tabs.v-slide-group--vertical {
|
||||
height: 100%;
|
||||
.gro-container :deep(.v-tabs.v-slide-group--vertical) {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.gro-window {
|
||||
@@ -210,6 +210,11 @@ function getBox(id: number): TItemBoxData {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
/* stylelint-disable-next-line selector-class-pattern */
|
||||
.gro-window :deep(.v-window__container) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.gro-pools {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
@@ -69,22 +69,21 @@ onMounted(async () => {
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
.hta-tt-box {
|
||||
width: calc(100% - 10px);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.hta-tt-tab {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
color: var(--box-text-4);
|
||||
}
|
||||
|
||||
.hta-tt-window {
|
||||
overflow: auto;
|
||||
width: calc(100% - 100px);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: calc(100vh - 130px);
|
||||
margin-left: 100px;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,19 +43,20 @@ onMounted(async () => {
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
.hta-tu-box {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding-top: 10px;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.hta-tu-tab {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
color: var(--box-text-4);
|
||||
}
|
||||
|
||||
.hta-tu-window {
|
||||
width: calc(100% - 100px);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
.hta-tu-grid {
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<div class="hta-tu-box">
|
||||
<v-tabs v-model="tab" direction="vertical" class="hta-tu-tab">
|
||||
<div class="hta-tus-box">
|
||||
<v-tabs v-model="tab" direction="vertical" class="hta-tus-tab">
|
||||
<v-tab value="9">第09层</v-tab>
|
||||
<v-tab value="10">第10层</v-tab>
|
||||
<v-tab value="11">第11层</v-tab>
|
||||
<v-tab value="12">第12层</v-tab>
|
||||
</v-tabs>
|
||||
<v-window v-model="tab" class="hta-tu-window">
|
||||
<v-window v-model="tab" class="hta-tus-window">
|
||||
<v-window-item
|
||||
v-for="selectItem in select"
|
||||
:key="selectItem.Floor"
|
||||
:value="selectItem.Floor.toString()"
|
||||
>
|
||||
<div class="hta-tu-grid">
|
||||
<div class="hta-tus-grid">
|
||||
<TibWikiAbyss v-for="item in selectItem.Ranks" :key="item.Item" :model-value="item" />
|
||||
</div>
|
||||
</v-window-item>
|
||||
@@ -42,23 +42,25 @@ onMounted(async () => {
|
||||
});
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
.hta-tu-box {
|
||||
.hta-tus-box {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding-top: 10px;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.hta-tu-tab {
|
||||
position: absolute;
|
||||
.hta-tus-tab {
|
||||
width: 100px;
|
||||
height: 100%;
|
||||
color: var(--box-text-4);
|
||||
}
|
||||
|
||||
.hta-tu-window {
|
||||
width: calc(100% - 100px);
|
||||
.hta-tus-window {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
.hta-tu-grid {
|
||||
.hta-tus-grid {
|
||||
display: grid;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user