zmdms-webui 2.6.0 → 2.6.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.
@@ -11,7 +11,7 @@ var formatDate = function (value, format) {
11
11
  if (format === void 0) { format = "YYYY-MM-DD"; }
12
12
  if (!value)
13
13
  return "";
14
- var date = dayjs(value);
14
+ var date = dayjs(String(value));
15
15
  return date.isValid() ? date.format(format) : String(value);
16
16
  };
17
17
  /**
@@ -329,7 +329,7 @@ function useColumns(columns, options) {
329
329
  return _column.emptyText !== undefined ? _column.emptyText : "—";
330
330
  }
331
331
  if (_column.dateFormat)
332
- return dayjs(text).format(_column.dateFormat);
332
+ return dayjs(String(text)).format(_column.dateFormat);
333
333
  if (_column.precision)
334
334
  text = exactRound(text, _column.precision);
335
335
  if (_column.thousand)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",