Skip to content

Commit 51888c4

Browse files
authored
fix(Dialog): fix closeOnOverlayClick default behavior (#3433)
1 parent 1b5b7f2 commit 51888c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dialog/props.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export default {
3131
default: undefined,
3232
},
3333
/** 点击蒙层时是否触发关闭事件 */
34-
closeOnOverlayClick: Boolean,
34+
closeOnOverlayClick: {
35+
type: Boolean,
36+
default: undefined,
37+
},
3538
/** 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件 */
3639
confirmBtn: {
3740
type: [String, Object, Function] as PropType<TdDialogProps['confirmBtn']>,

0 commit comments

Comments
 (0)