vue-intergrall-plugins 0.0.231 → 0.0.232
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.
|
@@ -3596,19 +3596,17 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3596
3596
|
|
|
3597
3597
|
if (!this.externalFiles.length) return;
|
|
3598
3598
|
|
|
3599
|
-
if (this.externalFiles.length
|
|
3599
|
+
if (this.externalFiles.length > this.fileSettings.max) {
|
|
3600
3600
|
this.$emit("reset-file-system");
|
|
3601
3601
|
return this.$toasted.global.defaultInfo({
|
|
3602
3602
|
msg: "Limite de ".concat(this.fileSettings.max, " arquivos")
|
|
3603
3603
|
});
|
|
3604
3604
|
}
|
|
3605
3605
|
|
|
3606
|
+
this.file = [];
|
|
3606
3607
|
this.externalFilesAux = Array.from(this.externalFiles);
|
|
3607
|
-
var allNames = this.file.map(function (file) {
|
|
3608
|
-
return file.name;
|
|
3609
|
-
});
|
|
3610
3608
|
this.externalFilesAux.forEach(function (files) {
|
|
3611
|
-
|
|
3609
|
+
_this.file.push(files);
|
|
3612
3610
|
});
|
|
3613
3611
|
this.fileSize = this.file.length;
|
|
3614
3612
|
this.multipleFileUpload();
|
|
@@ -4032,7 +4030,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4032
4030
|
|
|
4033
4031
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
4034
4032
|
if (!inject) return;
|
|
4035
|
-
inject("data-v-
|
|
4033
|
+
inject("data-v-38ede73a_0", {
|
|
4036
4034
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
|
|
4037
4035
|
map: undefined,
|
|
4038
4036
|
media: undefined
|
|
@@ -4044,7 +4042,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
4044
4042
|
var __vue_scope_id__$n = undefined;
|
|
4045
4043
|
/* module identifier */
|
|
4046
4044
|
|
|
4047
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4045
|
+
var __vue_module_identifier__$n = "data-v-38ede73a";
|
|
4048
4046
|
/* functional template */
|
|
4049
4047
|
|
|
4050
4048
|
var __vue_is_functional_template__$n = false;
|
package/package.json
CHANGED
|
@@ -201,15 +201,15 @@ export default {
|
|
|
201
201
|
watch: {
|
|
202
202
|
externalFiles() {
|
|
203
203
|
if(!this.externalFiles.length) return
|
|
204
|
-
if(this.externalFiles.length
|
|
204
|
+
if(this.externalFiles.length > this.fileSettings.max) {
|
|
205
205
|
this.$emit("reset-file-system")
|
|
206
206
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
207
207
|
}
|
|
208
|
+
this.file = []
|
|
208
209
|
this.externalFilesAux = Array.from(this.externalFiles)
|
|
209
|
-
const allNames = this.file.map(file => file.name)
|
|
210
210
|
this.externalFilesAux.forEach(files => {
|
|
211
|
-
|
|
212
|
-
})
|
|
211
|
+
this.file.push(files)
|
|
212
|
+
})
|
|
213
213
|
this.fileSize = this.file.length
|
|
214
214
|
this.multipleFileUpload()
|
|
215
215
|
}
|