vue-intergrall-plugins 0.0.217 → 0.0.218
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.
|
@@ -3555,6 +3555,10 @@ var script$n = {
|
|
|
3555
3555
|
externalFiles: function externalFiles() {
|
|
3556
3556
|
var _this = this;
|
|
3557
3557
|
|
|
3558
|
+
if (!this.externalFiles.length) {
|
|
3559
|
+
return;
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3558
3562
|
if (this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
3559
3563
|
this.$emit("reset-file-system");
|
|
3560
3564
|
return this.$toasted.global.defaultInfo({
|
|
@@ -3567,6 +3571,7 @@ var script$n = {
|
|
|
3567
3571
|
_this.file.push(files);
|
|
3568
3572
|
}); // this.file = this.externalFiles
|
|
3569
3573
|
|
|
3574
|
+
console.log(this.file);
|
|
3570
3575
|
this.fileSize = this.externalFiles.length;
|
|
3571
3576
|
this.multipleFileUpload();
|
|
3572
3577
|
}
|
|
@@ -3971,7 +3976,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3971
3976
|
|
|
3972
3977
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3973
3978
|
if (!inject) return;
|
|
3974
|
-
inject("data-v-
|
|
3979
|
+
inject("data-v-7aef3103_0", {
|
|
3975
3980
|
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
3981
|
map: undefined,
|
|
3977
3982
|
media: undefined
|
|
@@ -3983,7 +3988,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3983
3988
|
var __vue_scope_id__$n = undefined;
|
|
3984
3989
|
/* module identifier */
|
|
3985
3990
|
|
|
3986
|
-
var __vue_module_identifier__$n = "data-v-
|
|
3991
|
+
var __vue_module_identifier__$n = "data-v-7aef3103";
|
|
3987
3992
|
/* functional template */
|
|
3988
3993
|
|
|
3989
3994
|
var __vue_is_functional_template__$n = false;
|
package/package.json
CHANGED
|
@@ -150,6 +150,9 @@ export default {
|
|
|
150
150
|
},
|
|
151
151
|
watch: {
|
|
152
152
|
externalFiles() {
|
|
153
|
+
if(!this.externalFiles.length){
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
153
156
|
if(this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
154
157
|
this.$emit("reset-file-system")
|
|
155
158
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
@@ -159,6 +162,7 @@ export default {
|
|
|
159
162
|
this.file.push(files)
|
|
160
163
|
});
|
|
161
164
|
// this.file = this.externalFiles
|
|
165
|
+
console.log(this.file);
|
|
162
166
|
this.fileSize = this.externalFiles.length
|
|
163
167
|
this.multipleFileUpload()
|
|
164
168
|
}
|