使用vue ant design 分页以及表格分页改为中文

<template>
    <div id="app">
      <a-config-provider :locale="locale">
   <router-view />
  </a-config-provider>

    </div>
</template>
<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
export default {
  data () {
    return {
      locale: zhCN
    }
  }
}
</script>

//分页 
:pagination="paginationOpt
data(){
 paginationOpt: {
        showSizeChanger: true,
        showQuickJumper: true,
        defaultCurrent: 1,
        defaultPageSize: 10,
        total: 500,
        showTotal: total => `共${total}条记录 `
      },
      }

 这个方法我测试日历的星期和月份不翻译,用我这篇博客的方法可以改日历的星期和时间:

https://www.cnblogs.com/bisiyuan/p/17203100.html

posted @ 2023-03-06 10:45  seven&night  阅读(354)  评论(0编辑  收藏  举报