fix(generate): 确保保存/加载配置覆盖所有生成器参数,并修复参数被意外清空的问题

* feat: highlight selected SQL matches

* fix(core): detect column extra changes (auto_increment, on_update) in table structure SQL generation

- Add has_column_extra_change check to build_column_sql skip condition
- Add is_column_extra_empty to handle None/Some(false)/empty ColumnExtra
- Fix false positives when extra is parsed but no effective change

* feat(generate): fix date range persistence, add i18n for data generation

* fix:Remove invalid references

* fix(generate): ensure config save/load covers all generator params

- Remove auto-reset watch in GeneratorParamsPanel that cleared params
  when loading a profile with different generatorKey
- Extend defaultGeneratorParams() to provide explicit defaults for all
  35+ generators (full_name, phone, email, barcode, url, file_path,
  foreign_key, image, regex, product_name, etc.) so profiles persist
  and restore correctly through JSON serialize/deserialize round-trip

---------

Co-authored-by: t8y2 <1156263951@qq.com>
This commit is contained in:
dbin0123andt8y2 authored and GitHub committed 2026-06-17 00:21:35 +08:00
1 parent 0830e03f89
commit bc91fbdfa1
11 files changed
+1167 -53

No files matched your search

+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1825,6 +1825,21 @@
file_extension: "File Extension",
url: "URL",
hostname: "Hostname",
id_number: "ID Number",
},
idTypes: {
title: "ID Type",
customPattern: "Custom Pattern",
customPatternPlaceholder: "e.g. ([A-Z]{2})-([0-9]{8})",
customPatternHint: "Supports simple patterns like [A-Z] letters, [0-9] digits, {n} repetitions, hyphens",
id_card: "Chinese ID Card",
passport: "Passport",
hk_macau_pass: "HK/Macau Permit",
taiwan_pass: "Taiwan Permit",
uscc: "Unified Social Credit Code",
bank_card: "Bank Card",
drivers_license: "Driver's License",
custom: "Custom",
},
},
tableToolbox: {
+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1563,6 +1563,21 @@
file_extension: "File Extension",
url: "URL",
hostname: "Hostname",
id_number: "Número de documento",
},
idTypes: {
title: "Tipo de documento",
customPattern: "Patrón personalizado",
customPatternPlaceholder: "p. ej. ([A-Z]{2})-([0-9]{8})",
customPatternHint: "Admite patrones simples como [A-Z] letras, [0-9] dígitos, {n} repeticiones, guiones",
id_card: "DNI chino",
passport: "Pasaporte",
hk_macau_pass: "Permiso HK/Macao",
taiwan_pass: "Permiso Taiwán",
uscc: "Código social unificado",
bank_card: "Tarjeta bancaria",
drivers_license: "Carnet de conducir",
custom: "Personalizado",
},
},
tableToolbox: {
+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1686,6 +1686,21 @@
file_extension: "File Extension",
url: "URL",
hostname: "Hostname",
id_number: "Numero documento",
},
idTypes: {
title: "Tipo documento",
customPattern: "Pattern personalizzato",
customPatternPlaceholder: "es. ([A-Z]{2})-([0-9]{8})",
customPatternHint: "Supporta pattern semplici come [A-Z] lettere, [0-9] cifre, {n} ripetizioni, trattini",
id_card: "Carta d'identità cinese",
passport: "Passaporto",
hk_macau_pass: "Permesso HK/Macao",
taiwan_pass: "Permesso Taiwan",
uscc: "Codice sociale unificato",
bank_card: "Carta bancaria",
drivers_license: "Patente di guida",
custom: "Personalizzato",
},
},
tableToolbox: {
+15
View File
@@ -1815,6 +1815,21 @@ export default {
file_extension: "ファイル拡張子",
url: "URL",
hostname: "ホスト名",
id_number: "証明書番号",
},
idTypes: {
title: "証明書の種類",
customPattern: "カスタムパターン",
customPatternPlaceholder: "例: ([A-Z]{2})-([0-9]{8})",
customPatternHint: "[A-Z] 英字、[0-9] 数字、{n} 繰り返し、ハイフンなどの簡単なパターンに対応",
id_card: "中国身分証",
passport: "パスポート",
hk_macau_pass: "港澳通行証",
taiwan_pass: "台湾通行証",
uscc: "統一社会信用コード",
bank_card: "銀行カード",
drivers_license: "運転免許証",
custom: "カスタム",
},
},
tableToolbox: {
+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1697,6 +1697,21 @@
file_extension: "File Extension",
url: "URL",
hostname: "Hostname",
id_number: "Número de documento",
},
idTypes: {
title: "Tipo de documento",
customPattern: "Padrão personalizado",
customPatternPlaceholder: "ex.: ([A-Z]{2})-([0-9]{8})",
customPatternHint: "Suporta padrões simples como [A-Z] letras, [0-9] dígitos, {n} repetições, hífens",
id_card: "CPF chinês",
passport: "Passaporte",
hk_macau_pass: "Permissão HK/Macau",
taiwan_pass: "Permissão Taiwan",
uscc: "Código social unificado",
bank_card: "Cartão bancário",
drivers_license: "Carteira de motorista",
custom: "Personalizado",
},
},
tableToolbox: {
+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1824,6 +1824,21 @@
file_extension: "文件扩展名",
url: "网址",
hostname: "主机名",
id_number: "证件号",
},
idTypes: {
title: "证件类型",
customPattern: "自定义模式",
customPatternPlaceholder: "如 ([A-Z]{2})-([0-9]{8})",
customPatternHint: "支持 [A-Z] 字母、[0-9] 数字、{n} 重复、连字符等简单模式",
id_card: "身份证号",
passport: "护照号",
hk_macau_pass: "港澳通行证",
taiwan_pass: "台湾通行证",
uscc: "统一社会信用代码",
bank_card: "银行卡号",
drivers_license: "驾驶证号",
custom: "自定义",
},
},
tableToolbox: {
+16 -1
View File
@@ -1,4 +1,4 @@
export default {
export default {
app: {
name: "DBX",
},
@@ -1674,6 +1674,21 @@
file_extension: "檔案副檔名",
url: "網址",
hostname: "主機名稱",
id_number: "證件號",
},
idTypes: {
title: "證件類型",
customPattern: "自訂模式",
customPatternPlaceholder: "如 ([A-Z]{2})-([0-9]{8})",
customPatternHint: "支援 [A-Z] 字母、[0-9] 數字、{n} 重複、連字號等簡單模式",
id_card: "身份證號",
passport: "護照號",
hk_macau_pass: "港澳通行證",
taiwan_pass: "台灣通行證",
uscc: "統一社會信用代碼",
bank_card: "銀行卡號",
drivers_license: "駕駛證號",
custom: "自訂",
},
},
tableToolbox: {