Skip to content

Commit

Permalink
fix: [virtual-scroll-box] fixed the wrong class and horizontal scroll…
Browse files Browse the repository at this point in the history
… bar always showing
  • Loading branch information
zzcr committed Nov 5, 2024
1 parent ab8f874 commit f1cae9f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
width="600"
height="400"
row-height="36"
scrollbar-size="6"
scrollbar-size="8"
:tree-op="treeOp"
></tiny-virtual-tree>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/virtual-tree/basic-usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
width="600"
height="400"
row-height="36"
scrollbar-size="6"
scrollbar-size="8"
:tree-op="treeOp"
></tiny-virtual-tree>
</div>
Expand Down
8 changes: 4 additions & 4 deletions packages/vue/src/virtual-scroll-box/src/pc.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="aui-virtual-scroll-box" :style="state.ctx.boxStyle" @scroll="onScroll">
<div class="aui-virtual-scroll-box__x-axis" :style="state.ctx.xAxisStyle"></div>
<div class="aui-virtual-scroll-box__y-axis" :style="state.ctx.yAxisStyle"></div>
<div class="aui-virtual-scroll-box__view" :style="state.ctx.viewStyle">
<div class="tiny-virtual-scroll-box" :style="state.ctx.boxStyle" @scroll="onScroll">
<div class="tiny-virtual-scroll-box__x-axis" :style="state.ctx.xAxisStyle"></div>
<div class="tiny-virtual-scroll-box__y-axis" :style="state.ctx.yAxisStyle"></div>
<div class="tiny-virtual-scroll-box__view" :style="state.ctx.viewStyle">
<slot :params="state.slotParams"></slot>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions packages/vue/src/virtual-tree/src/pc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<aui-virtual-scroll-box ref="vsBox" class="aui-virtual-tree" v-bind="state.vsBoxOptions" @change="onVsBoxChange">
<aui-tree
<tiny-virtual-scroll-box ref="vsBox" class="tiny-virtual-tree" v-bind="state.vsBoxOptions" @change="onVsBoxChange">
<tiny-tree
ref="tree"
v-bind="state.treeOptions"
v-on="state.treeEvents"
Expand Down Expand Up @@ -32,8 +32,8 @@
<template v-if="slots.operation" #operation="params">
<slot name="operation" v-bind="params"></slot>
</template>
</aui-tree>
</aui-virtual-scroll-box>
</tiny-tree>
</tiny-virtual-scroll-box>
</template>

<script lang="ts">
Expand All @@ -46,8 +46,8 @@ export default defineComponent({
inheritAttrs: false,
props: [...props, 'width', 'height', 'rowHeight', 'scrollbarSize', 'treeOp'],
components: {
AuiVirtualScrollBox: VirtualScrollBox,
AuiTree: Tree
TinyVirtualScrollBox: VirtualScrollBox,
TinyTree: Tree
},
setup(props, context): any {
return setup({ props, context, renderless, api })
Expand Down

0 comments on commit f1cae9f

Please sign in to comment.