mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-12 05:01:03 +00:00
修复引用节点滚动到可视区域没有生效的bug
This commit is contained in:
parent
bc2cbce8dd
commit
ea9ce63853
@ -41,7 +41,12 @@ export default defineComponent({
|
||||
setup() {
|
||||
const funcShowPlace = (data: EngineData) => {
|
||||
console.log(data);
|
||||
_expand(data.engineNode);
|
||||
const uuid = data.engineNode;
|
||||
nextTick(() => {
|
||||
if (elTree.value) {
|
||||
elTree.value.handExpand(uuid, { highlight: true, scroll: true } as HandExpandOptions);
|
||||
}
|
||||
});
|
||||
};
|
||||
const funcEnableSchedule = (b: boolean) => {
|
||||
if (b) {
|
||||
@ -113,11 +118,6 @@ export default defineComponent({
|
||||
bridge.off(Msg.InspectNode, onInspectNode);
|
||||
timer.clean();
|
||||
});
|
||||
function _expand(uuid: string) {
|
||||
if (elTree.value) {
|
||||
elTree.value.handExpand(uuid, { highlight: true });
|
||||
}
|
||||
}
|
||||
function updateTree() {
|
||||
console.log("update tree info");
|
||||
const id = toRaw(frameID.value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user