From b26d5cd7d5b2485844477dfeabaab4e1c9e6b201 Mon Sep 17 00:00:00 2001 From: Awuqing <3184394176@qq.com> Date: Sun, 19 Apr 2026 16:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD:=20Wizard=20Step2=20?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=8F=82=E6=95=B0=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/nodes/wizard/Step2DeployOptions.tsx | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 web/src/pages/nodes/wizard/Step2DeployOptions.tsx diff --git a/web/src/pages/nodes/wizard/Step2DeployOptions.tsx b/web/src/pages/nodes/wizard/Step2DeployOptions.tsx new file mode 100644 index 0000000..aaf5952 --- /dev/null +++ b/web/src/pages/nodes/wizard/Step2DeployOptions.tsx @@ -0,0 +1,90 @@ +import React from 'react' +import { Form, Radio, Select, Typography } from '@arco-design/web-react' +import type { InstallMode, InstallArch, InstallSource } from '../../../types/nodes' + +const { Text } = Typography + +export interface DeployOptions { + mode: InstallMode + arch: InstallArch + agentVersion: string + downloadSrc: InstallSource + ttlSeconds: number +} + +interface Props { + masterVersion: string + value: DeployOptions + onChange: (v: DeployOptions) => void +} + +export function Step2DeployOptions({ masterVersion, value, onChange }: Props) { + const update = (patch: Partial) => onChange({ ...value, ...patch }) + + return ( +
+ + update({ mode: v as InstallMode })} + options={[ + { label: 'systemd(推荐)', value: 'systemd' }, + { label: 'Docker', value: 'docker' }, + { label: '前台运行(调试)', value: 'foreground' }, + ]} + /> + + + + update({ agentVersion: v })} + options={[ + { label: `${masterVersion}(跟随 Master,推荐)`, value: masterVersion }, + ]} + /> + + + +