myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.97k stars 1.67k forks source link

决定渲染多少行能不能不要交给rows中的len属性,而是直接读取多少数据就渲染多少行 #686

Open story-song opened 4 months ago

story-song commented 4 months ago

问题描述:在进行渲染的时候,如果不指定 rows中的len属性,就会只渲染默认的行数,虽然这个也可以自定义指定,但是显得不是很灵活;

const data = [
 {
   rows:{
     ...
     len:100,
   }
 }
]

如我得案例所示https://codesandbox.io/p/sandbox/x-data-spreadsheet-loaddata-test-ljf5kg

希望能不能组件自己读取数据得长度,而不是需要用户指定;