diff --git a/dist/vue-modal.d.ts b/dist/vue-modal.d.ts index 4e2358b..8d6ee9a 100644 --- a/dist/vue-modal.d.ts +++ b/dist/vue-modal.d.ts @@ -40,7 +40,7 @@ declare type ModalStyle = { export declare const ModalTarget: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly>, {}, {}>; -export declare function openModal(component: Component, props?: {}, options?: OpenModalOptions): Promise; +export declare function openModal(component: Component, props?: {}, options?: OpenModalOptions): Promise; declare type OpenModalOptions = { force?: boolean; diff --git a/lib/actions.ts b/lib/actions.ts index 89be3bd..8228032 100644 --- a/lib/actions.ts +++ b/lib/actions.ts @@ -5,7 +5,7 @@ import {addModal, state as stateData} from './data' import {$emit, $off, $on} from './event' /*, options?: Options*/ -export async function openModal(component: Component, props?: {}, options?: OpenModalOptions) { +export async function openModal(component: Component, props?: {}, options?: OpenModalOptions) { if (options?.force && stateData.modals.length) { await closeAllModals(false) } @@ -14,7 +14,7 @@ export async function openModal(component: Component, props?: {}, options?: Open addModal(component, props/*, options*/) $emit(Events.Open) - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { function onClosed(data: any) { if (data.index === index) { $off(Events.Closed, onClosed) diff --git a/package.json b/package.json index cd5ab2e..0cb8d1b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kolirt/vue-modal", - "version": "0.0.9", + "version": "0.0.10", "description": "Simple Vue3 modal package", "author": "kolirt", "license": "MIT",