Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
8a2069c3
提交
8a2069c3
authored
7月 29, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
bfc646d3
99c099c3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
ComponentWrapper.vue
.../components/canvas/components/Editor/ComponentWrapper.vue
+3
-0
SettingMenu.vue
...d/src/components/canvas/components/Editor/SettingMenu.vue
+5
-0
index.js
frontend/src/store/index.js
+7
-1
没有找到文件。
frontend/src/components/canvas/components/Editor/ComponentWrapper.vue
浏览文件 @
8a2069c3
...
@@ -104,6 +104,9 @@ export default {
...
@@ -104,6 +104,9 @@ export default {
position
:
absolute
;
position
:
absolute
;
}
}
.component
:hover
{
box-shadow
:
0px
0px
7px
#0a7be0
;
}
.gap_class
{
.gap_class
{
padding
:
3px
;
padding
:
3px
;
}
}
...
...
frontend/src/components/canvas/components/Editor/SettingMenu.vue
浏览文件 @
8a2069c3
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<el-dropdown
trigger=
"click"
@
mouseup=
"handleMouseUp"
>
<el-dropdown
trigger=
"click"
@
mouseup=
"handleMouseUp"
>
<slot
name=
"icon"
/>
<slot
name=
"icon"
/>
<el-dropdown-menu>
<el-dropdown-menu>
this is test
<el-dropdown-item
v-if=
"curComponent&&editFilter.includes(curComponent.type)"
icon=
"el-icon-edit-outline"
@
click
.
native=
"edit"
>
{{
$t
(
'panel.edit'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"curComponent&&editFilter.includes(curComponent.type)"
icon=
"el-icon-edit-outline"
@
click
.
native=
"edit"
>
{{
$t
(
'panel.edit'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-document-copy"
@
click
.
native=
"copy"
>
{{
$t
(
'panel.copy'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-document-copy"
@
click
.
native=
"copy"
>
{{
$t
(
'panel.copy'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-delete"
@
click
.
native=
"deleteComponent"
>
{{
$t
(
'panel.delete'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-delete"
@
click
.
native=
"deleteComponent"
>
{{
$t
(
'panel.delete'
)
}}
</el-dropdown-item>
...
@@ -11,6 +12,7 @@
...
@@ -11,6 +12,7 @@
<el-dropdown-item
icon=
"el-icon-download"
@
click
.
native=
"bottomComponent"
>
{{
$t
(
'panel.bottomComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-download"
@
click
.
native=
"bottomComponent"
>
{{
$t
(
'panel.bottomComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-arrow-up"
@
click
.
native=
"upComponent"
>
{{
$t
(
'panel.upComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-arrow-up"
@
click
.
native=
"upComponent"
>
{{
$t
(
'panel.upComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-arrow-down"
@
click
.
native=
"downComponent"
>
{{
$t
(
'panel.downComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-arrow-down"
@
click
.
native=
"downComponent"
>
{{
$t
(
'panel.downComponent'
)
}}
</el-dropdown-item>
<el-dropdown-item
icon=
"el-icon-link"
@
click
.
native=
"linkageSetting"
>
联动设置
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</div>
</div>
...
@@ -119,6 +121,9 @@ export default {
...
@@ -119,6 +121,9 @@ export default {
bottomComponent
()
{
bottomComponent
()
{
this
.
$store
.
commit
(
'bottomComponent'
)
this
.
$store
.
commit
(
'bottomComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
},
linkageSetting
()
{
this
.
$store
.
commit
(
'setLinkageSettingStatus'
,
true
)
}
}
}
}
}
}
...
...
frontend/src/store/index.js
浏览文件 @
8a2069c3
...
@@ -48,7 +48,9 @@ const data = {
...
@@ -48,7 +48,9 @@ const data = {
// 点击画布时是否点中组件,主要用于取消选中组件用。
// 点击画布时是否点中组件,主要用于取消选中组件用。
// 如果没点中组件,并且在画布空白处弹起鼠标,则取消当前组件的选中状态
// 如果没点中组件,并且在画布空白处弹起鼠标,则取消当前组件的选中状态
isClickComponent
:
false
,
isClickComponent
:
false
,
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE_STRING
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE_STRING
,
// 联动设置状态
linkageSettingStatus
:
false
},
},
mutations
:
{
mutations
:
{
...
animation
.
mutations
,
...
animation
.
mutations
,
...
@@ -173,6 +175,10 @@ const data = {
...
@@ -173,6 +175,10 @@ const data = {
index
=
state
.
curComponentIndex
index
=
state
.
curComponentIndex
}
}
state
.
componentData
.
splice
(
index
,
1
)
state
.
componentData
.
splice
(
index
,
1
)
},
setLinkageSettingStatus
(
state
,
status
)
{
state
.
linkageSettingStatus
=
status
console
.
log
(
'linkageSettingStatus:'
,
state
.
linkageSettingStatus
)
}
}
},
},
modules
:
{
modules
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论