0.1.0 • Published 2 years ago
yangcom v0.1.0
components
Project setup
npm install
Customize configuration
uploadImg
props: {
name: String,//属性名称
imgUrl: String,//图片路径
},
//图片上传公共事件(传递imgChage)
onSuccess(res) {
const item = {
url: res.data.url,
name: this.name,
};
this.$emit("imgChage", item);
},
0.1.0
2 years ago