@gopowerteam/table-render 0.0.110 → 0.0.112
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.
|
@@ -8,6 +8,8 @@ export interface CurrencyColumnOptions {
|
|
|
8
8
|
inputUnit?: CurrencyUnit;
|
|
9
9
|
outputUnit?: CurrencyUnit;
|
|
10
10
|
thousands?: boolean;
|
|
11
|
+
zeroString?: string;
|
|
12
|
+
nullString?: string;
|
|
11
13
|
}
|
|
12
14
|
export declare function renderCurrencyColumn<T = DataRecord>(options?: CurrencyColumnOptions): import('../../interfaces').TableColumnRenderResult<T>;
|
|
13
15
|
export {};
|
package/dist/es/index.mjs
CHANGED
|
@@ -33292,10 +33292,7 @@ function xe(q, lt, s) {
|
|
|
33292
33292
|
return lt.$type = q, lt.$disableColumnMode = s == null ? void 0 : s.disableColumnMode, lt.$disableViewMode = s == null ? void 0 : s.disableViewMode, lt;
|
|
33293
33293
|
}
|
|
33294
33294
|
function Se(q, lt) {
|
|
33295
|
-
|
|
33296
|
-
lt.index.split(".").reduce((s, C) => s == null ? void 0 : s[C], q);
|
|
33297
|
-
else
|
|
33298
|
-
return [lt.key].reduce((s, C) => s == null ? void 0 : s[C], q);
|
|
33295
|
+
return lt.index ? lt.index.split(".").reduce((s, C) => s == null ? void 0 : s[C], q) : [lt.key].reduce((s, C) => s == null ? void 0 : s[C], q);
|
|
33299
33296
|
}
|
|
33300
33297
|
function We(q) {
|
|
33301
33298
|
return !!q && (typeof q == "object" || typeof q == "function") && typeof q.then == "function";
|
|
@@ -33359,6 +33356,10 @@ function $r(q) {
|
|
|
33359
33356
|
const a = d.toString().split(".");
|
|
33360
33357
|
return a[0] = a[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), a.join(".");
|
|
33361
33358
|
}, C = (d) => {
|
|
33359
|
+
if ((q == null ? void 0 : q.zeroString) !== void 0 && Number(d) === 0)
|
|
33360
|
+
return q == null ? void 0 : q.zeroString;
|
|
33361
|
+
if ((q == null ? void 0 : q.nullString) !== void 0 && isNaN(Number(d)))
|
|
33362
|
+
return q == null ? void 0 : q.nullString;
|
|
33362
33363
|
const a = lt(Number(d));
|
|
33363
33364
|
return q != null && q.thousands ? s(a) : a;
|
|
33364
33365
|
};
|
|
@@ -8,6 +8,8 @@ export interface CurrencyColumnOptions {
|
|
|
8
8
|
inputUnit?: CurrencyUnit;
|
|
9
9
|
outputUnit?: CurrencyUnit;
|
|
10
10
|
thousands?: boolean;
|
|
11
|
+
zeroString?: string;
|
|
12
|
+
nullString?: string;
|
|
11
13
|
}
|
|
12
14
|
export declare function renderCurrencyColumn<T = DataRecord>(options?: CurrencyColumnOptions): import('../../interfaces').TableColumnRenderResult<T>;
|
|
13
15
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gopowerteam/table-render",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.112",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "zhuchentong",
|
|
7
7
|
"email": "2037630@gmail.com"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@arco-design/web-vue": "^2.52.1",
|
|
57
|
-
"@gopowerteam/form-render": "^0.0.
|
|
57
|
+
"@gopowerteam/form-render": "^0.0.63",
|
|
58
58
|
"@gopowerteam/modal-render": "^0.0.41",
|
|
59
59
|
"vue": "^3.0.0"
|
|
60
60
|
},
|