diff --git a/src/App.jsx b/src/App.jsx index fce2a15..53c9a07 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -40,6 +40,8 @@ function App() { const [xRange, setXRange] = useState({ min: undefined, max: undefined }); const [maxStep, setMaxStep] = useState(0); const [sidebarVisible, setSidebarVisible] = useState(true); + const [alignSteps, setAlignSteps] = useState(false); + const [stepKeyword, setStepKeyword] = useState('step:'); const handleFilesUploaded = useCallback((files) => { const filesWithDefaults = files.map(file => ({ @@ -340,12 +342,44 @@ function App() {

📊 图表显示

上传文件后自动展示所有已配置的指标图表

- + +
+

步骤对齐

+
+ + {alignSteps && ( +
+ + setStepKeyword(e.target.value)} + className="w-full px-2 py-1 text-xs border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 focus:outline-none" + /> +
+ )} +
+
+

基准线设置

-