Skip to content

Commit 1403ac0

Browse files
YunaiVgitee-org
authored andcommitted
!747 修复 Dialog 组件在 v-model 双向绑定的属性无效果问题,问题出在弹窗的右上角按钮点击关闭后,未通知父组件变更
Merge pull request !747 from Bin/fix-bug
2 parents ae03503 + a4fe1db commit 1403ac0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Dialog/src/Dialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const dialogStyle = computed(() => {
6868
draggable
6969
class="com-dialog"
7070
:show-close="false"
71+
@close="$emit('update:modelValue', false)"
7172
>
7273
<template #header="{ close }">
7374
<div class="relative h-54px flex items-center justify-between pl-15px pr-15px">

0 commit comments

Comments
 (0)