city-casereport/miniprogram_npm/tdesign-miniprogram/rate
2023-12-06 14:22:42 +08:00
..
props.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
props.js 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.js 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.json 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.wxml 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.wxs 户籍信息录入 2023-12-06 14:22:42 +08:00
rate.wxss 户籍信息录入 2023-12-06 14:22:42 +08:00
README.en-US.md 户籍信息录入 2023-12-06 14:22:42 +08:00
README.md 户籍信息录入 2023-12-06 14:22:42 +08:00
type.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
type.js 户籍信息录入 2023-12-06 14:22:42 +08:00

:: BASE_DOC ::

API

Rate Props

name type default description required
allow-half Boolean false - N
color String / Array '#ED7B2F' 0.30.0。Typescriptstring | Array<string> N
count Number 5 - N
disabled Boolean - - N
external-classes Array - ['t-class', 't-class-icon', 't-class-text'] N
gap String / Number 8 - N
icon String / Array - Typescriptstring | string[] N
show-text Boolean false - N
size String 24px - N
texts Array [] TypescriptArray<string> N
value Number 0 - N
default-value Number undefined uncontrolled property N
placement String top optionstop / bottom N
iconPrefix String undefined icon prefix N
variant String outline optionsoutline/filled N

Rate Events

name params description
change (value: number) -

CSS Variables

The component provides the following CSS variables, which can be used to customize styles.

Name Default Value Description
--td-rate-icon-scale 1.33 -
--td-rate-selected-color @warning-color -
--td-rate-text-active-color @font-gray-1 -
--td-rate-text-active-font-weight 600 -
--td-rate-text-color @font-gray-4 -
--td-rate-text-font-size @font-size-m -
--td-rate-unselected-color @bg-color-secondarycomponent -