feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
Deploy to GitHub Pages / deploy (push) Failing after 16s
Regression / regression (push) Failing after 15m2s

This commit is contained in:
aurora-admin
2026-09-12 14:18:41 +08:00
parent 16f365a045
commit c65a69c34e
401 changed files with 22932 additions and 140 deletions
+46
View File
@@ -0,0 +1,46 @@
import React from 'react';
import './Steps.css';
/**
* Aurora Admin Steps(React)
* 对齐 组件2/7 StepList 规范:序号、标题、描述、状态、连接线、横/纵
*
* props:
* - steps : [{ title, desc? }]
* - current : 当前步骤索引
* - errorAt : 异常步骤索引(-1 表示无)
* - direction: 'horizontal' | 'vertical'
*/
export default function Steps({ steps = [], current = 0, errorAt = -1, direction = 'horizontal' }) {
const statusOf = (i) => {
if (i === errorAt) return 'error';
if (i < current) return 'finish';
if (i === current) return 'process';
return 'wait';
};
const icon = (s) => (s === 'finish' ? '✓' : s === 'error' ? '!' : null);
return (
<div className={`aa-steps ${direction}`}>
{steps.map((s, i) => {
const st = statusOf(i);
return (
<div key={i} className={`aa-step is-${st}`}>
<div className="aa-step-icon">{icon(st) !== null ? icon(st) : i + 1}</div>
<div className="aa-step-body">
<div className="aa-step-title">{s.title}</div>
{s.desc && <div className="aa-step-desc">{s.desc}</div>}
</div>
</div>
);
})}
</div>
);
}
/*
用法示例:
import Steps from './Steps';
const steps = [{ title: '填写订单' }, { title: '审核' }, { title: '付款' }];
<Steps steps={steps} current={1} direction="horizontal" />
*/