Commit 8fd3d7f2 by lixiaomin

修改图片上传

parent 05d592ad
...@@ -57,6 +57,10 @@ export default { ...@@ -57,6 +57,10 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
tagValue: { // 参数名为age
type: Number,
default: 1,
}
}, },
data() { data() {
return { return {
...@@ -198,10 +202,11 @@ export default { ...@@ -198,10 +202,11 @@ export default {
if (this.arrType) { if (this.arrType) {
return strs; return strs;
} }
// if (size == 1) { if(this.tagValue==1){
// return strs[0]; if (size == 1) {
// } return strs[0];
}
}
return strs; return strs;
}, },
getDisable(){ getDisable(){
......
<template> <template>
<div > <div >
<ImageUpload @callback="submit" v-model="value" /> <ImageUpload @callback="submit" v-model="value" :tagValue="2"/>
</div> </div>
</template> </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