表单评论区域功能问题修复
parent
052e63d875
commit
c6e48c1c43
|
@ -17,7 +17,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- update-begin-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
<!-- update-begin-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
||||||
<a-row v-if="getProps.enableComment" class="jeecg-modal-wrapper">
|
<a-row class="jeecg-modal-wrapper">
|
||||||
<a-col :span="24-commentSpan" class="jeecg-modal-content">
|
<a-col :span="24-commentSpan" class="jeecg-modal-content">
|
||||||
<ModalWrapper
|
<ModalWrapper
|
||||||
:useWrapper="getProps.useWrapper"
|
:useWrapper="getProps.useWrapper"
|
||||||
|
@ -36,31 +36,14 @@
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</ModalWrapper>
|
</ModalWrapper>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<a-col :span="commentSpan" class="jeecg-comment-outer">
|
<a-col :span="commentSpan" class="jeecg-comment-outer">
|
||||||
<slot name="comment"></slot>
|
<slot name="comment"></slot>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
</a-row>
|
</a-row>
|
||||||
<ModalWrapper
|
|
||||||
v-else
|
|
||||||
:useWrapper="getProps.useWrapper"
|
|
||||||
:footerOffset="wrapperFooterOffset"
|
|
||||||
:fullScreen="fullScreenRef"
|
|
||||||
ref="modalWrapperRef"
|
|
||||||
:loading="getProps.loading"
|
|
||||||
:loading-tip="getProps.loadingTip"
|
|
||||||
:minHeight="getProps.minHeight"
|
|
||||||
:height="getWrapperHeight"
|
|
||||||
:visible="visibleRef"
|
|
||||||
:modalFooterHeight="footer !== undefined && !footer ? 0 : undefined"
|
|
||||||
v-bind="omit(getProps.wrapperProps, 'visible', 'height', 'modalFooterHeight')"
|
|
||||||
@ext-height="handleExtHeight"
|
|
||||||
@height-change="handleHeightChange">
|
|
||||||
<slot></slot>
|
|
||||||
</ModalWrapper>
|
|
||||||
<!-- update-end-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
<!-- update-end-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
||||||
|
|
||||||
<template #[item]="data" v-for="item in Object.keys(omit($slots, 'default'))">
|
<template #[item]="data" v-for="item in Object.keys(omit($slots, 'default'))">
|
||||||
<slot :name="item" v-bind="data || {}"></slot>
|
<slot :name="item" v-bind="data || {}"></slot>
|
||||||
</template>
|
</template>
|
||||||
|
@ -282,4 +265,4 @@
|
||||||
.jeecg-modal-content {
|
.jeecg-modal-content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue