main.js
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
const app = createApp(App);
app.use(ElementPlus, {
locale: zhCn,
});
组件内
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
zhCn.el.pagination = {
pagesize: "条/页",
total: "共 {total} 条",
};