109 Commits

Author SHA1 Message Date
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
aa20c74131 fix(editor): 新增页面时会有一个error 2022-07-29 14:32:53 +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
roymondchen
c1fc6b8f94 feat(editor): editorService.add 的addNode参数对象中加上inputEvent 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
89f863d873 fix: 当前选中组件处于流式布局模式下时,直接拖动其他组件会错误判断成是流式组件 2022-07-25 22:02:17 +08:00
roymondchen
d334b697ae fix(editor): 指定父节点添加组件 2022-07-25 22:02:17 +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
0e0e3ee310 refactor: 使用@element-plus/icons-vue替换@element-plus/icons 2022-07-14 20:39:11 +08:00
roymondchen
de0c6952c7 feat: 支持将组件拖动到指定容器 2022-07-14 19:02:29 +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
49c9e87d6e feat(editor): 添加layer-panel/component-list-panel slot 2022-07-07 19:46:11 +08:00
roymondchen
a7afe057fb chore: import type 2022-07-01 20:07:28 +08:00
i33
ecd80cb4a4 fix(editor): 修正Editor slot 变量位置 2022-06-27 12:04:18 +08:00
roymondchen
fb612eaddc feat(editor): 参考线缓存与页面绑定 2022-06-22 16:51:28 +08:00
roymondchen
363330e07a fix(editor): 编辑器分栏左右各设置最小宽度 fix #145 2022-06-22 16:51:28 +08:00
roymondchen
23776299a7 fix(editor): moveableOptions默认值中的container有误 2022-06-21 20:19:25 +08:00
jia000
0fe6e0ed75
release v1.0.0-rc.11 (#138)
* fix(editor): 页面标题不要换行

* docs: 教程与stageCore

* fix(editor): runtime.updateRootConfig可以为空

* fix(editor): 编辑组件是获取parent需要获取到Proxy

* fix(editor): 默认page属性值加上layout

* fix(stage): magic注入时机应当在iframe onload之后

* chore: release v1.0.0-rc.11

* chore: 更新changlog

Co-authored-by: roymondchen <roymondchen@tencent.com>
2022-06-17 17:13:22 +08:00
roymondchen
154860c66c feat: 支持配置updateDragEl方法来调制选中框 2022-06-15 14:22:14 +08:00
roymondchen
10577aea68 fix(editor): page和container默认value加上items 2022-06-15 12:49:43 +08:00
roymondchen
2856ee3b6c style(editor): 重置workspace区域focus样式 2022-06-15 12:49:43 +08:00
roymondchen
5e3125706c feat: 添加组件支持添加组合 2022-06-13 16:52:14 +08:00
roymondchen
a9936b5276 feat(stage): 支持rotate scale fix #92 2022-06-09 19:22:05 +08:00
roymondchen
70292b92c8 feat(editor): contentmenu支持扩展 2022-06-06 15:28:47 +08:00
roymondchen
586711b9bd fix(editor): 置顶,置低逻辑弄反了 2022-06-06 15:28:47 +08:00
roymondchen
c99663a3e8 fix(editor): 右键菜单隐藏逻辑有问题 2022-06-06 15:28:47 +08:00
roymondchen
6eb1f2418a fix(editor): 复制组件后添加组件id一直是之前复制的组件的id 2022-06-06 15:28:47 +08:00
roymondchen
a320823992 fix(editor): 组件树右键菜单添加组件无效 2022-05-31 21:47:54 +08:00
roymondchen
663d7cee9f fix(editor): 添加组件默认添加到视窗中间,如果组件初始化height不是数值,则当0处理 2022-05-31 21:47:54 +08:00
roymondchen
805339422a fix(editor): 组件树右键菜单 2022-05-31 20:06:32 +08:00
roymondchen
31cbe7818f fix(editor): 右键菜单,mac触摸板上容易在菜单出现的时候触发当前鼠标位置的按钮 2022-05-31 12:09:59 +08:00
roymondchen
26081ea5cc fix(editor): 右键菜单粘贴的组件位置不对 2022-05-31 12:09:59 +08:00
roymondchen
c80dab835d fix(editor): 复制页面,页面名称重新生成 2022-05-31 12:09:59 +08:00
roymondchen
4a19017662 fix(editor): 组件配置width为100%时,水平居中失效 2022-05-27 18:48:55 +08:00
roymondchen
9addbddd63 fix(editor): 修复浏览器快捷键 2022-05-27 18:48:55 +08:00
roymondchen
d02e044293 refactor(editor): tabpane prop type 2022-05-27 18:48:55 +08:00
roymondchen
dbcd4201ea fix(stage): 只有当组件不在视窗内才自动滚动,新增scrollIntoView配置 2022-05-25 14:22:28 +08:00
roymondchen
2134d92d54 fix(editor): 源代码编辑器保存快捷键阻止冒泡 2022-05-24 20:49:58 +08:00
roymondchen
359fc5fdc6 feat(editor): 源代码编辑器支持扩展配置 2022-05-24 20:49:58 +08:00
roymondchen
64e751bdd8 refactor(editor): 拖动添加组件,避免覆盖默认样式 2022-05-24 20:49:58 +08:00
roymondchen
fbd7f80c4f feat(editor): feat(editor): 鼠标移出workpace,禁用快捷键 2022-05-24 20:49:58 +08:00
roymondchen
cf5e775b84 feat(editor): 添加globalThis兼容 2022-05-24 20:49:58 +08:00
roymondchen
662a3d61ea fix(form): popper弹层字体大小仅在form size为small的时候设置为12px 2022-05-19 14:54:24 +08:00
roymondchen
04d7725db9 feat(editor): 属性表单大小配置;记住编辑器分栏宽度 2022-05-18 17:45:36 +08:00
roymondchen
17e8bbb7b4 refactor(editor): 调整zoomIn zommOut顺序 2022-05-13 20:45:31 +08:00