<el-config-provider :locale="locale">
<el-pagination
v-model:currentPage="currentPage"
v-model:page-size="pageSize"
:page-sizes="[100, 200, 300, 400]"
:small="small"
:disabled="disabled"
:background="background"
layout="total, sizes, prev, pager, next, jumper"
:total="400"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
</el-config-provider>
在需要的页面引入
import zhCn from "element-plus/lib/locale/lang/zh-cn";
然后在data里面声明
locale: zhCn,
版权声明:本文为liuli0927原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。