@inflector/optima 1.0.18 → 1.0.20
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 +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -522,8 +522,12 @@ var OptimaTable = class _OptimaTable {
|
|
|
522
522
|
const orderedValues = columnKeys.map((key) => {
|
|
523
523
|
let v = r[key];
|
|
524
524
|
if (v == null) {
|
|
525
|
-
if (
|
|
526
|
-
|
|
525
|
+
if (this.Columns[key].config.default !== void 0) {
|
|
526
|
+
if (typeof this.Columns[key].config.default === "function") {
|
|
527
|
+
v = this.Columns[key].config.default();
|
|
528
|
+
} else {
|
|
529
|
+
v = this.Columns[key].config.default;
|
|
530
|
+
}
|
|
527
531
|
} else if (this.Columns[key].config.defaultNow) {
|
|
528
532
|
v = /* @__PURE__ */ new Date();
|
|
529
533
|
}
|