feat: improve long text display in table chart

This commit is contained in:
ulleo
2026-01-23 17:57:58 +08:00
parent 0ced728b70
commit 0d78646722
4 changed files with 16 additions and 3 deletions
+3
View File
@@ -681,6 +681,9 @@
"line": "Line",
"pie": "Pie"
},
"sort_asc": "Ascending",
"sort_desc": "Descending",
"sort_none": "No Sort",
"show_sql": "View SQL",
"export_to": "Export As",
"excel": "Excel",
+3
View File
@@ -681,6 +681,9 @@
"line": "선 차트",
"pie": "원형 차트"
},
"sort_asc": "오름차순",
"sort_desc": "내림차순",
"sort_none": "정렬 안 함",
"show_sql": "SQL 보기",
"export_to": "다음으로 내보내기",
"excel": "Excel",
+3
View File
@@ -681,6 +681,9 @@
"line": "折线图",
"pie": "饼图"
},
"sort_asc": "升序",
"sort_desc": "降序",
"sort_none": "不排序",
"show_sql": "查看SQL",
"export_to": "导出为",
"excel": "Excel",
@@ -118,9 +118,13 @@ export class Table extends BaseChart {
container.style.minWidth = '100px'
const menuItems = [
{ label: '降序', method: 'desc' as SortMethod, icon: 'el-icon-sort-down' },
{ label: '升序', method: 'asc' as SortMethod, icon: 'el-icon-sort-up' },
{ label: '不排序', method: 'none' as SortMethod, icon: 'el-icon-close' },
{
label: t('chat.sort_desc'),
method: 'desc' as SortMethod,
icon: 'el-icon-sort-down',
},
{ label: t('chat.sort_asc'), method: 'asc' as SortMethod, icon: 'el-icon-sort-up' },
{ label: t('chat.sort_none'), method: 'none' as SortMethod, icon: 'el-icon-close' },
]
menuItems.forEach((item) => {