alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.66k stars 2.55k forks source link

如何实现自由布局,官方有没有思路 #346

Closed toviLau closed 2 years ago

toviLau commented 2 years ago

RT 我们想实现自由与磁吸并存, 大佬们 有没有方法?

theecn commented 2 years ago

低代码又不是无代码-- 出码后自己二次加工

toviLau commented 2 years ago

image

这是我现在的想法

if(自由布局开关=== 真){ 设置这个组件的 position: absolute; } image 但是我捕获不到 onmousedown与 onmousemove 事件, 只能捕获到 onmouseup, 所以没办法计算 x, y xy 是当前坐标

@LeoYuan @大佬给点思路

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 10 days with no activity.

luohe commented 2 years ago

RT 我们想实现自由与磁吸并存, 大佬们 有没有方法?

https://mp.weixin.qq.com/s/PSTut5ahAB8nlJ9kBpBaxw

SuperChrisliu commented 1 year ago

低代码又不是无代码-- 出码后自己二次加工

反正要写代码,你用低代码干嘛?

loganjingdi commented 1 year ago

https://github.com/loganjingdi/lowcode-material-magneticContainer 一个小demo