diff --git a/frontend/src/components/canvas/components/editor/MobileCheckBar.vue b/frontend/src/components/canvas/components/editor/MobileCheckBar.vue index 9ed014e393..ee3fbdbe07 100644 --- a/frontend/src/components/canvas/components/editor/MobileCheckBar.vue +++ b/frontend/src/components/canvas/components/editor/MobileCheckBar.vue @@ -13,6 +13,7 @@ diff --git a/frontend/src/components/canvas/components/editor/Preview.vue b/frontend/src/components/canvas/components/editor/Preview.vue index 453227c1a2..04d33ce7ef 100644 --- a/frontend/src/components/canvas/components/editor/Preview.vue +++ b/frontend/src/components/canvas/components/editor/Preview.vue @@ -635,7 +635,7 @@ export default { component.style[key] = this.format(component.style[key], this.scaleHeight) } if (this.needToChangeWidth.includes(key)) { - if (key === 'fontSize' && (this.terminal === 'mobile' || component.type === 'custom')) { + if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || component.type === 'custom')) { // do nothing 移动端字符大小无需按照比例缩放,当前保持不变(包括 v-text 和 过滤组件) } else { component.style[key] = this.format(component.style[key], this.scaleWidth) diff --git a/frontend/src/components/canvas/customComponent/UserView.vue b/frontend/src/components/canvas/customComponent/UserView.vue index 04c08401fe..ab9caf23a6 100644 --- a/frontend/src/components/canvas/customComponent/UserView.vue +++ b/frontend/src/components/canvas/customComponent/UserView.vue @@ -85,6 +85,7 @@ :ref="element.propValue.id" class="chart-class" :chart="chart" + :terminal-type="scaleCoefficientType" :track-menu="trackMenu" :search-count="searchCount" @onChartClick="chartClick" diff --git a/frontend/src/components/canvas/store/layer.js b/frontend/src/components/canvas/store/layer.js index 7eb799156f..d30413ff64 100644 --- a/frontend/src/components/canvas/store/layer.js +++ b/frontend/src/components/canvas/store/layer.js @@ -5,40 +5,49 @@ export default { mutations: { upComponent({ componentData, curComponent }) { - const curComponentIndex = findCurComponentIndex(componentData, curComponent) - // 上移图层 index,表示元素在数组中越往后 - if (curComponentIndex < componentData.length - 1) { - moveUp(componentData, curComponentIndex) - } else { - toast('已经到顶了') + if (curComponent) { + const curComponentIndex = findCurComponentIndex(componentData, curComponent) + // 上移图层 index,表示元素在数组中越往后 + if (curComponentIndex < componentData.length - 1) { + moveUp(componentData, curComponentIndex) + } else { + toast('已经到顶了') + } } + }, downComponent({ componentData, curComponent }) { - const curComponentIndex = findCurComponentIndex(componentData, curComponent) - // 下移图层 index,表示元素在数组中越往前 - if (curComponentIndex > 0) { - moveDown(componentData, curComponentIndex) - } else { - toast('已经到底了') + if (curComponent) { + const curComponentIndex = findCurComponentIndex(componentData, curComponent) + // 下移图层 index,表示元素在数组中越往前 + if (curComponentIndex > 0) { + moveDown(componentData, curComponentIndex) + } else { + toast('已经到底了') + } } }, topComponent({ componentData, curComponent }) { - const curComponentIndex = findCurComponentIndex(componentData, curComponent) - // 置顶 - if (curComponentIndex < componentData.length - 1) { - toTop(componentData, curComponentIndex) + if (curComponent) { + const curComponentIndex = findCurComponentIndex(componentData, curComponent) + // 置顶 + if (curComponentIndex < componentData.length - 1) { + toTop(componentData, curComponentIndex) + } } }, bottomComponent({ componentData, curComponent }) { - const curComponentIndex = findCurComponentIndex(componentData, curComponent) - // 置底 - if (curComponentIndex > 0) { - toBottom(componentData, curComponentIndex) - } else { - toast('已经到底了') + if (curComponent) { + const curComponentIndex = findCurComponentIndex(componentData, curComponent) + // 置底 + if (curComponentIndex > 0) { + toBottom(componentData, curComponentIndex) + } else { + toast('已经到底了') + } } } } diff --git a/frontend/src/components/widget/deWidget/DeTabs.vue b/frontend/src/components/widget/deWidget/DeTabs.vue index e1cd98cc16..9440cd6056 100644 --- a/frontend/src/components/widget/deWidget/DeTabs.vue +++ b/frontend/src/components/widget/deWidget/DeTabs.vue @@ -17,7 +17,7 @@ :active-color="activeColor" :border-color="borderColor" :border-active-color="borderActiveColor" - :addable="isEdit" + :addable="isEdit && !mobileLayoutStatus" @tab-add="addTab" @tab-click="handleClick" > @@ -710,6 +710,7 @@ export default { ::v-deep .el-tabs__nav-prev { line-height: 25px; } + ::v-deep .el-tabs__nav-next { line-height: 25px; } diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index cf11a4ff11..8a8b8a015a 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -232,8 +232,8 @@ const data = { } }, setShapeStyle({ curComponent, canvasStyleData, curCanvasScaleMap }, { top, left, width, height, rotate }) { - const curCanvasScaleSelf = curCanvasScaleMap[curComponent.canvasId] if (curComponent) { + const curCanvasScaleSelf = curCanvasScaleMap[curComponent.canvasId] if (top || top === 0) curComponent.style.top = Math.round((top / curCanvasScaleSelf.scalePointHeight)) if (left || left === 0) curComponent.style.left = Math.round((left / curCanvasScaleSelf.scalePointWidth)) if (width || width === 0) curComponent.style.width = Math.round((width / curCanvasScaleSelf.scalePointWidth)) @@ -569,7 +569,7 @@ const data = { // 移动端布局转换 state.componentData.forEach(item => { item.mobileStyle = (item.mobileStyle || BASE_MOBILE_STYLE) - if (item.mobileSelected || item.canvasId !== 'canvas-main') { + if (item.mobileSelected && item.canvasId === 'canvas-main') { item.style.width = item.mobileStyle.style.width item.style.height = item.mobileStyle.style.height item.style.top = item.mobileStyle.style.top @@ -581,6 +581,8 @@ const data = { item.sizey = item.mobileStyle.sizey item.auxiliaryMatrix = item.mobileStyle.auxiliaryMatrix mainComponentData.push(item) + } else if (item.canvasId !== 'canvas-main') { + mainComponentData.push(item) } }) state.componentData = mainComponentData diff --git a/frontend/src/views/chart/components/ChartComponentS2.vue b/frontend/src/views/chart/components/ChartComponentS2.vue index 87f8c75fc2..b1cb8b6555 100644 --- a/frontend/src/views/chart/components/ChartComponentS2.vue +++ b/frontend/src/views/chart/components/ChartComponentS2.vue @@ -67,8 +67,8 @@ > {{ $t('chart.total') }} {{ - (chart.datasetMode === 0 && !not_support_page_dataset.includes(chart.datasourceType)) ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0) - }} + (chart.datasetMode === 0 && !not_support_page_dataset.includes(chart.datasourceType)) ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0) + }} {{ $t('chart.items') }} @@ -36,7 +37,7 @@ class="component-wait-main" style="padding:10px" > - + @@ -141,7 +142,8 @@ export default { height: 100%; } -::v-deep .el-tabs--top { + +.wait-tab { height: 40px !important; background-color: #9ea6b2; }