This commit is contained in:
parent
e742aeae7b
commit
272814b9b4
|
@ -75,6 +75,7 @@
|
|||
>
|
||||
<label for="uploadinput" class="uploadlabel" @click="onInputClick">
|
||||
<slot>
|
||||
{{ imageList.length }} {{ limit }}
|
||||
<i
|
||||
class="el-icon-plus"
|
||||
:style="{ fontSize: $attrs.width ? $attrs.width / 4 + 'px' : '25px' }"
|
||||
|
@ -321,6 +322,8 @@ export default {
|
|||
let that = this;
|
||||
try {
|
||||
let uplist = [];
|
||||
console.log(this.limit, " this.limit", this.limit - this.imageList.length);
|
||||
|
||||
let files = [...e.target.files].slice(0, this.limit - this.imageList.length);
|
||||
const find = files.find((f, i) => {
|
||||
if (this.$attrs.accept) {
|
||||
|
|
Loading…
Reference in New Issue