57 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
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
c1fc6b8f94 feat(editor): editorService.add 的addNode参数对象中加上inputEvent 2022-07-26 16:28:37 +08:00
roymondchen
89f863d873 fix: 当前选中组件处于流式布局模式下时,直接拖动其他组件会错误判断成是流式组件 2022-07-25 22:02:17 +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
roymondchen
fb612eaddc feat(editor): 参考线缓存与页面绑定 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
154860c66c feat: 支持配置updateDragEl方法来调制选中框 2022-06-15 14:22:14 +08:00
roymondchen
70292b92c8 feat(editor): contentmenu支持扩展 2022-06-06 15:28:47 +08:00
roymondchen
26081ea5cc fix(editor): 右键菜单粘贴的组件位置不对 2022-05-31 12:09:59 +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
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
2731609526 fix: 升级element-plus2.2.0后,sidebar动态变化后,顺序不对 2022-05-13 20:45:31 +08:00
roymondchen
1486beb52c fix: 升级element-plus2.2.0后,button默认样式变化 2022-05-13 20:45:31 +08:00
roymondchen
7dc54797d2 fix(editor): 代码编辑器大小变化没有自适应大小 2022-05-13 20:45:31 +08:00
roymondchen
a0c3e25edb fix(editor): 删除全部页面后显示异常 2022-05-07 15:18:29 +08:00
roymondchen
d1610e5ff2 style(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
76b8d2314a fix(editor): mac下meta + v,meta + x快捷键无效 2022-05-07 15:18:29 +08:00
roymondchen
56375b0fb0 refactor(editor): 重构右键菜单 2022-05-05 20:33:10 +08:00
roymondchen
51031fe8ab feat(editor): 添加常用快捷键 2022-04-22 12:16:39 +08:00
roymondchen
9efe4f04fc fix(editor): 删除的快捷键操作,不要对页面生效 2022-04-22 12:16:39 +08:00
roymondchen
db62427ee9 feat(editor): 新增删除、复制、粘贴、剪切快捷键操作 2022-04-13 17:17:14 +08:00
roymondchen
992ebbe3ce fix(editor): 修复新增组件时,组件列表配置的数据丢失问题 2022-04-13 17:17:14 +08:00
roymondchen
31373500c2 fix(editor): 切换组件时会连续触发两次表单初始化 2022-04-13 17:17:14 +08:00
roymondchen
f896115881 feat(editor): 组件树保持展开当前选中节点的父节点 2022-04-07 18:31:37 +08:00
roymondchen
8676e02f2f test(editor): 修改测试用例 2022-04-07 18:31:37 +08:00
roymondchen
8390ba75be fix(editor): 从组件树选中没有渲染的组件时,需要等待组件渲染完成再初始化选中框 2022-04-07 18:31:37 +08:00
roymondchen
9746bab435 refactor(editor): stage组件直接响应stageCore的事件 2022-04-07 18:31:37 +08:00
roymondchen
97a722579d feat(editor): 组件树增加id和type过滤 2022-04-02 20:14:45 +08:00
roymondchen
29a9912820 fix(stage): canSelect增加event参数 2022-04-02 20:14:45 +08:00
roymondchen
9b849cc906 fix(editor): 修改pagebar过长无法滚动问题 2022-04-02 20:14:45 +08:00
roymondchen
a842c5b0ce feat: 优化拖拽体验 2022-04-02 12:56:54 +08:00
roymondchen
be4df0fc9b fix(editor): 组件树右键菜单子菜单出不来 2022-04-01 16:56:59 +08:00
roymondchen
5350c9050c fix(editor): 修复pagebar文字超长换行问题 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