|
@@ -24,32 +24,33 @@
|
|
|
</ModalFooter>
|
|
|
</template>
|
|
|
|
|
|
- <ModalWrapper
|
|
|
- :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"
|
|
|
- >
|
|
|
- <!-- update-begin-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
|
|
- <a-row>
|
|
|
- <a-col :span="24 - commentSpan">
|
|
|
+ <!-- update-begin-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="24 - commentSpan" class="jeecg-modal-content">
|
|
|
+ <ModalWrapper
|
|
|
+ :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>
|
|
|
- </a-col>
|
|
|
- <a-col :span="commentSpan">
|
|
|
- <slot name="comment"></slot>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <!-- update-end-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
|
|
- </ModalWrapper>
|
|
|
+ </ModalWrapper>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :span="commentSpan" class="jeecg-comment-outer">
|
|
|
+ <slot name="comment"></slot>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <!-- update-end-author:taoyan date:2022-7-18 for: modal弹窗 支持评论 slot -->
|
|
|
|
|
|
<template #[item]="data" v-for="item in Object.keys(omit($slots, 'default'))">
|
|
|
<slot :name="item" v-bind="data || {}"></slot>
|
|
@@ -256,3 +257,16 @@
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
+<style lang="less">
|
|
|
+ .jeecg-comment-outer {
|
|
|
+ border-left: 1px solid #f0f0f0;
|
|
|
+ .ant-tabs-nav-wrap {
|
|
|
+ /* text-align: center;*/
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .jeecg-modal-content {
|
|
|
+ > .scroll-container {
|
|
|
+ padding: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|