135 Commits

Author SHA1 Message Date
roymondchen
edf66cc076 fix(stage): 多选时禁止拖出边界 2022-08-12 14:19:25 +08:00
roymondchen
c949590f80 feat(editor,stage): 多选支持居中操作 2022-08-12 13:39:25 +08:00
王明华
8f5acff0a6
fix(stage): 修复多选组件处于拖拽状态时画布组件命中高亮的问题,优化多选拖拽体验 (#265)
* fix(stage): 修复多选组件处于拖拽状态时画布组件命中高亮的问题,优化多选拖拽体验

* fix(stage): 修复多选组件处于拖拽状态时画布组件命中高亮的问题,优化多选拖拽体验

* fix(stage): type.ts 中定义全局拖拽状态枚举 StageDragStatus,并修改相关的枚举使用项

Co-authored-by: jia000 <398009049@qq.com>
2022-08-12 13:15:26 +08:00
王明华
cf9768ba96
fix(stage): 修复非多选状态下,点击选中组件切换为普通选中状态 (#254)
* fix(stage): 修复非多选状态下,点击选中组件切换为普通选中状态

* fix(stage): 修复非多选状态下,点击选中组件切换为普通选中状态

* fix(stage): 修复非多选状态下,点击选中组件切换为普通选中状态
2022-08-12 12:55:34 +08:00
roymondchen
ea83830f17 chore: release v1.1.0-beta.8 2022-08-11 14:44:46 +08:00
roymondchen
b6fa064b0b feat(editor): editorService.add支持添加多个组件 2022-08-11 14:26:03 +08:00
roymondchen
100cb940cb chore: release v1.1.0-beta.7 2022-08-08 21:14:11 +08:00
parisma
46e0e23785 fix(editor): 修复先单击选中页面,再进行多选无法选中的问题 2022-08-08 19:37:20 +08:00
roymondchen
3d1a803ec9 feat(stage): 多选快捷键改成ctrl/cmd 2022-08-08 13:28:09 +08:00
roymondchen
3bcc0c408a chore: release v1.1.0-beta.6 2022-08-05 20:21:45 +08:00
roymondchen
5e36ca8e47 build: 构建时某些文件的.d文件丢失 2022-08-05 20:12:35 +08:00
roymondchen
a4e91fa66d fix(stage): 单选后,粘贴多个组件,原来的单选状态没有取消 2022-08-04 18:49:15 +08:00
roymondchen
14e9b6ec59 chore: 将vite/client配置到tsconfig中 2022-08-04 15:39:19 +08:00
roymondchen
55661ee2e7 chore: 更新vite到3.0 2022-08-04 15:39:19 +08:00
roymondchen
e5f0506a00 feat(stage,runtime): 去掉runtime getSnapElements 定义 2022-08-04 15:39:19 +08:00
roymondchen
3c0f19347d chore: 更新ts版本 2022-08-04 15:39:19 +08:00
parisma
8c64ea798a feat(editor): 多选粘贴后同步选中粘贴的多个元素,并支持拖拽,粘贴删除支持多个元素同时撤销到上一步 2022-08-04 12:38:36 +08:00
khuntoriia
b702857aad
feat(editor): 多选菜单支持复制粘贴删除 (#217)
* feat(editor): 多选菜单支持复制粘贴删除

* fix(editor): 编辑器选中节点统一为nodes数组,保留原node对象为nodes数组的第一个元素,将复制粘贴删除行为封装到editorservice中,支持键盘快捷键

* test(editor): 修改editor相关测试用例

* fix(editor): cr问题修改

* feat(editor): 将复制粘贴操作进行拆分封装

* fix(editor): cr修改

Co-authored-by: parisma <parisma@tencent.com>
2022-08-03 14:03:36 +08:00
roymondchen
699e6fe953 chore: release v1.1.0-beta.5 2022-07-29 14:46:16 +08:00
roymondchen
9858327eb8 fix(stage,runtime,ui-react): tmagicRuntimeReady时机修改
fix #198
2022-07-29 12:50:07 +08:00
i33
0a1cf060a5 fix(stage): 在 stage 拖拽改变父容器的BUG
从大容器 到内部小容器 拖拽, 不会改变父容器的问题, 例如:
场景组件 :  
 1. page: Page
 2. page 的子组件:  按钮Button 
 3. page 的子组件:  组Group

操作:
1. 拖住Button 不动, 激活当前父容器Page, 这时Page变暗, 被选择为目标父容器。
2. 继续不松手,再拖至P的子组件Group上方去选择Group,Page还是拥有被选择的样式,Group并未被选为目标父容器。
3. 松开鼠标按键完成拖放, Button 还是在Page内。
2022-07-29 12:46:10 +08:00
parisma
a2fb92d988 feat(stage): 1) 高亮边框样式加粗
2) 统一组件是否可选中逻辑,固定定位和绝对定位不可混合多选
3) 多选moveable options接受业务传入的moveableOptions
2022-07-27 13:13:44 +08:00
parisma
a4884c504f fix: 修复多选组件时新增组件的体验问题 2022-07-27 13:13:44 +08:00
roymondchen
11d790d245 chore: release v1.1.0-beta.4 2022-07-26 16:34:42 +08:00
roymondchen
0450de481f refactor(stage): 将dragresize中的up down函数移到util中 2022-07-26 16:28:37 +08:00
roymondchen
bf95925878 fix(editor): 拖动组件到最右边会多出1px 2022-07-26 16:28:37 +08:00
roymondchen
818b5ea02a chore: release v1.1.0-beta.3 2022-07-25 22:06:01 +08:00
roymondchen
89f863d873 fix: 当前选中组件处于流式布局模式下时,直接拖动其他组件会错误判断成是流式组件 2022-07-25 22:02:17 +08:00
khuntoriia
3ccabfbe44
多选优化及问题修复 (#196)
* feat(stage): 支持绝对定位,固定定位,组内元素按住shift键进行多选拖拽能力

* feat(stage): 使用moveable.helper接管moveable target的更新,针对弹窗场景引入业务方方法进行校准

* feat(stage): 将多选逻辑封装到StageMultiDragResize

* fix(stage): 修复多选target元素无法映射到drag虚拟元素的问题

* feat(stage): 多选拖拽完成后将更新的位置信息暴露给上层业务方

* fix(stage): 删除多余的成员变量

Co-authored-by: parisma <parisma@tencent.com>
2022-07-22 11:31:11 +08:00
khuntoriia
fe520bf600
支持通过按住shift键进行组件多选的能力 (#193)
* feat(stage): 支持绝对定位,固定定位,组内元素按住shift键进行多选拖拽能力

* refactor: 更新pnpm-lock.yaml

* feat(stage): 使用moveable.helper接管moveable target的更新,针对弹窗场景引入业务方方法进行校准

* feat(stage): 将多选逻辑封装到StageMultiDragResize

* fix(stage): cr意见修改

Co-authored-by: parisma <parisma@tencent.com>
2022-07-21 15:15:41 +08:00
roymondchen
d8d0096350 chore: release v1.1.0-beta.2 2022-07-15 18:53:56 +08:00
roymondchen
48294ea21b chore: release v1.1.0-beta.1 2022-07-14 21:31:51 +08:00
roymondchen
cec111beed chore: release v1.1.0-beta.0 2022-07-14 20:39:11 +08:00
roymondchen
de0c6952c7 feat: 支持将组件拖动到指定容器 2022-07-14 19:02:29 +08:00
roymondchen
d5f6f69994 chore: release v1.0.5 2022-07-08 17:49:38 +08:00
roymondchen
5c74e0f296 chore: release v1.0.4 2022-07-07 20:01:27 +08:00
roymondchen
56a7707721 chore: release v1.0.3 2022-07-05 15:04:35 +08:00
roymondchen
68302c01f1 chore: install 后需要build,不然run playground会报错 2022-07-01 20:07:28 +08:00
roymondchen
a7afe057fb chore: import type 2022-07-01 20:07:28 +08:00
roymondchen
4216880d11 build: runtime支持热更新 2022-07-01 17:42:59 +08:00
roymondchen
1950c11629 chore: release v1.0.2 2022-06-29 15:35:29 +08:00
roymondchen
fd1fea2519 chore: release v1.0.1 2022-06-27 15:00:07 +08:00
roymondchen
618f853d63 chore: release v1.0.0 2022-06-24 20:54:30 +08:00
roymondchen
906002f809 chore: release v1.0.0-rc.13 2022-06-22 17:49:31 +08:00
roymondchen
069aec64c1 fix(stage): 无法拖到left为0 2022-06-22 16:51:28 +08:00
roymondchen
fb612eaddc feat(editor): 参考线缓存与页面绑定 2022-06-22 16:51:28 +08:00
roymondchen
7467aba75e chore(stage): 修改判断position的方法 2022-06-22 16:51:28 +08:00
roymondchen
6e7837dc39 chore: release v1.0.0-rc.12 2022-06-21 20:42:36 +08:00
roymondchen
def0e3ef8d feat(stage): 提供tmagicRuntimeReady message事件通知 2022-06-21 20:19:25 +08:00
i33
f72b8c7614
fix: 修正getScrollParent逻辑 (#141)
* Create const.ts

错别字

* docs:修改注释中错别字

* fix: 修正getScrollParent逻辑
2022-06-21 12:51:35 +08:00