Skip to content

Commit a4fe1db

Browse files
committed
修复 Dialog 组件在 v-model 双向绑定的属性无效果问题,问题出在弹窗的右上角按钮点击关闭后,未通知父组件变更
1 parent 20a2ced commit a4fe1db

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)