Skip to content

Commit

Permalink
feat: prevetnNone, displayDirective props
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterliu1003 committed Sep 24, 2021
1 parent f885ade commit 7fac4bf
Show file tree
Hide file tree
Showing 12 changed files with 391 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ node_modules
*.swo
coverage

dist
dist

!/packages/lib/dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:hide-overlay="props.hideOverlay"
:click-to-close="props.clickToClose"
:esc-to-close="props.escToClose"
:prevent-click="props.preventClick"
:prevent-none="props.preventNone"
:transition="props.transition ? 'vfm' : ''"
:overlay-transition="props.overlayTransition ? 'vfm' : ''"
:z-index-auto="props.zIndexAuto"
Expand Down Expand Up @@ -66,8 +66,8 @@
<input v-model="props.escToClose" type="checkbox" />
</label>
<label class="flex items-center space-x-2">
<span>preventClick:</span>
<input v-model="props.preventClick" type="checkbox" />
<span>preventNone:</span>
<input v-model="props.preventNone" type="checkbox" />
</label>
<label class="flex items-center space-x-2">
<span>transition:</span>
Expand Down Expand Up @@ -216,7 +216,7 @@ const initData = () => ({
hideOverlay: false,
clickToClose: true,
escToClose: false,
preventClick: false,
preventNone: false,
transition: true,
overlayTransition: true,
zIndexAuto: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/.vitepress/components/use-cases/VParams.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name="stackable"
classes="modal-container"
content-class="modal-content"
prevent-click
prevent-none
@closed="e => e.stop()"
>
<template #default="{ params }">
Expand Down
Loading

0 comments on commit 7fac4bf

Please sign in to comment.