Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
10e0f64b
提交
10e0f64b
authored
9月 16, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:仪表板视图改变大小时增加阴影效果
上级
6907d533
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
4 行删除
+16
-4
index.vue
frontend/src/components/DeDrag/index.vue
+10
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+6
-3
没有找到文件。
frontend/src/components/DeDrag/index.vue
浏览文件 @
10e0f64b
...
...
@@ -21,6 +21,7 @@
@mouseleave="leave"
>
<edit-bar
v-if=
"active||linkageSettingStatus"
style=
"transform: translateZ(10px)"
:active-model=
"'edit'"
:element=
"element"
@
showViewDetails=
"showViewDetails"
/>
<div
v-if=
"resizing"
style=
"transform: translateZ(11px);position: absolute; z-index: 3"
:style=
"resizeShadowStyle"
/>
<div
v-for=
"(handlei, indexi) in actualHandles"
:key=
"indexi"
...
...
@@ -440,6 +441,14 @@ export default {
...(
this
.
dragging
&&
this
.
disableUserSelect
?
userSelectNone
:
userSelectAuto
)
}
},
resizeShadowStyle
()
{
return
{
width
:
this
.
computedWidth
,
height
:
this
.
computedHeight
,
opacity
:
0.2
,
background
:
'gray'
}
},
// 控制柄显示与否
actualHandles
()
{
if
(
!
this
.
resizable
)
return
[]
...
...
@@ -1490,7 +1499,7 @@ export default {
// resize
const
self
=
this
setTimeout
(
function
()
{
self
.
$emit
(
'resize
stop
'
)
self
.
$emit
(
'resize
View
'
)
},
200
)
},
mountedFunction
()
{
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
10e0f64b
...
...
@@ -12,7 +12,7 @@
@mousedown="handleMouseDown"
>
<!-- 网格线 -->
<!--
<Grid
v-if=
"canvasStyleData.auxiliaryMatrix&&!linkageSettingStatus"
:matrix-style=
"matrixStyle"
/>
-->
<!--
<Grid
v-if=
"canvasStyleData.auxiliaryMatrix&&!linkageSettingStatus"
:matrix-style=
"matrixStyle"
/>
-->
<!-- 仪表板联动清除按钮-->
<canvas-opt-bar
/>
...
...
@@ -41,7 +41,7 @@
:linkage-active="linkageSettingStatus
&&
item===curLinkageView"
@refLineParams="getRefLineParams"
@showViewDetails="showViewDetails(index)"
@resize
stop="resizestop
(index,item)"
@resize
View="resizeView
(index,item)"
>
<component
:is=
"item.component"
...
...
@@ -104,6 +104,9 @@
:active=
"item === curComponent"
/>
</de-drag>
<!--拖拽阴影部分-->
<!-- 右击菜单 -->
<ContextMenu
/>
<!-- 标线 (临时去掉标线 吸附等功能)-->
...
...
@@ -631,7 +634,7 @@ export default {
showViewDetails
(
index
)
{
this
.
$refs
.
wrapperChild
[
index
].
openChartDetailsDialog
()
},
resize
stop
(
index
,
item
)
{
resize
View
(
index
,
item
)
{
if
(
item
.
type
===
'view'
)
{
this
.
$refs
.
wrapperChild
[
index
].
chartResize
()
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论