From fbfeea3e9bf44608a53263909f6b40c0807ab7cf Mon Sep 17 00:00:00 2001 From: sakurayinfei <970412446@qq.com> Date: Wed, 3 Sep 2025 11:30:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84ORate=E7=BB=84?= =?UTF-8?q?=E4=BB=B6icon=E6=8F=92=E6=A7=BDstatus=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/rate/ORate.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/opendesign/src/rate/ORate.vue b/packages/opendesign/src/rate/ORate.vue index b49b209e..ae144a31 100644 --- a/packages/opendesign/src/rate/ORate.vue +++ b/packages/opendesign/src/rate/ORate.vue @@ -59,7 +59,7 @@ const setValue = (index: number, isTopIcon: boolean) => { // 记录图标状态 const iconStatus = computed(() => { - const statusArr = new Array(props.count).fill(''); + const statusArr: Array<'' | 'full' | 'half'> = new Array(props.count).fill(''); for (let i = 0; i < props.count; i++) { const val = hoverIndex.value === -1 ? realValue.value ?? -1 : hoverIndex.value; @@ -96,7 +96,7 @@ const showLabel = computed(() => {