mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +00:00
refactor(exp): 在 resize 时临时关闭 hover 功能
This commit is contained in:
parent
e442436440
commit
b3b76d9ba0
@ -94,6 +94,7 @@ export default class DragResizeEngine {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.dragResizing = false;
|
this.dragResizing = false;
|
||||||
|
this.designer.detecting.enable = true;
|
||||||
cursor.release();
|
cursor.release();
|
||||||
|
|
||||||
this.emitter.emit('resizeEnd', e, direction, node);
|
this.emitter.emit('resizeEnd', e, direction, node);
|
||||||
@ -110,6 +111,7 @@ export default class DragResizeEngine {
|
|||||||
|
|
||||||
this.emitter.emit('resizestart', e, direction, node);
|
this.emitter.emit('resizestart', e, direction, node);
|
||||||
this.dragResizing = true;
|
this.dragResizing = true;
|
||||||
|
this.designer.detecting.enable = false;
|
||||||
cursor.addState('ew-resize');
|
cursor.addState('ew-resize');
|
||||||
};
|
};
|
||||||
shell.addEventListener('mousedown', mousedown);
|
shell.addEventListener('mousedown', mousedown);
|
||||||
|
|||||||
@ -415,14 +415,14 @@ export class DocumentModel {
|
|||||||
@obx.ref private _suspensed = false;
|
@obx.ref private _suspensed = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否不是激活的
|
* 是否为非激活状态
|
||||||
*/
|
*/
|
||||||
get suspensed(): boolean {
|
get suspensed(): boolean {
|
||||||
return this._suspensed || !this._opened;
|
return this._suspensed || !this._opened;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 与 suspensed 相反,是否是激活的,这个函数可能用的更多一点
|
* 与 suspensed 相反,是否为激活状态,这个函数可能用的更多一点
|
||||||
*/
|
*/
|
||||||
get actived(): boolean {
|
get actived(): boolean {
|
||||||
return !this._suspensed;
|
return !this._suspensed;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user