feat(ImagePreview): add transition prop (#8275)

This commit is contained in:
neverland
2021-03-04 20:06:25 +08:00
committed by GitHub
parent d4fda0b4b0
commit 42d1e9430c
4 changed files with 10 additions and 2 deletions
+2
View File
@@ -25,6 +25,7 @@ export default createComponent({
props: {
show: Boolean,
closeable: Boolean,
transition: String,
className: UnknownProp,
beforeClose: Function as PropType<Interceptor>,
showIndicators: Boolean,
@@ -218,6 +219,7 @@ export default createComponent({
<Popup
show={props.show}
class={[bem(), props.className]}
transition={props.transition}
overlayClass={bem('overlay')}
closeOnPopstate={props.closeOnPopstate}
onClosed={onClosed}