fix
This commit is contained in:
1 parent
9849801e46
commit
e97707ac59
6 files changed
+153
-59
No files matched your search
@@ -384,6 +384,11 @@ const processCellFromClipboard = (params:any) => {
|
||||
}
|
||||
return params.value;
|
||||
};
|
||||
|
||||
const scrollToGridSection = () => {
|
||||
const target = gridSectionRef.value || agGridRef.value
|
||||
target?.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -409,7 +414,12 @@ const processCellFromClipboard = (params:any) => {
|
||||
:style="{ height: `${agGridHeight}px` }"
|
||||
>
|
||||
<div class="flex items-center justify-between border-b px-4 py-3">
|
||||
<h3 class="text-sm font-semibold text-foreground">项目明细</h3>
|
||||
<h3
|
||||
class="text-sm font-semibold text-foreground cursor-pointer select-none transition-colors hover:text-primary"
|
||||
@click="scrollToGridSection"
|
||||
>
|
||||
项目明细
|
||||
</h3>
|
||||
<div class="text-xs text-muted-foreground">导入导出</div>
|
||||
</div>
|
||||
|
||||
@@ -440,4 +450,3 @@ const processCellFromClipboard = (params:any) => {
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user