From 72141cf43e7c6b63cf43cab49d6aa01ac0c24eb1 Mon Sep 17 00:00:00 2001 From: mehaotian <490272692@qq.com> Date: Mon, 6 Nov 2023 14:26:30 +0800 Subject: [PATCH] =?UTF-8?q?update:=20uni-collapse=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8B=BC=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/uni-collapse-item/uni-collapse-item.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/uni-collapse-item/uni-collapse-item.vue b/components/uni-collapse-item/uni-collapse-item.vue index e79e80a1..8f628c35 100644 --- a/components/uni-collapse-item/uni-collapse-item.vue +++ b/components/uni-collapse-item/uni-collapse-item.vue @@ -56,15 +56,15 @@ // this.openCollapse(this.open) }, methods: { - // 开启或关闭折叠面板 + // 开启或关闭折叠面板 openCollapse(open: boolean) { if (this.disabled) return // 关闭其他已打开 $dispatch(this, 'UniCollapse', 'cloceAll') this.is_open = open - this.oepnOrClose(open) + this.openOrClose(open) }, - oepnOrClose(open: boolean) { + openOrClose(open: boolean) { const boxNode = this.boxNode?.style!; const contentNode = this.contentNode?.style!; let hide = open ? 'flex' : 'none'; @@ -91,7 +91,7 @@ background-color: #fff; } - + .down_arrow { width: 8px; @@ -115,12 +115,12 @@ font-size: 14px; font-weight: 400; } - + .open--active { /* background-color: #f0f0f0; */ color: #bbb; } - + .is-disabled { color: #999; } @@ -137,4 +137,4 @@ transform: translateY(-100%); opacity: 0; } - \ No newline at end of file + -- GitLab