yxuse 3.0.52 → 3.0.53
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/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -1
- package/lib/index.es6.js +7 -1
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
package/lib/index.es6.js
CHANGED
|
@@ -20491,7 +20491,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
20491
20491
|
startSort();
|
|
20492
20492
|
});
|
|
20493
20493
|
});
|
|
20494
|
+
watch(() => props.columns, () => {
|
|
20495
|
+
initTable();
|
|
20496
|
+
});
|
|
20494
20497
|
onBeforeMount(() => __async(this, null, function* () {
|
|
20498
|
+
yield initTable();
|
|
20499
|
+
}));
|
|
20500
|
+
const initTable = () => __async(this, null, function* () {
|
|
20495
20501
|
columns.value = typeof props.columns === "function" ? yield props.columns() : props.columns;
|
|
20496
20502
|
columns.value.forEach((col) => {
|
|
20497
20503
|
var _a;
|
|
@@ -20500,7 +20506,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
20500
20506
|
loadOptions(col.config);
|
|
20501
20507
|
}
|
|
20502
20508
|
});
|
|
20503
|
-
})
|
|
20509
|
+
});
|
|
20504
20510
|
const loadOptions = (config) => __async(this, null, function* () {
|
|
20505
20511
|
if ((config == null ? void 0 : config.options) && (config == null ? void 0 : config.options.length) === 0 && (config == null ? void 0 : config.loadOptions) && typeof (config == null ? void 0 : config.loadOptions) === "function") {
|
|
20506
20512
|
config.options = yield config == null ? void 0 : config.loadOptions();
|
package/lib/index.es6.js.gz
CHANGED
|
Binary file
|