diff --git a/docs/component/rate.md b/docs/component/rate.md index 6277b890..44cd4ad1 100644 --- a/docs/component/rate.md +++ b/docs/component/rate.md @@ -11,7 +11,6 @@ ``` ```typescript - const value = ref(1) function changeValue({ value }) { @@ -60,6 +59,14 @@ function changeValue({ value }) { ``` +## 允许半选 + +设置 `allowHalf` 属性。 + +```html + +``` + ## Attributes | 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 | @@ -75,6 +82,7 @@ function changeValue({ value }) { | active-icon | 选中的图标类名 | string | - | wd-icon-star-on | - | | disabled | 是否禁用 | boolean | - | false | - | | disabled-color | 禁用的图标颜色 | string | - | linear-gradient(315deg, rgba(177,177,177,1) 0%,rgba(199,199,199,1) 100%) | - | +| allow-half | 是否允许半选 | boolean | - | false | $LOWEST_VERSION$ | ## Events diff --git a/src/pages/rate/Index.vue b/src/pages/rate/Index.vue index 940157c9..6cf6fcca 100644 --- a/src/pages/rate/Index.vue +++ b/src/pages/rate/Index.vue @@ -1,7 +1,7 @@