robin1liu / vue-mermaid

flowchart of mermaid with vue component
MIT License
126 stars 25 forks source link

0.0.12 shows bug when using link #19

Open redsand opened 4 years ago

redsand commented 4 years ago

this simple data array is creating this odd view: [ { id: "1", text: "A", link: ["-- yes -->", "-- no -->"], next: ["2", "3"], editable: true }, { id: "2", text: "B" }, { id: "3", text: "C"} ]

      <vue-mermaid
        :nodes="data.workspace"
        :config="{ startOnLoad:true, securityLevel: 'loose', flowchart:{ useMaxWidth:false, htmlLabels:false, cloneCssStyles: false } }"
        type="graph TD"
        @nodeClick="edit"
      />

image

redsand commented 4 years ago

It appears to be related to the npm install. When cloning and deploying locally, it shows to work.