保誠-保戶業務員媒合平台
tomasysh
2025-01-02 4efb98f2b554b76270b12837db7a7f724e2ede89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { ElementUIComponent } from './component'
 
interface Option {
  value: string,
  excluded?: boolean
}
 
interface Options {
  [threshold: number]: string | Option
}
 
export type RateColors = Options
export type RateIconClasses = Options
 
/** 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
 
  /** Colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color */
  colors: string[] | RateColors
 
  /** Color of unselected icons */
  voidColor: string
 
  /** Color of unselected read-only icons */
  disabledVoidColor: string
 
  /** Class names of icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding class name */
  iconClasses: string[] | RateIconClasses
 
  /** 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
}