Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
6659beae
提交
6659beae
authored
5月 20, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'main' of github.com:dataease/dataease into main
上级
a369122c
38ad6851
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
101 行增加
和
65 行删除
+101
-65
favicon.ico
frontend/public/favicon.ico
+0
-0
DataEase-color.png
frontend/src/assets/DataEase-color.png
+0
-0
PreviewEject.vue
.../src/components/canvas/components/Editor/PreviewEject.vue
+2
-1
index.vue
frontend/src/views/panel/ViewSelect/index.vue
+1
-1
index.vue
frontend/src/views/panel/edit/index.vue
+98
-63
没有找到文件。
frontend/public/favicon.ico
查看替换文件 @
a369122c
浏览文件 @
6659beae
5.0 KB
|
W:
|
H:
4.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
frontend/src/assets/DataEase-color.png
查看替换文件 @
a369122c
浏览文件 @
6659beae
3.9 KB
|
W:
|
H:
9.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
frontend/src/components/canvas/components/Editor/PreviewEject.vue
浏览文件 @
6659beae
...
...
@@ -57,7 +57,7 @@ export default {
customStyle
()
{
let
style
=
{}
if
(
this
.
canvasStyleData
.
openCommonStyle
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
&&
this
.
canvasStyleData
.
panel
.
imageUrl
)
{
if
(
this
.
canvasStyleData
.
panel
.
backgroundType
===
'image'
&&
this
.
canvasStyleData
.
panel
.
imageUrl
)
{
style
=
{
width
:
'100%'
,
height
:
'100%'
,
...
...
@@ -80,6 +80,7 @@ export default {
mounted
()
{
const
_this
=
this
debugger
// 加载数据
_this
.
restore
()
const
erd
=
elementResizeDetectorMaker
()
...
...
frontend/src/views/panel/ViewSelect/index.vue
浏览文件 @
6659beae
...
...
@@ -128,7 +128,7 @@ export default {
overflow-y
:
auto
}
.detail-class
{
width
:
100%
;
width
:
300px
;
position
:
fixed
;
bottom
:
0px
;
}
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
6659beae
...
...
@@ -11,66 +11,81 @@
<Toolbar
@
showPanel=
"showPanel"
@
close-left-panel=
"closeLeftPanel"
/>
</el-col>
</el-header>
<el-main
style=
"padding: 0px"
>
<de-container>
<de-aside-container
class=
"ms-aside-container"
>
<div
style=
"width: 60px; left: 0px; top: 0px; bottom: 0px; position: absolute"
>
<div
style=
"width: 60px;height: 100%;overflow: hidden auto;position: relative;margin: 0px auto;"
>
<!-- 视图图表 -->
<div
class=
"button-div-class"
style=
" width: 24px;height: 24px;text-align: center;line-height: 1;position: relative;margin: 32px auto 0px;font-size:150%;"
>
<el-button
circle
class=
"el-icon-circle-plus-outline"
size=
"mini"
@
click=
"showPanel(0)"
/>
<de-container>
<de-aside-container
class=
"ms-aside-container"
>
<div
style=
"width: 60px; left: 0px; top: 0px; bottom: 0px; position: absolute"
>
<div
style=
"width: 60px;height: 100%;overflow: hidden auto;position: relative;margin: 0px auto;"
>
<!-- 视图图表 -->
<div
class=
"button-div-class"
style=
" width: 24px;height: 24px;text-align: center;line-height: 1;position: relative;margin: 32px auto 0px;font-size:150%;"
>
<el-button
circle
class=
"el-icon-circle-plus-outline"
size=
"mini"
@
click=
"showPanel(0)"
/>
</div>
<!-- 视图文字 -->
<div
style=
"position: relative; margin: 18px auto 30px"
>
<div
style=
"max-width: 100%;text-align: center;white-space: nowrap;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
>
{{
$t
(
'panel.view'
)
}}
</div>
<!-- 视图文字 -->
<div
style=
"position: relative; margin: 18px auto 30px"
>
<div
style=
"max-width: 100%;text-align: center;white-space: nowrap;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
>
{{
$t
(
'panel.view'
)
}}
</div>
<!-- 视图分割线 -->
<div
style=
"height: 1px; position: relative; margin: 0px auto;background-color:#E6E6E6;"
>
<div
style=
"width: 60px;height: 1px;line-height: 1px;text-align: center;white-space: pre;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
/>
</div>
<!-- 过滤组件 -->
<div
tabindex=
"-1"
style=
"position: relative; margin: 20px auto"
>
<div
style=
"height: 60px; position: relative"
>
<div
class=
"button-div-class"
style=
" text-align: center;line-height: 1;position: absolute;inset: 0px 0px 45px; "
>
<el-button
circle
class=
"el-icon-s-tools"
size=
"mini"
@
click=
"showPanel(1)"
/>
</div>
</div>
<!-- 视图分割线 -->
<div
style=
"height: 1px; position: relative; margin: 0px auto;background-color:#E6E6E6;"
>
<div
style=
"width: 60px;height: 1px;line-height: 1px;text-align: center;white-space: pre;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
/>
</div>
<!-- 过滤组件 -->
<div
tabindex=
"-1"
style=
"position: relative; margin: 20px auto"
>
<div
style=
"height: 60px; position: relative"
>
<div
class=
"button-div-class"
style=
" text-align: center;line-height: 1;position: absolute;inset: 0px 0px 45px; "
>
<el-button
circle
class=
"el-icon-s-tools"
size=
"mini"
@
click=
"showPanel(1)"
/>
</div>
<div
style=
" position: absolute;left: 0px;right: 0px;bottom: 10px; height: 16px;"
>
<div
style=
" max-width: 100%;text-align: center;white-space: nowrap;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
>
{{
$t
(
'panel.module'
)
}}
</div>
<div
style=
" position: absolute;left: 0px;right: 0px;bottom: 10px; height: 16px;"
>
<div
style=
" max-width: 100%;text-align: center;white-space: nowrap;text-overflow: ellipsis;position: relative;flex-shrink: 0;"
>
{{
$t
(
'panel.module'
)
}}
</div>
</div>
</div>
</div>
</div>
<div
ref=
"leftPanel"
:class=
"
{show:show}" class="leftPanel-container">
<div
/>
<div
v-if=
"show"
class=
"leftPanel"
>
<div
style=
"height:100%;overflow-y: auto"
>
<view-select
v-show=
" show && showIndex===0"
/>
<filter-group
v-show=
" show &&showIndex===1"
/>
<subject-setting
v-show=
" show &&showIndex===2"
/>
</div>
</div>
</div>
</de-aside-container>
<!--画布区域-->
<de-main-container>
<div
class=
"content"
@
drop=
"handleDrop"
@
dragover=
"handleDragOver"
@
mousedown=
"handleMouseDown"
@
mouseup=
"deselectCurComponent"
>
<Editor
/>
</div>
</de-main-container>
</de-container>
</el-main>
</div>
<!--
<div
ref=
"leftPanel"
:class=
"
{show:show}" class="leftPanel-container">-->
<!--
<div
/>
-->
<!--
<div
v-if=
"show"
class=
"leftPanel"
>
-->
<!--
<div
style=
"height:100%;overflow-y: auto"
>
-->
<!--
<view-select
v-show=
" show && showIndex===0"
/>
-->
<!--
<filter-group
v-show=
" show &&showIndex===1"
/>
-->
<!--
<subject-setting
v-show=
" show &&showIndex===2"
/>
-->
<!--
</div>
-->
<!--
</div>
-->
<!--
</div>
-->
</de-aside-container>
<!--画布区域-->
<el-main>
<el-drawer
title=
"我是标题"
:visible
.
sync=
"show"
:with-header=
"false"
style=
"position: absolute;"
direction=
"ltr"
:modal=
"false"
:size=
"drawerSize"
:wrapper-closable=
"false"
:close-on-press-escape=
"false"
:modal-append-to-body=
"true"
>
<view-select
v-show=
" show && showIndex===0"
/>
<filter-group
v-show=
" show &&showIndex===1"
/>
<subject-setting
v-show=
" show &&showIndex===2"
/>
</el-drawer>
<div
class=
"content this_canvas"
@
drop=
"handleDrop"
@
dragover=
"handleDragOver"
@
mousedown=
"handleMouseDown"
@
mouseup=
"deselectCurComponent"
>
<Editor
/>
</div>
</el-main>
</de-container>
<el-dialog
v-if=
"filterVisible && panelInfo.id"
...
...
@@ -138,6 +153,8 @@ export default {
},
data
()
{
return
{
drawerSize
:
'300px'
,
visible
:
false
,
show
:
false
,
editView
:
false
,
clickNotClose
:
false
,
...
...
@@ -186,7 +203,7 @@ export default {
listenGlobalKeyDown
()
},
mounted
()
{
this
.
insertToBody
()
//
this.insertToBody()
bus
.
$on
(
'component-on-drag'
,
()
=>
{
this
.
show
=
false
})
...
...
@@ -222,7 +239,10 @@ export default {
this
.
$router
.
replace
(
'/panel/index'
)
},
showPanel
(
type
)
{
this
.
show
=
!
this
.
show
debugger
if
(
this
.
showIndex
===
-
1
||
this
.
showIndex
===
type
)
{
this
.
show
=
!
this
.
show
}
this
.
showIndex
=
type
},
addEventClick
()
{
...
...
@@ -230,7 +250,7 @@ export default {
},
closeSidebar
(
evt
)
{
const
parent
=
evt
.
target
.
closest
(
'.button-div-class'
)
const
self
=
evt
.
target
.
closest
(
'.
leftPanel
'
)
const
self
=
evt
.
target
.
closest
(
'.
el-drawer__wrapper
'
)
// 点击样式按钮 排除
const
stick
=
evt
.
target
.
closest
(
'.el-icon-magic-stick'
)
if
(
!
parent
&&
!
self
&&
!
stick
)
{
...
...
@@ -239,13 +259,13 @@ export default {
this
.
showIndex
=
-
1
}
},
insertToBody
()
{
this
.
$nextTick
(()
=>
{
const
elx
=
this
.
$refs
.
leftPanel
const
body
=
document
.
querySelector
(
'body'
)
body
.
insertBefore
(
elx
,
body
.
firstChild
)
})
},
//
insertToBody() {
//
this.$nextTick(() => {
//
const elx = this.$refs.leftPanel
//
const body = document.querySelector('body')
//
body.insertBefore(elx, body.firstChild)
//
})
//
},
resetID
(
data
)
{
if
(
data
)
{
...
...
@@ -422,4 +442,19 @@ export default {
}
}
.this_canvas
{
height
:
calc
(
100vh
-
91px
);
overflow
:
auto
;
}
.el-main
{
height
:
calc
(
100vh
-
91px
);
padding
:
0
!
important
;
overflow
:
auto
;
position
:
relative
;
}
.el-main
>>>
.el-drawer__wrapper
{
width
:
310px
!
important
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论