From 45dc934e7a9045a0ef84fdd74f9f55a5cace015c Mon Sep 17 00:00:00 2001 From: "tianhaoyun@didiglobal.com" Date: Mon, 9 Jun 2025 14:24:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20rate=E9=80=82=E9=85=8Drn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/rate/rate-item-index.ts | 4 +-- .../src/components/rate/rate-item.mpx | 30 +++++++++---------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/packages/mpx-cube-ui/src/components/rate/rate-item-index.ts b/packages/mpx-cube-ui/src/components/rate/rate-item-index.ts index 75102e7..445e7ba 100644 --- a/packages/mpx-cube-ui/src/components/rate/rate-item-index.ts +++ b/packages/mpx-cube-ui/src/components/rate/rate-item-index.ts @@ -14,8 +14,8 @@ createComponent({ computed: { rateItemClass() { return { - 'cube-rate-item_active': this.index <= this.value, - 'cube-rate-item_half_active': this.index === this.value + 0.5 + 'cube-rate-item-def-active': this.index <= this.value, + 'cube-rate-item-def-half-active': this.index === this.value + 0.5 } } } diff --git a/packages/mpx-cube-ui/src/components/rate/rate-item.mpx b/packages/mpx-cube-ui/src/components/rate/rate-item.mpx index e132d48..b16057b 100644 --- a/packages/mpx-cube-ui/src/components/rate/rate-item.mpx +++ b/packages/mpx-cube-ui/src/components/rate/rate-item.mpx @@ -1,6 +1,6 @@