Skip to content

Commit

Permalink
feat: 单元格行高拖拽支持多行文本自适应 (#2980)
Browse files Browse the repository at this point in the history
* feat: 单元格行高拖拽支持多行文本自适应

* docs: 还原文档包版本

* fix: 支持单行调整

* fix: 优化代码

* test: 优化单测

* docs: 优化文档

* test: 优化单测
  • Loading branch information
lijinke666 authored Nov 20, 2024
1 parent e243e89 commit 535c2aa
Show file tree
Hide file tree
Showing 34 changed files with 12,624 additions and 8,207 deletions.
8 changes: 4 additions & 4 deletions packages/s2-core/__tests__/bugs/issue-2528-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const s2Options: S2Options = {
describe('Table Sheet Editable Formatter Tests', () => {
let s2: SpreadSheet;

beforeEach(() => {
beforeEach(async () => {
s2 = new TableSheet(getContainer(), s2DataConfig, s2Options);

s2.render();
await s2.render();
});

test('should get formatted data', () => {
Expand All @@ -36,7 +36,7 @@ describe('Table Sheet Editable Formatter Tests', () => {
expect(costValues).toEqual(['2-@', '2-@', '2-@']);
});

test('should only format data once after data edited', () => {
test('should only format data once after data edited', async () => {
const id = '0-root[&]cost';
const inputValue = 'test';

Expand All @@ -46,7 +46,7 @@ describe('Table Sheet Editable Formatter Tests', () => {
displayData[0]['cost'] = inputValue;
s2.dataSet.displayFormattedValueMap?.set(id, inputValue);

s2.render();
await s2.render();

const costValues = s2.facet
.getDataCells()
Expand Down
Loading

0 comments on commit 535c2aa

Please sign in to comment.