展示优化
This commit is contained in:
parent
32aecd8b1d
commit
892a6c5543
|
|
@ -38,7 +38,7 @@
|
||||||
@app-ready="handleAppReady" @error="handleError" @initialized="handleInitialized" :force-save="true"
|
@app-ready="handleAppReady" @error="handleError" @initialized="handleInitialized" :force-save="true"
|
||||||
:save-timeout="15000" />
|
:save-timeout="15000" />
|
||||||
</el-dialog> -->
|
</el-dialog> -->
|
||||||
<ViewFile v-if="dialogVisible" :file="fileData" @closeDialog="handleCloseDialog" />
|
<ViewFile v-if="dialogVisible" :file="fileData" @closeDialog="handleCloseDialog" :without-modal="withoutModal" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -106,6 +106,10 @@ export default {
|
||||||
imageHeight: {
|
imageHeight: {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: 400
|
default: 400
|
||||||
|
},
|
||||||
|
withoutModal: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dialog :visible.sync="dialogVisible" width="50%" class="preview-dialog" title="文件预览" @close="handleClose">
|
<el-dialog :visible.sync="dialogVisible" width="50%" class="preview-dialog" title="文件预览" @close="handleClose" :modal="!withoutModal">
|
||||||
<OnlyOfficeViewer :document-url="documentUrl" :document-title="documentTitle" :document-key="documentKey"
|
<OnlyOfficeViewer :document-url="documentUrl" :document-title="documentTitle" :document-key="documentKey"
|
||||||
:mode="mode" :type="type" @document-ready="handleDocumentReady" @app-ready="handleAppReady"
|
:mode="mode" :type="type" @document-ready="handleDocumentReady" @app-ready="handleAppReady"
|
||||||
@error="handleError" @initialized="handleInitialized" :force-save="true" :save-timeout="15000" />
|
@error="handleError" @initialized="handleInitialized" :force-save="true" :save-timeout="15000" />
|
||||||
|
|
@ -13,7 +13,11 @@ export default {
|
||||||
file: {
|
file: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => null
|
default: () => null
|
||||||
}
|
},
|
||||||
|
withoutModal: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false // 默认显示遮罩层
|
||||||
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
OnlyOfficeViewer
|
OnlyOfficeViewer
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
:label="''"
|
:label="''"
|
||||||
:file="form.fileList[0]"
|
:file="form.fileList[0]"
|
||||||
:image-url="form.url"
|
:image-url="form.url"
|
||||||
|
without-modal="true"
|
||||||
/>
|
/>
|
||||||
<span v-if="form.fileList.length === 0" class="no-file-tip">无附件</span>
|
<span v-if="form.fileList.length === 0" class="no-file-tip">无附件</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue