Skip to content

[rate] rate组件可否增加分数自定义选项?目前只能按照5星5分来算,存在5星10分的场景。 #4616

Open

Description

@asyncface

选择框架

@tdesign/uniapp

这个功能解决了什么问题

目前只能按照5星5分来算,在很多应用中会存在5星10分的场景,其中半星代表1分,目前我是自己修改rate组件来实现10分评分的场景,希望官方可以加入按10分计算的选项。

你建议的方案是什么

增加参数 maxScore,默认数值为5,当存在自定义值时,按照当前自定义值/星星数量得出半星或者1星的分值,实现评分数值自定义。
示例:

Image

Activity

  1. github-actions commented on Aug 21, 2026

    @github-actions
    Contributor

    👋 @asyncface,感谢给 TDesign 提出了 issue。
    请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions