Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit caea3f6

Browse files
committed
feat: add class prop for dialog content
1 parent fc64ee2 commit caea3f6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/GDialog.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
:style="styles"
1818
>
1919
<GDialogContent
20+
:class="contentClass"
2021
:max-width="maxWidth"
2122
:width="width"
2223
:height="height"
@@ -115,6 +116,11 @@ export default defineComponent({
115116
type: Boolean,
116117
default: false,
117118
},
119+
120+
contentClass: {
121+
type: String,
122+
default: '',
123+
},
118124
},
119125
120126
emits: ['update:modelValue'],

src/components/GDialogContent.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ export default defineComponent({
3838
type: Boolean,
3939
default: false,
4040
},
41+
42+
class: {
43+
type: String,
44+
default: '',
45+
},
4146
},
4247
4348
setup(props) {
4449
const { sizeStyles: styles } = useSizeStyle(props)
4550
const classes = computed(() => [
4651
'g-dialog-content',
52+
props.class,
4753
{
4854
'g-dialog-content--scrollable': props.scrollable,
4955
'g-dialog-content--depressed': props.depressed,

0 commit comments

Comments
 (0)