Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

👑 [需求]proTable 的工具栏位置默认在右边,能否改成传统的从最左边开始排序 #752

Open
algz opened this issue Aug 18, 2021 · 1 comment

Comments

@algz
Copy link

algz commented Aug 18, 2021

🥰 需求描述 [详细地描述需求,让大家都能理解]

proTable 的工具栏位置默认在右边,能否改成传统的从最左边开始排序
image

🧐 解决方案 [如果你有解决方案,在这里清晰地阐述]

🚑 其他信息 [如截图等其他信息可以贴在这里]

@RicardoUU
Copy link

1、修改css样式

.ant-pro-table-list-toolbar-container {
  display: block !important;
  .ant-pro-table-list-toolbar-right {
    // display: block;
    justify-content: flex-start;
  }
}

2、自定义pro-table属性:headerTitle

headerTitle={[
      <h1>title</h1>,
      <Button key="danger" danger>
         打印标签
      </Button>,
      <Button key="show">导出excel</Button>,
]}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants