diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue index acb2b994..716de9b7 100644 --- a/src/components/Dialog/src/Dialog.vue +++ b/src/components/Dialog/src/Dialog.vue @@ -10,7 +10,7 @@ const props = defineProps({ fullscreen: propTypes.bool.def(true), width: propTypes.oneOfType([String, Number]).def('40%'), scroll: propTypes.bool.def(false), // 是否开启滚动条。如果是的话,按照 maxHeight 设置最大高度 - maxHeight: propTypes.oneOfType([String, Number]).def('300px') + maxHeight: propTypes.oneOfType([String, Number]).def('400px') }) const getBindValue = computed(() => { @@ -36,7 +36,6 @@ const dialogHeight = ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : pr watch( () => isFullscreen.value, async (val: boolean) => { - // 计算最大高度 await nextTick() if (val) { const windowHeight = document.documentElement.offsetHeight @@ -59,36 +58,47 @@ const dialogStyle = computed(() => {