Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
486fd0f6
提交
486fd0f6
authored
9月 17, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:仪表板视图拖拽阴影跟随
上级
e35bb5c6
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
24 行增加
和
12 行删除
+24
-12
index.vue
frontend/src/components/DeDrag/index.vue
+16
-6
shadow.vue
frontend/src/components/DeDrag/shadow.vue
+1
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+2
-2
index.js
frontend/src/store/index.js
+5
-3
没有找到文件。
frontend/src/components/DeDrag/index.vue
浏览文件 @
486fd0f6
...
@@ -510,11 +510,13 @@ export default {
...
@@ -510,11 +510,13 @@ export default {
width
:
this
.
computedMainSlotWidth
,
width
:
this
.
computedMainSlotWidth
,
height
:
this
.
computedMainSlotHeight
height
:
this
.
computedMainSlotHeight
}
}
console
.
log
(
'style=>'
+
JSON
.
stringify
(
style
))
//
console.log('style=>' + JSON.stringify(style))
return
style
return
style
},
},
curComponent
()
{
return
this
.
$store
.
state
.
curComponent
},
...
mapState
([
...
mapState
([
'curComponent'
,
'editor'
,
'editor'
,
'curCanvasScale'
,
'curCanvasScale'
,
'canvasStyleData'
,
'canvasStyleData'
,
...
@@ -614,6 +616,18 @@ export default {
...
@@ -614,6 +616,18 @@ export default {
this
.
beforeDestroyFunction
()
this
.
beforeDestroyFunction
()
this
.
createdFunction
()
this
.
createdFunction
()
this
.
mountedFunction
()
this
.
mountedFunction
()
},
// private 监控dragging resizing
dragging
(
val
)
{
if
(
this
.
enabled
)
{
this
.
curComponent
.
optStatus
.
dragging
=
val
}
},
// private 监控dragging resizing
resizing
(
val
)
{
if
(
this
.
enabled
)
{
this
.
curComponent
.
optStatus
.
resizing
=
val
}
}
}
},
},
created
:
function
()
{
created
:
function
()
{
...
@@ -1572,10 +1586,6 @@ export default {
...
@@ -1572,10 +1586,6 @@ export default {
addEvent
(
document
.
documentElement
,
'touchend touchcancel'
,
this
.
deselect
)
addEvent
(
document
.
documentElement
,
'touchend touchcancel'
,
this
.
deselect
)
// 窗口变化时,检查容器大小
// 窗口变化时,检查容器大小
addEvent
(
window
,
'resize'
,
this
.
checkParentSize
)
addEvent
(
window
,
'resize'
,
this
.
checkParentSize
)
// private 记录当前组件的操作状态
this
.
curComponent
.
optStatus
.
resizing
=
this
.
resizing
this
.
curComponent
.
optStatus
.
dragging
=
this
.
dragging
},
},
createdFunction
()
{
createdFunction
()
{
// minWidth不能大于maxWidth
// minWidth不能大于maxWidth
...
...
frontend/src/components/DeDrag/shadow.vue
浏览文件 @
486fd0f6
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
background
:
'gray'
,
background
:
'gray'
,
position
:
'absolute'
position
:
'absolute'
}
}
console
.
log
(
'style=>'
+
JSON
.
stringify
(
style
))
//
console.log('style=>' + JSON.stringify(style))
return
style
return
style
},
},
...
mapState
([
...
mapState
([
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
486fd0f6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
@mousedown="handleMouseDown"
@mousedown="handleMouseDown"
>
>
<!-- 网格线 -->
<!-- 网格线 -->
<Grid
v-if=
"canvasStyleData.auxiliaryMatrix&&!linkageSettingStatus"
:matrix-style=
"matrixStyle"
/
>
<!--
<Grid
v-if=
"canvasStyleData.auxiliaryMatrix&&!linkageSettingStatus"
:matrix-style=
"matrixStyle"
/>
--
>
<!-- 仪表板联动清除按钮-->
<!-- 仪表板联动清除按钮-->
<canvas-opt-bar
/>
<canvas-opt-bar
/>
...
@@ -636,7 +636,7 @@ export default {
...
@@ -636,7 +636,7 @@ export default {
},
},
resizeView
(
index
,
item
)
{
resizeView
(
index
,
item
)
{
if
(
item
.
type
===
'view'
)
{
if
(
item
.
type
===
'view'
)
{
console
.
log
(
'view:resizeView'
)
//
console.log('view:resizeView')
this
.
$refs
.
wrapperChild
[
index
].
chartResize
()
this
.
$refs
.
wrapperChild
[
index
].
chartResize
()
}
}
}
}
...
...
frontend/src/store/index.js
浏览文件 @
486fd0f6
...
@@ -87,9 +87,11 @@ const data = {
...
@@ -87,9 +87,11 @@ const data = {
setCurComponent
(
state
,
{
component
,
index
})
{
setCurComponent
(
state
,
{
component
,
index
})
{
// 当前视图操作状态置空
// 当前视图操作状态置空
component
[
'optStatus'
]
=
{
if
(
component
)
{
dragging
:
false
,
component
[
'optStatus'
]
=
{
resizing
:
false
dragging
:
false
,
resizing
:
false
}
}
}
state
.
styleChangeTimes
=
0
state
.
styleChangeTimes
=
0
state
.
curComponent
=
component
state
.
curComponent
=
component
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论