18 Star 32 Fork 2

LCUI 开发 / lc-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rate.md 901 Bytes
一键复制 编辑 原始数据 按行查看 历史
liu 提交于 2019-08-03 16:55 . feat: add rate

Rate

Rate component can be used to show evaluation, and it provide a quick rating operation on something.

Basic

The simplest usage.

<rate />

Readonly

Set the disabled attribute to disable mouse interaction.

<rate value="2" disabled="disabled" />

Other star count

The default number of stars is 5, you can set it with the count attribute.

<rate count="10" />

Other icon

Replace the default star to other iconfont.

<rate icon="heart" void-icon="heart-outline" />
<w class="mb-2" />
<rate icon="emoticon-happy" void-icon="emoticon-neutral-outline" />

Other character

Replace the default star to other character like alphabet, digit or even Chinese word.

<rate character="A" />
<w class="mb-2" />
<rate character="好" />
C
1
https://gitee.com/lcui-dev/lc-design.git
git@gitee.com:lcui-dev/lc-design.git
lcui-dev
lc-design
lc-design
develop

搜索帮助