vue3-components-plus 3.0.34 → 3.0.36

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.
@@ -77390,7 +77390,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
77390
77390
  const tableRef = ref$1(null);
77391
77391
  const internalPagination = reactive(createPagination());
77392
77392
  const internalSearchParams = reactive({});
77393
- const internalSortState = reactive({ prop: "", order: "" });
77393
+ const internalSortState = reactive({ sortField: "", sortOrder: "" });
77394
77394
  const pendingSelectionKeys = ref$1(/* @__PURE__ */ new Set());
77395
77395
  const selectionRowMap = reactive({});
77396
77396
  const isSyncingSelection = ref$1(false);
@@ -77525,8 +77525,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
77525
77525
  emit("selection-change", Object.values(selectionRowMap));
77526
77526
  }
77527
77527
  function handleSortChange2(sort) {
77528
- internalSortState.prop = sort ? sort.prop : "";
77529
- internalSortState.order = sort ? sort.order : "";
77528
+ internalSortState.sortField = sort ? sort.prop : "";
77529
+ internalSortState.sortOrder = sort ? sort.order : "";
77530
77530
  emit("sort-change", sort);
77531
77531
  emitSearch();
77532
77532
  }
@@ -77594,7 +77594,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
77594
77594
  return {
77595
77595
  [props.pageTotalKey]: props.total,
77596
77596
  [props.pageNumberKey]: currentPageModel.value,
77597
- [props.pageSizeKey]: pageSizeModel.value
77597
+ [props.pageSizeKey]: pageSizeModel.value,
77598
+ sort: { ...internalSortState },
77599
+ ...internalSortState
77598
77600
  };
77599
77601
  }
77600
77602
  function getSelectionRows() {
@@ -77755,7 +77757,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
77755
77757
  };
77756
77758
  }
77757
77759
  });
77758
- const NsTableContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4332eea8"]]);
77760
+ const NsTableContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-515c43cf"]]);
77759
77761
  NsTableContainer.install = (app2) => {
77760
77762
  app2.component("NsTableContainer", NsTableContainer);
77761
77763
  };