diff --git a/core/core-frontend/src/components/visualization/ComponentEditBar.vue b/core/core-frontend/src/components/visualization/ComponentEditBar.vue index 535d1c6d0b..6ac92aa5b6 100644 --- a/core/core-frontend/src/components/visualization/ComponentEditBar.vue +++ b/core/core-frontend/src/components/visualization/ComponentEditBar.vue @@ -156,8 +156,8 @@ import { useEmitt } from '@/hooks/web/useEmitt' import { copyStoreWithOut } from '@/store/modules/data-visualization/copy' import { exportExcelDownload } from '@/views/chart/components/js/util' import FieldsList from '@/custom-component/rich-text/FieldsList.vue' -import { ElMessage, ElTooltip } from 'element-plus-secondary' -import { Button } from 'vant' +import { RefreshLeft } from '@element-plus/icons-vue' +import { ElMessage, ElTooltip, ElButton } from 'element-plus-secondary' const dvMainStore = dvMainStoreWithOut() const snapshotStore = snapshotStoreWithOut() const copyStore = copyStoreWithOut() @@ -320,24 +320,21 @@ const openMessageLoading = cb => { message: h('p', null, [ '后台导出中,可前往', h( - Button, + ElButton, { - props: { - type: 'text', - size: 'mini' - }, + text: true, + size: 'small', class: 'btn-text', - on: { - click: () => { - cb() - } + onClick: () => { + cb() } }, - '数据导出中心' + t('data_export.export_center') ), '查看进度,进行下载' ]), iconClass, + icon: h(RefreshLeft), showClose: true, customClass }) diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index 9099542da5..72e7a64de5 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -79,10 +79,10 @@ import ChartComponentS2 from '@/views/chart/components/views/components/ChartCom import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { exportExcelDownload } from '@/views/chart/components/js/util' import { storeToRefs } from 'pinia' +import { RefreshLeft } from '@element-plus/icons-vue' import { assign } from 'lodash-es' import { useEmitt } from '@/hooks/web/useEmitt' -import { Button } from 'vant' -import { ElMessage } from 'element-plus-secondary' +import { ElMessage, ElButton } from 'element-plus-secondary' const downLoading = ref(false) const dvMainStore = dvMainStoreWithOut() const dialogShow = ref(false) @@ -220,24 +220,21 @@ const openMessageLoading = cb => { message: h('p', null, [ '后台导出中,可前往', h( - Button, + ElButton, { - props: { - type: 'text', - size: 'mini' - }, + text: true, + size: 'small', class: 'btn-text', - on: { - click: () => { - cb() - } + onClick: () => { + cb() } }, - '数据导出中心' + t('data_export.export_center') ), '查看进度,进行下载' ]), iconClass, + icon: h(RefreshLeft), showClose: true, customClass }) diff --git a/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue b/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue index baa726ec64..b67d63cd53 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue @@ -172,7 +172,7 @@ const openMessageLoading = (text, type = 'success', cb) => { ElButton, { text: true, - size: 'mini', + size: 'small', class: 'btn-text', onClick: () => { cb() @@ -182,7 +182,6 @@ const openMessageLoading = (text, type = 'success', cb) => { ) ]), icon: type === 'loading' ? h(RefreshLeft) : '', - duration: 0, type, showClose: true, customClass