define({ name:"share", template:`
`, style:` `, props: { form: { default() { return {} } } }, data() { return { showUploadImagePopup: false, chooseImgName: "", type:"", json: { share_title: '', share_thumb: '', share_desc: '', } } }, mounted() { if(this.form && JSON.stringify(this.form) !== '[]') { this.json.share_title = this.form.share_title; this.json.share_thumb = this.form.share_thumb; this.json.share_desc = this.form.share_desc; } }, methods:{ displayUploadImagePopup(type = "goods_image") { this.type = "1"; this.chooseImageName = type; this.showUploadImagePopup = !this.showUploadImagePopup; }, selectedImage(name, show, images) { this.json.share_thumb = images[0]["url"]; this.$forceUpdate() }, extraDate(){ }, validate(){ return this.json; } } })