@tmagic/editor 1.2.7 → 1.2.8
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.
|
@@ -1556,7 +1556,7 @@
|
|
|
1556
1556
|
historyService.resetState();
|
|
1557
1557
|
}
|
|
1558
1558
|
if (node?.id) {
|
|
1559
|
-
this.get("stage")?.renderer.runtime?.getApp?.()?.emit(
|
|
1559
|
+
this.get("stage")?.renderer.runtime?.getApp?.().page?.emit(
|
|
1560
1560
|
"editor:select",
|
|
1561
1561
|
{
|
|
1562
1562
|
node,
|
|
@@ -4269,10 +4269,13 @@
|
|
|
4269
4269
|
idsLength > checkedKeysLength ? checkedKeys.value : ids
|
|
4270
4270
|
).length) {
|
|
4271
4271
|
tree.value?.setCheckedKeys([], false);
|
|
4272
|
-
[currentNodeKey.value] = ids;
|
|
4273
4272
|
checkedKeys.value = ids.filter((id) => id !== page.value?.id);
|
|
4274
4273
|
expandedKeys.value = lodashEs.union(expandedKeys.value, ids);
|
|
4275
4274
|
}
|
|
4275
|
+
[currentNodeKey.value] = ids;
|
|
4276
|
+
setTimeout(() => {
|
|
4277
|
+
tree.value?.setCurrentKey(currentNodeKey.value);
|
|
4278
|
+
});
|
|
4276
4279
|
});
|
|
4277
4280
|
vue.watch(isMultiSelect, (isMultiSelect2) => {
|
|
4278
4281
|
if (!isMultiSelect2) {
|
|
@@ -4317,6 +4320,9 @@
|
|
|
4317
4320
|
clicked.value = !clicked.value;
|
|
4318
4321
|
};
|
|
4319
4322
|
const checkHandler = (data, { checkedNodes }) => {
|
|
4323
|
+
if (!isCtrlKeyDown.value && nodes.value.length < 2) {
|
|
4324
|
+
return;
|
|
4325
|
+
}
|
|
4320
4326
|
if (checkedNodes.length > 0) {
|
|
4321
4327
|
multiSelect(checkedNodes.map((node) => node.id));
|
|
4322
4328
|
} else {
|