|
@@ -12,6 +12,8 @@ const props = defineProps({
|
|
|
title: propTypes.string.def('Dialog'),
|
|
title: propTypes.string.def('Dialog'),
|
|
|
fullscreen: propTypes.bool.def(true),
|
|
fullscreen: propTypes.bool.def(true),
|
|
|
width: propTypes.oneOfType([String, Number]).def('40%'),
|
|
width: propTypes.oneOfType([String, Number]).def('40%'),
|
|
|
|
|
+ closeOnClickModal: propTypes.bool.def(true),
|
|
|
|
|
+ closeOnPressEscape: propTypes.bool.def(true),
|
|
|
scroll: propTypes.bool.def(false), // 是否开启滚动条。如果是的话,按照 maxHeight 设置最大高度
|
|
scroll: propTypes.bool.def(false), // 是否开启滚动条。如果是的话,按照 maxHeight 设置最大高度
|
|
|
maxHeight: propTypes.oneOfType([String, Number]).def('400px')
|
|
maxHeight: propTypes.oneOfType([String, Number]).def('400px')
|
|
|
})
|
|
})
|
|
@@ -73,7 +75,8 @@ function closedHandler() {
|
|
|
<template>
|
|
<template>
|
|
|
<ElDialog
|
|
<ElDialog
|
|
|
v-bind="getBindValue"
|
|
v-bind="getBindValue"
|
|
|
- :close-on-click-modal="true"
|
|
|
|
|
|
|
+ :close-on-click-modal="closeOnClickModal"
|
|
|
|
|
+ :close-on-press-escape="closeOnPressEscape"
|
|
|
:fullscreen="isFullscreen"
|
|
:fullscreen="isFullscreen"
|
|
|
:width="width"
|
|
:width="width"
|
|
|
destroy-on-close
|
|
destroy-on-close
|