Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
isAutoRemove
现在artDialog在trigger了一些没有对应的回调的事件时, 是默认close().remove() 进行处理的.
但是有些时候, 比如快速关闭的时候, 不想很麻烦的去配置cancel回调, 而且如果不查看源码也不知道quickClose关闭弹窗是触发的cancel事件.
这个时候, 如果有一个isAutoRemove的配置, 在使用上就比较方便一点.
设定了isAutoRemove为true 那么默认关闭的时候(quickClose, 关闭按钮点击等)就关闭和移除dom
设定了isAutoRemove为false 那么上述情况下 就只是关闭 不移除dom
quickClose
跟 #212 的问题一致, 所以把quickClose里面对options.backdropOpacity去掉了, 这样就可以由用户自行决定遮罩的展现