When tree data table is used a "children-key" prop is required (default value is "children"). That's ok, but grouped header requires "children" prop in schema too.
With these settings table is rendered with several expand triggers in each row (one in first column and others where columns has "children" prop)
It seems to me that this issue appeared after update naive to version 2.40.1, last stable - 2.39.0.
Steps to reproduce
Basic options (columns and table data) for tree data table, below:
Describe the bug
When tree data table is used a "children-key" prop is required (default value is "children"). That's ok, but grouped header requires "children" prop in schema too. With these settings table is rendered with several expand triggers in each row (one in first column and others where columns has "children" prop)
It seems to me that this issue appeared after update naive to version 2.40.1, last stable - 2.39.0.
Steps to reproduce
Basic options (columns and table data) for tree data table, below:
const columns = [ { title: 'Column 1', key: 'column1', align: 'center', }, { title: 'Column 2', align: 'center', children: [ { title: 'Column 2.1', key: 'column2', align: 'center', }, { title: 'Column 2.2', key: 'column2', align: 'center', }, ], }, { title: 'Column 3', align: 'center', children: [ { title: 'Column 3.1', key: 'column3', align: 'center', }, { title: 'Column 3.2', key: 'column3', align: 'center', }, ], }, { title: 'Column 4', key: 'column4', align: 'center', }, ];
const data = [ { key: 1, column1: 1, column2: 2, column3: 3, column4: 4, children: [ { key: 2, column1: 1, column2: 2, column3: 3, column4: 4, children: [{ key: 3, column1: 1, column2: 2, column3: 3, column4: 4 }], }, ], }, ];
Link to minimal reproduction
no link
System Info
Used Package Manager
npm
Validations