feat(Popup): add close-on-popstate prop (#4845)

This commit is contained in:
neverland
2019-10-26 15:31:45 +08:00
committed by GitHub
parent 44c9801811
commit 9033a968ec
5 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ import { range } from '../utils/format/number';
import { preventDefault } from '../utils/dom/event';
import { PopupMixin } from '../mixins/popup';
import { TouchMixin } from '../mixins/touch';
import { CloseOnPopstateMixin } from '../mixins/close-on-popstate';
import Image from '../image';
import Loading from '../loading';
import Swipe from '../swipe';
@@ -19,7 +18,7 @@ function getDistance(touches) {
}
export default createComponent({
mixins: [PopupMixin, TouchMixin, CloseOnPopstateMixin],
mixins: [PopupMixin, TouchMixin],
props: {
className: null,