a-calc 3.0.0-beta.20260129.1 → 3.0.0-beta.20260130.1
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/a-calc.versions.js +4 -3
- package/browser/index.js +2 -2
- package/calc.d.ts +17 -0
- package/cjs/index.js +2 -2
- package/es/index.js +2 -2
- package/package.json +1 -1
package/calc.d.ts
CHANGED
|
@@ -657,6 +657,23 @@ export interface GlobalConfig {
|
|
|
657
657
|
/** 快捷语法前缀(:xxx 等同于 _shortcut_prefix:xxx),默认 '!u' */
|
|
658
658
|
_shortcut_prefix?: string;
|
|
659
659
|
|
|
660
|
+
// ==================== 区域/国际化配置 ====================
|
|
661
|
+
/**
|
|
662
|
+
* 区域设置(语法糖)
|
|
663
|
+
* 同时设置 _thousands_default 和 _compact_default 为相同的预设名称
|
|
664
|
+
*
|
|
665
|
+
* @example
|
|
666
|
+
* set_config({ _locale: 'cn' })
|
|
667
|
+
* // 等价于:
|
|
668
|
+
* set_config({
|
|
669
|
+
* _thousands_default: 'cn',
|
|
670
|
+
* _compact_default: 'cn'
|
|
671
|
+
* })
|
|
672
|
+
*
|
|
673
|
+
* 支持的区域: 'en' | 'eu' | 'swiss' | 'fr' | 'cn' | 'wan' | 'indian' | 'space'
|
|
674
|
+
*/
|
|
675
|
+
_locale?: string;
|
|
676
|
+
|
|
660
677
|
// ==================== 多路取值配置 ====================
|
|
661
678
|
/** 多路取值时视为空值的值数组(全局配置,运行时选项可覆盖) */
|
|
662
679
|
_empty_values?: any[];
|