提交 0c845432 authored 作者: wangjiahao's avatar wangjiahao

refactor: 移动端布局组件等待区域靠左排列

上级 9485610a
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
padding-left: 1px; padding-left: 1px;
padding-right: 1px; padding-right: 1px;
cursor:pointer!important; cursor:pointer!important;
text-align: center;
background-color: #0a7be0; background-color: #0a7be0;
} }
.bar-main i{ .bar-main i{
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
} }
}, },
editBarViewShowFlag() { editBarViewShowFlag() {
return this.active && this.inTab return this.active && this.inTab && !this.mobileLayoutStatus
}, },
charViewShowFlag() { charViewShowFlag() {
return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.renderComponent() === 'echarts' return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.renderComponent() === 'echarts'
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span slot="label"> <span slot="label">
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
<el-dropdown v-if="isEdit" slot="label" class="de-tab-drop" trigger="click" @command="handleCommand"> <el-dropdown v-if="dropdownShow" slot="label" class="de-tab-drop" trigger="click" @command="handleCommand">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<!-- <span>{{ item.title }}</span> --> <!-- <span>{{ item.title }}</span> -->
...@@ -135,8 +135,12 @@ export default { ...@@ -135,8 +135,12 @@ export default {
} }
}, },
computed: { computed: {
dropdownShow() {
return this.isEdit && !this.mobileLayoutStatus
},
...mapState([ ...mapState([
'curComponent' 'curComponent',
'mobileLayoutStatus'
]) ])
}, },
watch: { watch: {
......
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
.component-wait-main { .component-wait-main {
width: 100%; width: 100%;
height: calc(100% - 30px); height: calc(100% - 30px);
text-align: left;
overflow-y: auto; overflow-y: auto;
} }
.component-custom { .component-custom {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论