diff --git a/README.md b/README.md
index 0e2ef177..e26110e0 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ npm run build
# 安装
-> 当然仓库版本:0.2.5,当前npm版本:0.2.5
+> 当然仓库版本:0.2.6,当前npm版本:0.2.5
```bash
npm i simple-mind-map
diff --git a/index.html b/index.html
index d20f8c13..cdc64b40 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
一个简单的web思维导图实现
\ No newline at end of file
+一个简单的web思维导图实现
\ No newline at end of file
diff --git a/simple-mind-map/package.json b/simple-mind-map/package.json
index 3b594159..77dc7a62 100644
--- a/simple-mind-map/package.json
+++ b/simple-mind-map/package.json
@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
- "version": "0.2.5",
+ "version": "0.2.6",
"description": "一个简单的web在线思维导图",
"authors": [
{
diff --git a/simple-mind-map/src/Export.js b/simple-mind-map/src/Export.js
index f95629eb..337f6137 100644
--- a/simple-mind-map/src/Export.js
+++ b/simple-mind-map/src/Export.js
@@ -1,5 +1,8 @@
import { imgToDataUrl, downloadFile } from './utils'
import JsPDF from 'jspdf'
+import {
+ SVG,
+} from '@svgdotjs/svg.js'
const URL = window.URL || window.webkitURL || window
/**
@@ -228,8 +231,9 @@ class Export {
* @Date: 2021-07-04 14:54:07
* @Desc: 导出为svg
*/
- async svg() {
+ async svg(name) {
let { node } = await this.getSvgData()
+ node.first().before(SVG(`${name}`))
await this.drawBackgroundToSvg(node)
let str = node.svg()
// 转换成blob数据