You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.5 KiB

9 months ago
  1. export default {
  2. props: {
  3. // 绑定的值
  4. value: {
  5. type: [String, Number, Boolean],
  6. default: uni.$u.props.radioGroup.value
  7. },
  8. // 是否禁用全部radio
  9. disabled: {
  10. type: Boolean,
  11. default: uni.$u.props.radioGroup.disabled
  12. },
  13. // 形状,circle-圆形,square-方形
  14. shape: {
  15. type: String,
  16. default: uni.$u.props.radioGroup.shape
  17. },
  18. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  19. activeColor: {
  20. type: String,
  21. default: uni.$u.props.radioGroup.activeColor
  22. },
  23. // 未选中的颜色
  24. inactiveColor: {
  25. type: String,
  26. default: uni.$u.props.radioGroup.inactiveColor
  27. },
  28. // 标识符
  29. name: {
  30. type: String,
  31. default: uni.$u.props.radioGroup.name
  32. },
  33. // 整个组件的尺寸,默认px
  34. size: {
  35. type: [String, Number],
  36. default: uni.$u.props.radioGroup.size
  37. },
  38. // 布局方式,row-横向,column-纵向
  39. placement: {
  40. type: String,
  41. default: uni.$u.props.radioGroup.placement
  42. },
  43. // label的文本
  44. label: {
  45. type: [String],
  46. default: uni.$u.props.radioGroup.label
  47. },
  48. // label的颜色 (默认 '#303133' )
  49. labelColor: {
  50. type: [String],
  51. default: uni.$u.props.radioGroup.labelColor
  52. },
  53. // label的字体大小,px单位
  54. labelSize: {
  55. type: [String, Number],
  56. default: uni.$u.props.radioGroup.labelSize
  57. },
  58. // 是否禁止点击文本操作checkbox(默认 false )
  59. labelDisabled: {
  60. type: Boolean,
  61. default: uni.$u.props.radioGroup.labelDisabled
  62. },
  63. // 图标颜色
  64. iconColor: {
  65. type: String,
  66. default: uni.$u.props.radioGroup.iconColor
  67. },
  68. // 图标的大小,单位px
  69. iconSize: {
  70. type: [String, Number],
  71. default: uni.$u.props.radioGroup.iconSize
  72. },
  73. // 竖向配列时,是否显示下划线
  74. borderBottom: {
  75. type: Boolean,
  76. default: uni.$u.props.radioGroup.borderBottom
  77. },
  78. // 图标与文字的对齐方式
  79. iconPlacement: {
  80. type: String,
  81. default: uni.$u.props.radio.iconPlacement
  82. }
  83. }
  84. }