传播参数
<quill-editor ref="ReleaseForm"></quill-editor>
import QuillEditor from '@/components/Editor/QuillEditor'
<a-button type="dashed" @click="$refs.ReleaseForm.login()"><span style="color: black">发布</span></a-button>
detail (e) {
messageDetail({
id: e
}).then(res => {
this.$refs.ReleaseForm.show(res)
})
}
接收参数
在接收页面的methods
show (e) {
this.visible = true
this.queryParam.title = e.title
this.queryParam.number = e.number
this.queryParam.content = e.content
this.submitd = false
this.resetd = false
},