vue-vben-admin
vue-vben-admin copied to clipboard
basicTable获取searchInfo问题
table的表单取消了重置和提交按钮,改为自定义的按钮提交查询,自定义查询如何获取searchInfo?
`const [registerTable] = useTable({ title: '信息列表', api: page, rowKey: 'id', columns, useSearchForm: true, rowSelection: { columnWidth: 30, type: 'checkbox' }, tableSetting: { redo: false, }, showIndexColumn: false,
formConfig: {
labelWidth: 100,
schemas: searchSchema,
showAdvancedButton: false,
showActionButtonGroup: false,
},
fetchSetting: {
pageField: 'page',
sizeField: 'limit',
listField: 'result',
totalField: 'total',
},
handleSearchInfoFn(info: any) {
searchData = {
...info,
};
searchInfo.value = info;
return info;
},
showTableSetting: false,
bordered: true,
});`