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

1. Modal组件关闭时希望可以取消掉关闭动画直接关闭 2. Modal组件希望添加可拖拽功能 #26733

Closed
1 task
SystemLight opened this issue Sep 14, 2020 · 2 comments

Comments

@SystemLight
Copy link

SystemLight commented Sep 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

  1. 当在外部改变Modal组件的transform属性实现拖拽时,关闭弹窗的动画会让modal重新归到原位置再进行关闭,效果怪异
  2. 当数据填写数据时希望可以看到弹窗后面的内容,让弹窗可以拖拽令用户编辑更加自由

What does the proposed API look like?

onStart

拖拽开始时回调事件

onDrag

拖拽时回调事件

onEnd

拖拽结束时回调事件

closeAnimation

关闭弹窗visible属性变化时,弹窗的动画效果

drag

Modal是否可以被拖拽

<Modal onStart={onDrag} onDrag={onDrag} onEnd={onDrag} closeAnimation={false} drag={true} />
@afc163
Copy link
Member

afc163 commented Sep 14, 2020

@afc163 afc163 closed this as completed Sep 14, 2020
@forzalianjunting
Copy link

  1. <Modal transitionName="" />
  2. feat: Update rc-dialog to 8.3.0, support Modal drag and drop.  #26507

请问拖拽的版本什么时候发布呢?

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

3 participants