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.
9f5085c
此commit解决useTable无法注册onChange的问题。
fix(table): support change event
bfb4cd4
修复表格不支持change事件的问题。 fix vbenjs#677
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: