vue+element ui後臺遇到的坑

今天在用elementui作後臺系統,遇到第一個坑:分頁顯示的是英文ui

按照官網組件複製下來的代碼:spa

< el-row :gutter=" 0" style= "margin:30px" >
< el-col :span=" 10" :push=" psize" >
< el-pagination
:current-page=" pageIndex"
:page-sizes="[ 10, 20, 30, 40]"
:page-size=" pageSize"
:total=" total"
layout= "total, sizes, prev, pager, next, jumper"
@size-change=" handleSizeChange"
@current-change=" handleCurrentChange" />
</ el-col >
</ el-row >

出現的效果如上:total這些都是英文,做爲咱們通常看到話固然是中文啦,後來百度了各類都沒有解釋,總算找到緣由了:在main.js引入了英文包。。。。blog

註釋掉就能夠了。element

最終搞好的效果以下:it

相關文章
相關標籤/搜索