lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

组件拖拽时候光标位置

Open oneQiu opened this issue 3 years ago • 1 comments

想知道这个光标位置是怎么去决定在上下还是在左右的,能否控制?

我现在有个容器组件是Flex,然后内部的组件光标都是在左右,能否改成上下? image

oneQiu avatar Jul 15 '22 03:07 oneQiu

可以去看下这段代码:

https://github.com/alibaba/lowcode-engine/blob/4f4ac5115d18357a7399632860808f6cffc33fad/packages/designer/src/designer/location.ts#L69-L85

理论上 flex-direction: column 就会是「横着的线」~

LeoYuan avatar Jul 25 '22 08:07 LeoYuan