wlwy-package 3.2.3 → 3.2.5

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
+ "v42d8e462": `${unref(token).borderRadius}px`,
3690
+ "v7b66f250": 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-1286d00e"]]);
3969
3976
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
3970
3977
  ...{
3971
3978
  name: "WActionColumn"
@@ -9723,7 +9730,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
9723
9730
  checkedData.value = [];
9724
9731
  }
9725
9732
  return (_ctx, _cache) => {
9726
- var _a, _b, _c, _d, _e;
9733
+ var _a, _b, _c;
9727
9734
  return openBlock(), createBlock(unref(WTable), mergeProps({
9728
9735
  ref_key: "wTableRef",
9729
9736
  ref: wTableRef
@@ -9733,7 +9740,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
9733
9740
  total: (_c = props.tableData) == null ? void 0 : _c.total,
9734
9741
  "show-checkbox": props.checkbox,
9735
9742
  "show-seq": props.sort,
9736
- seqConfig: { startIndex: ((((_d = props.tableData) == null ? void 0 : _d.current) ?? 1) - 1) * (((_e = props.tableData) == null ? void 0 : _e.size) ?? 1) },
9743
+ seqConfig: { seqMethod: ({ rowIndex }) => {
9744
+ var _a2, _b2;
9745
+ return ((((_a2 = props.tableData) == null ? void 0 : _a2.current) ?? 1) - 1) * (((_b2 = props.tableData) == null ? void 0 : _b2.size) ?? 1) + rowIndex + 1;
9746
+ } },
9737
9747
  onCheckboxChange: handleCheckboxChange,
9738
9748
  onCheckboxAll: handleCheckboxAll,
9739
9749
  onCheckboxRangeEnd: handleCheckboxRangeEnd
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlwy-package",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",