mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
drawer close
This commit is contained in:
1 parent
1f46f74400
commit
ae2cedbd70
1 file changed
+12
@@ -14,6 +14,13 @@
|
|||||||
@dragenter="$emit('close')"
|
@dragenter="$emit('close')"
|
||||||
@touchmove.prevent
|
@touchmove.prevent
|
||||||
/>
|
/>
|
||||||
|
<div
|
||||||
|
class="absolute bottom-3 flex items-center justify-center w-10 h-10 rounded-full bg-base-100 shadow-lg pointer-events-none transition-opacity duration-300"
|
||||||
|
:class="open ? 'opacity-100' : 'opacity-0'"
|
||||||
|
:style="side === 'left' ? 'left: calc(min(82%, 340px) + 0.75rem)' : 'right: calc(min(82%, 340px) + 0.75rem)'"
|
||||||
|
>
|
||||||
|
<IconX class="w-5 h-5" />
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
ref="panel"
|
ref="panel"
|
||||||
class="absolute top-0 bottom-0 bg-base-100 shadow-xl overflow-y-auto overflow-x-hidden overscroll-contain px-4 transition-transform duration-300 ease-out"
|
class="absolute top-0 bottom-0 bg-base-100 shadow-xl overflow-y-auto overflow-x-hidden overscroll-contain px-4 transition-transform duration-300 ease-out"
|
||||||
@@ -27,8 +34,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { IconX } from '@tabler/icons-vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MobileDrawer',
|
name: 'MobileDrawer',
|
||||||
|
components: {
|
||||||
|
IconX
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
side: {
|
side: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
Reference in new issue
Block a user