mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
feat: canvas.activeTracker.target returns add null
This commit is contained in:
parent
ee8717bb97
commit
62288a139f
@ -13,7 +13,13 @@ export class ActiveTracker implements IPublicModelActiveTracker {
|
||||
}
|
||||
|
||||
get target() {
|
||||
const { node: innerNode, detail, instance } = this[activeTrackerSymbol]._target;
|
||||
const _target = this[activeTrackerSymbol]._target;
|
||||
|
||||
if (!_target) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { node: innerNode, detail, instance } = _target;
|
||||
const publicNode = ShellNode.create(innerNode);
|
||||
return {
|
||||
node: publicNode!,
|
||||
|
||||
@ -6,7 +6,7 @@ export interface IPublicModelActiveTracker {
|
||||
/**
|
||||
* @since 1.1.7
|
||||
*/
|
||||
target: IPublicTypeActiveTarget;
|
||||
target: IPublicTypeActiveTarget | null;
|
||||
|
||||
onChange(fn: (target: IPublicTypeActiveTarget) => void): () => void;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user