fix(design): dialog 默认参数

This commit is contained in:
roymondchen 2025-12-03 17:15:26 +08:00
parent ad746319e9
commit 8d7c8fa725

View File

@ -24,7 +24,11 @@ defineOptions({
name: 'TMDialog',
});
const props = defineProps<DialogProps>();
const props = withDefaults(defineProps<DialogProps>(), {
closeOnClickModal: true,
closeOnPressEscape: true,
showClose: true,
});
const emit = defineEmits(['close', 'update:modelValue']);