@inflector/optima 1.0.4 → 1.0.5
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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -577,8 +577,13 @@ var OptimaTable = class _OptimaTable {
|
|
|
577
577
|
const valuesBlock = Records.map((r) => {
|
|
578
578
|
const orderedValues = columnKeys.map((key) => {
|
|
579
579
|
let v = r[key];
|
|
580
|
-
if (v == null
|
|
581
|
-
|
|
580
|
+
if (v == null) {
|
|
581
|
+
console.log(this.Columns[key].config);
|
|
582
|
+
if (typeof this.Columns[key].config.default === "function") {
|
|
583
|
+
v = this.Columns[key].config.default();
|
|
584
|
+
} else if (this.Columns[key].config.defaultNow) {
|
|
585
|
+
v = /* @__PURE__ */ new Date();
|
|
586
|
+
}
|
|
582
587
|
}
|
|
583
588
|
return escape(v);
|
|
584
589
|
});
|