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

fix(components): [table-v2] cell, header-cell, empty slots not displayed #15016

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

FrontEndDog
Copy link
Member

@FrontEndDog FrontEndDog commented Nov 30, 2023

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

Description

Similar to #14939

test example

🤖[deprecated] Generated by Copilot at 9f58022

This pull request refactors and improves the slot rendering of the table-v2 component by using the renderSlot function from vue in various components and renderers. It also enhances the test coverage and fixes some minor issues with the cell and header-cell slots.

Related Issue

Fixes #___.

Explanation of Changes

🤖[deprecated] Generated by Copilot at 9f58022

  • Refactor table-v2 component to use renderSlot function for consistent slot rendering and fallback content (link, link, link, link, link, link, link, link)
  • Import nextTick function from vue in table-v2.test.tsx to test reactivity of slot props (link)
  • Modify and update cell slot test in table-v2.test.tsx to check custom and default cell elements (link)
  • Modify and update header-cell slot test in table-v2.test.tsx to check custom and default header cell elements (link)
  • Add empty slot test in table-v2.test.tsx to check custom and default empty elements (link)
  • Remove unused types CellRendererParams and TableV2HeaderCell from cell.tsx and header-cell.tsx respectively (link, link)
  • Remove redundant variable CellComponent from cell.tsx and rename cellRenderer to columnCellRenderer to avoid confusion (link, link, link)

Copy link

👋 @FrontEndDog, thank you for contributing element-plus.

  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

Copy link

Hello @FrontEndDog, thank you for contributing to element-plus, please see our guideline to see how to make contribution

Copy link

github-actions bot commented Nov 30, 2023

@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label Nov 30, 2023
Copy link

github-actions bot commented Nov 30, 2023

🧪 Playground Preview: https://element-plus.run/?pr=15016
Please comment the example via this playground if needed.

@kooriookami kooriookami merged commit 0c8b6a5 into element-plus:dev Dec 5, 2023
21 checks passed
@element-bot element-bot mentioned this pull request Dec 15, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants