@ithinkdt/ui 4.1.1 → 4.2.0-0

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.
@@ -45,16 +45,19 @@ function p(p, m = {}) {
45
45
  let e = g.value?.querySelector(":scope tbody"), { x0: t, x1: n, y0: r, y1: i } = h.value ?? {};
46
46
  if (!m?.onSelect && y.value !== "auto" || !e || d(n)) return;
47
47
  let [a, o] = [t, n].toSorted((e, t) => e - t), [s, c] = [r, i].toSorted((e, t) => e - t);
48
- m?.onSelect?.({
48
+ if (m?.onSelect?.({
49
49
  fromRow: s,
50
50
  fromCol: a,
51
51
  toRow: c,
52
52
  toCol: o,
53
53
  getContent: C,
54
54
  tbody: e
55
- }) !== !1 && y.value === "auto" && S(C().map((e) => e.join(" ")).join("\n")).catch(() => {
56
- console.warn("[useTableRangeSelect] 复制到剪贴板失败");
57
- });
55
+ }) !== !1 && y.value === "auto") {
56
+ let e = C().map((e) => e.join(" ")).join("\n");
57
+ S(e).catch(() => {
58
+ console.warn("[useTableRangeSelect] 复制到剪贴板失败");
59
+ });
60
+ }
58
61
  }, {
59
62
  passive: !0,
60
63
  capture: !0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.1.1",
3
+ "version": "4.2.0-0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
@@ -66,8 +66,8 @@
66
66
  "vueuc": ">=0.4.65",
67
67
  "sortablejs": "^1.15.7",
68
68
  "@types/sortablejs": "^1.15.9",
69
- "nanoid": "^5.1.15",
70
- "@ithinkdt/common": "^4.1.1"
69
+ "nanoid": "^5.1.16",
70
+ "@ithinkdt/common": "~4.2.0-0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@ithinkdt/page": ">=4.1",
@@ -85,15 +85,15 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@vitejs/plugin-vue-jsx": "^5.1.5",
88
+ "@vitejs/plugin-vue-jsx": "^5.1.6",
89
89
  "ithinkdt-ui": "^1.9.4",
90
90
  "typescript": "~6.0.3",
91
- "unocss": "^66.7.2",
92
- "vite": "^8.0.16",
93
- "vue": "^3.5.38",
91
+ "unocss": "^66.7.5",
92
+ "vite": "^8.1.4",
93
+ "vue": "^3.5.39",
94
94
  "vue-router": "^5.1.0",
95
95
  "@vue/test-utils": "^2.4.11",
96
- "@ithinkdt/page": "^4.1.1"
96
+ "@ithinkdt/page": "~4.2.0-0"
97
97
  },
98
98
  "scripts": {
99
99
  "dev": "vite build --watch",