38 Commits

Author SHA1 Message Date
roymondchen
574e03f685 feat(editor): 完善storageService功能
新增namespace,setItem/getItem时自动key自动加上namespace;setItem可以指定协议;getItem时根据协议自动解析

fix #224
2022-08-04 18:46:26 +08:00
王明华
da0cb7d614
feat(editor): 添加storageService服务 (#225)
* feat(editor): 添加storageService服务

* fix(editor): 添加type.ts 导出StorageService的定义
2022-08-04 12:45:55 +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
aa20c74131 fix(editor): 新增页面时会有一个error 2022-07-29 14:32:53 +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
dd1ec53064 fix(editor): 水平居中 2022-07-26 13:25:56 +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
de0c6952c7 feat: 支持将组件拖动到指定容器 2022-07-14 19:02:29 +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
5e3125706c feat: 添加组件支持添加组合 2022-06-13 16:52:14 +08:00
roymondchen
586711b9bd fix(editor): 置顶,置低逻辑弄反了 2022-06-06 15:28:47 +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
2731609526 fix: 升级element-plus2.2.0后,sidebar动态变化后,顺序不对 2022-05-13 20:45:31 +08:00
roymondchen
7d62c09c6b fix(editor): root为空时异常处理 2022-05-07 17:05:54 +08:00
roymondchen
a0c3e25edb fix(editor): 删除全部页面后显示异常 2022-05-07 15:18:29 +08:00
roymondchen
bcbd1f5d37 fix(editor): 删除组件后,组件树不更新 2022-05-07 15:18:29 +08:00
roymondchen
b1aae65182 feat(editor): 增加editorService.move的扩展 2022-05-05 20:33:10 +08:00
roymondchen
51031fe8ab feat(editor): 添加常用快捷键 2022-04-22 12:16:39 +08:00
roymondchen
8e004f9766 fix(editor): getLayout增加判断fixed 2022-04-22 12:16:39 +08:00
roymondchen
992ebbe3ce fix(editor): 修复新增组件时,组件列表配置的数据丢失问题 2022-04-13 17:17:14 +08:00
roymondchen
0e74970bfe feat(editor): 新增组件自动设置到视窗中间 2022-04-13 17:17:14 +08:00
roymondchen
bb5e192dcd fix(editor): 修复历史状态变化后,画布没有更新 2022-04-07 19:59:19 +08:00
roymondchen
8676e02f2f test(editor): 修改测试用例 2022-04-07 18:31:37 +08:00
roymondchen
b8d352a885 fix(editor): 新增service方法串行调用问题,解决连续快速拖动导致更新节点错乱问题 2022-04-07 18:31:37 +08:00
roymondchen
97fa34bbc6 fix(editor): 添加或者删除节点后,选中状态没有刷新 2022-04-02 20:14:45 +08:00
roymondchen
3dab16b2f6 fix(editor): 新增页面不用添加历史记录 2022-03-31 19:46:12 +08:00
roymondchen
6dbda7b565 style(editor): 将节点类型改成枚举 2022-03-31 19:46:12 +08:00
parisma
feb9ac9a81 feat: 编辑器支持鼠标悬停高亮组件 2022-03-31 15:16:32 +08:00
roymondchen
393889b27a fix(editor): 流式布局下,拖动后选中错误 2022-03-29 13:02:40 +08:00
roymondchen
42f1789c10 fix(editor): 切换布局失效 2022-03-18 22:37:00 +08:00
roymondchen
ca84c8f852 fix(editor): 不允许选中跟节点 2022-03-17 23:29:55 +08:00
roymondchen
dee685f0b3 fix(editor): 首次选中组件后拖动,更新节点无效 2022-03-15 16:06:10 +08:00
roymondchen
412c78153c fix(editor): 更新根节点出错 2022-03-08 20:23:32 +08:00
roymondchen
bc8b9f5225 refactor: make it public 2022-02-17 14:47:39 +08:00