From e17acddfd3dd590106372c49dbc628f2291e6ccb Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Mon, 22 Jan 2024 11:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/components/Adaptation.vue | 54 +- .../components/Descriptions.vue | 2 +- .../Cards/DispatchLiaison/index.vue | 148 ++--- .../Cards/DisposalPlan/index.vue | 516 +++++++++--------- .../Cards/AuditLists/index.vue | 2 +- 5 files changed, 359 insertions(+), 363 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue index 47f79ff9..08de14d1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue @@ -63,14 +63,22 @@ export default { '--reverse-scale', '' ], + [ + '--middle-scale', + '' + ], ]; if (scaleX > scaleY) { - cssGlobalVariable[0][1] = `scaleX(${1 / scaleX * scaleY})`; + // cssGlobalVariable[0][1] = `scaleX(${1 / scaleX * scaleY})`; + cssGlobalVariable[0][1] = `scaleX(${1 - (scaleX - scaleY)})`; cssGlobalVariable[1][1] = `scaleY(${1 / scaleX})`; + cssGlobalVariable[2][1] = `scaleX(${1 - (scaleX - scaleY) / 2})`; } else { - cssGlobalVariable[0][1] = `scaleY(${1 / scaleY * scaleX})`; + // cssGlobalVariable[0][1] = `scaleY(${1 / scaleY * scaleX})`; + cssGlobalVariable[0][1] = `scaleX(${1 - (scaleY - scaleX)})`; cssGlobalVariable[1][1] = `scaleX(${1 / scaleY})`; + cssGlobalVariable[2][1] = `scaleX(${1 - (scaleY - scaleX) / 2})`; } cssGlobalVariable.forEach((data) => { @@ -94,47 +102,35 @@ export default { body { .keep-ratio { transform: var(--keep-ratio); - transition: all .15s linear; - - &[origin] { - transform-origin: attr(origin); - } - - &-left { - transform-origin: left; - } - - &-right { - transform-origin: right; - } + } - &-bottom { - transform-origin: bottom; - } + .reverse-ratio { + transform: var(--reverse-scale); + } - &-top { - transform-origin: top; - } + .middle-ratio { + transform: var(--middle-scale); } - .reverse-scale { - transform: var(--reverse-scale); + .keep-ratio, + .reverse-ratio, + .middle-ratio { transition: all .15s linear; - &-left { + &[origin="left"] { transform-origin: left; } - &-right { + &[origin="right"] { transform-origin: right; } - &-bottom { - transform-origin: bottom; + &[origin="top"] { + transform-origin: top; } - &-top { - transform-origin: top; + &[origin="bottom"] { + transform-origin: bottom; } } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue index a9da0db4..d6bad9c8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue @@ -1,5 +1,5 @@