|
@@ -180,8 +180,12 @@ export default function useDrag(
|
|
|
// 初始化pos值
|
|
|
window.addEventListener('resize', refreshPos);
|
|
|
window.addEventListener('fullscreenchange', onFullscreenchange);
|
|
|
- console.log('first - show', boxClass);
|
|
|
nextTick(() => {
|
|
|
+ document
|
|
|
+ .querySelectorAll(`.${boxClass} .dragDirectionPoint`)
|
|
|
+ .forEach((value: Element) => {
|
|
|
+ value.remove();
|
|
|
+ });
|
|
|
const layoutTopHeight =
|
|
|
document.querySelector('.layoutTop')?.clientHeight || 0;
|
|
|
baseSize.layoutTopHeight = Math.ceil(layoutTopHeight);
|
|
@@ -396,6 +400,7 @@ export default function useDrag(
|
|
|
baseSize.defaultWidth = initSize?.width || 400;
|
|
|
baseSize.defaultHeight = initSize?.height || 640;
|
|
|
isResizeBlocked = false;
|
|
|
+
|
|
|
dragShow.value = false;
|
|
|
}
|
|
|
|