refactor: 移动端布局等待区域排列优化

This commit is contained in:
wangjiahao 2021-12-28 16:35:30 +08:00
parent f90466bc23
commit f47609fce5
2 changed files with 10 additions and 7 deletions

View File

@ -4,13 +4,18 @@
{{ $t('panel.component_hidden') }}
</el-row>
<el-row class="component-wait-main">
<component-wait-item
<el-col
:span="8"
v-for="(config, index) in pcComponentData"
v-if="!config.mobileSelected"
:id="'wait' + config.id"
:key="index"
:config="config"
/>
>
<component-wait-item
:config="config"
/>
</el-col>
</el-row>
</el-row>
@ -81,7 +86,7 @@ export default {
.component-wait-main {
width: 100%;
height: calc(100% - 30px);
text-align: left;
float: left;
overflow-y: auto;
}
.component-custom {

View File

@ -69,9 +69,7 @@ export default {
},
componentItemStyle() {
return {
padding: '5px',
float: 'left',
width: '33%'
padding: '5px'
}
},
...mapState([