vue-mermaid-sample
v1.0.2
Published
a vue component of mermaid
Downloads
5
Readme
vue-mermaid
based off mermadi
实现mermaid组件在vue框架中的应用,组件根据数据结构动态刷新试图结构
Setup
npm install vue-mermaid --save
Simple vue use
import Mermaid from 'vue-mermaid';
// use in component
export default {
components:{
Mermaid
}
}
Component Props
| Option | type | default | description |:-------------|:-------------|:-------|:-------| | option | Object | default option | value | string | ''
default option
defaults: {
wrapperClassName: "mermaid",
handleClick: {
noteMargin: 10,
name: null,
fn: null // 点击节点的回调函数
}
}