From cc945d2fefd979577a9cffb49565d55cdcd86374 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 30 Dec 2025 15:22:09 +0800 Subject: [PATCH] Add list item add button --- dashboard/src/components/shared/ListConfigItem.vue | 12 ++++++++++-- dashboard/src/i18n/locales/en-US/core/common.json | 1 + dashboard/src/i18n/locales/zh-CN/core/common.json | 3 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dashboard/src/components/shared/ListConfigItem.vue b/dashboard/src/components/shared/ListConfigItem.vue index 2def853d8..185f25616 100644 --- a/dashboard/src/components/shared/ListConfigItem.vue +++ b/dashboard/src/components/shared/ListConfigItem.vue @@ -23,7 +23,7 @@ - {{ preferSingleItem ? '添加更多' : (buttonText || t('core.common.list.modifyButton')) }} + {{ preferSingleItem ? t('core.common.list.addMore') : (buttonText || t('core.common.list.modifyButton')) }} @@ -48,6 +48,14 @@ :placeholder="t('core.common.list.inputPlaceholder')" class="flex-grow-1"> + + {{ t('core.common.list.addButton') }} + \ No newline at end of file + diff --git a/dashboard/src/i18n/locales/en-US/core/common.json b/dashboard/src/i18n/locales/en-US/core/common.json index a08ece91e..94ab30928 100644 --- a/dashboard/src/i18n/locales/en-US/core/common.json +++ b/dashboard/src/i18n/locales/en-US/core/common.json @@ -74,6 +74,7 @@ "list": { "addItemPlaceholder": "Add new item, press Enter to confirm", "addButton": "Add", + "addMore": "Add More", "batchImport": "Batch Import", "batchImportTitle": "Batch Import", "batchImportLabel": "One item per line", diff --git a/dashboard/src/i18n/locales/zh-CN/core/common.json b/dashboard/src/i18n/locales/zh-CN/core/common.json index 3dd1778ea..7f054ccdb 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/common.json +++ b/dashboard/src/i18n/locales/zh-CN/core/common.json @@ -74,6 +74,7 @@ "list": { "addItemPlaceholder": "添加新项,按回车确认添加", "addButton": "添加", + "addMore": "添加更多", "batchImport": "批量导入", "batchImportTitle": "批量导入", "batchImportLabel": "每行一个项目", @@ -94,4 +95,4 @@ "copy": "复制", "noData": "暂无数据" } -} \ No newline at end of file +}