vue-mermaid
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -5,2 +5,11 @@ # vue-mermaid Change Log | ||
### 0.0.11 | ||
- Upgrade mermaid version | ||
- Fix default config issues | ||
### 0.0.10 | ||
- Add exception catch of parse | ||
### 0.0.9 | ||
@@ -7,0 +16,0 @@ |
{ | ||
"name": "vue-mermaid", | ||
"description": "flowchart of mermaid with vue componet", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"main": "dist/vue-mermaid.js", | ||
@@ -29,3 +29,3 @@ "author": "mark_tun <yuguang.liu@foxmail.com>", | ||
"dependencies": { | ||
"mermaid": "^8.0.0" | ||
"mermaid": "^8.4.4" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
@@ -111,2 +111,28 @@ # vue-mermaid | ||
### Theme | ||
- To change theme, you can pass in a config object, for available themes, you can refer to [mermaidjs themes](https://github.com/mermaid-js/mermaid/tree/master/src/themes) | ||
```vue | ||
<template> | ||
<vue-mermaid | ||
type="graph LR" | ||
:config="config" | ||
></vue-mermaid> | ||
</template> | ||
``` | ||
```js | ||
export default { | ||
data: function() { | ||
return { | ||
config: { | ||
theme: 'neutral' | ||
} | ||
}; | ||
} | ||
}; | ||
``` | ||
## Build Setup | ||
@@ -113,0 +139,0 @@ |
Sorry, the diff of this file is not supported yet
17630
146
Updatedmermaid@^8.4.4