props.js 2.7 KB

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