iter(g122): 评分组件支持 allowHalf 半星
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user