mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由
This commit is contained in:
@@ -74,10 +74,24 @@ const height = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NScrollbar ref="scrollerInstRef" :style="'height:' + height" :container="scrollContainer" :content="scrollContent" trigger="none">
|
||||
<VVirtualList ref="vlInstRef" :items="items" :item-size="defaultSize" item-resizable key-field="id" :show-scrollbar="false" @scroll="syncVLScroller">
|
||||
<NScrollbar
|
||||
ref="scrollerInstRef"
|
||||
:style="'height:' + height"
|
||||
:container="scrollContainer"
|
||||
:content="scrollContent"
|
||||
trigger="none"
|
||||
>
|
||||
<VVirtualList
|
||||
ref="vlInstRef"
|
||||
:items="items"
|
||||
:item-size="defaultSize"
|
||||
item-resizable
|
||||
key-field="id"
|
||||
:show-scrollbar="false"
|
||||
@scroll="syncVLScroller"
|
||||
>
|
||||
<template #default="{ item }">
|
||||
<slot :item="item"> </slot>
|
||||
<slot :item="item" />
|
||||
</template>
|
||||
</VVirtualList>
|
||||
</NScrollbar>
|
||||
|
||||
Reference in New Issue
Block a user