chore: prettier source code
This commit is contained in:
@@ -3,7 +3,7 @@ import { BindEventMixin } from './bind-event';
|
||||
|
||||
export const CloseOnPopstateMixin = {
|
||||
mixins: [
|
||||
BindEventMixin(function(bind, isBind) {
|
||||
BindEventMixin(function (bind, isBind) {
|
||||
this.handlePopstate(isBind && this.closeOnPopstate);
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -63,7 +63,7 @@ export function updateOverlay(): void {
|
||||
}
|
||||
|
||||
export function openOverlay(vm: any, config: OverlayConfig): void {
|
||||
if (!context.stack.some(item => item.vm === vm)) {
|
||||
if (!context.stack.some((item) => item.vm === vm)) {
|
||||
context.stack.push({ vm, config });
|
||||
updateOverlay();
|
||||
}
|
||||
@@ -77,7 +77,7 @@ export function closeOverlay(vm: any): void {
|
||||
stack.pop();
|
||||
updateOverlay();
|
||||
} else {
|
||||
context.stack = stack.filter(item => item.vm !== vm);
|
||||
context.stack = stack.filter((item) => item.vm !== vm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user