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

n-data-table component issue: property virtual-scroll and summary cannot coexist #3202

Closed
tang-junjie opened this issue Jun 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tang-junjie
Copy link

tang-junjie commented Jun 27, 2022

TuSimple/naive-ui version (版本)

2.30.6

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

Chrome Version 102.0.5005.61 (Official Build) (64-bit)

System and its version (系统及其版本)

Ubuntu 20.04

Node version (Node 版本)

v16.15.0

Reappearance link (重现链接)

https://codesandbox.io/s/dreamy-proskuriakova-5o0zh6?file=/src/Demo.vue

Reappearance steps (重现步骤)

  1. enable virtual-scroll on n-data-table component
  2. bind summary on n-data-table

Expected results (期望的结果)

summary should be rendered normally

Actual results (实际的结果)

summary is not rendered and raise the following error:
Cannot destructure property 'type' of 'vnode' as it is null.

Remarks (补充说明)

It would be great to add a new summary named slot for extensive user customization if possible.
Thanks!

@github-actions github-actions bot added the untriaged need to sort label Jun 27, 2022
@XieZongChen XieZongChen added bug Something isn't working and removed untriaged need to sort labels Jun 28, 2022
@XieZongChen XieZongChen self-assigned this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants