dfish-widget 1.0.61 → 1.0.62
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/lib/index.esm.js +10 -6
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -6648,6 +6648,7 @@ const props = __props;
|
|
|
6648
6648
|
};
|
|
6649
6649
|
|
|
6650
6650
|
const find = (id, children) => {
|
|
6651
|
+
if (id && id[leafSymbol]) return id
|
|
6651
6652
|
if (!children) children = props.children;
|
|
6652
6653
|
for (let item of children) {
|
|
6653
6654
|
if (item[propValue] === id) return item
|
|
@@ -6712,14 +6713,17 @@ const props = __props;
|
|
|
6712
6713
|
current = val;
|
|
6713
6714
|
if (!val) return
|
|
6714
6715
|
val = $$1.array(val);
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
if (i > -1) {
|
|
6719
|
-
await nextTick();
|
|
6720
|
-
root.value.scrollToY(((i + 1) * itemHeight) - (flow.value.height / 2));
|
|
6716
|
+
for (let v of val) {
|
|
6717
|
+
if (!showList.value.find(n => v == n[propValue])) {
|
|
6718
|
+
expandTo(v);
|
|
6721
6719
|
}
|
|
6722
6720
|
}
|
|
6721
|
+
const item = find(val[0]);
|
|
6722
|
+
const i = flatList.value.indexOf(item);
|
|
6723
|
+
if (i > -1) {
|
|
6724
|
+
await nextTick();
|
|
6725
|
+
root.value.scrollToY(((i + 1) * itemHeight) - (flow.value.height / 2));
|
|
6726
|
+
}
|
|
6723
6727
|
};
|
|
6724
6728
|
|
|
6725
6729
|
onMounted(async () => {
|