Skip to content

Commit 3425dcd

Browse files
committed
feat: improve CCardDialog
Improve `CCardDialog`: - add property `maxWidth` - pass props of `content-full-width`
1 parent 1dbafc8 commit 3425dcd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/dialogs/CCardDialog.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
v-model="model"
44
:width="fullscreen ? undefined : width"
55
:min-width="minWidth"
6+
:max-width="maxWidth"
67
:height="height"
78
:persistent="persistent"
89
:fullscreen="fullscreen"
@@ -27,8 +28,8 @@
2728
max-width=""
2829
@close="model = false"
2930
>
30-
<template v-if="slots['content-full-width']" #content-full-width>
31-
<slot name="content-full-width"></slot>
31+
<template v-if="slots['content-full-width']" #content-full-width="props">
32+
<slot name="content-full-width" v-bind="props"></slot>
3233
</template>
3334

3435
<template v-if="slots['prepend-actions']" #prepend-actions>
@@ -87,6 +88,11 @@ withDefaults(
8788
*/
8889
minWidth?: string;
8990
91+
/**
92+
* The max width of the dialog.
93+
*/
94+
maxWidth?: string;
95+
9096
/**
9197
* The height of the dialog
9298
*/
@@ -136,9 +142,9 @@ withDefaults(
136142
titleSize: "large",
137143
subtitle: undefined,
138144
width: "500px",
145+
minWidth: undefined,
139146
maxWidth: undefined,
140147
height: undefined,
141-
minWidth: undefined,
142148
persistent: false,
143149
color: undefined,
144150
activator: undefined,

0 commit comments

Comments
 (0)