savor-ui 0.26.0 → 0.26.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [0.26.1](https://gitee.com/mach552/savor-ui/compare/v0.26.0...v0.26.1) (2026-08-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **table:** 修复翻页会丢失已选行的问题 ([e8650ab](https://gitee.com/mach552/savor-ui/commits/e8650abc6387f70177c2ecc45b60e151e3647916))
|
|
11
|
+
|
|
5
12
|
# [0.26.0](https://gitee.com/mach552/savor-ui/compare/v0.25.0...v0.26.0) (2026-08-27)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -52,11 +52,13 @@ var re = w("<table table-layout=fixed></table>"), ie = w("<div>"), ae = w("<div>
|
|
|
52
52
|
]),
|
|
53
53
|
setup(p, { expose: m, emit: w, slots: O }) {
|
|
54
54
|
let k = p, A = w, j = r("table"), M = E(p, "checkedKeys"), N = E(p, "selected"), P = E(p, "expandedKeys"), oe = (e, t, n) => {
|
|
55
|
-
|
|
55
|
+
let r = Y(e);
|
|
56
|
+
n.some((e) => Y(e) === r) ? M.value.includes(r) || (M.value = [...M.value, r]) : M.value = M.value.filter((e) => e !== r), A("checkRow", e, t, n);
|
|
56
57
|
}, se = (e, t) => {
|
|
57
58
|
N.value = e ?? {}, A("selectRow", e, t);
|
|
58
59
|
}, ce = (e) => {
|
|
59
|
-
|
|
60
|
+
let t = (Q.value ?? []).map((e) => Y(e)), n = new Set(t);
|
|
61
|
+
e.length > 0 ? M.value = [...new Set([...M.value, ...t])] : M.value = M.value.filter((e) => !n.has(e)), A("checkAll", e);
|
|
60
62
|
}, le = l(() => {
|
|
61
63
|
let e = [];
|
|
62
64
|
if (!k.border || k.border.length === 0) return e;
|
package/dist/json/web-types.json
CHANGED