@nixweb/nixloc-ui 0.0.158 → 0.0.160
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 +1 -1
- package/src/component/forms/ImageUpload.vue +22 -10
- package/src/component/shared/DocumentEditor.vue +1 -1
- package/src/component/template/ViewTemplateDocumentView.vue +0 -9
- package/src/component/template/ViewTemplateImportFile.vue +1 -0
- package/src/store/modules/generic.js +1 -1
package/package.json
CHANGED
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
<div class="div-preview">
|
|
16
16
|
<img
|
|
17
17
|
:class="classCss"
|
|
18
|
-
:style="'width:
|
|
19
|
-
:src="
|
|
18
|
+
:style="'width:' + width + 'px;height:' + height + 'px'"
|
|
19
|
+
:src="
|
|
20
|
+
'https://espaco.blob.core.windows.net/' +
|
|
21
|
+
container +
|
|
22
|
+
'/' +
|
|
23
|
+
urlImage
|
|
24
|
+
"
|
|
20
25
|
/>
|
|
21
26
|
</div>
|
|
22
27
|
<div>
|
|
@@ -24,14 +29,18 @@
|
|
|
24
29
|
<div class="div-button">
|
|
25
30
|
<button class="button small primary" @click="show = !show">
|
|
26
31
|
<span v-if="!loadingAdd">
|
|
27
|
-
<span><i class="fas fa-camera"></i>
|
|
32
|
+
<span><i class="fas fa-camera"></i> {{ title }}</span>
|
|
28
33
|
</span>
|
|
29
34
|
</button>
|
|
30
35
|
</div>
|
|
31
36
|
</div>
|
|
32
37
|
<div v-else>
|
|
33
38
|
<div class="div-button">
|
|
34
|
-
<button
|
|
39
|
+
<button
|
|
40
|
+
class="button small danger"
|
|
41
|
+
v-if="!loadingAdd"
|
|
42
|
+
@click="remove()"
|
|
43
|
+
>
|
|
35
44
|
<span v-if="!loadingRemove"
|
|
36
45
|
><i class="fas fa-camera"></i> Remover Foto</span
|
|
37
46
|
>
|
|
@@ -52,11 +61,12 @@
|
|
|
52
61
|
@crop-success="cropSuccess"
|
|
53
62
|
langType="pt-br"
|
|
54
63
|
v-model="show"
|
|
55
|
-
:width="
|
|
56
|
-
:height="
|
|
64
|
+
:width="width"
|
|
65
|
+
:height="height"
|
|
57
66
|
:noCircle="true"
|
|
58
67
|
img-format="png"
|
|
59
|
-
|
|
68
|
+
>
|
|
69
|
+
</my-upload>
|
|
60
70
|
</div>
|
|
61
71
|
</template>
|
|
62
72
|
<script>
|
|
@@ -73,7 +83,9 @@ export default {
|
|
|
73
83
|
title: String,
|
|
74
84
|
container: String,
|
|
75
85
|
accepted: String,
|
|
76
|
-
|
|
86
|
+
width: Number,
|
|
87
|
+
height: Number,
|
|
88
|
+
classCss: String,
|
|
77
89
|
urlPost: String,
|
|
78
90
|
urlRemove: String,
|
|
79
91
|
onLoad: Function,
|
|
@@ -92,7 +104,7 @@ export default {
|
|
|
92
104
|
computed: {
|
|
93
105
|
urlImage() {
|
|
94
106
|
if (this.value) return this.value;
|
|
95
|
-
return "noImage.
|
|
107
|
+
return "noImage.png";
|
|
96
108
|
},
|
|
97
109
|
},
|
|
98
110
|
methods: {
|
|
@@ -225,6 +237,6 @@ export default {
|
|
|
225
237
|
}
|
|
226
238
|
|
|
227
239
|
.div-button {
|
|
228
|
-
margin-left:
|
|
240
|
+
margin-left: 10px;
|
|
229
241
|
}
|
|
230
242
|
</style>
|
|
@@ -185,15 +185,6 @@ export default {
|
|
|
185
185
|
setTimeout(function () {
|
|
186
186
|
self.showDocumentEditor = true;
|
|
187
187
|
}, 1500);
|
|
188
|
-
window.addEventListener("keydown", (e) => {
|
|
189
|
-
if (e.key == "Alt") {
|
|
190
|
-
if (this.modal.open) {
|
|
191
|
-
this.hideModal();
|
|
192
|
-
} else {
|
|
193
|
-
this.showModalLegend();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
188
|
},
|
|
198
189
|
computed: {
|
|
199
190
|
...mapState("generic", ["modal", "documentHtml"]),
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
148
148
|
obj.vForSimple = "v-for='endereco in d.locacao.cliente.endereco'";
|
|
149
149
|
config.push(obj);
|
|
150
150
|
} else if (isAddressRent) {
|
|
151
|
-
obj.vForSimple = "v-for='endereco in d.
|
|
151
|
+
obj.vForSimple = "v-for='endereco in d.saidaRetorno'";
|
|
152
152
|
config.push(obj);
|
|
153
153
|
} else {
|
|
154
154
|
config.push(obj);
|