opentiny / opentiny/tiny-engine

🐛 [Bug]:自由布局模式下,组件大小不能通过鼠标拖拉的方式调整

Open
#1,237 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

自由布局下,开源版本地部署后组件不能在画布中通过拖拉进行缩放,组件不会出现8个方向的大小调整手柄,

Image
排查问题后发现,是组件放置结束后调用showaction方法,但是因为此时props.resize属性为true,导致方法返回为false,最终导致调节大小的手柄不会出现

Image

Step to reproduce

自由布局下,开源版本地部署后组件不能在画布中通过拖拉进行缩放,组件不会出现8个方向的大小调整手柄,

Image
排查问题后发现,是组件放置结束后调用showaction方法,但是因为此时props.resize属性为true,导致方法返回为false,最终导致调节大小的手柄不会出现

Image

What is expected

No response

What is actually happening

No response

What is your project name

null

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

Trace the free-layout component-placement flow to the mentioned showaction method and the props.resize check. Verify that the eight resize handles appear after placement and that dragging them changes the component size.

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
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.