From a2e07a9115657f28860c1c757301ee106a5cde64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Sat, 6 Jun 2026 20:04:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=20defaultNullRate=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 GenerateOptions 中的 defaultNullRate 相关 props 和 UI - 移除 messages.json 中的 testDataGenerator_defaultNullRate 翻译 key --- public/_locales/zh_CN/messages.json | 2 +- .../components/GenerateOptions.tsx | 23 ------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 7d6f8ca..95682c4 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -1016,7 +1016,7 @@ "description": "Translation key: testDataGenerator_generate" }, "testDataGenerator_cancel": { - "message": "取消生成", + "message": "取消", "description": "Translation key: testDataGenerator_cancel" }, "testDataGenerator_progress": { diff --git a/src/pages/TestDataGenerator/components/GenerateOptions.tsx b/src/pages/TestDataGenerator/components/GenerateOptions.tsx index aa8bfef..c197afc 100644 --- a/src/pages/TestDataGenerator/components/GenerateOptions.tsx +++ b/src/pages/TestDataGenerator/components/GenerateOptions.tsx @@ -11,8 +11,6 @@ interface GenerateOptionsProps { onCountChange: (count: number) => void; format: 'json' | 'csv'; onFormatChange: (format: 'json' | 'csv') => void; - defaultNullRate: number; - onDefaultNullRateChange: (rate: number) => void; } const COUNT_PRESETS = [50, 100, 1000, 5000, 10000]; @@ -27,8 +25,6 @@ export default function GenerateOptions({ onCountChange, format, onFormatChange, - defaultNullRate, - onDefaultNullRateChange, }: GenerateOptionsProps) { const { t } = useI18n('testDataGenerator'); @@ -90,25 +86,6 @@ export default function GenerateOptions({ ))} - - {/* 默认空值率 */} -
-
- - {defaultNullRate}% -
- onDefaultNullRateChange(Number(e.target.value))} - min={0} - max={50} - step={5} - className="h-9 w-full" - /> -
); }