前言
在使用element的時(shí)候分頁提示語句是中文的到了element-plus中式英文的,本文講解的就是怎樣將英文轉(zhuǎn)變?yōu)橹形?/p>
效果圖
解決方案
如果你的element-plus版本為2.2.29以下的文章來源:http://www.zghlxwxcb.cn/news/detail-678804.html
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import 'element-plus/dist/index.css'
const app= createApp(App)
app.use(ElementPlus, {locale})
app.mount('#app')
如果你的element-plus版本為2.2.29以上的文章來源地址http://www.zghlxwxcb.cn/news/detail-678804.html
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn from "element-plus/es/locale/lang/zh-cn";
import 'element-plus/dist/index.css'
const app= createApp(App)
app.use(ElementPlus, {locale})
app.mount('#app')
到了這里,關(guān)于前端開發(fā)之Element Plus的分頁組件el-pagination顯示英文轉(zhuǎn)變?yōu)橹形牡奈恼戮徒榻B完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!