@gopowerteam/table-render 0.0.111 → 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
@@ -33356,6 +33356,10 @@ function $r(q) {
33356
33356
  const a = d.toString().split(".");
33357
33357
  return a[0] = a[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), a.join(".");
33358
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;
33359
33363
  const a = lt(Number(d));
33360
33364
  return q != null && q.thousands ? s(a) : a;
33361
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.111",
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.62",
57
+ "@gopowerteam/form-render": "^0.0.63",
58
58
  "@gopowerteam/modal-render": "^0.0.41",
59
59
  "vue": "^3.0.0"
60
60
  },