iter(g122): 评分组件支持 allowHalf 半星

This commit is contained in:
HIsheR
2026-10-26 14:34:03 +08:00
parent f4a51017ae
commit 72c5d24961
8 changed files with 65 additions and 23 deletions
+6
View File
@@ -956,6 +956,12 @@ button.ua-step-dot:hover {
.ua-rate-star.is-on {
color: var(--ua-color-warning); /* 选中:警示黄即星标金 */
}
.ua-rate-star.is-half {
background: linear-gradient(90deg, var(--ua-color-warning) 50%, var(--ua-color-border) 50%); /* 半星:左半亮右半灭 */
-webkit-background-clip: text;
background-clip: text;
color: transparent; /* 渐变裁进字内 */
}
.ua-rate-star:disabled {
cursor: not-allowed;
opacity: 0.45;