wip: migrate paging components to composition api
This commit is contained in:
parent
d3315bda11
commit
f9882a0c5c
4 changed files with 52 additions and 17 deletions
|
|
@ -32,8 +32,7 @@ const props = defineProps<{
|
|||
const pagingComponent = ref<InstanceType<typeof MkPagination>>();
|
||||
|
||||
const updated = (oldValue, newValue) => {
|
||||
const i = pagingComponent.value.items.findIndex(n => n === oldValue);
|
||||
pagingComponent.value.items[i] = newValue;
|
||||
pagingComponent.value?.updateItem(oldValue.id, () => newValue);
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue