Merge pull request #7681 from dataease/pr@dev@refactor_panel
Pr@dev@refactor panel
This commit is contained in:
commit
28cfdde9bb
@ -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"
|
||||
|
||||
@ -2087,7 +2087,7 @@ export default {
|
||||
component_color: 'Component color',
|
||||
chart_title: 'Chart title',
|
||||
filter_component: 'Filter component',
|
||||
enable_refresh_view: 'Enable refresh',
|
||||
enable_refresh_view: 'Data refresh',
|
||||
enable_view_loading: 'View loading prompt',
|
||||
image_size_tips: 'Please do not exceed 15M in the picture',
|
||||
image_add_tips: 'Only pictures can be inserted',
|
||||
|
||||
@ -2079,7 +2079,7 @@ export default {
|
||||
component_color: '組件配色',
|
||||
chart_title: '圖表標題',
|
||||
filter_component: '過濾組件',
|
||||
enable_refresh_view: '開啟刷新',
|
||||
enable_refresh_view: '数据刷新',
|
||||
enable_view_loading: '視圖加載提示',
|
||||
image_size_tips: '圖片請不要大於15M',
|
||||
image_add_tips: '只能插入圖片',
|
||||
|
||||
@ -2082,7 +2082,7 @@ export default {
|
||||
component_color: '组件配色',
|
||||
chart_title: '图表标题',
|
||||
filter_component: '过滤组件',
|
||||
enable_refresh_view: '开启刷新',
|
||||
enable_refresh_view: '数据刷新',
|
||||
enable_view_loading: '视图加载提示',
|
||||
image_size_tips: '图片请不要大于15M',
|
||||
image_add_tips: '只能插入图片',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user