Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
6f9deb15
提交
6f9deb15
authored
2月 23, 2022
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 新建或拖入的组件加上背景设置基本元素
上级
0a9edccc
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
2 行删除
+10
-2
index.vue
frontend/src/components/DeDrag/index.vue
+1
-1
index.vue
frontend/src/views/panel/edit/index.vue
+9
-1
没有找到文件。
frontend/src/components/DeDrag/index.vue
浏览文件 @
6f9deb15
...
@@ -531,7 +531,7 @@ export default {
...
@@ -531,7 +531,7 @@ export default {
width
:
this
.
computedMainSlotWidth
,
width
:
this
.
computedMainSlotWidth
,
height
:
this
.
computedMainSlotHeight
height
:
this
.
computedMainSlotHeight
}
}
if
(
this
.
element
.
commonBackground
.
enable
)
{
if
(
this
.
element
.
commonBackground
&&
this
.
element
.
commonBackground
.
enable
)
{
if
(
this
.
element
.
commonBackground
.
backgroundType
===
'innerImage'
)
{
if
(
this
.
element
.
commonBackground
.
backgroundType
===
'innerImage'
)
{
style
[
'background'
]
=
`url(
${
this
.
element
.
commonBackground
.
innerImage
}
) no-repeat`
style
[
'background'
]
=
`url(
${
this
.
element
.
commonBackground
.
innerImage
}
) no-repeat`
}
else
if
(
this
.
element
.
commonBackground
.
backgroundType
===
'outerImage'
)
{
}
else
if
(
this
.
element
.
commonBackground
.
backgroundType
===
'outerImage'
)
{
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
6f9deb15
...
@@ -232,7 +232,11 @@ import SubjectSetting from '../SubjectSetting'
...
@@ -232,7 +232,11 @@ import SubjectSetting from '../SubjectSetting'
import
bus
from
'@/utils/bus'
import
bus
from
'@/utils/bus'
import
Editor
from
'@/components/canvas/components/Editor/index'
import
Editor
from
'@/components/canvas/components/Editor/index'
import
{
deepCopy
,
panelInit
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
,
panelInit
}
from
'@/components/canvas/utils/utils'
import
componentList
,
{
BASE_MOBILE_STYLE
,
HYPERLINKS
}
from
'@/components/canvas/custom-component/component-list'
// 左侧列表数据
import
componentList
,
{
BASE_MOBILE_STYLE
,
COMMON_BACKGROUND
,
HYPERLINKS
}
from
'@/components/canvas/custom-component/component-list'
// 左侧列表数据
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'
...
@@ -615,6 +619,8 @@ export default {
...
@@ -615,6 +619,8 @@ export default {
this
.
currentFilterCom
.
id
=
newComponentId
this
.
currentFilterCom
.
id
=
newComponentId
this
.
currentFilterCom
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
this
.
currentFilterCom
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
this
.
currentFilterCom
.
mobileStyle
=
BASE_MOBILE_STYLE
this
.
currentFilterCom
.
mobileStyle
=
BASE_MOBILE_STYLE
this
.
currentFilterCom
.
commonBackground
||
deepCopy
(
COMMON_BACKGROUND
)
if
(
this
.
currentWidget
.
filterDialog
)
{
if
(
this
.
currentWidget
.
filterDialog
)
{
this
.
show
=
false
this
.
show
=
false
...
@@ -643,6 +649,8 @@ export default {
...
@@ -643,6 +649,8 @@ export default {
component
.
id
=
newComponentId
component
.
id
=
newComponentId
// 新拖入的组件矩阵状态 和仪表板当前的矩阵状态 保持一致
// 新拖入的组件矩阵状态 和仪表板当前的矩阵状态 保持一致
component
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
component
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
// 统一设置背景信息
component
.
commonBackground
||
deepCopy
(
COMMON_BACKGROUND
)
// 视图统一调整为复制
// 视图统一调整为复制
if
(
componentInfo
.
type
===
'view'
)
{
if
(
componentInfo
.
type
===
'view'
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论