mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import { ElementUIComponent } from './component'
|
|
|
|
/** Rate Component */
|
|
export declare class ElRate extends ElementUIComponent {
|
|
/** Max rating score */
|
|
max: number
|
|
|
|
/** Whether Rate is read-only */
|
|
disabled: boolean
|
|
|
|
/** Whether picking half start is allowed */
|
|
allowHalf: boolean
|
|
|
|
/** Threshold value between low and medium level. The value itself will be included in low level */
|
|
lowThreshold: number
|
|
|
|
/** Threshold value between medium and high level. The value itself will be included in high level */
|
|
highThreshold: number
|
|
|
|
/** Color array for icons. It should have 3 elements, each of which corresponds with a score level */
|
|
colors: string[]
|
|
|
|
/** Color of unselected icons */
|
|
voidColor: string
|
|
|
|
/** Color of unselected read-only icons */
|
|
disabledVoidColor: string
|
|
|
|
/** Array of class names of icons. It should have 3 elements, each of which corresponds with a score level */
|
|
iconClasses: string[]
|
|
|
|
/** Class name of unselected icons */
|
|
voidIconClass: string
|
|
|
|
/** Class name of unselected read-only icons */
|
|
disabledVoidIconClass: string
|
|
|
|
/** Whether to display texts */
|
|
showText: boolean
|
|
|
|
/** Whether to display current score. show-score and show-text cannot be true at the same time */
|
|
showScore: boolean
|
|
|
|
/** Color of texts */
|
|
textColor: string
|
|
|
|
/** Text array */
|
|
texts: string[]
|
|
|
|
/** Text template when the component is read-only */
|
|
scoreTemplate: string
|
|
}
|