This commit is contained in:
zwgczx committed 2026-02-27 18:25:19 +08:00
1 parent 9849801e46
commit e97707ac59
6 files changed
+153 -59

No files matched your search

+11 -2
View File
@@ -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>