=
zhangwei
2025-03-07 b934f9f9a59e84a1af40ff139418a7d30dd68402
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface RadioProps {
  /**
   * checkbox的名称
   */
  name?: string | number
  /**
   * 形状,square为方形,circle为圆型
   * @default "square"
   */
  shape?: 'square' | 'circle'
  /**
   * 是否禁用
   * @default false
   */
  disabled?: boolean
  /**
   * 是否禁止点击提示语选中复选框
   */
  labelDisabled?: string | boolean
  /**
   * 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
   */
  activeColor?: string
  /**
   * 未选中的颜色
   */
  inactiveColor?: string
  /**
   * 图标的大小,单位px
   */
  iconSize?: string | number
  /**
   * label的字体大小,px单位
   */
  labelSize?: string | number
  /**
   * label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
   */
  label?: string | number
  /**
   * 整体的大小
   */
  size?: string | number
  /**
   * 图标颜色
   */
  iconColor?: string
  /**
   * label的颜色
   */
  labelColor?: string
  /**
   * 某个`radio`状态发生变化时触发(选中状态)
   * @param name 通过`props`传递的`name`值
   */
  onChange?: (name: string) => any
}
 
declare interface RadioSlots {
  /**
   * 自定义修改label内容
   */
  ['default']?: () => any
}
 
declare interface _Radio {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      RadioProps
    $slots: RadioSlots
  }
}
 
export declare const Radio: _Radio