rate.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { ElementUIComponent } from './component'
  2. /** Rate Component */
  3. export declare class ElRate extends ElementUIComponent {
  4. /** Max rating score */
  5. max: number
  6. /** Whether Rate is read-only */
  7. disabled: boolean
  8. /** Whether picking half start is allowed */
  9. allowHalf: boolean
  10. /** Threshold value between low and medium level. The value itself will be included in low level */
  11. lowThreshold: number
  12. /** Threshold value between medium and high level. The value itself will be included in high level */
  13. highThreshold: number
  14. /** Color array for icons. It should have 3 elements, each of which corresponds with a score level */
  15. colors: string[]
  16. /** Color of unselected icons */
  17. voidColor: string
  18. /** Color of unselected read-only icons */
  19. disabledVoidColor: string
  20. /** Array of class names of icons. It should have 3 elements, each of which corresponds with a score level */
  21. iconClasses: string[]
  22. /** Class name of unselected icons */
  23. voidIconClass: string
  24. /** Class name of unselected read-only icons */
  25. disabledVoidIconClass: string
  26. /** Whether to display texts */
  27. showText: boolean
  28. /** Whether to display current score. show-score and show-text cannot be true at the same time */
  29. showScore: boolean
  30. /** Color of texts */
  31. textColor: string
  32. /** Text array */
  33. texts: string[]
  34. /** Text template when the component is read-only */
  35. scoreTemplate: string
  36. }