wlwy-package 3.2.3 → 3.2.4

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.
@@ -3686,8 +3686,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
3686
3686
  emits: ["pageChange"],
3687
3687
  setup(__props, { expose: __expose, emit: __emit }) {
3688
3688
  useCssVars((_ctx) => ({
3689
- "d3b1cec8": `${unref(token).borderRadius}px`,
3690
- "v28fe9ce3": unref(token).colorError
3689
+ "v7814ebd9": `${unref(token).borderRadius}px`,
3690
+ "v0aa3c106": unref(token).colorError
3691
3691
  }));
3692
3692
  const WTABLE_EXPOSE_KEYS = /* @__PURE__ */ new Set([
3693
3693
  "getTableInstance",
@@ -3803,10 +3803,17 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
3803
3803
  ...omit(config2.value.pager, ["currentPage", "pageSize"]),
3804
3804
  ...pagerDataBind.value
3805
3805
  }));
3806
- const mergedSeqConfig = computed(() => ({
3807
- ...config2.value.table.seqConfig,
3808
- startIndex: props.showPager ? (currentPage.value - 1) * pageSize.value : 0
3809
- }));
3806
+ const seqOffset = computed(() => props.showPager ? (currentPage.value - 1) * pageSize.value : 0);
3807
+ const mergedSeqConfig = computed(() => {
3808
+ const userSeqConfig = config2.value.table.seqConfig ?? {};
3809
+ const { startIndex: _2, seqMethod: userSeqMethod, ...rest } = userSeqConfig;
3810
+ return {
3811
+ ...rest,
3812
+ seqMethod: userSeqMethod ?? ((params) => {
3813
+ return seqOffset.value + params.rowIndex + 1;
3814
+ })
3815
+ };
3816
+ });
3810
3817
  function getPagerState() {
3811
3818
  return {
3812
3819
  currentPage: currentPage.value,
@@ -3965,7 +3972,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
3965
3972
  };
3966
3973
  }
3967
3974
  });
3968
- const WTable = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-dd23f899"]]);
3975
+ const WTable = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-5e8a9501"]]);
3969
3976
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
3970
3977
  ...{
3971
3978
  name: "WActionColumn"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlwy-package",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",