feat: 优化目标详情 Drawer 性能 — TDesign 生命周期控制、Tab 感知延迟加载、滚动穿透修复
This commit is contained in:
@@ -39,8 +39,10 @@ export function App() {
|
||||
refetch: refetchDashboard,
|
||||
} = useDashboard(dashboardRefetchInterval);
|
||||
const {
|
||||
activeTab,
|
||||
closeDrawer,
|
||||
handlePageChange,
|
||||
handleTabChange,
|
||||
handleTimeChange,
|
||||
historyData,
|
||||
historyLoading,
|
||||
@@ -126,13 +128,14 @@ export function App() {
|
||||
</div>
|
||||
</Content>
|
||||
<TargetDetailDrawer
|
||||
activeTab={activeTab}
|
||||
historyData={historyData}
|
||||
historyLoading={historyLoading}
|
||||
key={selectedTarget?.id}
|
||||
metricsData={metricsData}
|
||||
metricsLoading={metricsLoading}
|
||||
onClose={closeDrawer}
|
||||
onPageChange={handlePageChange}
|
||||
onTabChange={handleTabChange}
|
||||
onTimeChange={handleTimeChange}
|
||||
target={selectedTarget}
|
||||
timeFrom={timeFrom}
|
||||
|
||||
Reference in New Issue
Block a user