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

数据表格2,建议增加单纯加载数据的方法 #159

Open
kayfong opened this issue Dec 3, 2019 · 3 comments
Open

数据表格2,建议增加单纯加载数据的方法 #159

kayfong opened this issue Dec 3, 2019 · 3 comments

Comments

@kayfong
Copy link

kayfong commented Dec 3, 2019

数据表格2,已经有了 setDataSource 方法,但该方法需要设置一整套的数据源参数,大部分情况下只是数据本身发生改变,没有必要将数据源重新设置一次。

另外,虽然 dataSource 参数中的 getByIndex 可以很好的适应任意数据,但前端仍然需要编写若干代码处理数据,去适配 getByIndex 的调用规则,中间多了一层逻辑。常见的用例是,设置好表格参数,【直接】往里面加载【具体数据】,然后刷新。

建议:提供 loadDatasetData 方法,直接设置 dataSource 中的 array,供表格展示。原型可以为:
function loadData(array, refresh)
array array 具体数据
refresh boolean 是否自动刷新,可选

@catouse
Copy link
Collaborator

catouse commented Dec 4, 2019

多谢,我们会在后续版本中认真考虑你的建议。

@ghost
Copy link

ghost commented Dec 14, 2019

迫切需求该功能,辛苦各位大大~

@zxh-im
Copy link

zxh-im commented Dec 16, 2019

现在也有这问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants