Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
kolirt committed Oct 12, 2023
1 parent fdb79ab commit dc9f5a1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
"importOrder": [
"^./App.vue$",
"<THIRD_PARTY_MODULES>",
"^@/01-app(.*)$",
"^@/02-pages(.*)$",
"^@/03-widgets(.*)$",
"^@/04-features(.*)$",
"^@/05-entities(.*)$",
"^@/06-shared(.*)$",
"^@/(.*)$",
"^[./]"
],
Expand Down
1 change: 1 addition & 0 deletions lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const state = reactive<{
modals: []
})

export const modals = computed(() => state.modals)
export const isOpened = computed(() => state.modals.length > 0)

export function addModal(component: Component, props?: {}, options?: OpenModalOptions) {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export { useLock } from './composables/useLock'

export { openModal, confirmModal, closeModal, closeAllModals } from './actions'

export { isOpened } from './data'
export { isOpened, modals } from './data'

export { $on, $off } from './event'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kolirt/vue-modal",
"version": "0.0.13",
"version": "0.0.14",
"description": "Simple Vue3 modal package",
"author": "kolirt",
"license": "MIT",
Expand Down

0 comments on commit dc9f5a1

Please sign in to comment.