在同时设置文本换行和文本编辑时,编辑label的状态下,原label文字并未隐藏,导致编辑文本和原文本叠加
Describe the bug
在同时设置文本换行和文本编辑时,编辑文本的状态下,原label文本并未隐藏,导致编辑文本和原文本叠加
Your Example Website or App
https://codesandbox.io/p/sandbox/hardcore-mccarthy-g8rp3c
Steps to Reproduce the Bug or Issue
- 设置节点label换行
- 添加文本编辑工具
- 双击节点编辑输入文字 4.可以看到编辑态文本和原文本叠加
Expected behavior
在编辑状态下隐藏原label文本
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.11.1]
Additional context
No response
👋 @ppmmwozuiai
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.
搞个背景色呗
tools: [{ name: 'node-editor', args: { getText: 'text/textWrap/text', setText: 'text/textWrap/text' } }] 文本编辑的工具的参数加上这个getText和setText的就好了,取文本的地方变了