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
14.16k stars 1.7k forks source link

如何渲染指定的某个sheet #687

Open story-song opened 7 months ago

story-song commented 7 months ago

问题描述:当我使用instance.loadData()之后,整个excel会默认回到第一个sheet,但是我依然希望指定的渲染某个sheet。

但是好像并没有提供有关如何渲染指定sheet的API

wyaoting commented 6 months ago
instance.bottombar.swapFunc = (index) => { }

可以拿到你点击的sheet 下标 或许可以帮到你