Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b257e163
authored
2025-06-28 16:59:32 +0800
by
fanguang
Committed by
lihua
2025-06-30 14:35:24 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
c85215ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
src/components/Tree/index.vue
src/views/data_meta/standard-codetable.vue
src/components/Tree/index.vue
View file @
b257e16
...
...
@@ -42,20 +42,20 @@ const checkKeys = computed(() => {
return
props
.
treeInfo
.
checkedKey
??
[]
});
const
currentNodeKey
=
computed
(()
=>
{
//
if (props.treeInfo.currentNodeKey) {
//
nextTick(() => {
//
let domItems = treeRef.value?.$el.getElementsByClassName('el-tree-node');
//
let clientHeight = treeRef.value?.$el.clientHeight;
//
for (const item of domItems) {
//
if (item.getAttribute('data-key') == props.treeInfo.currentNodeKey) {
//
if (item.offsetTop > clientHeight) {
//
item.scrollIntoView({ block: "end", inline: "nearest" });
//
}
//
break;
//
}
//
}
//
})
//
}
if
(
props
.
treeInfo
.
currentNodeKey
)
{
nextTick
(()
=>
{
let
domItems
=
treeRef
.
value
?.
$el
.
getElementsByClassName
(
'el-tree-node'
);
let
clientHeight
=
treeRef
.
value
?.
$el
.
clientHeight
;
for
(
const
item
of
domItems
)
{
if
(
item
.
getAttribute
(
'data-key'
)
==
props
.
treeInfo
.
currentNodeKey
)
{
if
(
item
.
offsetTop
>
clientHeight
)
{
item
.
scrollIntoView
({
block
:
"end"
,
inline
:
"nearest"
});
}
break
;
}
}
})
}
return
props
.
treeInfo
.
currentNodeKey
??
''
});
const
customInfo
=
computed
(()
=>
{
...
...
src/views/data_meta/standard-codetable.vue
View file @
b257e16
...
...
@@ -1565,7 +1565,9 @@ onMounted(() => {
@
tablePageChange=
"tablePageChange"
@
tableSwitchBeforeChange=
"tableSwitchBeforeChange"
/>
</div>
</div>
<Drawer
ref=
"drawerRef"
:drawerInfo=
"drawerInfo"
@
drawerBtnClick=
"drawerBtnClick"
<Drawer
ref=
"drawerRef"
class=
"table-no-scorll"
:drawerInfo=
"drawerInfo"
@
drawerBtnClick=
"drawerBtnClick"
@
radioGroupChange=
"radioGroupChange"
@
drawerTableBtnClick=
"tableBtnClick"
@
drawerTableSelectionChange=
"tableSelectionChange"
@
drawerTableToolBtnClick=
"toolBtnClick"
@
drawerTableInputChange=
"tableInputChange"
@
drawerToolBtnClick=
"toolBtnClick"
@
onUpload=
"onUpload"
...
...
@@ -1592,8 +1594,13 @@ onMounted(() => {
}
</
style
>
<
style
>
.el-scrollbar__bar.is-vertical
{
<
style
lang=
"scss"
>
.table-no-scorll
{
.el-scrollbar__bar.is-vertical
{
display
:
none
!important
;
}
}
/* .el-scrollbar__bar.is-vertical {
display: none!important;
} */
</
style
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment