dc653402c7
- Add installation position handler, service, and schema - Update list configuration and entry form components - Enhance pagination component with configurable controls - Implement installation position list view with search and pagination
31 lines
684 B
Vue
31 lines
684 B
Vue
<script setup lang="ts">
|
|
import type { PaginationMeta } from '~/components/pub/my-ui/pagination/pagination.type'
|
|
import Pagination from './pagination.vue'
|
|
|
|
const props = defineProps<{
|
|
paginationMeta: PaginationMeta
|
|
conf?: {
|
|
showInfo: boolean
|
|
showControl: boolean
|
|
}
|
|
}>()
|
|
|
|
const emit = defineEmits<{
|
|
pageChange: [page: number]
|
|
}>()
|
|
|
|
function handlePageChange(page: number) {
|
|
emit('pageChange', page)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<Pagination
|
|
v-if="props.paginationMeta && props.paginationMeta.pageSize > 0"
|
|
:pagination-meta="paginationMeta"
|
|
:show-info="conf?.showInfo"
|
|
:show-control="conf?.showControl"
|
|
@page-change="handlePageChange"
|
|
/>
|
|
</template>
|