Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给ListTable在Header上批量上传按钮 #20

Open
zhanghx0905 opened this issue Nov 28, 2024 · 2 comments
Open

给ListTable在Header上批量上传按钮 #20

zhanghx0905 opened this issue Nov 28, 2024 · 2 comments

Comments

@zhanghx0905
Copy link

翻了半天源码,没看到好方法,只能重写一遍ListTable了吗

@moonrailgun
Copy link
Contributor

The best way is you can build up your component. here is a exmaple:

<Resource
        name="foo"
        label="Foo"
        list={
          <>
            <Button
              type="primary"
              onClick={() => showUpload()}
            >
              Upload
            </Button>
            <ListTable
              fields={fields}
              filter={[
                createTextField('q', {
                  label: 'Search',
                }),
              ]}
              action={{ detail: true, export: true }}
            />
          </>
        }
      />

@zhanghx0905
Copy link
Author

The best way is you can build up your component. here is a exmaple:

Very helpful. Thanks.

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

No branches or pull requests

2 participants