Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
915ccf32
提交
915ccf32
authored
3月 16, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:增加仪表盘设计组件及设计
上级
1e0ebd8c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
2 行删除
+32
-2
index.vue
frontend/src/components/vue-drag-resize-rotate/index.vue
+21
-2
main.js
frontend/src/main.js
+3
-0
common-temp.scss
frontend/src/styles/vdrr/common-temp.scss
+8
-0
PanelPreview.vue
frontend/src/views/panel/list/PanelPreview.vue
+0
-0
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+0
-0
没有找到文件。
frontend/src/components/vue-drag-resize-rotate/index.vue
浏览文件 @
915ccf32
...
...
@@ -26,6 +26,7 @@
>
<slot
:name=
"handle"
></slot>
</div>
<i
class=
"el-icon-circle-close"
@
click
.
stop=
"removeView()"
></i>
<slot></slot>
</div>
</
template
>
...
...
@@ -68,6 +69,10 @@ export default {
replace
:
true
,
name
:
'vue-drag-resize-rotate'
,
props
:
{
viewId
:
{
type
:
String
,
default
:
''
},
className
:
{
type
:
String
,
default
:
'vdr'
...
...
@@ -141,7 +146,7 @@ export default {
type
:
Boolean
,
default
:
false
},
// 新增 外部传入纵横比 w/h
// 新增 外部传入纵横比 w/h
outsideAspectRatio
:
{
type
:
[
Number
,
String
],
default
:
0
...
...
@@ -394,6 +399,11 @@ export default {
},
methods
:
{
removeView
(){
debugger
console
.
log
(
this
.
viewId
);
this
.
$emit
(
'removeView'
,
this
.
viewId
)
},
// 重置边界和鼠标状态
resetBoundsAndMouseState
()
{
this
.
mouseClickPosition
=
{
mouseX
:
0
,
mouseY
:
0
,
x
:
0
,
y
:
0
,
w
:
0
,
h
:
0
}
...
...
@@ -1310,13 +1320,15 @@ export default {
}
},
style
()
{
return
{
let
newStyle
=
{
transform
:
`translate(
${
this
.
left
}
px,
${
this
.
top
}
px) rotate(
${
this
.
rotate
}
deg)`
,
width
:
this
.
computedWidth
,
height
:
this
.
computedHeight
,
zIndex
:
this
.
zIndex
,
...(
this
.
dragging
&&
this
.
disableUserSelect
?
userSelectNone
:
userSelectAuto
)
};
this
.
$emit
(
'newStyle'
,
this
.
viewId
,
newStyle
);
return
newStyle
;
},
// 控制柄显示与否
actualHandles
()
{
...
...
@@ -1503,4 +1515,11 @@ export default {
height
:
7px
;
background-color
:
#666
;
}
.close
{
float
:
right
;
padding-top
:
8px
;
padding-bottom
:
8px
;
}
</
style
>
frontend/src/main.js
浏览文件 @
915ccf32
...
...
@@ -19,6 +19,9 @@ import message from '@/metersphere/common/js/message'
import
{
left2RightDrag
,
bottom2TopDrag
,
right2LeftDrag
}
from
'@/metersphere/common/js/directive'
import
directives
from
'./directive'
import
'./styles/vdrr/common-temp.scss'
import
vdrr
from
'./components/vue-drag-resize-rotate'
Vue
.
component
(
'vdrr'
,
vdrr
)
...
...
frontend/src/styles/vdrr/common-temp.scss
0 → 100644
浏览文件 @
915ccf32
.vdr
{
border
:
1px
dashed
;
}
.vdrr
{
border
:
1px
dashed
;
}
frontend/src/views/panel/list/PanelPreview.vue
0 → 100644
浏览文件 @
915ccf32
差异被折叠。
点击展开。
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
915ccf32
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论