전략빌더 빠른 백테스팅 툴바에 전략 선택 드롭다운 추가
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1097,6 +1097,23 @@ export default function StrategyEditorPage({ theme, onNavigateToBacktest }: Prop
|
|||||||
<option key={tf.value} value={tf.value}>{tf.label}</option>
|
<option key={tf.value} value={tf.value}>{tf.label}</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
<select
|
||||||
|
className="se-qr-select se-qr-select--strategy"
|
||||||
|
value={selectedId ?? ''}
|
||||||
|
onChange={e => {
|
||||||
|
const id = e.target.value ? Number(e.target.value) : null;
|
||||||
|
if (!id) return;
|
||||||
|
const s = strategies.find(st => st.id === id);
|
||||||
|
if (s) handleSelectStrategy(s);
|
||||||
|
}}
|
||||||
|
disabled={qbLoading}
|
||||||
|
title="전략 선택"
|
||||||
|
>
|
||||||
|
<option value="">전략 선택</option>
|
||||||
|
{strategies.map(s => (
|
||||||
|
<option key={s.id} value={s.id}>{s.name}</option>
|
||||||
|
))}
|
||||||
|
</select>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`se-qr-run-btn${qbLoading ? ' se-qr-run-btn--loading' : ''}`}
|
className={`se-qr-run-btn${qbLoading ? ' se-qr-run-btn--loading' : ''}`}
|
||||||
|
|||||||
@@ -110,6 +110,7 @@
|
|||||||
}
|
}
|
||||||
.se-qr-select:focus { border-color: var(--se-accent, #3d9be9); }
|
.se-qr-select:focus { border-color: var(--se-accent, #3d9be9); }
|
||||||
.se-qr-select:disabled { opacity: 0.45; cursor: not-allowed; }
|
.se-qr-select:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||||
|
.se-qr-select--strategy { flex: 1; min-width: 80px; max-width: 180px; }
|
||||||
|
|
||||||
.se-qr-run-btn {
|
.se-qr-run-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user