Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 单元格行高拖拽支持多行文本自适应 #2980

Merged
merged 8 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading