refactor(仪表板): 公共链接移动端显示是无需下载 #6252

This commit is contained in:
wangjiahao 2024-01-18 09:49:19 +08:00
parent 2d11082fe4
commit b3c4082863
2 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,7 @@
class="icon iconfont icon-quxiaoliandong"
/>{{ $t('panel.remove_all_linkage') }}111</el-button>
<el-button
v-if="downloadPdfShow"
size="mini"
@click="exportPDF"
>
@ -90,6 +91,10 @@ export default {
backToTopBtn: {
type: Boolean,
default: false
},
terminal: {
type: String,
default: 'pc'
}
},
data() {
@ -99,6 +104,9 @@ export default {
}
},
computed: {
downloadPdfShow() {
return this.terminal === 'PC'
},
functionClass() {
let result = 'function-light'
if (this.canvasStyleData?.panel?.themeColor === 'dark') {

View File

@ -9,6 +9,7 @@
<canvas-opt-bar
v-if="canvasId==='canvas-main'"
ref="canvas-opt-bar"
:terminal="terminal"
:canvas-style-data="canvasStyleData"
:back-to-top-btn="backToTopBtnShow"
@link-export-pdf="downloadAsPDF"