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

2022-01-19  本文已影响0人  world_7735
<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>
上一篇下一篇

猜你喜欢

热点阅读