a-calc 3.0.0-beta.20260124.2 → 3.0.0-beta.20260124.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/calc.d.ts CHANGED
@@ -458,6 +458,28 @@ export type UnitConvertOut = Record<string, Record<string, UnitConvertRule> & {
458
458
  */
459
459
  export type UnitConvertIn = Record<string, Record<string, UnitConvertRule>>;
460
460
 
461
+ /**
462
+ * 千分位预设名称(系统内置)
463
+ * - us: 美式/英式/国际标准 (1,234,567.89)
464
+ * - eu: 欧洲大陆格式 (1.234.567,89)
465
+ * - swiss: 瑞士格式 (1'234'567.89)
466
+ * - space: 空格分隔/ISO标准 (1 234 567.89)
467
+ * - fr: 法国格式 (1 234 567,89 - 使用不换行空格)
468
+ * - indian: 印度格式 (12,34,567.89)
469
+ * - wan: 万进制/东亚格式 (123,4567.89)
470
+ */
471
+ export type ThousandsPresetName = 'us' | 'eu' | 'swiss' | 'space' | 'fr' | 'indian' | 'wan';
472
+
473
+ /**
474
+ * 紧凑格式预设名称(系统内置)
475
+ * - en: 英文/国际通用 (1.23K, 1.23M, 1.23B, 1.23T)
476
+ * - cn: 中文千进制 (1.23千, 1.23百万, 1.23十亿, 1.23万亿)
477
+ * - wan: 万进制 (1.23万, 1.23亿, 1.23万亿)
478
+ * - storage: 存储单位 (1KB, 1MB, 1GB, 1TB - 1024进制)
479
+ * - indian: 印度格式 (1.23K, 1.23L, 1.23Cr - 阶梯[1000,100,100])
480
+ */
481
+ export type CompactPresetName = 'en' | 'cn' | 'wan' | 'storage' | 'indian';
482
+
461
483
  /**
462
484
  * 千分位预设配置类型
463
485
  */