opentiny / opentiny/tiny-engine

🐛 [Bug]: 区块包含自由布局组件时选中范围缺失

Open
#1,808 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
2.8k
Forks
476
Avg merge
17h 35m
Merged PRs (30d)
1

Description

Environment

edge 版本 148.0.3967.70 (正式版本) (64 位)

Version

v22.21.0

Version

latest

Link to minimal reproduction

none

Step to reproduce

前端版本:2.10
后端版本:2.10

1.创建区块,拖入两个组件,一个正常拖入(A),另一个在自由布局下拖入(B)

Image

2.在页面中拖入刚才创建的区块

Image

发现选中区块后,实际选中的区域中只包含了一个组件(A)

3.继续拖入其他组件,发现这个组件的位置在组件A下面,而不是A与B构成的整体区块的下面

Image
What is expected

No response

What is actually happening

No response

What is your project name

TinyEngine

Any additional comments (optional)

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in TinyEngine with a block containing one normally placed component and one free-layout component, then inspect how block selection bounds and subsequent component placement are calculated. Done means the selected area covers both components and a newly dragged component is positioned below the complete block rather than below component A alone.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.