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

[WIP] feat: 优化组件层-明细表切换到透视表时的布局效果 #2950

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

lijinke666
Copy link
Member

@lijinke666 lijinke666 commented Oct 29, 2024

👀 PR includes

✨ Feature

  • New feature

📝 Description

🖼️ Screenshot

Before After
Kapture 2024-10-29 at 11 29 18 Kapture 2024-10-29 at 11 27 16

🔗 Related issue link

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ❌ Failed (Inspect) Oct 31, 2024 2:32am

@github-actions github-actions bot added next 2.0-next 版本的问题 pr(feature) new feature labels Oct 29, 2024
Copy link
Contributor

github-actions bot commented Oct 29, 2024

Size Change: +70 B (+0.02%)

Total Size: 336 kB

Filename Size Change
./packages/s2-core/dist/index.min.js 236 kB +68 B (+0.03%)
./packages/s2-react/dist/index.min.js 70.9 kB -4 B (-0.01%)
./packages/s2-vue/dist/index.min.js 23 kB +6 B (+0.03%)
ℹ️ View Unchanged
Filename Size
./packages/s2-core/dist/style.min.css 388 B
./packages/s2-react/dist/style.min.css 3.77 kB
./packages/s2-vue/dist/style.min.css 1.85 kB

compressed-size-action

@@ -62,6 +62,14 @@ export class PivotFacet extends FrozenFacet {
return this.spreadsheet.options.colCell?.(...args) || new ColCell(...args);
}

public render() {
if (isEmpty(this.spreadsheet.dataCfg?.fields?.values)) {
Copy link
Member Author

@lijinke666 lijinke666 Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

values 为空时不重新构建 layout, 避免 react 组件层在明细切透视时闪烁

@lijinke666 lijinke666 changed the title feat: 优化明细表切换到透视表时的布局效果 [WIP] feat: 优化组件层-明细表切换到透视表时的布局效果 Oct 30, 2024
@github-actions github-actions bot removed the pr(feature) new feature label Oct 30, 2024
@lijinke666 lijinke666 changed the title [WIP] feat: 优化组件层-明细表切换到透视表时的布局效果 feat: 优化组件层-明细表切换到透视表时的布局效果 Oct 31, 2024
@github-actions github-actions bot added the pr(feature) new feature label Oct 31, 2024
Copy link
Contributor

你好, @lijinke666 CI 执行失败, 请点击 [Details] 按钮查看, 并根据日志修复。

Hello, @lijinke666 CI run failed, please click the [Details] button for detailed log information and fix it.

@github-actions github-actions bot added the 🚨 test failed 单元测试挂了 label Oct 31, 2024
@lijinke666 lijinke666 changed the title feat: 优化组件层-明细表切换到透视表时的布局效果 [WIP] feat: 优化组件层-明细表切换到透视表时的布局效果 Nov 1, 2024
@github-actions github-actions bot removed the pr(feature) new feature label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题 🚨 test failed 单元测试挂了
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant