Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 大纲树拖拽P,H1元素交换位置, P、H1元素里面的内容被清空了 #1137

Open
1degrees opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@1degrees
Copy link

1degrees commented Feb 21, 2025

Environment

mac 12

Version

node 18.18.1

Version

tiny-engine develop

Link to minimal reproduction

Image

页面schema结构
{ "componentName": "Page", "fileName": "DemoPage", "css": ".page-base-style {\n padding: 24px;background: #FFFFFF;\n}\n\n.block-base-style {\n margin: 16px;\n}\n\n.component-base-style {\n margin: 8px;\n}\n", "props": { "className": "page-base-style" }, "lifeCycles": {}, "children": [ { "componentName": "h1", "props": { "className": "component-base-style" }, "id": "4dd4c34f", "show": true, "showEye": false, "children": "测试大纲树拖拽喂喂测试大纲树拖拽喂喂喂" }, { "componentName": "div", "props": { "className": "component-base-style" }, "children": [], "id": "63112352", "show": true, "showEye": false } ], "dataSource": { "list": [] }, "methods": {}, "bridge": { "imports": [] }, "state": {}, "inputs": [], "outputs": [] }

Step to reproduce

1、新建页面
2、在页面中拖入P、H1、Text 元素或者 复制上方schema
3、打开大纲树,拖拽H1元素交换位置,
4、H1元素填充内容丢失

What is expected

位置交换,其他不变

What is actually happening

位置交换,children内容丢失

What is your project name

二开项目

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Drag the P and H1 elements to exchange positions in the outline tree, and the contents in the P and H1 elements are cleared

@chilingling chilingling added the bug Something isn't working label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants