Skip to content

Commit 0d78646

Browse files
committed
feat: improve long text display in table chart
1 parent 0ced728 commit 0d78646

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

frontend/src/i18n/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@
681681
"line": "Line",
682682
"pie": "Pie"
683683
},
684+
"sort_asc": "Ascending",
685+
"sort_desc": "Descending",
686+
"sort_none": "No Sort",
684687
"show_sql": "View SQL",
685688
"export_to": "Export As",
686689
"excel": "Excel",

frontend/src/i18n/ko-KR.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@
681681
"line": "선 차트",
682682
"pie": "원형 차트"
683683
},
684+
"sort_asc": "오름차순",
685+
"sort_desc": "내림차순",
686+
"sort_none": "정렬 안 함",
684687
"show_sql": "SQL 보기",
685688
"export_to": "다음으로 내보내기",
686689
"excel": "Excel",

frontend/src/i18n/zh-CN.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@
681681
"line": "折线图",
682682
"pie": "饼图"
683683
},
684+
"sort_asc": "升序",
685+
"sort_desc": "降序",
686+
"sort_none": "不排序",
684687
"show_sql": "查看SQL",
685688
"export_to": "导出为",
686689
"excel": "Excel",

frontend/src/views/chat/component/charts/Table.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,13 @@ export class Table extends BaseChart {
118118
container.style.minWidth = '100px'
119119

120120
const menuItems = [
121-
{ label: '降序', method: 'desc' as SortMethod, icon: 'el-icon-sort-down' },
122-
{ label: '升序', method: 'asc' as SortMethod, icon: 'el-icon-sort-up' },
123-
{ label: '不排序', method: 'none' as SortMethod, icon: 'el-icon-close' },
121+
{
122+
label: t('chat.sort_desc'),
123+
method: 'desc' as SortMethod,
124+
icon: 'el-icon-sort-down',
125+
},
126+
{ label: t('chat.sort_asc'), method: 'asc' as SortMethod, icon: 'el-icon-sort-up' },
127+
{ label: t('chat.sort_none'), method: 'none' as SortMethod, icon: 'el-icon-close' },
124128
]
125129

126130
menuItems.forEach((item) => {

0 commit comments

Comments
 (0)