Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
158b3a1e
提交
158b3a1e
authored
10月 10, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 画布按钮位置调整
上级
e5d5afda
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
46 行增加
和
33 行删除
+46
-33
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+18
-16
Toolbar.vue
frontend/src/components/canvas/components/Toolbar.vue
+16
-5
index.vue
frontend/src/views/panel/SubjectSetting/index.vue
+12
-12
没有找到文件。
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
158b3a1e
...
@@ -1007,7 +1007,7 @@ export default {
...
@@ -1007,7 +1007,7 @@ export default {
handler
(
newVal
,
oldVla
)
{
handler
(
newVal
,
oldVla
)
{
// console.log('newVal:' + JSON.stringify(newVal) + ';oldVla:' + JSON.stringify(oldVla))
// console.log('newVal:' + JSON.stringify(newVal) + ';oldVla:' + JSON.stringify(oldVla))
// 初始化时componentData 加载可能出现慢的情况 此时重新初始化一下matrix
// 初始化时componentData 加载可能出现慢的情况 此时重新初始化一下matrix
if
(
this
.
lastComponentDataLength
===
0
&&
newVal
.
length
>
0
)
{
if
(
newVal
.
length
!==
this
.
lastComponentDataLength
)
{
this
.
lastComponentDataLength
=
newVal
.
length
this
.
lastComponentDataLength
=
newVal
.
length
this
.
initMatrix
()
this
.
initMatrix
()
}
}
...
@@ -1676,23 +1676,25 @@ export default {
...
@@ -1676,23 +1676,25 @@ export default {
})
})
},
},
startMoveIn
()
{
startMoveIn
()
{
const
moveInItemInfo
=
this
.
$store
.
state
.
dragComponentInfo
if
(
this
.
canvasStyleData
.
auxiliaryMatrix
)
{
this
.
addItemBox
(
moveInItemInfo
)
const
moveInItemInfo
=
this
.
$store
.
state
.
dragComponentInfo
// console.log('startMoveIn:')
this
.
addItemBox
(
moveInItemInfo
)
const
vm
=
this
console
.
log
(
'startMoveIn:'
)
// e.preventDefault();
const
vm
=
this
if
(
!
this
.
infoBox
)
{
// e.preventDefault();
this
.
infoBox
=
{}
if
(
!
this
.
infoBox
)
{
}
this
.
infoBox
=
{}
const
infoBox
=
this
.
infoBox
}
const
infoBox
=
this
.
infoBox
infoBox
.
moveItem
=
moveInItemInfo
infoBox
.
moveItem
=
moveInItemInfo
infoBox
.
moveItemIndex
=
this
.
yourList
.
length
-
1
infoBox
.
moveItemIndex
=
this
.
yourList
.
length
-
1
infoBox
.
oldX
=
1
// 实际对象原始X位置
infoBox
.
oldX
=
1
// 实际对象原始X位置
infoBox
.
oldY
=
1
infoBox
.
oldY
=
1
infoBox
.
oldSizeX
=
moveInItemInfo
.
sizex
infoBox
.
oldSizeX
=
moveInItemInfo
.
sizex
infoBox
.
oldSizeY
=
moveInItemInfo
.
sizey
infoBox
.
oldSizeY
=
moveInItemInfo
.
sizey
}
}
}
}
}
}
}
...
...
frontend/src/components/canvas/components/Toolbar.vue
浏览文件 @
158b3a1e
...
@@ -13,10 +13,21 @@
...
@@ -13,10 +13,21 @@
</div>
</div>
<div
v-else
class=
"toolbar"
>
<div
v-else
class=
"toolbar"
>
<!--
<div
class=
"canvas-config"
style=
"margin-right: 10px"
>
-->
<!--
<el-tooltip
:content=
"$t('panel.new_element_distribution')"
>
-->
<!--
<el-switch
v-model=
"canvasStyleData.auxiliaryMatrix"
:width=
"35"
name=
"auxiliaryMatrix"
/>
-->
<!--
<el-switch-->
<!--
<span>
{{
$t
(
'panel.matrix_design'
)
}}
</span>
-->
<!-- v-model="canvasStyleData.auxiliaryMatrix"-->
<!--
</div>
-->
<!-- :width="35"-->
<!-- active-color="#13ce66"-->
<!-- inactive-color="#ff4949"-->
<!-- :active-text="$t('panel.matrix')"-->
<!-- :inactive-text="$t('panel.suspension')"-->
<!-- />-->
<!--
</el-tooltip>
-->
<div
class=
"canvas-config"
style=
"margin-right: 10px"
>
<el-switch
v-model=
"canvasStyleData.auxiliaryMatrix"
:width=
"35"
name=
"auxiliaryMatrix"
/>
<span>
{{
$t
(
'panel.matrix_design'
)
}}
</span>
</div>
<!--
<div
class=
"canvas-config"
style=
"margin-right: 10px"
>
-->
<!--
<div
class=
"canvas-config"
style=
"margin-right: 10px"
>
-->
<!--
<span>
{{
$t
(
'panel.canvas_scale'
)
}}
</span>
-->
<!--
<span>
{{
$t
(
'panel.canvas_scale'
)
}}
</span>
-->
<!--
<input
v-model=
"scale"
@
input=
"handleScaleChange"
>
%-->
<!--
<input
v-model=
"scale"
@
input=
"handleScaleChange"
>
%-->
...
@@ -371,7 +382,7 @@ export default {
...
@@ -371,7 +382,7 @@ export default {
float
:
right
;
float
:
right
;
height
:
35px
;
height
:
35px
;
line-height
:
35px
;
line-height
:
35px
;
min-width
:
4
00px
;
min-width
:
5
00px
;
/*background: #fff;*/
/*background: #fff;*/
/*border-bottom: 1px solid #ddd;*/
/*border-bottom: 1px solid #ddd;*/
...
...
frontend/src/views/panel/SubjectSetting/index.vue
浏览文件 @
158b3a1e
...
@@ -9,18 +9,18 @@
...
@@ -9,18 +9,18 @@
<div
v-if=
"collapseShow"
style=
"margin: 10px;overflow-y: auto"
>
<div
v-if=
"collapseShow"
style=
"margin: 10px;overflow-y: auto"
>
<el-collapse
v-model=
"activeNames"
@
change=
"handleChange"
>
<el-collapse
v-model=
"activeNames"
@
change=
"handleChange"
>
<el-collapse-item
:title=
"$t('panel.panel')"
name=
"panel"
>
<el-collapse-item
:title=
"$t('panel.panel')"
name=
"panel"
>
<el-row
class=
"shape-item"
>
<!--
<el-row
class=
"shape-item"
>
--
>
<span
class=
"shape-item"
style=
"margin-left: 10px"
>
{{
$t
(
'panel.new_element_distribution'
)
}}
:
</span
>
<!--
<span
class=
"shape-item"
style=
"margin-left: 10px"
>
{{
$t
(
'panel.new_element_distribution'
)
}}
:
</span>
--
>
<!--
<el-switch
v-model=
"canvasStyleData.auxiliaryMatrix"
:width=
"35"
name=
"auxiliaryMatrix"
/>
-->
<!-- <!–
<el-switch
v-model=
"canvasStyleData.auxiliaryMatrix"
:width=
"35"
name=
"auxiliaryMatrix"
/>
–>
-->
<el-radio-group
v-model=
"canvasStyleData.auxiliaryMatrix"
size=
"mini"
name=
"auxiliaryMatrix"
@
change=
"styleChange"
>
<!--
<el-radio-group
v-model=
"canvasStyleData.auxiliaryMatrix"
size=
"mini"
name=
"auxiliaryMatrix"
@
change=
"styleChange"
>
--
>
<el-radio-button
:label=
"true"
>
<!--
<el-radio-button
:label=
"true"
>
--
>
{{
$t
(
'panel.matrix'
)
}}
<i
class=
"icon iconfont icon-shujujuzhen"
/
>
<!--
{{
$t
(
'panel.matrix'
)
}}
<i
class=
"icon iconfont icon-shujujuzhen"
/>
--
>
</el-radio-button
>
<!--
</el-radio-button>
--
>
<el-radio-button
:label=
"false"
>
<!--
<el-radio-button
:label=
"false"
>
--
>
{{
$t
(
'panel.suspension'
)
}}
<i
class=
"icon iconfont icon-xuanfuanniu"
/
>
<!--
{{
$t
(
'panel.suspension'
)
}}
<i
class=
"icon iconfont icon-xuanfuanniu"
/>
--
>
</el-radio-button
>
<!--
</el-radio-button>
--
>
</el-radio-group
>
<!--
</el-radio-group>
--
>
</el-row
>
<!--
</el-row>
--
>
<el-row
style=
"background-color: #f7f8fa; margin: 5px"
>
<el-row
style=
"background-color: #f7f8fa; margin: 5px"
>
<background-selector
class=
"attr-selector"
/>
<background-selector
class=
"attr-selector"
/>
<component-gap
class=
"attr-selector"
/>
<component-gap
class=
"attr-selector"
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论