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) { 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;