fix(previs): 预演台关闭确认 - 保存失败后留在预演台时立即关掉确认框
预演视口持续占用主线程时,确认框离场动画可能停在可见态。这个确认框不再做过渡,取消后马上消失。
This commit is contained in:
@@ -538,10 +538,13 @@ export function CanvasPrevisWorkbench({
|
||||
closable: false,
|
||||
mask: { closable: false },
|
||||
keyboard: false,
|
||||
// 预演视口持续占用主线程时,zoom 离场要等 rAF 和 transitionend。
|
||||
// 动画停在可见态后,点「留在预演台」确认框也不会消失。
|
||||
transitionName: "",
|
||||
maskTransitionName: "",
|
||||
onOk: () => onClose(),
|
||||
onCancel: (close) => {
|
||||
onCancel: () => {
|
||||
closingRef.current = false;
|
||||
close();
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user