glib-web 3.0.11 → 3.0.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/nav/dialog.vue +16 -10
- package/package.json +2 -2
package/nav/dialog.vue
CHANGED
|
@@ -5,17 +5,16 @@
|
|
|
5
5
|
<!-- <v-card-title v-if="title || showClose" class="text-h5" primary-title> -->
|
|
6
6
|
|
|
7
7
|
<panels-responsive v-if="header" :spec="header" />
|
|
8
|
-
<div class="flex flex-wrap justify-between" v-if="title
|
|
9
|
-
<div
|
|
8
|
+
<div class="dialog-title flex flex-wrap justify-between" v-if="title">
|
|
9
|
+
<div class="theme--light v-subheader">
|
|
10
10
|
{{ title }}
|
|
11
11
|
</div>
|
|
12
|
+
</div>
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
<div class="dialogs-body relative">
|
|
15
|
+
<v-btn size="small" v-if="showClose" text icon @click="close" class="mr-3 mt-2 close-btn" variant="flat">
|
|
14
16
|
<v-icon>close</v-icon>
|
|
15
17
|
</v-btn>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="dialogs-body">
|
|
19
18
|
<component :is="containerComponent" :spec="formSpec">
|
|
20
19
|
<div v-if="message" class="dialog-message">
|
|
21
20
|
<common-message :spec="{ message: message }" />
|
|
@@ -65,7 +64,7 @@ export default {
|
|
|
65
64
|
model: null,
|
|
66
65
|
url: null,
|
|
67
66
|
urlLoaded: false,
|
|
68
|
-
showClose:
|
|
67
|
+
showClose: true,
|
|
69
68
|
isFormDirty: false,
|
|
70
69
|
isFormSubmitted: false,
|
|
71
70
|
isMobile: false,
|
|
@@ -149,7 +148,7 @@ export default {
|
|
|
149
148
|
show(reload) {
|
|
150
149
|
const spec = this.spec;
|
|
151
150
|
this.url = spec.url;
|
|
152
|
-
this.showClose = Utils.type.isString(this.url);
|
|
151
|
+
this.showClose = this.spec.showClose || Utils.type.isString(this.url);
|
|
153
152
|
|
|
154
153
|
if (Utils.type.isString(this.url)) {
|
|
155
154
|
if (!this.urlLoaded) {
|
|
@@ -167,7 +166,7 @@ export default {
|
|
|
167
166
|
this.header = response.header;
|
|
168
167
|
this.body = response.body;
|
|
169
168
|
this.footer = response.footer;
|
|
170
|
-
this.showClose = this.spec.showClose ||
|
|
169
|
+
this.showClose = this.spec.showClose || true;
|
|
171
170
|
|
|
172
171
|
Action.execute(response.onLoad, this);
|
|
173
172
|
});
|
|
@@ -177,7 +176,7 @@ export default {
|
|
|
177
176
|
this.title = this.spec.title;
|
|
178
177
|
this.message = this.spec.message;
|
|
179
178
|
this.body = this.spec.body;
|
|
180
|
-
this.showClose = this.spec.showClose ||
|
|
179
|
+
this.showClose = this.spec.showClose || true;
|
|
181
180
|
Action.execute(spec.onLoad, this);
|
|
182
181
|
}
|
|
183
182
|
|
|
@@ -200,6 +199,12 @@ export default {
|
|
|
200
199
|
/* white-space: pre-wrap; */
|
|
201
200
|
}
|
|
202
201
|
|
|
202
|
+
.close-btn {
|
|
203
|
+
top: 0;
|
|
204
|
+
right: 0;
|
|
205
|
+
position: absolute;
|
|
206
|
+
}
|
|
207
|
+
|
|
203
208
|
.dialog-close {
|
|
204
209
|
right: 16px;
|
|
205
210
|
top: 12px;
|
|
@@ -216,6 +221,7 @@ export default {
|
|
|
216
221
|
justify-content: space-between;
|
|
217
222
|
height: 100%;
|
|
218
223
|
padding: 0;
|
|
224
|
+
position: relative;
|
|
219
225
|
}
|
|
220
226
|
|
|
221
227
|
.dialogs-body {
|