@cyberpunk-vue/components 1.11.2 → 1.12.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/dist/index.cjs +1 -1
- package/dist/index.mjs +146 -68
- package/dist/table/index.d.ts +5 -5
- package/dist/table/src/table.vue.d.ts +2 -2
- package/dist/tree/index.d.ts +79 -0
- package/dist/tree/src/constants.d.ts +8 -4
- package/dist/tree/src/tree.d.ts +53 -2
- package/dist/tree/src/tree.vue.d.ts +44 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -4417,10 +4417,18 @@ var se = {
|
|
|
4417
4417
|
type: Boolean,
|
|
4418
4418
|
default: !1
|
|
4419
4419
|
},
|
|
4420
|
+
showRadio: {
|
|
4421
|
+
type: Boolean,
|
|
4422
|
+
default: !1
|
|
4423
|
+
},
|
|
4420
4424
|
checkStrictly: {
|
|
4421
4425
|
type: Boolean,
|
|
4422
4426
|
default: !1
|
|
4423
4427
|
},
|
|
4428
|
+
checkMode: {
|
|
4429
|
+
type: String,
|
|
4430
|
+
default: void 0
|
|
4431
|
+
},
|
|
4424
4432
|
defaultExpandAll: {
|
|
4425
4433
|
type: Boolean,
|
|
4426
4434
|
default: !1
|
|
@@ -4457,6 +4465,22 @@ var se = {
|
|
|
4457
4465
|
type: Boolean,
|
|
4458
4466
|
default: !1
|
|
4459
4467
|
},
|
|
4468
|
+
defaultCurrentKey: {
|
|
4469
|
+
type: [
|
|
4470
|
+
String,
|
|
4471
|
+
Number,
|
|
4472
|
+
null
|
|
4473
|
+
],
|
|
4474
|
+
default: null
|
|
4475
|
+
},
|
|
4476
|
+
currentKey: {
|
|
4477
|
+
type: [
|
|
4478
|
+
String,
|
|
4479
|
+
Number,
|
|
4480
|
+
null
|
|
4481
|
+
],
|
|
4482
|
+
default: void 0
|
|
4483
|
+
},
|
|
4460
4484
|
type: {
|
|
4461
4485
|
type: String,
|
|
4462
4486
|
default: "primary"
|
|
@@ -4506,8 +4530,10 @@ var se = {
|
|
|
4506
4530
|
"node-expand": (e, t) => e !== void 0 && t !== void 0,
|
|
4507
4531
|
"node-collapse": (e, t) => e !== void 0 && t !== void 0,
|
|
4508
4532
|
"check-change": (e, t) => e !== void 0 && typeof t == "boolean",
|
|
4533
|
+
"current-change": (e, t, n, r) => !0,
|
|
4509
4534
|
"update:checkedKeys": (e) => Array.isArray(e),
|
|
4510
|
-
"update:expandedKeys": (e) => Array.isArray(e)
|
|
4535
|
+
"update:expandedKeys": (e) => Array.isArray(e),
|
|
4536
|
+
"update:currentKey": (e) => e === null || typeof e == "string" || typeof e == "number"
|
|
4511
4537
|
}, In = Symbol("treeContext"), Ln = {
|
|
4512
4538
|
node: {
|
|
4513
4539
|
type: Object,
|
|
@@ -4539,14 +4565,14 @@ var se = {
|
|
|
4539
4565
|
}
|
|
4540
4566
|
return e;
|
|
4541
4567
|
}
|
|
4542
|
-
let f = r(() => u.expandedKeys.value.has(n.node.key)), p = r(() => u.checkedKeys.value.has(n.node.key)), h = r(() => u.indeterminateKeys.value.has(n.node.key)), g = r(() => u.
|
|
4568
|
+
let f = r(() => u.expandedKeys.value.has(n.node.key)), p = r(() => u.checkedKeys.value.has(n.node.key)), h = r(() => u.indeterminateKeys.value.has(n.node.key)), g = r(() => u.currentNodeKey.value === n.node.key), _ = r(() => u.highlightCurrent && g.value), b = r(() => u.visibleKeys.value ? u.visibleKeys.value.has(n.node.key) : !0), x = r(() => ({ paddingLeft: `${n.node.level * u.indent}px` })), C = r(() => [
|
|
4543
4569
|
c.e("node-content"),
|
|
4544
4570
|
c.is("expanded", f.value),
|
|
4545
4571
|
c.is("checked", p.value),
|
|
4546
|
-
c.is("current",
|
|
4572
|
+
c.is("current", _.value),
|
|
4547
4573
|
c.is("disabled", n.node.disabled),
|
|
4548
4574
|
c.is("leaf", n.node.isLeaf)
|
|
4549
|
-
]),
|
|
4575
|
+
]), w = r(() => n.node.isLeaf ? null : f.value && u.collapseIcon ? d(u.collapseIcon) : !f.value && u.expandIcon || u.expandIcon ? d(u.expandIcon) : null), E = r(() => n.node.isLeaf ? d(u.leafIcon) : null), O = r(() => !!u.expandIcon && !u.collapseIcon), j = r(() => {
|
|
4550
4576
|
if (u.nodeIcon) {
|
|
4551
4577
|
if (typeof u.nodeIcon == "function") try {
|
|
4552
4578
|
let e = u.nodeIcon(n.node);
|
|
@@ -4586,32 +4612,34 @@ var se = {
|
|
|
4586
4612
|
component: null,
|
|
4587
4613
|
iconString: null
|
|
4588
4614
|
};
|
|
4589
|
-
}),
|
|
4615
|
+
}), N = r(() => j.value.component !== null || j.value.iconString !== null), P = (e) => {
|
|
4590
4616
|
e.stopPropagation(), n.node.isLeaf || u.toggleExpand(n.node);
|
|
4591
|
-
},
|
|
4617
|
+
}, I = (e) => {
|
|
4592
4618
|
e.stopPropagation(), u.toggleCheck(n.node);
|
|
4593
|
-
},
|
|
4594
|
-
u.handleNodeClick(n.node), !n.node.isLeaf && !u.showCheckbox && u.toggleExpand(n.node);
|
|
4595
|
-
},
|
|
4619
|
+
}, L = () => {
|
|
4620
|
+
u.handleNodeClick(n.node), !n.node.isLeaf && !u.showCheckbox && !u.showRadio && u.toggleExpand(n.node);
|
|
4621
|
+
}, R = (e) => {
|
|
4622
|
+
e.stopPropagation(), !n.node.disabled && u.setCurrentNode(n.node);
|
|
4623
|
+
}, B = T();
|
|
4596
4624
|
return (t, n) => {
|
|
4597
4625
|
let r = k("CpTreeNode");
|
|
4598
4626
|
return U((S(), o("div", {
|
|
4599
4627
|
class: v(F(c).e("node")),
|
|
4600
4628
|
role: "treeitem"
|
|
4601
4629
|
}, [s("div", {
|
|
4602
|
-
class: v(
|
|
4603
|
-
style: y(
|
|
4604
|
-
onClick:
|
|
4630
|
+
class: v(C.value),
|
|
4631
|
+
style: y(x.value),
|
|
4632
|
+
onClick: L
|
|
4605
4633
|
}, [
|
|
4606
4634
|
s("span", {
|
|
4607
4635
|
class: v([
|
|
4608
4636
|
F(c).e("expand-icon"),
|
|
4609
4637
|
F(c).is("expanded", f.value),
|
|
4610
4638
|
F(c).is("leaf", t.node.isLeaf),
|
|
4611
|
-
F(c).is("custom-icon", !!
|
|
4612
|
-
F(c).is("rotate-expand",
|
|
4639
|
+
F(c).is("custom-icon", !!w.value || !!E.value),
|
|
4640
|
+
F(c).is("rotate-expand", O.value && f.value)
|
|
4613
4641
|
]),
|
|
4614
|
-
onClick:
|
|
4642
|
+
onClick: P
|
|
4615
4643
|
}, [F(u).slots.icon ? (S(), i(A(F(u).slots.icon), {
|
|
4616
4644
|
key: 0,
|
|
4617
4645
|
node: t.node,
|
|
@@ -4621,18 +4649,22 @@ var se = {
|
|
|
4621
4649
|
"node",
|
|
4622
4650
|
"data",
|
|
4623
4651
|
"expanded"
|
|
4624
|
-
])) :
|
|
4652
|
+
])) : w.value ? (S(), i(A(w.value), { key: 1 })) : E.value ? (S(), i(A(E.value), { key: 2 })) : (S(), o(e, { key: 3 }, [t.node.isLeaf ? (S(), o("span", {
|
|
4625
4653
|
key: 1,
|
|
4626
4654
|
class: v(F(c).e("leaf-dot"))
|
|
4627
4655
|
}, null, 2)) : (S(), o("svg", Rn, [...n[0] ||= [s("polyline", { points: "9,6 15,12 9,18" }, null, -1)]]))], 64))], 2),
|
|
4628
|
-
|
|
4656
|
+
F(u).showRadio && !F(u).showCheckbox ? (S(), o("span", {
|
|
4629
4657
|
key: 0,
|
|
4630
|
-
class: v(
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4658
|
+
class: v([
|
|
4659
|
+
F(c).e("radio"),
|
|
4660
|
+
F(c).is("checked", g.value),
|
|
4661
|
+
F(c).is("disabled", t.node.disabled)
|
|
4662
|
+
]),
|
|
4663
|
+
onClick: G(R, ["stop"])
|
|
4664
|
+
}, [g.value ? (S(), o("span", {
|
|
4665
|
+
key: 0,
|
|
4666
|
+
class: v(F(c).e("radio-dot"))
|
|
4667
|
+
}, null, 2)) : a("", !0)], 2)) : a("", !0),
|
|
4636
4668
|
F(u).showCheckbox ? (S(), o("span", {
|
|
4637
4669
|
key: 1,
|
|
4638
4670
|
class: v([
|
|
@@ -4641,7 +4673,7 @@ var se = {
|
|
|
4641
4673
|
F(c).is("indeterminate", h.value),
|
|
4642
4674
|
F(c).is("disabled", t.node.disabled)
|
|
4643
4675
|
]),
|
|
4644
|
-
onClick: G(
|
|
4676
|
+
onClick: G(I, ["stop"])
|
|
4645
4677
|
}, [p.value && !h.value ? (S(), o("svg", {
|
|
4646
4678
|
key: 0,
|
|
4647
4679
|
class: v(F(c).e("checkbox-icon")),
|
|
@@ -4664,6 +4696,14 @@ var se = {
|
|
|
4664
4696
|
x2: "19",
|
|
4665
4697
|
y2: "12"
|
|
4666
4698
|
}, null, -1)]], 2)) : a("", !0)], 2)) : a("", !0),
|
|
4699
|
+
N.value ? (S(), o("span", {
|
|
4700
|
+
key: 2,
|
|
4701
|
+
class: v(F(c).e("node-icon"))
|
|
4702
|
+
}, [j.value.component ? (S(), i(A(j.value.component), { key: 0 })) : j.value.iconString ? (S(), i(be, {
|
|
4703
|
+
key: 1,
|
|
4704
|
+
icon: j.value.iconString,
|
|
4705
|
+
size: "sm"
|
|
4706
|
+
}, null, 8, ["icon"])) : a("", !0)], 2)) : a("", !0),
|
|
4667
4707
|
s("span", { class: v(F(c).e("label")) }, [F(u).slots.default ? (S(), i(A(F(u).slots.default), {
|
|
4668
4708
|
key: 0,
|
|
4669
4709
|
node: t.node,
|
|
@@ -4672,13 +4712,13 @@ var se = {
|
|
|
4672
4712
|
], 6), t.node.children.length > 0 ? U((S(), o("div", {
|
|
4673
4713
|
key: 0,
|
|
4674
4714
|
ref_key: "childrenRef",
|
|
4675
|
-
ref:
|
|
4715
|
+
ref: B,
|
|
4676
4716
|
class: v(F(c).e("children"))
|
|
4677
4717
|
}, [(S(!0), o(e, null, D(t.node.children, (e, n) => (S(), i(r, {
|
|
4678
4718
|
key: e.key,
|
|
4679
4719
|
node: e,
|
|
4680
4720
|
"is-last": n === t.node.children.length - 1
|
|
4681
|
-
}, null, 8, ["node", "is-last"]))), 128))], 2)), [[z, f.value]]) : a("", !0)], 2)), [[z,
|
|
4721
|
+
}, null, 8, ["node", "is-last"]))), 128))], 2)), [[z, f.value]]) : a("", !0)], 2)), [[z, b.value]]);
|
|
4682
4722
|
};
|
|
4683
4723
|
}
|
|
4684
4724
|
}), Bn = $(/* @__PURE__ */ d({
|
|
@@ -4724,40 +4764,49 @@ var se = {
|
|
|
4724
4764
|
B(() => c.checkedKeys, (e) => {
|
|
4725
4765
|
e !== void 0 && (k.value = new Set(e));
|
|
4726
4766
|
}, { immediate: !0 });
|
|
4727
|
-
let j = T(/* @__PURE__ */ new Set());
|
|
4728
|
-
B(A, () => {
|
|
4729
|
-
|
|
4767
|
+
let j = T(/* @__PURE__ */ new Set()), M = r(() => c.checkMode ? c.checkMode : c.checkStrictly ? "strict" : "cascade");
|
|
4768
|
+
B([A, M], () => {
|
|
4769
|
+
let e = M.value;
|
|
4770
|
+
if (e === "strict") {
|
|
4730
4771
|
j.value = /* @__PURE__ */ new Set();
|
|
4731
4772
|
return;
|
|
4732
4773
|
}
|
|
4733
|
-
let
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
let r
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4774
|
+
let t = /* @__PURE__ */ new Set(), n = A.value;
|
|
4775
|
+
if (e === "bubble") {
|
|
4776
|
+
let e = (r) => {
|
|
4777
|
+
for (let i of r) i.children.length > 0 && (e(i.children), n.has(i.key) && i.children.some((e) => !e.disabled && (!n.has(e.key) || t.has(e.key))) && t.add(i.key));
|
|
4778
|
+
};
|
|
4779
|
+
e(x.value), j.value = t;
|
|
4780
|
+
return;
|
|
4781
|
+
}
|
|
4782
|
+
let r = (e) => {
|
|
4783
|
+
for (let i of e) if (i.children.length > 0) {
|
|
4784
|
+
r(i.children);
|
|
4785
|
+
let e = i.children.filter((e) => !e.disabled);
|
|
4786
|
+
if (e.length === 0) continue;
|
|
4787
|
+
let a = e.every((e) => n.has(e.key)), o = e.some((e) => n.has(e.key) || t.has(e.key));
|
|
4788
|
+
!a && o && t.add(i.key);
|
|
4740
4789
|
}
|
|
4741
4790
|
};
|
|
4742
|
-
|
|
4791
|
+
r(x.value), j.value = t;
|
|
4743
4792
|
}, { immediate: !0 });
|
|
4744
|
-
let
|
|
4745
|
-
B(
|
|
4746
|
-
if (!
|
|
4747
|
-
|
|
4793
|
+
let N = T(c.defaultCurrentKey ?? null), P = r(() => c.currentKey === void 0 ? N.value : c.currentKey), I = T(""), R = T(null);
|
|
4794
|
+
B(I, () => {
|
|
4795
|
+
if (!I.value || !c.filterMethod) {
|
|
4796
|
+
R.value = null;
|
|
4748
4797
|
return;
|
|
4749
4798
|
}
|
|
4750
4799
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
4751
4800
|
let r = !1;
|
|
4752
4801
|
for (let i of n) {
|
|
4753
4802
|
let n = !1;
|
|
4754
|
-
i.children.length > 0 && (n = t(i.children)), (c.filterMethod(
|
|
4803
|
+
i.children.length > 0 && (n = t(i.children)), (c.filterMethod(I.value, i.data, i) || n) && (e.add(i.key), r = !0);
|
|
4755
4804
|
}
|
|
4756
4805
|
return r;
|
|
4757
4806
|
};
|
|
4758
|
-
t(x.value),
|
|
4807
|
+
t(x.value), R.value = e;
|
|
4759
4808
|
});
|
|
4760
|
-
let
|
|
4809
|
+
let z = (e) => {
|
|
4761
4810
|
let t = new Set(E.value);
|
|
4762
4811
|
if (t.has(e.key)) t.delete(e.key), l("node-collapse", e.data, e);
|
|
4763
4812
|
else {
|
|
@@ -4766,28 +4815,40 @@ var se = {
|
|
|
4766
4815
|
t.add(e.key), l("node-expand", e.data, e);
|
|
4767
4816
|
}
|
|
4768
4817
|
c.expandedKeys === void 0 ? w.value = t : l("update:expandedKeys", Array.from(t));
|
|
4769
|
-
},
|
|
4818
|
+
}, V = (e) => {
|
|
4770
4819
|
if (e.disabled) return;
|
|
4771
|
-
let t = new Set(A.value), n = t.has(e.key);
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4820
|
+
let t = new Set(A.value), n = t.has(e.key), r = M.value;
|
|
4821
|
+
if (r === "strict") n ? t.delete(e.key) : t.add(e.key);
|
|
4822
|
+
else if (r === "bubble") if (n) t.delete(e.key), U(e, t);
|
|
4823
|
+
else {
|
|
4824
|
+
t.add(e.key), H(e, t);
|
|
4825
|
+
let n = e.parent;
|
|
4826
|
+
for (; n;) n.disabled || t.add(n.key), n = n.parent;
|
|
4827
|
+
}
|
|
4828
|
+
else n ? (t.delete(e.key), U(e, t)) : (t.add(e.key), H(e, t)), W(e.parent, t);
|
|
4829
|
+
l("check-change", e.data, !n), c.checkedKeys === void 0 ? k.value = t : l("update:checkedKeys", Array.from(t));
|
|
4777
4830
|
}, H = (e, t) => {
|
|
4831
|
+
for (let n of e.children) n.disabled || t.add(n.key), H(n, t);
|
|
4832
|
+
}, U = (e, t) => {
|
|
4833
|
+
for (let n of e.children) n.disabled || t.delete(n.key), U(n, t);
|
|
4834
|
+
}, W = (e, t) => {
|
|
4778
4835
|
if (!e) return;
|
|
4779
4836
|
let n = e.children.filter((e) => !e.disabled);
|
|
4780
|
-
n.length !== 0 && (n.every((e) => t.has(e.key)) ? t.add(e.key) : t.delete(e.key),
|
|
4781
|
-
},
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4837
|
+
n.length !== 0 && (n.every((e) => t.has(e.key)) ? t.add(e.key) : t.delete(e.key), W(e.parent, t));
|
|
4838
|
+
}, G = (e, t = !0) => {
|
|
4839
|
+
let n = P.value, r = e ? e.key : null;
|
|
4840
|
+
if (n !== r && (c.currentKey === void 0 ? N.value = r : l("update:currentKey", r), t)) {
|
|
4841
|
+
let t = n == null ? null : _.get(n) ?? null;
|
|
4842
|
+
l("current-change", e ? e.data : null, e, t ? t.data : null, t);
|
|
4843
|
+
}
|
|
4844
|
+
}, K = (e) => {
|
|
4845
|
+
e.disabled || (c.showRadio || c.highlightCurrent) && G(e), l("node-click", e.data, e);
|
|
4846
|
+
}, q = r(() => [
|
|
4786
4847
|
d.b(),
|
|
4787
4848
|
d.m(c.type),
|
|
4788
4849
|
d.is("connector-line", c.connectorLine),
|
|
4789
4850
|
d.is("custom-color", !!c.color)
|
|
4790
|
-
]),
|
|
4851
|
+
]), J = r(() => c.color ? {
|
|
4791
4852
|
"--cp-tree-active-color": c.color,
|
|
4792
4853
|
"--cp-tree-active-color-light": `${c.color}66`
|
|
4793
4854
|
} : {});
|
|
@@ -4795,20 +4856,24 @@ var se = {
|
|
|
4795
4856
|
expandedKeys: E,
|
|
4796
4857
|
checkedKeys: A,
|
|
4797
4858
|
indeterminateKeys: j,
|
|
4798
|
-
currentNodeKey:
|
|
4859
|
+
currentNodeKey: P,
|
|
4799
4860
|
showCheckbox: c.showCheckbox,
|
|
4861
|
+
showRadio: c.showRadio,
|
|
4800
4862
|
checkStrictly: c.checkStrictly,
|
|
4863
|
+
get checkMode() {
|
|
4864
|
+
return M.value;
|
|
4865
|
+
},
|
|
4801
4866
|
accordion: c.accordion,
|
|
4802
4867
|
indent: c.indent,
|
|
4803
4868
|
highlightCurrent: c.highlightCurrent,
|
|
4804
4869
|
type: c.type,
|
|
4805
4870
|
connectorLine: c.connectorLine,
|
|
4806
|
-
filterText:
|
|
4807
|
-
visibleKeys:
|
|
4808
|
-
toggleExpand:
|
|
4809
|
-
toggleCheck:
|
|
4810
|
-
setCurrentNode:
|
|
4811
|
-
handleNodeClick:
|
|
4871
|
+
filterText: I,
|
|
4872
|
+
visibleKeys: R,
|
|
4873
|
+
toggleExpand: z,
|
|
4874
|
+
toggleCheck: V,
|
|
4875
|
+
setCurrentNode: G,
|
|
4876
|
+
handleNodeClick: K,
|
|
4812
4877
|
nodeMap: _,
|
|
4813
4878
|
slots: u,
|
|
4814
4879
|
expandIcon: c.expandIcon,
|
|
@@ -4818,13 +4883,26 @@ var se = {
|
|
|
4818
4883
|
showNodeIcon: c.showNodeIcon
|
|
4819
4884
|
}), n({
|
|
4820
4885
|
filter: (e) => {
|
|
4821
|
-
|
|
4886
|
+
I.value = e;
|
|
4822
4887
|
},
|
|
4823
4888
|
getCheckedKeys: () => Array.from(A.value),
|
|
4824
4889
|
setCheckedKeys: (e) => {
|
|
4825
4890
|
c.checkedKeys === void 0 ? k.value = new Set(e) : l("update:checkedKeys", e);
|
|
4826
4891
|
},
|
|
4827
4892
|
getHalfCheckedKeys: () => Array.from(j.value),
|
|
4893
|
+
getCurrentKey: () => P.value,
|
|
4894
|
+
getCurrentNode: () => {
|
|
4895
|
+
let e = P.value;
|
|
4896
|
+
return e == null ? null : _.get(e)?.data ?? null;
|
|
4897
|
+
},
|
|
4898
|
+
setCurrentKey: (e) => {
|
|
4899
|
+
if (e == null) {
|
|
4900
|
+
G(null, !1);
|
|
4901
|
+
return;
|
|
4902
|
+
}
|
|
4903
|
+
let t = _.get(e);
|
|
4904
|
+
t && G(t, !1);
|
|
4905
|
+
},
|
|
4828
4906
|
expandAll: () => {
|
|
4829
4907
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
4830
4908
|
for (let r of n) r.isLeaf || e.add(r.key), r.children.length && t(r.children);
|
|
@@ -4836,8 +4914,8 @@ var se = {
|
|
|
4836
4914
|
},
|
|
4837
4915
|
treeNodes: x
|
|
4838
4916
|
}), (t, n) => (S(), o("div", {
|
|
4839
|
-
class: v(
|
|
4840
|
-
style: y(
|
|
4917
|
+
class: v(q.value),
|
|
4918
|
+
style: y(J.value),
|
|
4841
4919
|
role: "tree"
|
|
4842
4920
|
}, [x.value.length > 0 ? (S(!0), o(e, { key: 0 }, D(x.value, (e, t) => (S(), i(zn, {
|
|
4843
4921
|
key: e.key,
|
package/dist/table/index.d.ts
CHANGED
|
@@ -110,10 +110,10 @@ export declare const CpTable: import('../utils').SFCWithInstall<{
|
|
|
110
110
|
}>> & Readonly<{
|
|
111
111
|
onSelect?: ((selection: import('.').SelectionPayload, row: any) => any) | undefined;
|
|
112
112
|
"onSelect-all"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
113
|
+
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
113
114
|
"onSort-change"?: ((sortState: import('.').SortState) => any) | undefined;
|
|
114
115
|
"onRow-click"?: ((row: any, index: number, event: MouseEvent) => any) | undefined;
|
|
115
116
|
"onSelection-change"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
116
|
-
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
117
117
|
"onExpand-change"?: ((row: any, expanded: boolean) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
clearSelection: () => void;
|
|
@@ -131,10 +131,10 @@ export declare const CpTable: import('../utils').SFCWithInstall<{
|
|
|
131
131
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
132
132
|
select: (selection: import('.').SelectionPayload, row: any) => void;
|
|
133
133
|
"select-all": (selection: import('.').SelectionPayload) => void;
|
|
134
|
+
"current-change": (currentRow: any, oldRow: any) => void;
|
|
134
135
|
"sort-change": (sortState: import('.').SortState) => void;
|
|
135
136
|
"row-click": (row: any, index: number, event: MouseEvent) => void;
|
|
136
137
|
"selection-change": (selection: import('.').SelectionPayload) => void;
|
|
137
|
-
"current-change": (currentRow: any, oldRow: any) => void;
|
|
138
138
|
"expand-change": (row: any, expanded: boolean) => void;
|
|
139
139
|
}, import('vue').PublicProps, {
|
|
140
140
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -262,10 +262,10 @@ export declare const CpTable: import('../utils').SFCWithInstall<{
|
|
|
262
262
|
}>> & Readonly<{
|
|
263
263
|
onSelect?: ((selection: import('.').SelectionPayload, row: any) => any) | undefined;
|
|
264
264
|
"onSelect-all"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
265
|
+
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
265
266
|
"onSort-change"?: ((sortState: import('.').SortState) => any) | undefined;
|
|
266
267
|
"onRow-click"?: ((row: any, index: number, event: MouseEvent) => any) | undefined;
|
|
267
268
|
"onSelection-change"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
268
|
-
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
269
269
|
"onExpand-change"?: ((row: any, expanded: boolean) => any) | undefined;
|
|
270
270
|
}>, {
|
|
271
271
|
clearSelection: () => void;
|
|
@@ -403,10 +403,10 @@ export declare const CpTable: import('../utils').SFCWithInstall<{
|
|
|
403
403
|
}>> & Readonly<{
|
|
404
404
|
onSelect?: ((selection: import('.').SelectionPayload, row: any) => any) | undefined;
|
|
405
405
|
"onSelect-all"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
406
|
+
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
406
407
|
"onSort-change"?: ((sortState: import('.').SortState) => any) | undefined;
|
|
407
408
|
"onRow-click"?: ((row: any, index: number, event: MouseEvent) => any) | undefined;
|
|
408
409
|
"onSelection-change"?: ((selection: import('.').SelectionPayload) => any) | undefined;
|
|
409
|
-
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
410
410
|
"onExpand-change"?: ((row: any, expanded: boolean) => any) | undefined;
|
|
411
411
|
}>, {
|
|
412
412
|
clearSelection: () => void;
|
|
@@ -424,10 +424,10 @@ export declare const CpTable: import('../utils').SFCWithInstall<{
|
|
|
424
424
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
425
425
|
select: (selection: import('.').SelectionPayload, row: any) => void;
|
|
426
426
|
"select-all": (selection: import('.').SelectionPayload) => void;
|
|
427
|
+
"current-change": (currentRow: any, oldRow: any) => void;
|
|
427
428
|
"sort-change": (sortState: import('.').SortState) => void;
|
|
428
429
|
"row-click": (row: any, index: number, event: MouseEvent) => void;
|
|
429
430
|
"selection-change": (selection: import('.').SelectionPayload) => void;
|
|
430
|
-
"current-change": (currentRow: any, oldRow: any) => void;
|
|
431
431
|
"expand-change": (row: any, expanded: boolean) => void;
|
|
432
432
|
}, string, {
|
|
433
433
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
@@ -132,10 +132,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
132
132
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
133
133
|
select: (selection: SelectionPayload, row: any) => void;
|
|
134
134
|
"select-all": (selection: SelectionPayload) => void;
|
|
135
|
+
"current-change": (currentRow: any, oldRow: any) => void;
|
|
135
136
|
"sort-change": (sortState: SortState) => void;
|
|
136
137
|
"row-click": (row: any, index: number, event: MouseEvent) => void;
|
|
137
138
|
"selection-change": (selection: SelectionPayload) => void;
|
|
138
|
-
"current-change": (currentRow: any, oldRow: any) => void;
|
|
139
139
|
"expand-change": (row: any, expanded: boolean) => void;
|
|
140
140
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
141
141
|
readonly data: {
|
|
@@ -234,10 +234,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
234
234
|
}>> & Readonly<{
|
|
235
235
|
onSelect?: ((selection: SelectionPayload, row: any) => any) | undefined;
|
|
236
236
|
"onSelect-all"?: ((selection: SelectionPayload) => any) | undefined;
|
|
237
|
+
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
237
238
|
"onSort-change"?: ((sortState: SortState) => any) | undefined;
|
|
238
239
|
"onRow-click"?: ((row: any, index: number, event: MouseEvent) => any) | undefined;
|
|
239
240
|
"onSelection-change"?: ((selection: SelectionPayload) => any) | undefined;
|
|
240
|
-
"onCurrent-change"?: ((currentRow: any, oldRow: any) => any) | undefined;
|
|
241
241
|
"onExpand-change"?: ((row: any, expanded: boolean) => any) | undefined;
|
|
242
242
|
}>, {
|
|
243
243
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|