Skip to content

Commit

Permalink
chore: update description
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed Sep 25, 2024
1 parent e42bed4 commit 6eb510a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rate/rate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
allowHalf | Boolean | false | 是否允许半选 | N
clearable | Boolean | false | 是否允许清除 | N
clearable | Boolean | false | 是否允许清除评分,如果允许,重新点击当前评分清除 | N
color | String / Array | '#ED7B2F' | 评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']。TS 类型:`string \| Array<string>` | N
count | Number | 5 | 评分的数量 | N
disabled | Boolean | undefined | 是否禁用评分 | N
Expand Down
2 changes: 1 addition & 1 deletion src/rate/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface TdRateProps {
*/
allowHalf?: boolean;
/**
* 是否允许清除
* 是否允许清除评分,如果允许,重新点击当前评分清除
* @default false
*/
clearable?: boolean;
Expand Down

0 comments on commit 6eb510a

Please sign in to comment.