style table ลาออก

This commit is contained in:
STW_TTTY\stwtt 2024-04-30 10:04:00 +07:00
parent b1a5a423b7
commit 363fbd578a

View file

@ -271,4 +271,42 @@ const clickBack = () => {
</div>
</div>
</template>
<style></style>
<style scoped lang="scss">
.custom-table2 {
max-height: 64vh;
.q-table tr:nth-child(odd) td {
background: white;
}
.q-table tr:nth-child(even) td {
background: #f8f8f8;
}
.q-table thead tr {
background: #ecebeb;
}
.q-table thead tr th {
position: sticky;
}
.q-table td:nth-of-type(2) {
z-index: 3 !important;
}
.q-table th:nth-of-type(2),
.q-table td:nth-of-type(2) {
position: sticky;
left: 0;
z-index: 1;
}
.q-table thead tr:last-child th {
top: 48px;
}
.q-table thead tr:first-child th {
top: 0;
}
}
</style>