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(data-table): add render-cell #3109

Merged
merged 3 commits into from
Jun 19, 2022
Merged

feat(data-table): add render-cell #3109

merged 3 commits into from
Jun 19, 2022

Conversation

XieZongChen
Copy link
Collaborator

close #3095

@vercel
Copy link

vercel bot commented Jun 15, 2022

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

Name Status Preview Updated
naive-ui ✅ Ready (Inspect) Visit Preview Jun 19, 2022 at 4:02AM (UTC)

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #3109 (d4c04a3) into main (c45d504) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

❗ Current head d4c04a3 differs from pull request most recent head ea5ba85. Consider uploading reports for the commit ea5ba85 to get more accurate results

@@            Coverage Diff             @@
##             main    #3109      +/-   ##
==========================================
- Coverage   63.21%   63.13%   -0.08%     
==========================================
  Files        1012     1009       -3     
  Lines       20981    20959      -22     
  Branches     5458     5453       -5     
==========================================
- Hits        13263    13233      -30     
- Misses       6303     6315      +12     
+ Partials     1415     1411       -4     
Impacted Files Coverage Δ
src/data-table/src/DataTable.tsx 70.93% <ø> (ø)
src/data-table/src/TableParts/Body.tsx 62.59% <ø> (ø)
src/data-table/src/TableParts/Cell.tsx 93.33% <0.00%> (-6.67%) ⬇️
src/data-table/src/interface.ts 100.00% <ø> (ø)
src/_mixins/use-rtl.ts 75.00% <0.00%> (-14.29%) ⬇️
src/space/src/Space.tsx 87.03% <0.00%> (-12.97%) ⬇️
src/config-provider/src/ConfigProvider.ts 41.30% <0.00%> (-4.35%) ⬇️
src/back-top/src/BackTop.tsx 60.22% <0.00%> (-2.70%) ⬇️
src/_internal/selection/src/Selection.tsx 41.07% <0.00%> (-0.27%) ⬇️
src/_utils/index.ts 100.00% <0.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c45d504...ea5ba85. Read the comment docs.

@@ -394,7 +396,8 @@ export default defineComponent({
doUpdateExpandedRowKeys,
handleTableHeaderScroll,
handleTableBodyScroll,
setHeaderScrollLeft
setHeaderScrollLeft,
renderCell: props.renderCell
Copy link
Collaborator

Choose a reason for hiding this comment

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

必须 toRef,不然没有响应式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

是否给Data Table某个字段值为空时增加一个默认占位符?
2 participants