@dataloop-ai/components 0.13.10 → 0.13.12
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
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
/>
|
|
13
13
|
<div
|
|
14
14
|
class="dialog-wrapper"
|
|
15
|
-
:style="{
|
|
15
|
+
:style="{
|
|
16
|
+
width: Number(width) ? `${width}px` : width,
|
|
17
|
+
height: Number(height) ? `${height}px` : height
|
|
18
|
+
}"
|
|
16
19
|
:class="{
|
|
17
20
|
'dialog-wrapper--fullscreen': fullscreen,
|
|
18
|
-
'dialog-wrapper--right': right,
|
|
19
|
-
'dialog-wrapper--left': left
|
|
21
|
+
'dialog-wrapper--right': position === 'right',
|
|
22
|
+
'dialog-wrapper--left': position === 'left'
|
|
20
23
|
}"
|
|
21
24
|
>
|
|
22
25
|
<div
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
|
|
45
48
|
<script lang="ts">
|
|
46
49
|
import { v4 } from 'uuid'
|
|
47
|
-
import { defineComponent } from 'vue-demi'
|
|
50
|
+
import { defineComponent, PropType } from 'vue-demi'
|
|
48
51
|
|
|
49
52
|
export default defineComponent({
|
|
50
53
|
name: 'DlDialogBox',
|
|
@@ -54,9 +57,13 @@ export default defineComponent({
|
|
|
54
57
|
},
|
|
55
58
|
props: {
|
|
56
59
|
width: { type: [Number, String], default: 400 },
|
|
60
|
+
height: { type: [Number, String], default: 'fit-content' },
|
|
57
61
|
fullscreen: Boolean,
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
separators: { type: Boolean, default: true },
|
|
63
|
+
position: {
|
|
64
|
+
type: String as PropType<'left' | 'right' | 'center'>,
|
|
65
|
+
default: 'center'
|
|
66
|
+
},
|
|
60
67
|
modelValue: Boolean,
|
|
61
68
|
volatile: { type: Boolean, default: false }
|
|
62
69
|
},
|
|
@@ -72,7 +79,10 @@ export default defineComponent({
|
|
|
72
79
|
return {
|
|
73
80
|
'--dl-backdrop-color': this.hasParent
|
|
74
81
|
? 'transparent'
|
|
75
|
-
: 'rgba(0, 0, 0, 0.4)'
|
|
82
|
+
: 'rgba(0, 0, 0, 0.4)',
|
|
83
|
+
'--dl-dialog-separator': this.separators
|
|
84
|
+
? '1px solid var(--dl-color-separator)'
|
|
85
|
+
: 'none'
|
|
76
86
|
}
|
|
77
87
|
},
|
|
78
88
|
hasParent(): boolean {
|
|
@@ -178,7 +188,7 @@ export default defineComponent({
|
|
|
178
188
|
.header {
|
|
179
189
|
display: flex;
|
|
180
190
|
padding: 16px;
|
|
181
|
-
border-bottom:
|
|
191
|
+
border-bottom: var(--dl-dialog-separator);
|
|
182
192
|
}
|
|
183
193
|
|
|
184
194
|
.content {
|
|
@@ -193,7 +203,7 @@ export default defineComponent({
|
|
|
193
203
|
.footer {
|
|
194
204
|
display: flex;
|
|
195
205
|
padding: 16px;
|
|
196
|
-
border-top:
|
|
206
|
+
border-top: var(--dl-dialog-separator);
|
|
197
207
|
}
|
|
198
208
|
|
|
199
209
|
.fade {
|