Merge pull request #13637 from dataease/pr@dev-v2@refactor_button

refactor: 修改悬浮按钮提示
This commit is contained in:
王嘉豪 2024-11-28 13:34:26 +08:00 committed by GitHub
commit 693061d2ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 5 deletions

View File

@ -206,7 +206,7 @@
<span style="margin-right: 4px"> {{ t('visualization.button_tips') }}</span>
<el-tooltip class="item" :effect="toolTip" placement="bottom">
<template #content>
<div>{{ t('visualization.effective_during_preview') }}</div>
<div>{{ t('visualization.effective_during_link') }}</div>
</template>
<el-icon class="hint-icon" :class="{ 'hint-icon--dark': themes === 'dark' }">
<Icon name="icon_info_outlined"><icon_info_outlined class="svg-icon" /></Icon>

View File

@ -128,7 +128,7 @@ const back2Last = () => {
window.location.reload()
}
const exportPDF = () => {
useEmitt().emitter.emit('canvasDownload')
useEmitt().emitter.emit('canvasDownload', 'pdf')
}
</script>

View File

@ -52,7 +52,7 @@
<span style="margin-right: 4px">{{ t('visualization.show_zoom_button') }}</span>
<el-tooltip class="item" :effect="themes" placement="bottom">
<template #content>
<div>{{ t('visualization.effective_during_preview') }}</div>
<div>{{ t('visualization.effective_during_link') }}</div>
</template>
<el-icon class="hint-icon" :class="{ 'hint-icon--dark': themes === 'dark' }">
<Icon name="icon_info_outlined"><icon_info_outlined class="svg-icon" /></Icon>

View File

@ -2657,6 +2657,7 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
column_name: 'Field name'
},
visualization: {
effective_during_link: 'Public link active',
condition_style_set: 'Condition Style Settings',
cell_merge_tips:
'After merging cells, row/column freezing and automatic line wrapping will be disabled.',

View File

@ -608,6 +608,7 @@ export default {
secret_length: '密鑰長度'
},
components: {
effective_during_link: '公共連結生效',
dashboard_style: '儀表板風格',
overall_configuration: '整體配置',
dashboard_background: '儀表板背景',

View File

@ -2597,6 +2597,7 @@ export default {
column_name: '字段名称'
},
visualization: {
effective_during_link: '公共链接生效',
condition_style_set: '条件样式设置',
cell_merge_tips: '合并单元格后行列冻结自动换行会失效',
image: '图片',

View File

@ -168,8 +168,8 @@ const XpackLoaded = () => p(true)
onMounted(async () => {
useEmitt({
name: 'canvasDownload',
callback: function () {
downloadH2('img')
callback: function (type = 'img') {
downloadH2(type)
}
})
await new Promise(r => (p = r))