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
code
const [registerTable, { reload, getColumns }] = useTable({ showIndexColumn: false, columns: getBasicColumns(), onChange: (pagination: any, __: any, sorter: { [key: string]: string }) => { }, ellipsis: false, });
warning:
[Vue warn]: Invalid prop: type check failed for prop "onChange". Expected Function, got Array at <ATable ref="tableElRef" size="middle" customRow=fn ... > at <BasicTable onRegister=fn dataSource= [{…}] >
version: vben 2.3.0 ant-design-vue 2.1.6
The text was updated successfully, but these errors were encountered:
9f4d171
注意,不能使用useTable来注册事件,useTable只可用来设置props。请直接将事件绑定在Template中的BasicTable节点上。如: <BasicTable @register="registerTable" @change="onChange" />
<BasicTable @register="registerTable" @change="onChange" />
Sorry, something went wrong.
https://github.com/anncwb/vue-vben-admin/commit/9f5085c9f9f46b09391156b17091c1771bc13026
此commit解决useTable无法注册onChange的问题。
No branches or pull requests
code
warning:
[Vue warn]: Invalid prop: type check failed for prop "onChange". Expected Function, got Array
at <ATable ref="tableElRef" size="middle" customRow=fn ... >
at <BasicTable onRegister=fn dataSource= [{…}] >
version:
vben 2.3.0
ant-design-vue 2.1.6
The text was updated successfully, but these errors were encountered: