Browse Source

Dialog 居中

master_hella_20240701
yufei0306 7 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%'),
scroll: propTypes.bool.def(false), // maxHeight
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(() => {
@ -87,6 +88,7 @@ const initDialog = () => {
:close-on-click-modal="true"
:fullscreen="isFullscreen"
:width="width"
:align-center="alignCenter"
destroy-on-close
lock-scroll
draggable

Loading…
Cancel
Save