props.js 2.5 KB

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