Documentation
CreateTrainStationScreen
Create 列车站台界面(schedule_2 STATION 200×127 / assemble 组装 200×178 双模式):站名与车名编辑行、新建/拆解/丢下时刻表按钮、停靠文字框与对话泡;组装模式含图标选择条与开始组装/退出按钮。
中央车站
午夜特快
import { CreateTrainStationScreen } from "./index";
/**
* CreateTrainStationScreen 预览用例:列车停靠态(车名 + 文字框 + 对话泡)。
*/
export function CreateTrainStationScreenDemo() {
return (
<CreateTrainStationScreen
mode="idle"
stationName="中央车站"
train={{ name: "午夜特快" }}
/>
);
}
Install
$pnpm add @tennantite/createnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/create/src/create-train-station-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.