Commit 0a332225 by hank

bug

parent eb1548f5
......@@ -74,7 +74,7 @@
@click.native="uploadListItem(item.dataKey,index2, index3)"
:after-read="uploadAfter"
>
<van-button icon="photo" type="info">上传图片</van-button>
<van-button icon="photo" type="info">上传</van-button>
</van-uploader>
</div>
</div>
......@@ -91,8 +91,10 @@
@click.native="uploadItem(item.dataKey)"
:after-read="uploadAfter"
>
<van-button icon="photo" type="info">上传图片</van-button>
<van-button icon="photo" type="info">上传</van-button>
<br>
</van-uploader>
<van-button type="info" v-if="!item.selectList" @click="setSelectData(item)">选择默认数据</van-button>
</div>
</van-collapse-item>
</van-collapse>
......@@ -126,7 +128,8 @@ export default {
activeName: "",
dataKey: "",
listIndex: "",
itemKey: ""
itemKey: "",
selectData:{}
};
},
methods: {
......@@ -205,6 +208,9 @@ export default {
deleteItem(index, arr) {
arr.splice(index, 1);
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