vue-intergrall-plugins 0.0.217 → 0.0.220
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.
|
@@ -3540,7 +3540,8 @@ var script$n = {
|
|
|
3540
3540
|
isDoc: false,
|
|
3541
3541
|
fileFormatError: false,
|
|
3542
3542
|
validFileFormats: "",
|
|
3543
|
-
hasAnyFile: false
|
|
3543
|
+
hasAnyFile: false,
|
|
3544
|
+
externalFilesAux: []
|
|
3544
3545
|
};
|
|
3545
3546
|
},
|
|
3546
3547
|
computed: {
|
|
@@ -3555,6 +3556,10 @@ var script$n = {
|
|
|
3555
3556
|
externalFiles: function externalFiles() {
|
|
3556
3557
|
var _this = this;
|
|
3557
3558
|
|
|
3559
|
+
if (!this.externalFiles.length) {
|
|
3560
|
+
return;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3558
3563
|
if (this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
3559
3564
|
this.$emit("reset-file-system");
|
|
3560
3565
|
return this.$toasted.global.defaultInfo({
|
|
@@ -3562,12 +3567,11 @@ var script$n = {
|
|
|
3562
3567
|
});
|
|
3563
3568
|
}
|
|
3564
3569
|
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3570
|
+
this.externalFilesAux = Array.from(this.externalFiles);
|
|
3571
|
+
this.externalFilesAux.forEach(function (files) {
|
|
3567
3572
|
_this.file.push(files);
|
|
3568
|
-
});
|
|
3569
|
-
|
|
3570
|
-
this.fileSize = this.externalFiles.length;
|
|
3573
|
+
});
|
|
3574
|
+
this.fileSize = this.file.length;
|
|
3571
3575
|
this.multipleFileUpload();
|
|
3572
3576
|
}
|
|
3573
3577
|
},
|
|
@@ -3971,7 +3975,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3971
3975
|
|
|
3972
3976
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3973
3977
|
if (!inject) return;
|
|
3974
|
-
inject("data-v-
|
|
3978
|
+
inject("data-v-4b955990_0", {
|
|
3975
3979
|
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}",
|
|
3976
3980
|
map: undefined,
|
|
3977
3981
|
media: undefined
|
|
@@ -3983,7 +3987,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3983
3987
|
var __vue_scope_id__$n = undefined;
|
|
3984
3988
|
/* module identifier */
|
|
3985
3989
|
|
|
3986
|
-
var __vue_module_identifier__$n = "data-v-
|
|
3990
|
+
var __vue_module_identifier__$n = "data-v-4b955990";
|
|
3987
3991
|
/* functional template */
|
|
3988
3992
|
|
|
3989
3993
|
var __vue_is_functional_template__$n = false;
|
package/package.json
CHANGED
|
@@ -137,7 +137,8 @@ export default {
|
|
|
137
137
|
isDoc: false,
|
|
138
138
|
fileFormatError: false,
|
|
139
139
|
validFileFormats: "",
|
|
140
|
-
hasAnyFile: false
|
|
140
|
+
hasAnyFile: false,
|
|
141
|
+
externalFilesAux: [],
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
computed: {
|
|
@@ -150,16 +151,18 @@ export default {
|
|
|
150
151
|
},
|
|
151
152
|
watch: {
|
|
152
153
|
externalFiles() {
|
|
154
|
+
if(!this.externalFiles.length){
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
153
157
|
if(this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
154
158
|
this.$emit("reset-file-system")
|
|
155
159
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
156
160
|
}
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
161
|
+
this.externalFilesAux = Array.from(this.externalFiles)
|
|
162
|
+
this.externalFilesAux.forEach(files => {
|
|
159
163
|
this.file.push(files)
|
|
160
164
|
});
|
|
161
|
-
|
|
162
|
-
this.fileSize = this.externalFiles.length
|
|
165
|
+
this.fileSize = this.file.length
|
|
163
166
|
this.multipleFileUpload()
|
|
164
167
|
}
|
|
165
168
|
},
|