|
|
@ -3,6 +3,10 @@ import { propTypes } from '@/utils/propTypes' |
|
|
|
import { isNumber } from '@/utils/is' |
|
|
|
defineOptions({ name: 'Dialog' }) |
|
|
|
|
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits([ |
|
|
|
'updateFullscreen' |
|
|
|
]) |
|
|
|
const slots = useSlots() |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
@ -32,6 +36,7 @@ const isFullscreen = ref(false) |
|
|
|
|
|
|
|
const toggleFull = () => { |
|
|
|
isFullscreen.value = !unref(isFullscreen) |
|
|
|
emit('updateFullscreen',isFullscreen.value) |
|
|
|
} |
|
|
|
|
|
|
|
const dialogHeight = ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight) |
|
|
|