We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
这个问题是 props 的 searchFields 传了一个 function 来动态返回数据,导致每次 render 时都重新送一个新的 searchFields 的数据给 dataTabel 从而导致上面的问题 正确的使用方法是要传一个固定的 searchFields 的数组给 dataTable 错误用法: function getSearchField() { return [ { label: 'hello', name: 'id', type: 'input' } ] } ... <DataTable rowKey={record => record._id} searchFields={getSearchField()} />
正确用法: const searchFieldList = [ { label: 'hello', name: 'id', type: 'input' } ] ... <DataTable rowKey={record => record._id} searchFields={searchFieldList} />
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: