IconSetter

简介

用来选择图标

展示

IconSetter - 图1

setter 配置

属性名

类型

说明

type

String

选择器返回类型

可选值:

“string” | “node”

defaultValue

String | ReactNode

默认值

hasClear

Boolean

选择器是否显示清除按钮

icons

Array

自定义icon集合;默认值详见图标可选值

placeholder

String

没有值的时候的占位符

返回类型

String | ReactNode

图标可选值

  1. [
  2. 'smile',
  3. 'cry',
  4. 'success',
  5. 'warning',
  6. 'prompt',
  7. 'error',
  8. 'help',
  9. 'clock',
  10. 'success-filling',
  11. 'delete-filling',
  12. 'favorites-filling',
  13. 'add',
  14. 'minus',
  15. 'arrow-up',
  16. 'arrow-down',
  17. 'arrow-left',
  18. 'arrow-right',
  19. 'arrow-double-left',
  20. 'arrow-double-right',
  21. 'switch',
  22. 'sorting',
  23. 'descending',
  24. 'ascending',
  25. 'select',
  26. 'semi-select',
  27. 'loading',
  28. 'search',
  29. 'close',
  30. 'ellipsis',
  31. 'picture',
  32. 'calendar',
  33. 'ashbin',
  34. 'upload',
  35. 'download',
  36. 'set',
  37. 'edit',
  38. 'refresh',
  39. 'filter',
  40. 'attachment',
  41. 'account',
  42. 'email',
  43. 'atm',
  44. 'copy',
  45. 'exit',
  46. 'eye',
  47. 'eye-close',
  48. 'toggle-left',
  49. 'toggle-right',
  50. 'lock',
  51. 'unlock',
  52. 'chart-pie',
  53. 'chart-bar',
  54. 'form',
  55. 'detail',
  56. 'list',
  57. 'dashboard',
  58. ]