Files
zhibo/node_modules/ele-admin/es/ele-modal/props.js
T
xiaoyu 5488f5f0a2 init
2023-05-22 14:07:59 +08:00

83 lines
1.3 KiB
JavaScript

const proProps = {
movable: {
type: Boolean,
default: true
},
moveOut: Boolean,
moveOutPositive: Boolean,
resizable: [Boolean, String],
maxable: Boolean,
multiple: Boolean,
fullscreen: Boolean,
inner: Boolean,
resetOnClose: {
type: Boolean,
default: true
},
centered: Boolean,
maskKeepAlive: {
type: Boolean,
default: true
},
position: [String, Object]
};
const elCommonProps = {
top: {
type: String,
default: "15vh"
},
modal: {
type: Boolean,
default: true
},
modalAppendToBody: {
type: Boolean,
default: true
},
appendToBody: Boolean,
lockScroll: {
type: Boolean,
default: true
},
customClass: String,
closeOnClickModal: {
type: Boolean,
default: true
},
closeOnPressEscape: {
type: Boolean,
default: true
},
showClose: {
type: Boolean,
default: true
},
destroyOnClose: Boolean
};
const elProps = {
...elCommonProps,
visible: Boolean,
title: String,
width: {
type: String,
default: "50%"
},
beforeClose: Function,
center: Boolean
};
const commonProps = {
...elCommonProps,
...proProps
};
const props = {
...elProps,
...proProps
};
export {
commonProps,
props as default,
elCommonProps,
elProps,
proProps
};