init
This commit is contained in:
parent
565adbd9b7
commit
1321ccaad1
@ -1,25 +1,3 @@
|
|||||||
//скроллбар
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: transparent;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: rgba(128, 128, 128, 0.5);
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 2px solid transparent;
|
|
||||||
background-clip: padding-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: rgba(128, 128, 128, 0.7);
|
|
||||||
background-clip: padding-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
|
scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<div
|
<div
|
||||||
ref="tableContainerRef"
|
ref="tableContainerRef"
|
||||||
class="table-wrapper"
|
class="table-wrapper"
|
||||||
|
:style="{ height, width }"
|
||||||
>
|
>
|
||||||
<div :style="{ height: `${totalSize}px` }">
|
<div :style="{ height: `${totalSize}px` }">
|
||||||
<table>
|
<table>
|
||||||
@ -67,6 +68,8 @@ import { useVirtualizer } from '@tanstack/vue-virtual'
|
|||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
tableData: any[]
|
tableData: any[]
|
||||||
columns: ColumnDef<any>[]
|
columns: ColumnDef<any>[]
|
||||||
|
height: string
|
||||||
|
width: string
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const table = useVueTable({
|
const table = useVueTable({
|
||||||
@ -112,9 +115,7 @@ function measureElement(el?: Element) {
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin-top: calc(40px + 10px);
|
margin-top: calc(40px + 10px);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
overflow-y: auto;
|
overflow: auto;
|
||||||
height: 600px;
|
|
||||||
scrollbar-width: thin;
|
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UiTable :table-data="tableData" :columns="columns" />
|
<UiTable :table-data="tableData" :columns="columns" height="600px" width="600px" />
|
||||||
|
|
||||||
<UserModal v-model:model-value="open" :selected-user="selectedUser" />
|
<UserModal v-model:model-value="open" :selected-user="selectedUser" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user