mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(ChartComponentS2): 添加国际化支持,更新总条目文本显示
This commit is contained in:
@@ -30,6 +30,7 @@ import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { isDashboard, trackBarStyleCheck } from '@/utils/canvasUtils'
|
||||
import { type SpreadSheet } from '@antv/s2'
|
||||
import { parseJson } from '../../js/util'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
const {
|
||||
@@ -41,6 +42,7 @@ const {
|
||||
inMobile
|
||||
} = storeToRefs(dvMainStore)
|
||||
const { emitter } = useEmitt()
|
||||
const { t } = useI18n()
|
||||
|
||||
const props = defineProps({
|
||||
element: {
|
||||
@@ -724,7 +726,7 @@ const tablePageClass = computed(() => {
|
||||
@keydown.stop
|
||||
@keyup.stop
|
||||
>
|
||||
<div>共{{ state.pageInfo.total }}条</div>
|
||||
<div>{{ t('chart.total') }} {{ state.pageInfo.total }} {{ t('chart.items') }}</div>
|
||||
<el-pagination
|
||||
v-if="state.pageStyle !== 'general'"
|
||||
class="table-page-content"
|
||||
|
||||
Reference in New Issue
Block a user