diff --git a/package.json b/package.json index a5b5a0d..0815835 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "less": "^4.2.0", "less-loader": "^7.3.0", "lodash": "^4.17.21", + "markmap-lib": "^0.18.8", "mitt": "^3.0.1", "nanoid": "^5.0.7", "node-addon-api": "^8.1.0", @@ -102,6 +103,7 @@ "vue-cropper": "1.0.3", "vue-qr": "^4.0.9", "vue-router": "^4.4.0", + "vue3-mindmap": "^0.5.12", "vuedraggable": "^4.1.0", "whiteboard_lyc": "^0.1.3", "xgplayer": "^3.0.19", @@ -139,4 +141,4 @@ "vue-tsc": "^1.8.25", "windicss": "^3.5.6" } -} \ No newline at end of file +} diff --git a/src/renderer/src/components/file-image/index.vue b/src/renderer/src/components/file-image/index.vue index 3914946..bc94188 100644 --- a/src/renderer/src/components/file-image/index.vue +++ b/src/renderer/src/components/file-image/index.vue @@ -42,7 +42,8 @@ const getFileTypeIcon = () => { airobot: 'icon-jiqirenfushi', // 数字人生成 aiimg: 'icon-xiangmuicon_maobishufa', // 文生图片 aidraw: 'icon-meishu-F', // 文生连环画 - aiyinyue: 'icon-yinle' //文生音乐 + aiyinyue: 'icon-yinle', //文生音乐 + aiswdt: 'icon-siweidaotu' //思维导图 } if (iconObj[name]) { return '#' + iconObj[name] diff --git a/src/renderer/src/layout/index.vue b/src/renderer/src/layout/index.vue index 2b78391..371f47f 100644 --- a/src/renderer/src/layout/index.vue +++ b/src/renderer/src/layout/index.vue @@ -24,7 +24,7 @@ - + @@ -114,8 +114,8 @@ const onBack = () =>{ margin-top: -3px; margin-right: 3px; } - + } - + } diff --git a/src/renderer/src/views/mindMap/index.vue b/src/renderer/src/views/mindMap/index.vue index d792f0e..098bfb0 100644 --- a/src/renderer/src/views/mindMap/index.vue +++ b/src/renderer/src/views/mindMap/index.vue @@ -10,43 +10,79 @@ 取消 保存 - 编辑 - + + - 导出图片 + + 导出清晰度:数字越大越清晰,但图片大小会越大 + 导出图片 + - - - + + + - + + + + + + - + + + diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index ce62cf8..e114504 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -68,7 +68,6 @@ {{item.name}} - AI思维导图 @@ -162,6 +161,10 @@ const tools = reactive([{ name: '文生图片', path: '/model/aiKolors', img: 'aiimg' +},{ + name: 'AI思维导图', + path: '/model/mindmap', + img: 'aiswdt' },{ name: '文生连环画', path: '',