1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| <template>
<el-config-provider :locale="locale">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage4"
:page-sizes="[100, 200, 300, 400]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="400">
</el-pagination>
</el-config-provider>
</template>
<script lang='ts'>
import { reactive, ref, toRefs } from 'vue';
//引入vue方法
import { ElConfigProvider } from 'element-plus'
//中文包
import zhCn from "element-plus/lib/locale/lang/zh-cn"
export default({
props:{
pagReviewLength:Number
},
components: {
[ElConfigProvider.name]: ElConfigProvider
},
setup(props:any,{emit}:any) {
let locale = zhCn
const state = reactive({
pageSize:10,
total:'',
currentPage1:1
})
return {
locale,
};
},
});
</script>
<style scoped>
</style>
|