From 57a0d9af8c75326ff37fbb7027d84570a0ce6b34 Mon Sep 17 00:00:00 2001 From: SignDawn <704425540@qq.com> Date: Mon, 21 Jun 2021 12:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=80=E6=96=B0=E7=9A=84to?= =?UTF-8?q?pology-vue=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=B6=82=E9=B8=A6?= =?UTF-8?q?=E5=92=8C=E9=92=A2=E7=AC=94=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/index.html | 2 +- src/views/data.js | 74 +++++++++++++++++++++++++++++++++++++++++++++++ yarn.lock | 8 ++--- 4 files changed, 80 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index dd21332..89da4c4 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "core-js": "^3.6.5", - "topology-vue": "^0.5.8", + "topology-vue": "^0.5.22", "vue": "^2.6.11", "vue-router": "^3.2.0" }, diff --git a/public/index.html b/public/index.html index e2ee894..d5e7779 100644 --- a/public/index.html +++ b/public/index.html @@ -12,7 +12,7 @@ /> diff --git a/src/views/data.js b/src/views/data.js index 3dcdb69..4767644 100644 --- a/src/views/data.js +++ b/src/views/data.js @@ -361,6 +361,80 @@ export const defalutMaterials = [ // strokeStyle: 'transparent', name: 'div' } + }, + { + name: '涂鸦', + icon: 't-icon t-pencil', + class: '架构拓扑图', + data: { + name: 'graffiti', + type: 0, // 0- 连线; 1- 节点 + doing: true, + rect: { + width: 100, + height: 100 + } + } + }, + { + name: '涂鸦2', + icon: 't-icon t-pencil-close', + class: '架构拓扑图', + data: { + name: 'graffiti', + type: 0, // 0- 连线; 1- 节点 + closePath: true, // 是否闭合 + doing: true, + rect: { + width: 0, + height: 0 + } + } + }, + { + name: '钢笔', + icon: 't-icon t-pen', + class: '架构拓扑图', + data: { + name: 'lines', + type: 1, // 1- 连线 + doing: true, + rect: { + width: 0, + height: 0 + } + } + }, + { + name: '钢笔节点', + icon: 't-icon t-dakai', + class: '架构拓扑图', + data: { + isNode: true, + name: 'lines', + type: 0, // 0- 节点 + doing: true, + + rect: { + width: 0, + height: 0 + } + } + }, + { + name: '钢笔闭合节点', + icon: 't-icon t-quanfengbi', + class: '架构拓扑图', + data: { + name: 'lines', + type: 0, // 0- 节点 + doing: true, + closePath: true, // 是否闭合 + rect: { + width: 0, + height: 0 + } + } } ] }, diff --git a/yarn.lock b/yarn.lock index b680f6d..07f0412 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7862,10 +7862,10 @@ toidentifier@1.0.0: resolved "https://registry.npm.taobao.org/toidentifier/download/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" integrity sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM= -topology-vue@^0.5.8: - version "0.5.10" - resolved "https://registry.npm.taobao.org/topology-vue/download/topology-vue-0.5.10.tgz#c6b8d2e45d51109a724e16aed8de3eda0cbd8c7c" - integrity sha1-xrjS5F1REJpyThau2N4+2gy9jHw= +topology-vue@^0.5.22: + version "0.5.22" + resolved "https://registry.nlark.com/topology-vue/download/topology-vue-0.5.22.tgz?cache=0&sync_timestamp=1624247533188&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftopology-vue%2Fdownload%2Ftopology-vue-0.5.22.tgz#37d5b31bcd1e4e3fd348c460eb086efd3b68710e" + integrity sha1-N9WzG80eTj/TSMRg6whu/TtocQ4= toposort@^1.0.0: version "1.0.7"