fix(Popup): teleport

This commit is contained in:
chenjiahan
2020-07-06 15:12:56 +08:00
parent 7087922d18
commit 6995bcc8a3
3 changed files with 43 additions and 67 deletions
+2 -2
View File
@@ -8,7 +8,6 @@ import { getScroller } from '../../utils/dom/scroll';
// Mixins
import { TouchMixin } from '../touch';
import { PortalMixin } from '../portal';
import { CloseOnPopstateMixin } from '../close-on-popstate';
export const popupMixinProps = {
@@ -20,6 +19,8 @@ export const popupMixinProps = {
overlayStyle: Object,
// overlay custom class name
overlayClass: String,
// teleport
getContainer: [String, Function],
// whether to close popup when click overlay
closeOnClickOverlay: Boolean,
// z-index
@@ -41,7 +42,6 @@ export function PopupMixin(options = {}) {
mixins: [
TouchMixin,
CloseOnPopstateMixin,
PortalMixin({}),
],
props: popupMixinProps,