Merge pull request #3887 from dataease/pr@dev@refactor_panel-position

refactor(仪表板): 仪表板组件位置调整优化
This commit is contained in:
xuwei-fit2cloud 2022-11-26 09:50:40 +08:00 committed by GitHub
commit 17f9746be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 35 deletions

View File

@ -91,7 +91,7 @@
{{ $t('panel.hyperlinks') }} {{ $t('panel.hyperlinks') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item <el-dropdown-item
v-if="curComponent.type !== 'user-view' && !curComponent.auxiliaryMatrix" v-if="curComponent.type !== 'view' && !curComponent.auxiliaryMatrix"
@click.native="positionAdjust" @click.native="positionAdjust"
> >
<i class="el-icon-map-location"/> <i class="el-icon-map-location"/>

View File

@ -1883,6 +1883,7 @@ export default {
back_parent: 'Back to previous' back_parent: 'Back to previous'
}, },
panel: { panel: {
position_adjust_component: 'Position adjust',
active_font_size: 'Active font size', active_font_size: 'Active font size',
carousel: 'Carousel', carousel: 'Carousel',
switch_time: 'Switch time', switch_time: 'Switch time',

View File

@ -1883,6 +1883,7 @@ export default {
back_parent: '返回上一級' back_parent: '返回上一級'
}, },
panel: { panel: {
position_adjust_component: '位置調整',
active_font_size: '激活字體大小', active_font_size: '激活字體大小',
carousel: '輪播', carousel: '輪播',
switch_time: '切換時間', switch_time: '切換時間',

View File

@ -1883,6 +1883,7 @@ export default {
back_parent: '返回上一级' back_parent: '返回上一级'
}, },
panel: { panel: {
position_adjust_component: '位置调整',
active_font_size: '激活字体大小', active_font_size: '激活字体大小',
carousel: '轮播', carousel: '轮播',
switch_time: '切换时间', switch_time: '切换时间',

View File

@ -1115,8 +1115,21 @@
:label="$t('panel.position_adjust')" :label="$t('panel.position_adjust')"
class="padding-tab" class="padding-tab"
style="width: 350px;" style="width: 350px;"
>
<div class="attr-style theme-border-class">
<el-collapse
v-model="positionActiveNames"
class="style-collapse"
>
<el-collapse-item
:title="$t('panel.position_adjust_component')"
:name="'positionAdjust'"
> >
<position-adjust/> <position-adjust/>
</el-collapse-item>
</el-collapse>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -1713,6 +1726,7 @@ export default {
}, },
data() { data() {
return { return {
positionActiveNames: 'positionAdjust',
loading: false, loading: false,
table: {}, table: {},
dimension: [], dimension: [],