|
|
@ -8,7 +8,7 @@ |
|
|
|
<FocusedMonitoring class="card-menu" /> |
|
|
|
|
|
|
|
<!-- 下 --> |
|
|
|
<RoadAndEvents class="content-l-b card-menu" @onClickItem="onClickItem"/> |
|
|
|
<RoadAndEvents class="content-l-b card-menu" @onClickItem="onClickItem" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 右侧 --> |
|
|
@ -49,9 +49,9 @@ export default { |
|
|
|
AMapContainer, |
|
|
|
InfoBoard |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
isShowInfoBoard:false |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isShowInfoBoard: false |
|
|
|
} |
|
|
|
}, |
|
|
|
provide() { |
|
|
@ -66,12 +66,17 @@ export default { |
|
|
|
const result = (e.target.style.transform.match(/[-0-9]+/)?.[0] || -90) * -1 |
|
|
|
|
|
|
|
e.target.style.transform = `rotate(${result}deg)`; |
|
|
|
|
|
|
|
// translateXElement.style.transform = translateXElement.style.transform ? "" : `translateY(calc(100% - 36px))` |
|
|
|
translateXElement.style.height = translateXElement.style.height != "36px" ? "36px" : `100%` |
|
|
|
if (translateXElement.style.transform !== `translateY(calc(100% - 36px))`) { |
|
|
|
translateXElement.style.transform = `translateY(calc(100% - 36px))` |
|
|
|
translateXElement.style.position = `absolute`; |
|
|
|
translateXElement.style.bottom = `0px`; |
|
|
|
} else { |
|
|
|
translateXElement.style.transform = `translateY(0)` |
|
|
|
translateXElement.style.position = `relative`; |
|
|
|
} |
|
|
|
}, |
|
|
|
onClickItem(item){ |
|
|
|
if(item.title.includes("情报板")){ |
|
|
|
onClickItem(item) { |
|
|
|
if (item.title.includes("情报板")) { |
|
|
|
this.isShowInfoBoard = true; |
|
|
|
} |
|
|
|
} |
|
|
@ -87,7 +92,7 @@ export default { |
|
|
|
flex-direction: column; |
|
|
|
gap: 30px; |
|
|
|
padding: 19px 31px 0 25px; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
.card-menu { |
|
|
|
transition: all .24s linear; |
|
|
@ -98,7 +103,8 @@ export default { |
|
|
|
// margin: auto; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
flex: 1; |
|
|
|
// flex: 1; |
|
|
|
height: min-content; |
|
|
|
pointer-events: none; |
|
|
|
|
|
|
|
>div { |
|
|
@ -137,9 +143,9 @@ export default { |
|
|
|
// margin: auto; |
|
|
|
pointer-events: none; |
|
|
|
overflow: hidden; |
|
|
|
height: 100%; |
|
|
|
// height: fit-content; |
|
|
|
height: min-content; |
|
|
|
will-change: height; |
|
|
|
bottom: 0; |
|
|
|
|
|
|
|
>div { |
|
|
|
pointer-events: all; |
|
|
|