Skip to content

Commit 2632858

Browse files
committed
docs: update docs
1 parent b3ab8e2 commit 2632858

File tree

10 files changed

+55
-7
lines changed

10 files changed

+55
-7
lines changed

packages/docs/components/content/BottomSheet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const emit = defineEmits<{
1010
<VBottomSheet
1111
@update:model-value="val => emit('update:modelValue', val)"
1212
>
13-
<div class="flex justify-center items-center h-60 bg-primary-100">
13+
<div class="flex justify-center items-center h-60 bg-primary-100 dark:bg-gray-800">
1414
<VButton @click="emit('update:modelValue', false)">
1515
Close
1616
</VButton>

packages/docs/components/content/DragResizeModal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function dragResize(newRect) {
3131
:is-active="true"
3232
:w="200"
3333
:h="200"
34+
class="bg-primary-100 dark:bg-gray-800"
3435
@resizing="dragResize"
3536
@dragging="dragResize"
3637
>

packages/docs/components/content/FullScreen.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const emit = defineEmits<{
88

99
<template>
1010
<VFullScreen
11-
full-screen-class="bg-primary-50"
11+
full-screen-class="bg-primary-50 dark:bg-gray-800"
1212
@update:model-value="val => emit('update:modelValue', val)"
1313
>
1414
<h1 class="text-primary text-lg">

packages/docs/content/4.use-cases/1.playground.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ head.title: 'Playground | Examples'
99
:playground
1010
::
1111

12-
::code-block{label="Playground.vue"}
12+
::code-block{label="Preview.vue"}
1313
:code-block-file{path="./Playground.vue" language="vue"}
1414
::
1515
::

packages/docs/content/4.use-cases/3.confirm-modal.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ head.title: 'Confirm Modal | Examples'
55
# Confirm Modal
66

77
::code-group
8+
::code-block{label="ConfirmModal.vue"}
9+
:code-block-file{path="./ConfirmModal.vue" language="vue"}
10+
::
11+
12+
::code-block{label="Preview.vue"}
13+
:code-block-file{path="./ConfirmModalPreview.vue" language="vue"}
14+
::
15+
816
::code-block{label="Preview" preview}
917
::confirm-modal-preview
1018
::

packages/docs/content/4.use-cases/4.form-modal.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ A example that use form component in vue-final-modal.
99
This example use [Vorms](https://vorms.mini-ghost.dev/) to handle the form validate.
1010

1111
::code-group
12+
::code-block{label="FormModal.vue"}
13+
:code-block-file{path="./FormModal.vue" language="vue"}
14+
::
15+
16+
::code-block{label="Preview.vue"}
17+
:code-block-file{path="./FormModalPreview.vue" language="vue"}
18+
::
19+
1220
::code-block{label="Preview" preview}
13-
::form-modal-preview
21+
:form-modal-preview
1422
::
1523
::

packages/docs/content/4.use-cases/5.nested-modal.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ head.title: 'Nested Modal | Examples'
55
# Nested Modal
66

77
::code-group
8+
::code-block{label="ConfirmModal.vue"}
9+
:code-block-file{path="./ConfirmModal.vue" language="vue"}
10+
::
11+
12+
::code-block{label="NestedModalPreview.vue"}
13+
:code-block-file{path="./NestedModalPreview.vue" language="vue"}
14+
::
15+
816
::code-block{label="Preview" preview}
9-
::nested-modal-preview
17+
:nested-modal-preview
1018
::
1119
::

packages/docs/content/4.use-cases/6.full-screen-modal.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ head.title: 'Full Screen Modal | Examples'
55
# Full Screen Modal
66

77
::code-group
8+
::code-block{label="FullScreen.vue"}
9+
:code-block-file{path="./FullScreen.vue" language="vue"}
10+
::
11+
12+
::code-block{label="FullScreenPreview.vue"}
13+
:code-block-file{path="./FullScreenPreview.vue" language="vue"}
14+
::
15+
816
::code-block{label="Preview" preview}
9-
::full-screen-preview
10-
::
17+
:full-screen-preview
1118
::
1219
::

packages/docs/content/4.use-cases/7.bottom-sheet-modal.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ head.title: 'Bottom Sheet Modal | Examples'
55
# Bottom Sheet Modal
66

77
::code-group
8+
::code-block{label="BottomSheet.vue"}
9+
:code-block-file{path="./BottomSheet.vue" language="vue"}
10+
::
11+
12+
::code-block{label="BottomSheetPreview.vue"}
13+
:code-block-file{path="./BottomSheetPreview.vue" language="vue"}
14+
::
15+
816
::code-block{label="Preview" preview}
917
::bottom-sheet-preview
1018
::

packages/docs/content/4.use-cases/8.drag-resize-modal.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ A drag and resize modal example.
99
Here is a basic drag and resize modal example that using [vue3-drag-resize](https://github.com/kirillmurashov/vue-drag-resize/tree/vue3).
1010

1111
::code-group
12+
::code-block{label="DragResizeModal.vue"}
13+
:code-block-file{path="./DragResizeModal.vue" language="vue"}
14+
::
15+
16+
::code-block{label="DragResizeModalPreview.vue"}
17+
:code-block-file{path="./DragResizeModalPreview.vue" language="vue"}
18+
::
19+
1220
::code-block{label="Preview" preview}
1321
::drag-resize-modal-preview
1422
::

0 commit comments

Comments
 (0)