275 Commits

Author SHA1 Message Date
parisma
af2fa3eee4 test(editor): 修改测试用例,修复流水线打包问题 2022-08-03 14:46:48 +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
王明华
a02fd2c695
fix(editor): id可能重复 (#221)
提升id位数,降低id重复几率
2022-08-03 14:01:12 +08:00
roymondchen
699e6fe953 chore: release v1.1.0-beta.5 2022-07-29 14:46:16 +08:00
roymondchen
aa20c74131 fix(editor): 新增页面时会有一个error 2022-07-29 14:32:53 +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
roymondchen
4ff07ea5a9 fix(editor): 重复import 2022-07-28 15:31:08 +08:00
i33
340eeb32d7
fix(editor): 已选组件树形拖放时, layout 根据父窗口动态变化 (#210)
* fix(editor): 已选组件树形拖放时, layout 根据父窗口动态变化

当拖拽到不同的父节点时, 自身节点的position不会根据父容器变化

* 修改代码格式

Co-authored-by: jia000 <398009049@qq.com>

Co-authored-by: jia000 <398009049@qq.com>
2022-07-28 13:47:54 +08:00
roymondchen
fff587d9eb fix(editor): 新增组件id不对 2022-07-27 16:47:12 +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
c1fc6b8f94 feat(editor): editorService.add 的addNode参数对象中加上inputEvent 2022-07-26 16:28:37 +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
9747e0f516 fix(editor): 画布大小与stageRect配置不相符 2022-07-26 16:28:37 +08:00
roymondchen
dd1ec53064 fix(editor): 水平居中 2022-07-26 13:25:56 +08:00
i33
940b08b2c5 fix(editor): 修正css sass变量
遇到浏览器报错
2022-07-26 13:17:11 +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
roymondchen
d334b697ae fix(editor): 指定父节点添加组件 2022-07-25 22:02:17 +08:00
Iain
923e8ea5ab feat(core): 添加设计稿宽度设置(px转rem相关),默认375,可设置为750 2022-07-22 16:10:50 +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
1750467d5b fix(core): 事件触发时组件未初始化,等组件初始化后再调用事件处理 2022-07-19 15:39:45 +08:00
roymondchen
d8d0096350 chore: release v1.1.0-beta.2 2022-07-15 18:53:56 +08:00
jia000
30b209b628
chore: release v1.0.6 (#183)
* fix(form): el-table类型引用有问题,改为any

* chore: release v1.0.6

Co-authored-by: roymondchen <roymondchen@tencent.com>
2022-07-15 18:19:50 +08:00
roymondchen
48294ea21b chore: release v1.1.0-beta.1 2022-07-14 21:31:51 +08:00
roymondchen
0e0e3ee310 refactor: 使用@element-plus/icons-vue替换@element-plus/icons 2022-07-14 20:39:11 +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
f3e2d9ca39 feat(ui): page 添加magic-ui-container class 2022-07-14 19:02:29 +08:00
roymondchen
f2893880b1 feat(ui-vue2): 升级至vue2.7.4 2022-07-11 15:23:58 +08:00
roymondchen
d5f6f69994 chore: release v1.0.5 2022-07-08 17:49:38 +08:00
roymondchen
e901ad4dd0 feat(editor): 添加props-panel-header slot;修改layer-panel,component-list-panel slot名称,加上-header 2022-07-08 17:37:04 +08:00
roymondchen
5c74e0f296 chore: release v1.0.4 2022-07-07 20:01:27 +08:00
roymondchen
49c9e87d6e feat(editor): 添加layer-panel/component-list-panel slot 2022-07-07 19:46:11 +08:00
roymondchen
8d5eab0ef8 fix(form): date组件初始值 不显示 2022-07-07 19:46:11 +08:00
roymondchen
db96610c91 chore(form): 去掉无用log 2022-07-05 20:25:12 +08:00
roymondchen
56a7707721 chore: release v1.0.3 2022-07-05 15:04:35 +08:00
roymondchen
3090bc7763 fix(form): 配置了names,validator中的value应为model 2022-07-05 14:49:23 +08:00
roymondchen
9454bb3679 fix(form): tabs配置name后出错 2022-07-05 14:49:23 +08:00
roymondchen
26c60c316a fix(form): fieldset checkbox chang事件不会触发 2022-07-05 14:49:23 +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
6d4323123f build: build之前做type check 2022-06-30 20:23:50 +08:00
roymondchen
e1705c350e feat(form): datetime移出默认defaultTime,支持defaultTime配置 2022-06-30 20:23:50 +08:00
roymondchen
1950c11629 chore: release v1.0.2 2022-06-29 15:35:29 +08:00