更新最新的topology-vue,新增涂鸦和钢笔工具
This commit is contained in:
parent
1be4b264fd
commit
57a0d9af8c
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
/>
|
||||
<!-- 新通用图标topology-new -->
|
||||
<link
|
||||
href="//at.alicdn.com/t/font_2030495_ycf3czkih4n.css"
|
||||
href="//at.alicdn.com/t/font_2030495_6tq2su2jmyx.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<!-- 老图标 -->
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue