diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 2731a814dd..76d8a5e54c 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1543,7 +1543,8 @@ export default { security_code: '安全密钥', auto_fit: '自适应缩放', zoom_level: '缩放等级', - central_point: '中心点' + central_point: '中心点', + full_display: '全量显示' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/models/chart/chart-attr.d.ts b/core/core-frontend/src/models/chart/chart-attr.d.ts index fbaa5b3c5b..6b73e6dc25 100644 --- a/core/core-frontend/src/models/chart/chart-attr.d.ts +++ b/core/core-frontend/src/models/chart/chart-attr.d.ts @@ -313,7 +313,7 @@ declare interface ChartBasicStyle { * 纬度 */ latitude: number - }, + } /** * 缩放等级 */ @@ -922,6 +922,10 @@ declare interface ChartLabelAttr { * 柱状图堆叠指标 */ showStackQuota: boolean + /** + * 全部显示 + */ + fullDisplay: boolean } /** * 提示设置 diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index ee7225db53..0b7e0dfed9 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -448,6 +448,9 @@ const conversionPrecision = [ { name: t('chart.reserve_one'), value: 1 }, { name: t('chart.reserve_two'), value: 2 } ] +const noFullDisplay = computed(() => { + return !['symbolic-map', 'liquid', 'gauge', 'indicator'].includes(props.chart.type) +})