mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:13:44 +09:00
first
This commit is contained in:
43
documentation/modal/v-modal-options-documentation.md
Normal file
43
documentation/modal/v-modal-options-documentation.md
Normal file
@@ -0,0 +1,43 @@
|
||||
### Modal Options
|
||||
|
||||
The `<VModal />` component behavior can be customized. Use the `noscroll`
|
||||
prop to disable page scrolling when the modal is open.
|
||||
You also can use the `noclose` prop to prevent modal from closing
|
||||
if the user click on the background overlay.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
const isOpen = ref(false)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VButton bold @click="isOpen = true">
|
||||
Open Modal
|
||||
</VButton>
|
||||
|
||||
<VModal
|
||||
:open="isOpen"
|
||||
size="small"
|
||||
actions="center"
|
||||
noscroll
|
||||
noclose
|
||||
@close="isOpen = false"
|
||||
>
|
||||
<template #content>
|
||||
<VPlaceholderSection
|
||||
title="Go Premium"
|
||||
subtitle="Unlock more features and business tools by going premium"
|
||||
/>
|
||||
</template>
|
||||
<template #action>
|
||||
<VButton color="primary" raised>
|
||||
Confirm
|
||||
</VButton>
|
||||
</template>
|
||||
</VModal>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
Reference in New Issue
Block a user