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"
|
class="icon iconfont icon-quxiaoliandong"
|
||||||
/>{{ $t('panel.remove_all_linkage') }}111</el-button>
|
/>{{ $t('panel.remove_all_linkage') }}111</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="downloadPdfShow"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="exportPDF"
|
@click="exportPDF"
|
||||||
>
|
>
|
||||||
@ -90,6 +91,10 @@ export default {
|
|||||||
backToTopBtn: {
|
backToTopBtn: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
terminal: {
|
||||||
|
type: String,
|
||||||
|
default: 'pc'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -99,6 +104,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
downloadPdfShow() {
|
||||||
|
return this.terminal === 'PC'
|
||||||
|
},
|
||||||
functionClass() {
|
functionClass() {
|
||||||
let result = 'function-light'
|
let result = 'function-light'
|
||||||
if (this.canvasStyleData?.panel?.themeColor === 'dark') {
|
if (this.canvasStyleData?.panel?.themeColor === 'dark') {
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
<canvas-opt-bar
|
<canvas-opt-bar
|
||||||
v-if="canvasId==='canvas-main'"
|
v-if="canvasId==='canvas-main'"
|
||||||
ref="canvas-opt-bar"
|
ref="canvas-opt-bar"
|
||||||
|
:terminal="terminal"
|
||||||
:canvas-style-data="canvasStyleData"
|
:canvas-style-data="canvasStyleData"
|
||||||
:back-to-top-btn="backToTopBtnShow"
|
:back-to-top-btn="backToTopBtnShow"
|
||||||
@link-export-pdf="downloadAsPDF"
|
@link-export-pdf="downloadAsPDF"
|
||||||
|
|||||||
@ -2087,7 +2087,7 @@ export default {
|
|||||||
component_color: 'Component color',
|
component_color: 'Component color',
|
||||||
chart_title: 'Chart title',
|
chart_title: 'Chart title',
|
||||||
filter_component: 'Filter component',
|
filter_component: 'Filter component',
|
||||||
enable_refresh_view: 'Enable refresh',
|
enable_refresh_view: 'Data refresh',
|
||||||
enable_view_loading: 'View loading prompt',
|
enable_view_loading: 'View loading prompt',
|
||||||
image_size_tips: 'Please do not exceed 15M in the picture',
|
image_size_tips: 'Please do not exceed 15M in the picture',
|
||||||
image_add_tips: 'Only pictures can be inserted',
|
image_add_tips: 'Only pictures can be inserted',
|
||||||
|
|||||||
@ -2079,7 +2079,7 @@ export default {
|
|||||||
component_color: '組件配色',
|
component_color: '組件配色',
|
||||||
chart_title: '圖表標題',
|
chart_title: '圖表標題',
|
||||||
filter_component: '過濾組件',
|
filter_component: '過濾組件',
|
||||||
enable_refresh_view: '開啟刷新',
|
enable_refresh_view: '数据刷新',
|
||||||
enable_view_loading: '視圖加載提示',
|
enable_view_loading: '視圖加載提示',
|
||||||
image_size_tips: '圖片請不要大於15M',
|
image_size_tips: '圖片請不要大於15M',
|
||||||
image_add_tips: '只能插入圖片',
|
image_add_tips: '只能插入圖片',
|
||||||
|
|||||||
@ -2082,7 +2082,7 @@ export default {
|
|||||||
component_color: '组件配色',
|
component_color: '组件配色',
|
||||||
chart_title: '图表标题',
|
chart_title: '图表标题',
|
||||||
filter_component: '过滤组件',
|
filter_component: '过滤组件',
|
||||||
enable_refresh_view: '开启刷新',
|
enable_refresh_view: '数据刷新',
|
||||||
enable_view_loading: '视图加载提示',
|
enable_view_loading: '视图加载提示',
|
||||||
image_size_tips: '图片请不要大于15M',
|
image_size_tips: '图片请不要大于15M',
|
||||||
image_add_tips: '只能插入图片',
|
image_add_tips: '只能插入图片',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user