1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| <template>
|
| <el-pagination background layout="prev, pager, next" :total="total" @current-change="currentchange" />
| </template>
|
| <script setup>
| const props = defineProps({
| total: {
| type:Number,
| },
|
| })
| const emit = defineEmits(["click"])
| const currentchange=(el)=>{
| emit("click", el)
| }
|
| </script>
|
| <style lang="less" scoped></style>
|
|