Skip to content

Commit ec0209f

Browse files
committed
Show submit button in modal examples
1 parent 2536d45 commit ec0209f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

docs/pages/kmodal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
>
1818
<DocsSubNav
1919
:items="[
20-
{ text: 'With description', href: '#description' },
20+
{ text: 'With description and actions', href: '#description' },
2121
{ text: 'With enabled / disabled submit', href: '#enabled-disabled-submit' },
2222
{ text: 'With predefined sizes', href: '#predefined-sizes' },
2323
{ text: 'With precise size', href: '#precise-size' },
@@ -26,7 +26,7 @@
2626
/>
2727

2828
<h3>
29-
With description
29+
With description and actions
3030
<DocsAnchorTarget anchor="#description" />
3131
</h3>
3232
<p>To show information, warnings, or notifications.</p>

examples/KModal/ModalWithDescription.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<KModal
66
v-if="showModal"
77
title="Title"
8+
submitText="Submit"
89
cancelText="Close"
10+
@submit="closeModal"
911
@cancel="closeModal"
1012
>
1113
Description

examples/KModal/ModalWithDifferentSizes.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
v-if="showModal"
99
:size="modalSize"
1010
title="Title"
11+
submitText="Submit"
1112
cancelText="Close"
13+
@submit="closeModal"
1214
@cancel="closeModal"
1315
>
1416
{{ `Modal with ${modalSize} size` }}

examples/KModal/ModalWithDynamicWidth.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
v-if="showModal"
77
title="Title"
88
size="600"
9+
submitText="Submit"
910
cancelText="Close"
11+
@submit="closeModal"
1012
@cancel="closeModal"
1113
>
1214
Modal with 600px size

0 commit comments

Comments
 (0)