本文主要是介绍vue3配置element-plus时间选择器中文显示,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
修改main.js
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入中文包
import zhCn from "element-plus/es/locale/lang/zh-cn";
const app = createApp(App)
app.use(ElementPlus,{
locale: zhCn,
})
//挂载
app.mount('#app')
这篇关于vue3配置element-plus时间选择器中文显示的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!