Antdv Table Refresh Programmatically in Vue
I want to refresh programmatically table datasource. Is there a reload or refresh function of this component ?
Fetch method works but table doesn't show the current results when I fired 'fetch' function outside the table's change event.
https://github.com/vueComponent/ant-design-vue-pro/blob/master/src/views/list/TableList.vue#L281
Thank you sendya,
Here is my package info : "ant-design-vue": "^1.3.10",
When I try to use this.$refs.table.refresh(), I get this error as below:
index.vue?6ced:421 Uncaught (in promise) TypeError: _this2.$refs.table.refresh is not a function at eval
<a-table
ref="table"
:columns="getColumns"
:data-source="data"
:scroll="{ x: 1000 }"
style="min-height: 40vh"
:loading="loading"
:pagination="pagination"
@change="handleTableChange"
:locale="{
filterConfirm: $t('OK'),
filterReset: $t('Reset'),
emptyText: $t('No Data'),
}"
>
use s-table