mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
refactor(仪表板): 公共链接移动端显示是无需下载 #6252
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user