合同小程序前端代码仓库
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.

69 lines
1.2 KiB

  1. export default {
  2. /** 是否允许取消选中 */
  3. allowUncheck: Boolean,
  4. /** 是否选中 */
  5. checked: {
  6. type: Boolean,
  7. default: null,
  8. },
  9. modelValue: {
  10. type: Boolean,
  11. default: null,
  12. },
  13. /** 是否选中,非受控属性 */
  14. defaultChecked: Boolean,
  15. /** 是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled */
  16. disabled: {
  17. type: Boolean,
  18. default: false,
  19. },
  20. /** 主文案 */
  21. label: {
  22. type: String,
  23. },
  24. /** 唯一名称 */
  25. name: {
  26. type: [String, Number],
  27. default: null,
  28. },
  29. /** 单选按钮的值 */
  30. value: {
  31. type: [String, Number, Boolean],//as PropType<TdRadioProps['value']>,
  32. default: null,
  33. },
  34. checkedColor: {
  35. type: String,
  36. default: null
  37. },
  38. iconBgColor: {
  39. type: String,
  40. default: null
  41. },
  42. iconBorderColor: {
  43. type: String,
  44. default: null
  45. },
  46. iconDisabledColor: {
  47. type: String,
  48. default: null
  49. },
  50. iconDisabledBgColor: {
  51. type: String,
  52. default: null
  53. },
  54. icon: {
  55. type: String,
  56. default: 'circle'
  57. }, //?: 'circle' | 'line' | 'dot';
  58. size: {
  59. type: String,
  60. default: 'medium'
  61. }, //?: 'small' | 'medium' | 'large';
  62. iconSize: {
  63. type: String,
  64. defalut: null
  65. },
  66. fontSize: {
  67. type: String,
  68. defalut: null
  69. },
  70. }