qy-ui-for-ls 0.4.1 → 0.4.2

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.
@@ -14,4 +14,5 @@ export declare const useSelection: (rowKey?: string) => {
14
14
  selectionChange: (rowArr: {
15
15
  [key: string]: any;
16
16
  }[]) => void;
17
+ cleearSelection: () => void;
17
18
  };
@@ -24214,15 +24214,18 @@ const vze = function(e = {}) {
24214
24214
  };
24215
24215
  }, xze = (e = "id") => {
24216
24216
  const t = ue(!1), n = ue([]), r = V(() => {
24217
- let i = [];
24218
- return n.value.forEach((o) => i.push(o[e])), i;
24217
+ let o = [];
24218
+ return n.value.forEach((s) => o.push(s[e])), o;
24219
24219
  });
24220
24220
  return {
24221
24221
  isSelected: t,
24222
24222
  selectedList: n,
24223
24223
  selectedListIds: r,
24224
- selectionChange: (i) => {
24225
- i.length ? t.value = !0 : t.value = !1, n.value = i;
24224
+ selectionChange: (o) => {
24225
+ o.length ? t.value = !0 : t.value = !1, n.value = o;
24226
+ },
24227
+ cleearSelection: () => {
24228
+ t.value = !1, n.value = [];
24226
24229
  }
24227
24230
  };
24228
24231
  }, Sze = (e) => e && Array.isArray(e);
@@ -26934,7 +26937,7 @@ const jje = ["src"], Vje = ["href"], Hje = /* @__PURE__ */ ee({
26934
26937
  I(i).statusBar ? (M(), Q("div", Qje, [
26935
26938
  Ke(Ue.$slots, "statusBar")
26936
26939
  ])) : Fe("", !0),
26937
- I(E).length > 0 ? (M(), Q("div", eVe, "已选择:" + wt(I(E).length) + " 条数据(跨页)", 1)) : Fe("", !0),
26940
+ I(E).length > 0 ? (M(), Q("div", eVe, "已选择:" + wt(I(E).length) + " 条数据", 1)) : Fe("", !0),
26938
26941
  sr((M(), He(I(Xye), $t({
26939
26942
  ref_key: "tableRef",
26940
26943
  ref: l,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qy-ui-for-ls",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",