mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-22 21:46:23 +08:00
fix: 修复滚动条的bug
This commit is contained in:
parent
66bcf066e0
commit
9a1e23c661
@ -24,11 +24,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="content">
|
<aside class="content">
|
||||||
|
<template v-if="xScroll">
|
||||||
<n-scrollbar x-scrollable>
|
<n-scrollbar x-scrollable>
|
||||||
<n-scrollbar>
|
<n-scrollbar>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</n-scrollbar>
|
</n-scrollbar>
|
||||||
</n-scrollbar>
|
</n-scrollbar>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-else>
|
||||||
|
<n-scrollbar>
|
||||||
|
<slot></slot>
|
||||||
|
</n-scrollbar>
|
||||||
|
</template>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div v-if="showBottom" class="bottom go-mt-0">
|
<div v-if="showBottom" class="bottom go-mt-0">
|
||||||
@ -69,6 +77,11 @@ defineProps({
|
|||||||
depth: {
|
depth: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1
|
default: 1
|
||||||
|
},
|
||||||
|
// x 轴滚动
|
||||||
|
xScroll: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ const clickItemHandle = (key: string) => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/* 此高度与 ContentBox 组件关联*/
|
/* 此高度与 ContentBox 组件关联*/
|
||||||
$topHeight: 36px;
|
$topHeight: 40px;
|
||||||
$menuWidth: 65px;
|
$menuWidth: 65px;
|
||||||
@include go('chart-common') {
|
@include go('chart-common') {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -62,8 +62,8 @@ import {
|
|||||||
$width: 330px;
|
$width: 330px;
|
||||||
/* 列表的宽度 */
|
/* 列表的宽度 */
|
||||||
$widthScoped: 65px;
|
$widthScoped: 65px;
|
||||||
/* 此高度与 ContentBox 组件关联*/
|
/* 此高度与 ContentBox 组件关联 */
|
||||||
$topHeight: 36px;
|
$topHeight: 40px;
|
||||||
|
|
||||||
@include go(content-charts) {
|
@include go(content-charts) {
|
||||||
width: $width;
|
width: $width;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
:showTop="false"
|
:showTop="false"
|
||||||
:showBottom="true"
|
:showBottom="true"
|
||||||
:depth="1"
|
:depth="1"
|
||||||
|
:xScroll="true"
|
||||||
@drop="handleDrop"
|
@drop="handleDrop"
|
||||||
@dragover="handleDragOver"
|
@dragover="handleDragOver"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user