lanyun-rate

介绍

该组件一般用于满意度调查,星型评分的场景。

使用方法

import "../../components/lanyun-rate/lanyun-rate.stml";

例子

<lanyun-rate @change="handleChange" :value="value" :count="6" size="20px" active-icon="../../components/lanyun-rate/asset/aixin-full.png" inactive-icon="../../components/lanyun-rate/asset/aixin.png" />

props 属性

参数 说明 类型 默认值
value 当前分值, 必填 number -
count 图标个数, 选填 number 5
size 图标大小, 选填 string 24px
active-icon 选中的图标路径,选填 string ../../components/lanyun-rate/asset/star-full.png
inactive-icon 未选中的图标路径,选填 string ../../components/lanyun-rate/asset/star.png

events 事件

事件名 说明 回调参数
change 当前分值变化时触发的事件 value:当前分值
是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24