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