其他分享
首页 > 其他分享> > Element plus 汉化

Element plus 汉化

作者:互联网

<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