Element plus 汉化
作者:互联网
- App.vue 直接拷贝
<template>
<el-config-provider :locale="locale">
<router-view />
</el-config-provider>
</template>
<script >
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
export default {
name: "app",
components: {
ElConfigProvider,
},
data() {
return {
locale: zhCn,
};
},
};
</script>
<style lang="scss">
@import url('@/assets/css/reset.scss');
</style>
标签:locale,汉化,plus,zhCn,import,element,Element,ElConfigProvider 来源: https://www.cnblogs.com/DL-CODER/p/16536140.html