Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
7a8198b7
提交
7a8198b7
authored
10月 13, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 优化编辑时全屏问题,scroll时 样式组件定位问题,去掉部分前段日志
上级
1dda00c5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
5 行删除
+7
-5
index.vue
frontend/src/components/canvas/index.vue
+1
-1
index.vue
frontend/src/views/panel/edit/index.vue
+6
-4
没有找到文件。
frontend/src/components/canvas/index.vue
浏览文件 @
7a8198b7
...
@@ -35,7 +35,7 @@ import Toolbar from '@/components/Toolbar'
...
@@ -35,7 +35,7 @@ import Toolbar from '@/components/Toolbar'
import
{
deepCopy
}
from
'@/utils/utils'
import
{
deepCopy
}
from
'@/utils/utils'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
generateID
from
'@/utils/generateID'
import
generateID
from
'@/utils/generateID'
import
{
listenGlobalKeyDown
}
from
'@/utils/shortcutKey'
//
import { listenGlobalKeyDown } from '@/utils/shortcutKey'
export
default
{
export
default
{
// eslint-disable-next-line vue/no-unused-components
// eslint-disable-next-line vue/no-unused-components
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
7a8198b7
...
@@ -104,8 +104,9 @@
...
@@ -104,8 +104,9 @@
@dragover="handleDragOver"
@dragover="handleDragOver"
@mousedown="handleMouseDown"
@mousedown="handleMouseDown"
@mouseup="deselectCurComponent"
@mouseup="deselectCurComponent"
@scroll="canvasScroll"
>
>
<Editor
ref=
"canvasEditor"
:out-style=
"outStyle"
@
canvasScroll=
"canvasScroll
"
/>
<Editor
ref=
"canvasEditor"
:out-style=
"outStyle
"
/>
</div>
</div>
</de-main-container>
</de-main-container>
<!--
<de-aside-container
v-if=
"aidedButtonActive"
:class=
"aidedButtonActive ? 'show' : 'hidden'"
class=
"style-aside"
>
-->
<!--
<de-aside-container
v-if=
"aidedButtonActive"
:class=
"aidedButtonActive ? 'show' : 'hidden'"
class=
"style-aside"
>
-->
...
@@ -188,7 +189,7 @@ import bus from '@/utils/bus'
...
@@ -188,7 +189,7 @@ import bus from '@/utils/bus'
import
Editor
from
'@/components/canvas/components/Editor/index'
import
Editor
from
'@/components/canvas/components/Editor/index'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
componentList
from
'@/components/canvas/custom-component/component-list'
// 左侧列表数据
import
componentList
from
'@/components/canvas/custom-component/component-list'
// 左侧列表数据
import
{
listenGlobalKeyDown
}
from
'@/components/canvas/utils/shortcutKey'
//
import { listenGlobalKeyDown } from '@/components/canvas/utils/shortcutKey'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
uuid
}
from
'vue-uuid'
import
{
uuid
}
from
'vue-uuid'
import
Toolbar
from
'@/components/canvas/components/Toolbar'
import
Toolbar
from
'@/components/canvas/components/Toolbar'
...
@@ -345,7 +346,7 @@ export default {
...
@@ -345,7 +346,7 @@ export default {
this
.
init
(
this
.
$store
.
state
.
panel
.
panelInfo
.
id
)
this
.
init
(
this
.
$store
.
state
.
panel
.
panelInfo
.
id
)
// this.restore()
// this.restore()
// 全局监听按键事件
// 全局监听按键事件
listenGlobalKeyDown
()
//
listenGlobalKeyDown()
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
null
,
index
:
null
})
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
null
,
index
:
null
})
this
.
$store
.
commit
(
'clearLinkageSettingInfo'
,
false
)
this
.
$store
.
commit
(
'clearLinkageSettingInfo'
,
false
)
...
@@ -654,7 +655,8 @@ export default {
...
@@ -654,7 +655,8 @@ export default {
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo'
).
offsetHeight
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo'
).
offsetHeight
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo'
).
offsetWidth
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo'
).
offsetWidth
this
.
outStyle
.
height
=
canvasHeight
this
.
outStyle
.
height
=
canvasHeight
this
.
outStyle
.
width
=
canvasWidth
// 临时处理 确保每次restore 有会更新
this
.
outStyle
.
width
=
canvasWidth
+
(
Math
.
random
()
*
0.000001
)
// console.log(canvasHeight + '--' + canvasWidth)
// console.log(canvasHeight + '--' + canvasWidth)
})
})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论