@veritree/ui 0.31.1 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<div
|
|
4
4
|
v-if="visible"
|
|
5
5
|
:id="id"
|
|
6
|
-
:class="
|
|
6
|
+
:class="
|
|
7
7
|
headless
|
|
8
8
|
? 'dialog'
|
|
9
|
-
:
|
|
10
|
-
|
|
9
|
+
: `fixed inset-0 z-50 grid grid-cols-1 grid-rows-1 ${classes}`
|
|
10
|
+
"
|
|
11
11
|
aria-modal="true"
|
|
12
12
|
@click="onClick"
|
|
13
13
|
>
|
|
@@ -46,12 +46,15 @@ export default {
|
|
|
46
46
|
|
|
47
47
|
const emit = () => this.emit();
|
|
48
48
|
|
|
49
|
+
const full = this.full;
|
|
50
|
+
|
|
49
51
|
return {
|
|
50
52
|
componentId,
|
|
51
53
|
hide,
|
|
52
54
|
emit,
|
|
53
55
|
registerContent,
|
|
54
56
|
registerOverlay,
|
|
57
|
+
full,
|
|
55
58
|
};
|
|
56
59
|
},
|
|
57
60
|
};
|
|
@@ -70,6 +73,10 @@ export default {
|
|
|
70
73
|
type: Boolean,
|
|
71
74
|
default: false,
|
|
72
75
|
},
|
|
76
|
+
full: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false,
|
|
79
|
+
},
|
|
73
80
|
},
|
|
74
81
|
|
|
75
82
|
data() {
|
|
@@ -92,6 +99,9 @@ export default {
|
|
|
92
99
|
hasOverlay() {
|
|
93
100
|
return this.overlay !== null;
|
|
94
101
|
},
|
|
102
|
+
classes() {
|
|
103
|
+
return !this.full ? 'p-4 md:p-8' : '';
|
|
104
|
+
},
|
|
95
105
|
},
|
|
96
106
|
|
|
97
107
|
watch: {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<div
|
|
12
12
|
v-show="visible"
|
|
13
13
|
:id="id"
|
|
14
|
-
:class="
|
|
14
|
+
:class="
|
|
15
15
|
headless
|
|
16
16
|
? 'dialog-content'
|
|
17
|
-
:
|
|
18
|
-
|
|
17
|
+
: `relative m-auto flex flex-col overflow-auto rounded bg-white p-6 focus:outline-none lg:p-8 ${classes}`
|
|
18
|
+
"
|
|
19
19
|
tabindex="-1"
|
|
20
20
|
@keydown.esc.stop="hide"
|
|
21
21
|
>
|
|
@@ -47,6 +47,12 @@ export default {
|
|
|
47
47
|
id() {
|
|
48
48
|
return `dialog-content-${this.apiDialog().componentId}`;
|
|
49
49
|
},
|
|
50
|
+
full() {
|
|
51
|
+
return this.apiDialog().full;
|
|
52
|
+
},
|
|
53
|
+
classes() {
|
|
54
|
+
return this.full ? 'h-screen w-screen' : 'max-h-full max-w-full ';
|
|
55
|
+
},
|
|
50
56
|
},
|
|
51
57
|
|
|
52
58
|
mounted() {
|