feat: 统一研究模块表格布局与详情交互

This commit is contained in:
yuxuanhui
2026-09-09 09:29:30 +08:00
parent f6c2dcead8
commit 20645d6d17
19 changed files with 1693 additions and 1243 deletions
+4 -3
View File
@@ -318,7 +318,8 @@ export function BacktestPage({
}}
/>
)}
<div className="backtest-spacer" />
</div>
<div className="backtest-toolbar">
<Button
type="tertiary"
onClick={() => {
@@ -438,7 +439,7 @@ export function BacktestPage({
<SideSheet
title={preview ? "确认回测输入" : "准备候选"}
visible={editor && drawerVisible}
width={Math.min(880, window.innerWidth - chatOffset)}
width={`min(60vw, calc(100vw - ${chatOffset}px))`}
style={{ right: chatOffset }}
maskStyle={{ right: chatOffset }}
onCancel={() => setEditor(false)}
@@ -730,7 +731,7 @@ export function BacktestPage({
<SideSheet
title={run?.name || "回测详情"}
visible={!!runId && drawerVisible}
width={Math.min(1120, window.innerWidth - chatOffset)}
width={`min(60vw, calc(100vw - ${chatOffset}px))`}
style={{ right: chatOffset }}
maskStyle={{ right: chatOffset }}
onCancel={() => {
+6 -1
View File
@@ -7,6 +7,7 @@
gap: 12px;
}
.backtest-toolbar {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
@@ -65,8 +66,12 @@
margin: 0;
}
.backtest-page-view {
height: 100%;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
min-width: 0;
overflow: hidden;
}
.backtest-tool-summary {
display: flex;