美文网首页
antd Table组件的pagination语言显示问题

antd Table组件的pagination语言显示问题

作者: world_7735 | 来源:发表于2022-01-19 12:24 被阅读0次
<Table columns={columns} dataSource={ dataSource } pagination={{
      showTotal: total => `共 ${dataSource.length} 条`,
      showQuickJumper: true,
      size: 'small',
      showSizeChanger: true,
      hideOnSinglePage: true
    }} />

解决办法:
app.vue

  <a-config-provider :locale="locale">
      <router-view />
      <loading v-show="!routerList.length" />
    </a-config-provider>

相关文章

网友评论

      本文标题:antd Table组件的pagination语言显示问题

      本文链接:https://www.haomeiwen.com/subject/xidrhrtx.html