168 Commits

Author SHA1 Message Date
roymondchen
dd3075be56 feat(editor): 去掉画布根据视窗大小自动调整缩放比例,加上缩放到实际大小/缩放以适应菜单按钮 2022-08-25 16:24:48 +08:00
roymondchen
9b9c9db683 fix(editor): 上移一层通知runtime更新参数出错
fix #282
2022-08-24 10:36:42 +08:00
roymondchen
5529bbc6e1 fix(editor): 组件属性表单配置默认值 2022-08-24 10:04:28 +08:00
roymondchen
31029bc8f1 feat(editor): propsService添加fillConfig方法,支持扩展 2022-08-23 20:35:34 +08:00
roymondchen
3cdcca3b0b chore(editor): 删除无用代码 2022-08-23 20:35:34 +08:00
wangminghua
9b0db4a807 fix(editor): 修复 update 返回值三目运算符判断错误的问题,同时优化输入与输入类型一致。 2022-08-23 14:39:21 +08:00
wangminghua
547e733c65 fix(editor): 修复Add返回数组还是对象的逻辑 2022-08-23 12:59:13 +08:00
王明华
56b8ed1d73
refactor(editor): 支持doPaste插件 (#299)
* refactor(editor): 粘贴时添加粘贴选项,用于格式化粘贴对象数据。

* refactor(editor): 支持doPaste插件
2022-08-22 17:36:02 +08:00
i33
f3c9ba475f
fix(editor): 拖拽改变父容器时错乱现象 (#296)
* fix(editor): 拖拽改变父容器时错乱现象

直接拖拽元素改变其父容器时, 会产生错乱的现象。

* Update packages/stage/src/types.ts

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

Co-authored-by: jia000 <398009049@qq.com>
2022-08-22 13:18:23 +08:00
roymondchen
5f0e421550 fix(editor): 复制页面错误 2022-08-17 15:27:10 +08:00
roymondchen
2cde4bb5a0 feat(editor): runtime add api中parent参数加回去 2022-08-16 16:29:32 +08:00
roymondchen
59e6aff70a feat(editor,stage): runtime-api中的add/update/remove中的参数加上parentId 2022-08-16 15:20:39 +08:00
roymondchen
9d2e2210d1 fix(editor): react runtime中添加没有即使渲染 2022-08-16 14:39:42 +08:00
roymondchen
c949590f80 feat(editor,stage): 多选支持居中操作 2022-08-12 13:39:25 +08:00
roymondchen
0e82f652a9 fix(editor): 删除节点后,标记父节点为修改状态 2022-08-11 17:25:54 +08:00
roymondchen
882774311a fix(editor): 水平居中添加了两个历史堆栈 2022-08-11 17:25:54 +08:00
roymondchen
41cdc6e650 test(editor): 更新propsService引用路径 2022-08-11 14:39:59 +08:00
roymondchen
b6fa064b0b feat(editor): editorService.add支持添加多个组件 2022-08-11 14:26:03 +08:00
roymondchen
08dae20aa0 build(editor): 由于生成.d文件无法将别名转化成真实路径,暂时将@editor改回相对路径 2022-08-05 20:12:35 +08:00
roymondchen
5e36ca8e47 build: 构建时某些文件的.d文件丢失 2022-08-05 20:12:35 +08:00
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
王明华
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
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
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
roymondchen
a7afe057fb chore: import type 2022-07-01 20:07:28 +08:00
roymondchen
363330e07a fix(editor): 编辑器分栏左右各设置最小宽度 fix #145 2022-06-22 16:51:28 +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
6eb1f2418a fix(editor): 复制组件后添加组件id一直是之前复制的组件的id 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
04d7725db9 feat(editor): 属性表单大小配置;记住编辑器分栏宽度 2022-05-18 17:45:36 +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
5da8601f36 feat(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
9526c44d16 fix(editor): 由于有可选参数,所以将after hook的返回值放到第一个参数 2022-04-22 12:16:39 +08:00