vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

basicTable获取searchInfo问题

Open Leonsama opened this issue 6 months ago • 2 comments

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,
  });`

QQ截图20231228104953

Leonsama avatar Dec 28 '23 02:12 Leonsama