|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<Modal v-bind="getBindValue" @cancel="handleCancel"> |
|
|
|
<Modal v-bind="getBindValue" @cancel="handleCancel"> |
|
|
|
<template #closeIcon v-if="!$slots.closeIcon"> |
|
|
|
<template v-if="!$slots.closeIcon" #closeIcon> |
|
|
|
<ModalClose |
|
|
|
<ModalClose |
|
|
|
:canFullscreen="getProps.canFullscreen" |
|
|
|
:canFullscreen="getProps.canFullscreen" |
|
|
|
:fullScreen="fullScreenRef" |
|
|
|
:fullScreen="fullScreenRef" |
|
|
@ -9,7 +9,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #title v-if="!$slots.title"> |
|
|
|
<template v-if="!$slots.title" #title> |
|
|
|
<ModalHeader |
|
|
|
<ModalHeader |
|
|
|
:helpMessage="getProps.helpMessage" |
|
|
|
:helpMessage="getProps.helpMessage" |
|
|
|
:title="getMergeProps.title" |
|
|
|
:title="getMergeProps.title" |
|
|
@ -17,19 +17,19 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #footer v-if="!$slots.footer"> |
|
|
|
<template v-if="!$slots.footer" #footer> |
|
|
|
<ModalFooter v-bind="getBindValue" @ok="handleOk" @cancel="handleCancel"> |
|
|
|
<ModalFooter v-bind="getBindValue" @ok="handleOk" @cancel="handleCancel"> |
|
|
|
<template #[item]="data" v-for="item in Object.keys($slots)"> |
|
|
|
<template v-for="item in Object.keys($slots)" #[item]="data"> |
|
|
|
<slot :name="item" v-bind="data || {}"></slot> |
|
|
|
<slot :name="item" v-bind="data || {}"/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</ModalFooter> |
|
|
|
</ModalFooter> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<ModalWrapper |
|
|
|
<ModalWrapper |
|
|
|
|
|
|
|
ref="modalWrapperRef" |
|
|
|
:useWrapper="getProps.useWrapper" |
|
|
|
:useWrapper="getProps.useWrapper" |
|
|
|
:footerOffset="wrapperFooterOffset" |
|
|
|
:footerOffset="wrapperFooterOffset" |
|
|
|
:fullScreen="fullScreenRef" |
|
|
|
:fullScreen="fullScreenRef" |
|
|
|
ref="modalWrapperRef" |
|
|
|
|
|
|
|
:loading="getProps.loading" |
|
|
|
:loading="getProps.loading" |
|
|
|
:loading-tip="getProps.loadingTip" |
|
|
|
:loading-tip="getProps.loadingTip" |
|
|
|
:minHeight="getProps.minHeight" |
|
|
|
:minHeight="getProps.minHeight" |
|
|
@ -40,11 +40,11 @@ |
|
|
|
@ext-height="handleExtHeight" |
|
|
|
@ext-height="handleExtHeight" |
|
|
|
@height-change="handleHeightChange" |
|
|
|
@height-change="handleHeightChange" |
|
|
|
> |
|
|
|
> |
|
|
|
<slot></slot> |
|
|
|
<slot/> |
|
|
|
</ModalWrapper> |
|
|
|
</ModalWrapper> |
|
|
|
|
|
|
|
|
|
|
|
<template #[item]="data" v-for="item in Object.keys(omit($slots, 'default'))"> |
|
|
|
<template v-for="item in Object.keys(omit($slots, 'default'))" #[item]="data"> |
|
|
|
<slot :name="item" v-bind="data"></slot> |
|
|
|
<slot :name="item" v-bind="data"/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</Modal> |
|
|
|
</Modal> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|