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.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();
Binary file