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

Commit a8f3367

Browse files
committed
style: fix props order
1 parent f39dcba commit a8f3367

File tree

3 files changed

+40
-39
lines changed

3 files changed

+40
-39
lines changed

src/components/GDialog.vue

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,50 +52,51 @@ export default defineComponent({
5252
},
5353
5454
props: {
55-
modelValue: {
56-
type: Boolean,
57-
default: false,
55+
56+
contentClass: {
57+
type: String,
58+
default: '',
5859
},
5960
6061
/**
61-
* clicking outside content will not close modal
62+
* removes box-shadow for content
6263
*/
63-
persistent: {
64+
depressed: {
6465
type: Boolean,
6566
default: false,
6667
},
6768
68-
maxWidth: {
69-
type: [String, Number],
70-
default: 'none',
71-
},
72-
73-
width: {
69+
height: {
7470
type: [String, Number],
7571
default: 'auto',
7672
},
7773
78-
height: {
74+
maxWidth: {
7975
type: [String, Number],
80-
default: 'auto',
76+
default: 'none',
8177
},
8278
83-
scrollable: {
79+
modelValue: {
8480
type: Boolean,
8581
default: false,
8682
},
8783
8884
/**
89-
* removes box-shadow for content
85+
* clicking outside content will not close modal
9086
*/
91-
depressed: {
87+
persistent: {
9288
type: Boolean,
9389
default: false,
9490
},
9591
96-
contentClass: {
97-
type: String,
98-
default: '',
92+
scrollable: {
93+
type: Boolean,
94+
default: false,
95+
},
96+
97+
width: {
98+
type: [String, Number],
99+
default: 'auto',
99100
},
100101
},
101102

src/components/GDialogContent.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ import { useSizeStyle } from '../composable/sizeStyle'
1111
export default defineComponent({
1212
name: 'GDialogContent',
1313
props: {
14-
maxWidth: {
15-
type: [String, Number],
16-
default: 'none',
14+
class: {
15+
type: String,
16+
default: '',
1717
},
1818
19-
width: {
20-
type: [String, Number],
21-
default: 'auto',
19+
/**
20+
* removes box-shadow for content
21+
*/
22+
depressed: {
23+
type: Boolean,
24+
default: false,
2225
},
2326
2427
height: {
2528
type: [String, Number],
2629
default: 'auto',
2730
},
2831
29-
scrollable: {
30-
type: Boolean,
31-
default: false,
32+
maxWidth: {
33+
type: [String, Number],
34+
default: 'none',
3235
},
3336
34-
/**
35-
* removes box-shadow for content
36-
*/
37-
depressed: {
37+
scrollable: {
3838
type: Boolean,
3939
default: false,
4040
},
4141
42-
class: {
43-
type: String,
44-
default: '',
42+
width: {
43+
type: [String, Number],
44+
default: 'auto',
4545
},
4646
},
4747

src/components/GDialogOverlay.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ export default defineComponent({
2323
required: true,
2424
},
2525
26-
deactivating: {
27-
type: Boolean,
26+
activeZIndex: {
27+
type: Number,
2828
required: true,
2929
},
3030
31-
activeZIndex: {
32-
type: Number,
31+
deactivating: {
32+
type: Boolean,
3333
required: true,
3434
},
3535
},

0 commit comments

Comments
 (0)