fix(Rate): convert count type (#9307)

* fix(rate): convert count type

* test(Rate): add count string prop case
This commit is contained in:
Tmk
2021-08-22 19:39:26 +08:00
committed by GitHub
parent cc87259790
commit d0914f34ad
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export default defineComponent({
props.readonly || props.disabled || !props.touchable;
const list = computed<RateListItem[]>(() =>
Array(props.count)
Array(+props.count)
.fill('')
.map((_, i) =>
getRateStatus(