From 53ebf769e4e030ec8699d296e9d160c62f6726ff Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 22 Oct 2024 20:07:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=9C=A8=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=9A=84=E8=AE=BE=E7=BD=AE=E9=A1=B9=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E3=80=90=E5=85=A8=E9=87=8F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E3=80=91=E7=9A=84=E9=80=89=E9=A1=B9=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=A8=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=8B=BE=E9=80=89?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E6=9C=80=E4=BC=98=E6=98=BE=E7=A4=BA=E6=9D=A5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=87=E7=AD=BE=20#9829?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 3 +- .../src/models/chart/chart-attr.d.ts | 6 +++- .../editor-style/components/LabelSelector.vue | 12 +++++++ .../chart/components/editor/util/chart.ts | 3 +- .../views/chart/components/js/extremumUitl.ts | 10 +++--- .../js/panel/charts/bar/bidirectional-bar.ts | 7 +++- .../components/js/panel/charts/line/area.ts | 9 +++-- .../components/js/panel/charts/line/line.ts | 1 - .../js/panel/charts/map/bubble-map.ts | 1 - .../components/js/panel/charts/map/map.ts | 1 - .../js/panel/charts/others/funnel.ts | 6 +++- .../js/panel/charts/others/quadrant.ts | 7 +++- .../js/panel/charts/others/radar.ts | 2 +- .../js/panel/charts/others/sankey.ts | 6 +++- .../js/panel/charts/others/treemap.ts | 3 ++ .../components/js/panel/charts/pie/pie.ts | 19 ++++++++++- .../components/js/panel/charts/pie/rose.ts | 6 ++++ .../js/panel/charts/table/t-heatmap.ts | 6 +++- .../components/js/panel/common/common_antv.ts | 33 +++++++++++++++---- 19 files changed, 114 insertions(+), 27 deletions(-) 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) +})