fix: 样式修改

This commit is contained in:
wangjiahao 2021-05-19 16:58:21 +08:00
parent f615e9fda8
commit a1c4c61d95
6 changed files with 24 additions and 9 deletions

View File

@ -1,5 +1,8 @@
<template>
<div id="canvasInfo" :style="customStyle" class="bg">
<el-row v-if="componentDataShow.length===0" style="height: 100%;" class="custom-position">
{{ $t('panel.panel_null') }}
</el-row>
<ComponentWrapper
v-for="(item, index) in componentDataInfo"
:key="index"
@ -148,4 +151,13 @@ export default {
}
}
}
.custom-position {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
flex-flow: row nowrap;
color: #9ea6b2;
}
</style>

View File

@ -872,7 +872,8 @@ export default {
clean_canvas: 'Clean Canvas',
insert_picture: 'Insert Picture',
redo: 'Redo',
undo: 'UToolbar.vuendo'
undo: 'UToolbar.vuendo',
panel_null: 'This is a Empty PanelYou Can Edit and Enrich It'
},
plugin: {
local_install: 'Local installation',

View File

@ -872,7 +872,8 @@ export default {
clean_canvas: '清空畫布',
insert_picture: '插入圖片',
redo: '重做',
undo: '撤銷'
undo: '撤銷',
panel_null: '这是个空的儀表盤,可以通过编辑来丰富内容'
},
plugin: {
local_install: '本地安裝',

View File

@ -874,7 +874,8 @@ export default {
clean_canvas: '清空画布',
insert_picture: '插入图片',
redo: '重做',
undo: '撤销'
undo: '撤销',
panel_null: '这是个空的仪表板,可以通过编辑来丰富内容'
},
plugin: {
local_install: '本地安装',

View File

@ -184,8 +184,8 @@ export default {
nodeType: null,
panelType: null,
panelStyle: JSON.stringify({
width: 1680,
height: 1050,
width: 1280,
height: 720,
scale: 100,
openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE,
@ -225,8 +225,8 @@ export default {
nodeType: null,
panelType: null,
panelStyle: JSON.stringify({
width: 1680,
height: 1050,
width: 1280,
height: 720,
scale: 100,
openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE,

View File

@ -19,8 +19,8 @@ export const DEFAULT_PANEL_STYLE = {
}
export const DEFAULT_COMMON_CANVAS_STYLE = {
width: 1680,
height: 1050,
width: 1280,
height: 720,
scale: 100,
openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE,