diff --git a/packages/vue/src/dialog-box/__tests__/dialog-box.test.tsx b/packages/vue/src/dialog-box/__tests__/dialog-box.test.tsx index 0363e58ee..cdfa1da9a 100644 --- a/packages/vue/src/dialog-box/__tests__/dialog-box.test.tsx +++ b/packages/vue/src/dialog-box/__tests__/dialog-box.test.tsx @@ -89,4 +89,6 @@ describe('PC Mode', () => { test.todo('drag-move 拖拽移动事件') test.todo('drag-end 拖拽结束事件') + + test.todo('可拖拽的弹窗关闭时只触发关闭事件(close),不应触发拖拽结束事件(drag-end)') }) diff --git a/packages/vue/src/dialog-box/src/pc.vue b/packages/vue/src/dialog-box/src/pc.vue index f5e0ebf79..186ad6cc6 100644 --- a/packages/vue/src/dialog-box/src/pc.vue +++ b/packages/vue/src/dialog-box/src/pc.vue @@ -42,6 +42,7 @@ class="tiny-dialog-box__headerbtn" aria-label="Close" @click="handleClose('close', $event)" + @mousedown.stop >