Browse Source

Dialog 居中

master_hella_20240701
yufei0306 8 months ago
parent
commit
450e8fbfb1
  1. 4
      src/components/Dialog/src/Dialog.vue

4
src/components/Dialog/src/Dialog.vue

@ -12,7 +12,8 @@ const props = defineProps({
width: propTypes.oneOfType([String, Number]).def('40%'), width: propTypes.oneOfType([String, Number]).def('40%'),
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'),
vLoading:propTypes.bool.def(false) vLoading:propTypes.bool.def(false),
alignCenter:propTypes.bool.def(true),
}) })
const getBindValue = computed(() => { const getBindValue = computed(() => {
@ -87,6 +88,7 @@ const initDialog = () => {
:close-on-click-modal="true" :close-on-click-modal="true"
:fullscreen="isFullscreen" :fullscreen="isFullscreen"
:width="width" :width="width"
:align-center="alignCenter"
destroy-on-close destroy-on-close
lock-scroll lock-scroll
draggable draggable

Loading…
Cancel
Save