antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.75k stars 1.71k forks source link

2.x版本给vue节点添加stroke边框无效 #4488

Open baoers opened 2 weeks ago

baoers commented 2 weeks ago

问题描述

在1.x版本中,通过 graph.addNode({ shape: "vue-shape", x: x, y: y, width: 205, height: 100, attrs: { body: { stroke: 'red', strokeWidth: 2, }, }}) 可以设置边框,更新2.x版本后, graph.addNode({ shape: "custom-vue-node", x: x, y: y, width: 205, height: 100, attrs: { body: { stroke: 'red', strokeWidth: 2, }, }}),边框无效,把shape替换为rect后有效

重现链接

重现步骤

预期行为

期望能支持边框

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

x6-bot[bot] commented 2 weeks ago

👋 @baoers

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.