Unverified 提交 ef357c60 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #1411 from dataease/pr@dev@feat_panel-mobile-layout

Pr@dev@feat panel mobile layout
...@@ -213,8 +213,8 @@ export default { ...@@ -213,8 +213,8 @@ export default {
restore() { restore() {
const canvasHeight = document.getElementById('canvasInfoMain').offsetHeight const canvasHeight = document.getElementById('canvasInfoMain').offsetHeight
const canvasWidth = document.getElementById('canvasInfoMain').offsetWidth const canvasWidth = document.getElementById('canvasInfoMain').offsetWidth
this.scaleWidth = canvasWidth * 100 / parseInt(this.canvasStyleData.width)// 获取宽度比 this.scaleWidth = (canvasWidth) * 100 / this.canvasStyleData.width // 获取宽度比
this.scaleHeight = canvasHeight * 100 / parseInt(this.canvasStyleData.height)// 获取高度比 this.scaleHeight = canvasHeight * 100 / this.canvasStyleData.height// 获取高度比
this.handleScaleChange() this.handleScaleChange()
}, },
resetID(data) { resetID(data) {
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
return data return data
}, },
format(value, scale) { format(value, scale) {
return value * parseInt(scale) / 100 return value * scale / 100
}, },
handleScaleChange() { handleScaleChange() {
if (this.componentData) { if (this.componentData) {
...@@ -296,10 +296,6 @@ export default { ...@@ -296,10 +296,6 @@ export default {
color: #9ea6b2; color: #9ea6b2;
} }
.gap_class {
padding: 5px;
}
.dialog-css > > > .el-dialog__title { .dialog-css > > > .el-dialog__title {
font-size: 14px; font-size: 14px;
} }
......
...@@ -321,7 +321,9 @@ export default { ...@@ -321,7 +321,9 @@ export default {
return !this.linkageSettingStatus && !this.mobileLayoutStatus return !this.linkageSettingStatus && !this.mobileLayoutStatus
}, },
showAttr() { showAttr() {
if (this.curComponent && this.showAttrComponent.includes(this.curComponent.type)) { if (this.mobileLayoutStatus) {
return false
} else if (this.curComponent && this.showAttrComponent.includes(this.curComponent.type)) {
// 过滤组件有标题才显示 // 过滤组件有标题才显示
if (this.curComponent.type === 'custom' && !this.curComponent.options.attrs.title) { if (this.curComponent.type === 'custom' && !this.curComponent.options.attrs.title) {
return false return false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论