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

feat: Image add PreviewGroup component to support multiple images preview #28069

Merged
merged 3 commits into from
Nov 30, 2020
Merged

feat: Image add PreviewGroup component to support multiple images preview #28069

merged 3 commits into from
Nov 30, 2020

Conversation

shaodahong
Copy link
Member

@shaodahong shaodahong commented Nov 30, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Image add PreviewGroup component to support multiple images preview
🇨🇳 Chinese Image 增加 PreviewGroup 组件支持多张图片预览

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

View rendered components/image/demo/previewGroup.md

@@ -11,4 +16,6 @@ const Image: React.FC<ImageProps> = ({ prefixCls: customizePrefixCls, ...otherPr

export { ImageProps };

Image.PreviewGroup = PreviewGroup;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image.PreviewGroup 还是 Image.Group 好一点?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一开始我提的想法是 Image.Group

后来改掉的

react-component/image#22 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我比较倾向于先保留 Group,用 PreviewGroup。

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Nov 30, 2020

@shaodahong
Copy link
Member Author

顶部的操作栏在刚打开出现动画时有点别扭,应该在 transitionEnd 后显示,dialog 感觉要加个类似的 api 支持下

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d7a9f99:

Sandbox Source
antd reproduction template Configuration

@zombieJ
Copy link
Member

zombieJ commented Nov 30, 2020

顶部的操作栏在刚打开出现动画时有点别扭,应该在 transitionEnd 后显示,dialog 感觉要加个类似的 api 支持下

这个之后再调就行了。这个 PR 可以先合

@zombieJ zombieJ merged commit 18c6d6f into ant-design:feature Nov 30, 2020
@shaodahong shaodahong deleted the image-preview-group branch November 30, 2020 07:58
@zombieJ zombieJ mentioned this pull request Nov 30, 2020
15 tasks
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

Successfully merging this pull request may close these issues.

4 participants