From 0ee8a5360b2864a3989e61ee70acbe9da08a2a1c Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 20 Aug 2024 18:23:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E9=92=BB?= =?UTF-8?q?=E5=8F=96=E8=B7=AF=E5=BE=84=E6=9C=80=E5=A4=A7=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/views/components/DrillPath.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/views/components/DrillPath.vue b/core/core-frontend/src/views/chart/components/views/components/DrillPath.vue index 0da1883ee8..e1958bbc73 100644 --- a/core/core-frontend/src/views/chart/components/views/components/DrillPath.vue +++ b/core/core-frontend/src/views/chart/components/views/components/DrillPath.vue @@ -81,7 +81,9 @@ const loadThemeStyle = () => { class="drill-item" @click="drillJump(index + 1)" > - {{ filter.value[0] }} + {{ + filter.value[0] + }} @@ -96,6 +98,13 @@ const loadThemeStyle = () => { } .drill-item { cursor: pointer; + .item-name { + max-width: 200px; + display: inline-block; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } } .drill { z-index: 1; From 9b1e0b6f0b9c54751693295877d524503d8ab58d Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 20 Aug 2024 18:24:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E9=92=BB?= =?UTF-8?q?=E5=8F=96=20URL=20=E5=AD=97=E6=AE=B5=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-info.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts index 4de4f3690c..144635aaf8 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts @@ -127,7 +127,7 @@ export class TableInfo extends S2ChartView { const style = this.configStyle(chart) // 自适应列宽模式下,URL 字段的宽度固定为 120 if (customAttr.basicStyle.tableColumnMode === 'adapt') { - const urlFields = fields.filter(field => axisMap[field.dataeaseName]?.deType === 7) + const urlFields = fields.filter(field => field.deType === 7) style.colCfg.widthByFieldValue = urlFields?.reduce((p, n) => { p[n.chartShowName ?? n.name] = 120 return p @@ -162,8 +162,8 @@ export class TableInfo extends S2ChartView { } } s2Options.dataCell = viewMeta => { - const deType = axisMap[viewMeta.valueField]?.deType - if (deType === 7 && chart.showPosition !== 'dialog') { + const field = fields.filter(f => f.dataeaseName === viewMeta.valueField)?.[0] + if (field?.deType === 7 && chart.showPosition !== 'dialog') { return new ImageCell(viewMeta, viewMeta?.spreadsheet) } if (viewMeta.colIndex === 0 && s2Options.showSeriesNumber) {