Skip to content

Commit

Permalink
fix: 修复明细表自定义列头时开启文本换行, 单元格高度错误的问题 close #2955
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Nov 8, 2024
1 parent e759891 commit ee307e3
Show file tree
Hide file tree
Showing 4 changed files with 420 additions and 1 deletion.
23 changes: 23 additions & 0 deletions packages/s2-core/__tests__/data/custom-table-col-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,29 @@ export const customColSimpleColumns: CustomTreeNode[] = [
},
];

export const customColSimpleMultipleTextColumns: CustomTreeNode[] = [
{
field: 'area',
title: '地区'.repeat(50),
children: [
{ field: 'province', title: '省份' },
{ field: 'city', title: '城市' },
],
},
{
field: 'type',
title: '类型',
},
{
field: 'money',
title: '金额'.repeat(20),
children: [
{ field: 'price', title: '价格', description: '价格描述' },
{ field: 'number', title: '数量'.repeat(30) },
],
},
];

export const customColMultipleColumns: CustomTreeNode[] = [
{
field: 'a-1',
Expand Down
Loading

0 comments on commit ee307e3

Please sign in to comment.