Commit 0a332225 by hank

bug

parent eb1548f5
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
@click.native="uploadListItem(item.dataKey,index2, index3)" @click.native="uploadListItem(item.dataKey,index2, index3)"
:after-read="uploadAfter" :after-read="uploadAfter"
> >
<van-button icon="photo" type="info">上传图片</van-button> <van-button icon="photo" type="info">上传</van-button>
</van-uploader> </van-uploader>
</div> </div>
</div> </div>
...@@ -91,8 +91,10 @@ ...@@ -91,8 +91,10 @@
@click.native="uploadItem(item.dataKey)" @click.native="uploadItem(item.dataKey)"
:after-read="uploadAfter" :after-read="uploadAfter"
> >
<van-button icon="photo" type="info">上传图片</van-button> <van-button icon="photo" type="info">上传</van-button>
<br>
</van-uploader> </van-uploader>
<van-button type="info" v-if="!item.selectList" @click="setSelectData(item)">选择默认数据</van-button>
</div> </div>
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
...@@ -126,7 +128,8 @@ export default { ...@@ -126,7 +128,8 @@ export default {
activeName: "", activeName: "",
dataKey: "", dataKey: "",
listIndex: "", listIndex: "",
itemKey: "" itemKey: "",
selectData:{}
}; };
}, },
methods: { methods: {
...@@ -205,6 +208,9 @@ export default { ...@@ -205,6 +208,9 @@ export default {
deleteItem(index, arr) { deleteItem(index, arr) {
arr.splice(index, 1); arr.splice(index, 1);
this.$emit("setList", this.schemaData); this.$emit("setList", this.schemaData);
},
setSelectData(item) {
this.selectData = item
} }
} }
}; };
......
<template>
<div>
adsdsa
</div>
</template>
<script>
export default {
data() {
return {
}
},
props: ['selectList'],
}
</script>
<style lang="scc" scoped>
</style>
\ No newline at end of file
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 sign in to comment