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.

71 lines
2.2 KiB

2 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // radio的名称
  6. name: {
  7. type: [String, Number, Boolean],
  8. default: () => defProps.radio.name
  9. },
  10. // 形状,square为方形,circle为圆型
  11. shape: {
  12. type: String,
  13. default: () => defProps.radio.shape
  14. },
  15. // 是否禁用
  16. disabled: {
  17. type: [String, Boolean],
  18. default: () => defProps.radio.disabled
  19. },
  20. // 是否禁止点击提示语选中单选框
  21. labelDisabled: {
  22. type: [String, Boolean],
  23. default: () => defProps.radio.labelDisabled
  24. },
  25. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  26. activeColor: {
  27. type: String,
  28. default: () => defProps.radio.activeColor
  29. },
  30. // 未选中的颜色
  31. inactiveColor: {
  32. type: String,
  33. default: () => defProps.radio.inactiveColor
  34. },
  35. // 图标的大小,单位px
  36. iconSize: {
  37. type: [String, Number],
  38. default: () => defProps.radio.iconSize
  39. },
  40. // label的字体大小,px单位
  41. labelSize: {
  42. type: [String, Number],
  43. default: () => defProps.radio.labelSize
  44. },
  45. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  46. label: {
  47. type: [String, Number],
  48. default: () => defProps.radio.label
  49. },
  50. // 整体的大小
  51. size: {
  52. type: [String, Number],
  53. default: () => defProps.radio.size
  54. },
  55. // 图标颜色
  56. color: {
  57. type: String,
  58. default: () => defProps.radio.color
  59. },
  60. // label的颜色
  61. labelColor: {
  62. type: String,
  63. default: () => defProps.radio.labelColor
  64. },
  65. // 图标颜色
  66. iconColor: {
  67. type: String,
  68. default: () => defProps.radio.iconColor
  69. }
  70. }
  71. })