### 目前只有一個方法 reload 用于刷新表格,使用要給組件增加 ref 屬性,然后就可以調用了:
```
<template>
<ele-pro-table ref="tableRef"></ele-pro-table>
</template>
<script lang="ts" setup>
// 表格實例
const tableRef = ref<InstanceType>();
/* 搜索 */
const reload = (where) => {
tableRef?.value?.reload({ page: 1, where: where });
};
</script>
```
### reload 方法的參數類型定義:
```
import type { FilterValue } from 'ant-design-vue/es/table/interface';
import type { DefaultRecordType } from 'ant-design-vue/es/vc-table/interface';
// reload 方法的參數
interface ReloadOption {
page?: number; // 頁碼
limit?: number; // 每頁數量
where?: WhereType; // 搜索參數
sorter?: SorterType; // 排序參數
filters?: FilterType; // 篩選參數
}
type WhereType = Record<string, any>;
type SorterType = SorterResult<RecordType> | SorterResult<RecordType>[];
type FilterType = Record<string, FilterValue | null | undefined>;
type RecordType = DefaultRecordType;
```