Skip to content

Commit

Permalink
修复报告的上下滚动的 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
VillanCh committed Aug 16, 2022
1 parent b793d07 commit b79d8cc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/renderer/src/main/src/pages/assetViewer/ReportViewerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {onRemoveToolFC} from "../../utils/deleteTool"

import "./ReportViewerPage.scss"

export interface ReportViewerPageProp {}
export interface ReportViewerPageProp {
}

export const ReportViewerPage: React.FC<ReportViewerPageProp> = (props) => {
const [_, setReport, getReport] = useGetState<Report>()
Expand All @@ -24,11 +25,11 @@ export const ReportViewerPage: React.FC<ReportViewerPageProp> = (props) => {
<>
<ResizeBox
isVer={false}
firstNode={<ReportList onClick={setReport} selectedId={getReport()?.Id} />}
firstNode={<ReportList onClick={setReport} selectedId={getReport()?.Id}/>}
firstMinSize={"320px"}
firstRatio={"320px"}
secondNode={(() => {
return <ReportViewer id={getReport()?.Id || 0} />
return <ReportViewer id={getReport()?.Id || 0}/>
})()}
/>
</>
Expand Down Expand Up @@ -129,11 +130,12 @@ export const ReportList: React.FC<ReportListProp> = (props) => {
size={"small"}
loading={loading}
bordered={false}
bodyStyle={{overflowY: "auto"}}
extra={
<Space>
<Tooltip title={<>{`点击列表中的报告检查内容`}</>}>
<a href='#'>
<QuestionOutlined />
<QuestionOutlined/>
</a>
</Tooltip>
<a
Expand All @@ -142,7 +144,7 @@ export const ReportList: React.FC<ReportListProp> = (props) => {
update(1)
}}
>
<ReloadOutlined />
<ReloadOutlined/>
</a>
<Popconfirm
title={
Expand All @@ -153,7 +155,7 @@ export const ReportList: React.FC<ReportListProp> = (props) => {
onConfirm={onRemove}
>
{/* @ts-ignore */}
<DeleteOutlined className='icon-color' />
<DeleteOutlined className='icon-color'/>
</Popconfirm>
</Space>
}
Expand Down

0 comments on commit b79d8cc

Please sign in to comment.