-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
data table 中当 renderExpand 返回 undefined 时,展开后会出现空白块 #3373
Comments
你需要用 expandable 控制行是否可展开 |
比如以下场景: |
按照预期是会的 |
但是实际上下面可展开的内容并不会随之消失,上述场景下,当expandable消失的时候,下面可展开的内容依然会保持展开状态,此时渲染的就是renderExpand返回的内容,如果返回的是undefined,那么就会如Remarks (补充说明)中图片上那样,渲染一个空白块 @07akioni |
TuSimple/naive-ui version (版本)
2.31.0
Vue version (Vue 版本)
3.2.13
Browser and its version (浏览器及其版本)
Chrome(103.0.5060.114)
System and its version (系统及其版本)
MacOS(11.6)
Node version (Node 版本)
Reappearance link (重现链接)
https://github.com/atAurora/naive-ui-datatable-bug
Reappearance steps (重现步骤)
打开项目,点击 data table 的展开按钮
Expected results (期望的结果)
renderExpand 并没有返回任何内容,展开后应该不渲染任何内容
Actual results (实际的结果)
展开后渲染空白块
Remarks (补充说明)
The text was updated successfully, but these errors were encountered: