Compare commits

...

2 Commits

Author SHA1 Message Date
roymondchen
8d7c8fa725 fix(design): dialog 默认参数 2025-12-03 17:15:26 +08:00
roymondchen
ad746319e9 style(tdesign-vue-next-adapter): 去掉无用prop 2025-12-03 17:09:47 +08:00
2 changed files with 5 additions and 2 deletions

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']);

View File

@ -439,7 +439,6 @@ const adapter: any = {
disabled: props.disabled,
placeholder: props.placeholder,
multiple: props.multiple,
valueType: props.valueKey,
remoteMethod: props.onSearch,
creatable: props.allowCreate,
size: props.size === 'default' ? 'medium' : props.size,