From 0afa224cf0443d1c66ddc711d1b1d0b8ddfd8922 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 22 Nov 2023 22:02:13 +0800 Subject: [PATCH] feat: added install by version --- src/i18n/lang/en/views/env.ts | 1 + src/i18n/lang/zh/views/env.ts | 1 + src/interfaces/i18n/views/env.d.ts | 2 +- .../deps/components/form/InstallForm.vue | 56 ++++++++++++++----- .../deps/components/lang/DependencyLang.vue | 22 ++------ 5 files changed, 49 insertions(+), 33 deletions(-) diff --git a/src/i18n/lang/en/views/env.ts b/src/i18n/lang/en/views/env.ts index 2321635951f95..2f8259da12144 100644 --- a/src/i18n/lang/en/views/env.ts +++ b/src/i18n/lang/en/views/env.ts @@ -28,6 +28,7 @@ const env: LViewsEnv = { selectedNodes: 'Selected nodes', upgrade: 'Upgrade', mode: 'Mode', + version: 'Version', }, }, task: { diff --git a/src/i18n/lang/zh/views/env.ts b/src/i18n/lang/zh/views/env.ts index 9b03508026e63..7f969c05ab57d 100644 --- a/src/i18n/lang/zh/views/env.ts +++ b/src/i18n/lang/zh/views/env.ts @@ -28,6 +28,7 @@ const env: LViewsEnv = { selectedNodes: '已选节点', upgrade: '是否升级', mode: '模式', + version: '版本', }, }, task: { diff --git a/src/interfaces/i18n/views/env.d.ts b/src/interfaces/i18n/views/env.d.ts index 25f7cff99ed20..a54a05e045a9a 100644 --- a/src/interfaces/i18n/views/env.d.ts +++ b/src/interfaces/i18n/views/env.d.ts @@ -8,7 +8,6 @@ interface LViewsEnv { enabled: string; cmd: string; proxy: string; - version: string; }; lang: { python: { @@ -29,6 +28,7 @@ interface LViewsEnv { selectedNodes: string; upgrade: string; mode: string; + version: string; }; }; task: { diff --git a/src/views/deps/components/form/InstallForm.vue b/src/views/deps/components/form/InstallForm.vue index 39d835eacc762..f3a5ce0017f8d 100644 --- a/src/views/deps/components/form/InstallForm.vue +++ b/src/views/deps/components/form/InstallForm.vue @@ -24,35 +24,48 @@ - - - - - - - + + + + +