mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-07 18:56:58 +08:00
fix(design): dialog 默认参数
This commit is contained in:
parent
ad746319e9
commit
8d7c8fa725
@ -24,7 +24,11 @@ defineOptions({
|
|||||||
name: 'TMDialog',
|
name: 'TMDialog',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<DialogProps>();
|
const props = withDefaults(defineProps<DialogProps>(), {
|
||||||
|
closeOnClickModal: true,
|
||||||
|
closeOnPressEscape: true,
|
||||||
|
showClose: true,
|
||||||
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['close', 'update:modelValue']);
|
const emit = defineEmits(['close', 'update:modelValue']);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user