Commit 8fd3d7f2 by lixiaomin

修改图片上传

parent 05d592ad
......@@ -57,6 +57,10 @@ export default {
type: Boolean,
default: false,
},
tagValue: { // 参数名为age
type: Number,
default: 1,
}
},
data() {
return {
......@@ -198,10 +202,11 @@ export default {
if (this.arrType) {
return strs;
}
// if (size == 1) {
// return strs[0];
// }
if(this.tagValue==1){
if (size == 1) {
return strs[0];
}
}
return strs;
},
getDisable(){
......
<template>
<div >
<ImageUpload @callback="submit" v-model="value" />
<ImageUpload @callback="submit" v-model="value" :tagValue="2"/>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment