Hi guys:
I don’t know why can’t show on el-dialog.
If I don’t use el-dialog I can get this.
This is my sample code, xmlStr has been successfully loaded, but there is nothing on the web page.
2/17
It’s my solution, add the $nextTick(()=>{})
this.$nextTick(()=>{
const canvas = this.$refs.canvas
_this.xmlData = xmlStr
if(_this.bpmnView==undefined){
_this.bpmnView = new BpmnViewer({
container: canvas
})
_this.bpmnModel = new BpmnModeler({
moddleExtensions: {
camunda:camundaModdleDescriptor
},
})
}
_this.createNewDiagram()
})