| | |
| | | <top class="title" ref="title"></top> |
| | | <left |
| | | class="mapleft" |
| | | :style="{ width: leftWidth, left: leftTree && leftWidth == '20%' ? '-14px' : '0' }" |
| | | :style="{ width: leftWidth, left: leftWidth == '22%' ? '-19px' : '0' }" |
| | | ref="mapleft" |
| | | ></left> |
| | | <right |
| | |
| | | components: { mapsdk, top, left, right, bottom }, |
| | | data() { |
| | | return { |
| | | leftWidth: "20%", |
| | | leftWidth: "22%", |
| | | rightWidth: "22%", |
| | | leftTree: false, |
| | | currTree: false |
| | |
| | | //修改左侧宽度 |
| | | ChangeWidth(parm) { |
| | | if (parm == "left") { |
| | | if (this.leftWidth == "20%") { |
| | | if (this.leftWidth == "22%") { |
| | | this.leftWidth = "8px" |
| | | } else { |
| | | this.leftWidth = "20%" |
| | | this.leftWidth = "22%" |
| | | } |
| | | } |
| | | |
| | | // if (parm == "leftView" || parm == "leftTree") { |
| | | // this.leftWidth = "20%" |
| | | // this.rightWidth = "22%" |
| | | // } |
| | | if (parm == "leftView" || parm == "leftTree") { |
| | | this.leftWidth = "22%" |
| | | this.rightWidth = "22%" |
| | | } |
| | | // if (parm == "leftView") { |
| | | // this.leftTree = false |
| | | // } |