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

新增isAutoRemove配置;调整quickClose的行为 #243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

新增isAutoRemove配置;调整quickClose的行为 #243

wants to merge 3 commits into from

Conversation

shuizhongyueming
Copy link

isAutoRemove

现在artDialog在trigger了一些没有对应的回调的事件时, 是默认close().remove() 进行处理的.

但是有些时候, 比如快速关闭的时候, 不想很麻烦的去配置cancel回调, 而且如果不查看源码也不知道quickClose关闭弹窗是触发的cancel事件.

这个时候, 如果有一个isAutoRemove的配置, 在使用上就比较方便一点.

设定了isAutoRemove为true 那么默认关闭的时候(quickClose, 关闭按钮点击等)就关闭和移除dom

设定了isAutoRemove为false 那么上述情况下 就只是关闭 不移除dom

quickClose

#212 的问题一致, 所以把quickClose里面对options.backdropOpacity去掉了, 这样就可以由用户自行决定遮罩的展现

@shuizhongyueming shuizhongyueming changed the title 新增isAutoRemove配置 新增isAutoRemove配置;调整quickClose的行为 Nov 26, 2015
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.

None yet

1 participant