@baishuyun/ui-base 6.7.3 → 6.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/Amap/AmapCircle/index.js +1 -1
  2. package/dist/Amap/AmapMarker/index.js +1 -1
  3. package/dist/Amap/AmapMarkerCluster/index.js +1 -1
  4. package/dist/Amap/AmapProvider/index.js +4 -4
  5. package/dist/Amap/{AmapProvider-DSjQj2oA.js → AmapProvider-Cwi6WOe0.js} +1 -1
  6. package/dist/Amap/hooks/index.js +1 -1
  7. package/dist/Amap/index.js +4 -4
  8. package/dist/Calendar/{Calendar-C2iO_3cX.js → Calendar-DnQrN8KB.js} +2 -2
  9. package/dist/Calendar/context/index.js +1 -1
  10. package/dist/Calendar/index.js +5 -5
  11. package/dist/Calendar/subcomponents/AllDaySection/index.js +1 -1
  12. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
  13. package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
  14. package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
  15. package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
  16. package/dist/Calendar/utils/index.js +1 -1
  17. package/dist/Calendar/utils/layout/index.js +1 -1
  18. package/dist/Calendar/utils/theme/index.js +1 -1
  19. package/dist/Card/index.js +1 -1
  20. package/dist/CheckBox/index.js +1 -1
  21. package/dist/ColorPicker/{ColorPicker-BtTIb9tX.js → ColorPicker-CL57cSDG.js} +2 -1
  22. package/dist/ColorPicker/index.js +4 -4
  23. package/dist/ConfigProvider/index.js +3 -3
  24. package/dist/DatePicker/{DatePicker-BMTK0Phw.js → DatePicker-C0XbZmrZ.js} +2 -2
  25. package/dist/DatePicker/{DatePickerPanel-BH_Z4e88.js → DatePickerPanel-BEn16cat.js} +3 -3
  26. package/dist/DatePicker/index.js +4 -4
  27. package/dist/DatePicker/style/index.js +1 -1
  28. package/dist/DropDown/{DropDown-CdTjlySd.js → DropDown-yDH9V_9Y.js} +2 -2
  29. package/dist/DropDown/index.js +5 -5
  30. package/dist/DropDown/style/index.js +1 -1
  31. package/dist/Editor/{Buttons-BcP66z6E.js → Buttons-BivKInBV.js} +144 -124
  32. package/dist/Editor/ToolbarPlugin/Buttons/index.js +7 -7
  33. package/dist/Editor/constants/index.js +1 -1
  34. package/dist/Editor/index.js +274 -164
  35. package/dist/Gantt/GanttChart/index.js +7 -7
  36. package/dist/Gantt/{GanttChart-BYzMKcZ2.js → GanttChart-CDw1IQ4F.js} +2 -2
  37. package/dist/Gantt/GanttTable/index.js +5 -5
  38. package/dist/Gantt/{GanttTable-DqJziqML.js → GanttTable-xbXD_PWI.js} +1 -1
  39. package/dist/Gantt/GanttToolBar/index.js +6 -6
  40. package/dist/Gantt/{GanttToolBar-C50n7PD9.js → GanttToolBar-BTeTsR6Z.js} +2 -2
  41. package/dist/Gantt/index.js +9 -9
  42. package/dist/Gantt/utils/index.js +1 -1
  43. package/dist/Gantt/utils/theme/index.js +1 -1
  44. package/dist/Icon/index.js +1 -1
  45. package/dist/InputTag/InputTag-hzCCJQ1z.js +144 -0
  46. package/dist/InputTag/index.js +4 -2
  47. package/dist/Loading/Loading-DiywS7ex.js +19 -0
  48. package/dist/Loading/index.js +4 -2
  49. package/dist/Modal/index.js +1 -1
  50. package/dist/NotFoundContent/index.js +1 -1
  51. package/dist/Radio/{Radio-DSoZotcs.js → Radio-CX9cUqb7.js} +12 -12
  52. package/dist/Radio/index.js +2 -2
  53. package/dist/ScrollBar/index.js +1 -1
  54. package/dist/Segmented/index.js +1 -1
  55. package/dist/Select/{Select-DujgkkUp.js → Select-D6EK7whJ.js} +195 -194
  56. package/dist/Select/{SelectInputSearch-Bikrj3FI.js → SelectInputSearch-COUzreau.js} +1 -1
  57. package/dist/Select/index.js +7 -7
  58. package/dist/Table/{Table-k9wdWm6V.js → Table-yQXQEk6d.js} +1 -1
  59. package/dist/Table/hooks/index.js +1 -1
  60. package/dist/Table/index.js +4 -4
  61. package/dist/Table/style/index.js +1 -1
  62. package/dist/Table/utils/index.js +1 -1
  63. package/dist/Tabs/Tabs-BiKW70CL.js +398 -0
  64. package/dist/Tabs/index.js +4 -2
  65. package/dist/Tooltip/index.js +1 -1
  66. package/dist/Tree/index.js +3 -3
  67. package/dist/Tree/utils/index.js +1 -1
  68. package/dist/components/DropDown/interface.d.ts +167 -169
  69. package/dist/components/Editor/LengthBadge.d.ts +6 -0
  70. package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +1 -1
  71. package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +5 -1
  72. package/dist/components/Editor/ToolbarPlugin/context/EditorToolbarThemeContext.d.ts +6 -0
  73. package/dist/components/Editor/ToolbarPlugin/interface.d.ts +30 -32
  74. package/dist/components/Editor/index.d.ts +1 -1
  75. package/dist/components/Editor/interface.d.ts +118 -60
  76. package/dist/components/Editor/plugins/MaxLengthPlugin.d.ts +7 -0
  77. package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -0
  78. package/dist/components/Editor/utils/textLength.d.ts +4 -0
  79. package/dist/components/InputTag/interface.d.ts +32 -32
  80. package/dist/components/Radio/interface.d.ts +95 -97
  81. package/dist/components/Tabs/TabSelect/interface.d.ts +23 -25
  82. package/dist/components/Tabs/interface.d.ts +58 -60
  83. package/dist/components/Tree/types/node.d.ts +19 -19
  84. package/dist/components/Tree/types/tree.d.ts +81 -83
  85. package/dist/components/index.d.ts +2 -0
  86. package/dist/index.js +18 -18
  87. package/dist/locale/index.d.ts +1 -1
  88. package/dist/locale/lang/en-US.json.d.ts +177 -166
  89. package/dist/locale/lang/zh-CN.json.d.ts +177 -166
  90. package/dist/locale/lang/zh-TW.json.d.ts +177 -166
  91. package/dist/style.css +1 -1
  92. package/dist/vendors/{ConfigProvider-C3Uwzinj.js → ConfigProvider-DxrZpdIb.js} +23 -1
  93. package/dist/vendors/{LocaleContext-B1HuhJc-.js → LocaleContext-Dcw6C1LX.js} +11 -0
  94. package/dist/vendors/{Tree-DQkpLl6f.js → Tree-DXmVRDn0.js} +8 -7
  95. package/dist/vendors/{useLocale-BYtF5pxt.js → useLocale-BKZX2_zw.js} +1 -1
  96. package/dist/vendors/{version-Dkos5Cha.js → version-4HBYLKDL.js} +1 -1
  97. package/dist/vite-env.d.ts +13 -13
  98. package/dist/vitest-matchers.d.ts +0 -1
  99. package/package.json +8 -8
  100. package/dist/InputTag/InputTag-LnUqz0Hz.js +0 -143
  101. package/dist/Loading/Loading-CcTZogVx.js +0 -15
  102. package/dist/Tabs/Tabs-Ctgg45Ox.js +0 -410
@@ -1,32 +1,32 @@
1
- type InputTagProps = {
2
- /**
3
- * 标签值,对象数组格式
4
- */
5
- value?: string[];
6
- /**
7
- * 标签值变化回调
8
- */
9
- onChange?: (value: string[]) => void;
10
- /**
11
- * 默认标签值
12
- */
13
- defaultValue?: string[];
14
- /**
15
- * 是否启用点击高亮功能
16
- */
17
- enableActive?: boolean;
18
- /**
19
- * 当前激活的标签索引(受控模式)
20
- */
21
- activeIndex?: number;
22
- /**
23
- * 默认激活的标签索引(非受控模式)
24
- */
25
- defaultActiveIndex?: number;
26
- /**
27
- * 激活标签索引变化回调
28
- */
29
- onActiveIndexChange?: (index: number, text: string) => void;
30
- };
31
-
32
- export type { InputTagProps };
1
+ type InputTagProps = {
2
+ /**
3
+ * 标签值,对象数组格式
4
+ */
5
+ value?: string[];
6
+ /**
7
+ * 标签值变化回调
8
+ */
9
+ onChange?: (value: string[]) => void;
10
+ /**
11
+ * 默认标签值
12
+ */
13
+ defaultValue?: string[];
14
+ /**
15
+ * 是否启用点击高亮功能
16
+ */
17
+ enableActive?: boolean;
18
+ /**
19
+ * 当前激活的标签索引(受控模式)
20
+ */
21
+ activeIndex?: number;
22
+ /**
23
+ * 默认激活的标签索引(非受控模式)
24
+ */
25
+ defaultActiveIndex?: number;
26
+ /**
27
+ * 激活标签索引变化回调
28
+ */
29
+ onActiveIndexChange?: (index: number, text: string) => void;
30
+ };
31
+
32
+ export type { InputTagProps };
@@ -1,98 +1,96 @@
1
1
  import { Layout } from './constants';
2
-
3
-
4
- export interface RadioProps {
5
- /**
6
- * @description 是否选中
7
- */
8
- checked?: boolean;
9
-
10
- /**
11
- * @description 默认是否选中
12
- */
13
- defaultChecked?: boolean;
14
-
15
- /**
16
- * @description 是否禁用
17
- */
18
- disabled?: boolean;
19
-
20
- /**
21
- * @description 值改变时的回调
22
- */
23
- onChange?: (checked: boolean) => void;
24
-
25
- /**
26
- * @description 自定义类名
27
- */
28
- className?: string;
29
-
30
- /**
31
- * @description 自定义样式
32
- */
33
- style?: React.CSSProperties;
34
-
35
- /**
36
- * @description 子元素
37
- */
38
- children?: React.ReactNode;
39
-
40
- /**
41
- * @description label 的位置,默认在右侧
42
- * @default 'right'
43
- */
44
- labelPosition?: 'left' | 'right';
45
-
46
- /**
47
- * @description radio 的值,用于 radio group
48
- */
49
- value?: string | number;
50
- }
51
-
52
- export interface RadioGroupProps {
53
- /**
54
- * @description 选中的值
55
- */
56
- value?: string | number;
57
-
58
- /**
59
- * @description 默认选中的值
60
- */
61
- defaultValue?: string | number;
62
-
63
- /**
64
- * @description 值改变时的回调
65
- */
66
- onChange?: (value: string | number) => void;
67
-
68
- /**
69
- * @description 值反选的回调
70
- */
71
- onDeselect?: (value: string | number) => void;
72
-
73
- /**
74
- * @description 是否禁用
75
- */
76
- disabled?: boolean;
77
-
78
- /**
79
- * @description 布局方式
80
- * @default 'none'
81
- */
82
- layout?: Layout;
83
-
84
- /**
85
- * @description Radio 子元素
86
- */
87
- children?: React.ReactNode;
88
-
89
- /**
90
- * @description 自定义类名
91
- */
92
- className?: string;
93
-
94
- /**
95
- * @description 自定义样式
96
- */
97
- style?: React.CSSProperties;
98
- }
2
+ export interface RadioProps {
3
+ /**
4
+ * @description 是否选中
5
+ */
6
+ checked?: boolean;
7
+
8
+ /**
9
+ * @description 默认是否选中
10
+ */
11
+ defaultChecked?: boolean;
12
+
13
+ /**
14
+ * @description 是否禁用
15
+ */
16
+ disabled?: boolean;
17
+
18
+ /**
19
+ * @description 值改变时的回调
20
+ */
21
+ onChange?: (checked: boolean) => void;
22
+
23
+ /**
24
+ * @description 自定义类名
25
+ */
26
+ className?: string;
27
+
28
+ /**
29
+ * @description 自定义样式
30
+ */
31
+ style?: React.CSSProperties;
32
+
33
+ /**
34
+ * @description 子元素
35
+ */
36
+ children?: React.ReactNode;
37
+
38
+ /**
39
+ * @description label 的位置,默认在右侧
40
+ * @default 'right'
41
+ */
42
+ labelPosition?: 'left' | 'right';
43
+
44
+ /**
45
+ * @description radio 的值,用于 radio group
46
+ */
47
+ value?: string | number;
48
+ }
49
+
50
+ export interface RadioGroupProps {
51
+ /**
52
+ * @description 选中的值
53
+ */
54
+ value?: string | number;
55
+
56
+ /**
57
+ * @description 默认选中的值
58
+ */
59
+ defaultValue?: string | number;
60
+
61
+ /**
62
+ * @description 值改变时的回调
63
+ */
64
+ onChange?: (value: string | number) => void;
65
+
66
+ /**
67
+ * @description 值反选的回调
68
+ */
69
+ onDeselect?: (value: string | number) => void;
70
+
71
+ /**
72
+ * @description 是否禁用
73
+ */
74
+ disabled?: boolean;
75
+
76
+ /**
77
+ * @description 布局方式
78
+ * @default 'none'
79
+ */
80
+ layout?: Layout;
81
+
82
+ /**
83
+ * @description Radio 子元素
84
+ */
85
+ children?: React.ReactNode;
86
+
87
+ /**
88
+ * @description 自定义类名
89
+ */
90
+ className?: string;
91
+
92
+ /**
93
+ * @description 自定义样式
94
+ */
95
+ style?: React.CSSProperties;
96
+ }
@@ -1,26 +1,24 @@
1
1
  import { TabType } from '../constants';
2
-
3
-
4
- type TabSelectProps = {
5
- /**
6
- * @description 下拉选中的 tab 类型
7
- */
8
- value?: TabType;
9
-
10
- /**
11
- * @description 切换 tab 类型的回调
12
- */
13
- onChange?: (value: TabType) => void;
14
-
15
- /**
16
- * @description 初始化选中 tab 类型,如果没有设置 value,则默认选中第一个
17
- */
18
- defaultValue?: TabType;
19
-
20
- /**
21
- * @description 主题色
22
- */
23
- color?: string;
24
- };
25
-
26
- export type { TabSelectProps };
2
+ type TabSelectProps = {
3
+ /**
4
+ * @description 下拉选中的 tab 类型
5
+ */
6
+ value?: TabType;
7
+
8
+ /**
9
+ * @description 切换 tab 类型的回调
10
+ */
11
+ onChange?: (value: TabType) => void;
12
+
13
+ /**
14
+ * @description 初始化选中 tab 类型,如果没有设置 value,则默认选中第一个
15
+ */
16
+ defaultValue?: TabType;
17
+
18
+ /**
19
+ * @description 主题色
20
+ */
21
+ color?: string;
22
+ };
23
+
24
+ export type { TabSelectProps };
@@ -1,61 +1,59 @@
1
1
  import { TabType } from './constants';
2
-
3
-
4
- interface TabsProps {
5
- items?: {
6
- /**
7
- * @description 页签的唯一标识
8
- */
9
- key: string;
10
- /**
11
- * @description 页签的标签
12
- */
13
- label: React.ReactNode;
14
- /**
15
- * @description 页签的内容
16
- */
17
- children?: React.ReactNode;
18
- }[];
19
-
20
- /**
21
- * @description 当前激活的页签的唯一标识
22
- */
23
- activeKey?: string;
24
-
25
- /**
26
- * @description 初始化选中面板的 key,如果没有设置 activeKey,则默认选中第一个
27
- */
28
- defaultActiveKey?: string;
29
-
30
- /**
31
- * @description 切换页签的回调
32
- */
33
- onChange?: (key: string) => void;
34
-
35
- /**
36
- * @description 主题色
37
- */
38
- color?: string;
39
-
40
- /**
41
- * @description 页签的基本样式,可选 line、card 、 filled-card、 badge-card 类型
42
- */
43
- type?: TabType;
44
-
45
- /**
46
- * 禁止卡片交互效果
47
- */
48
- disabled?: boolean;
49
-
50
- /**
51
- * @description 自定义样式类
52
- */
53
- className?: string;
54
-
55
- /**
56
- * @description 自定义样式
57
- */
58
- style?: React.CSSProperties;
59
- }
60
-
61
- export type { TabsProps };
2
+ interface TabsProps {
3
+ items?: {
4
+ /**
5
+ * @description 页签的唯一标识
6
+ */
7
+ key: string;
8
+ /**
9
+ * @description 页签的标签
10
+ */
11
+ label: React.ReactNode;
12
+ /**
13
+ * @description 页签的内容
14
+ */
15
+ children?: React.ReactNode;
16
+ }[];
17
+
18
+ /**
19
+ * @description 当前激活的页签的唯一标识
20
+ */
21
+ activeKey?: string;
22
+
23
+ /**
24
+ * @description 初始化选中面板的 key,如果没有设置 activeKey,则默认选中第一个
25
+ */
26
+ defaultActiveKey?: string;
27
+
28
+ /**
29
+ * @description 切换页签的回调
30
+ */
31
+ onChange?: (key: string) => void;
32
+
33
+ /**
34
+ * @description 主题色
35
+ */
36
+ color?: string;
37
+
38
+ /**
39
+ * @description 页签的基本样式,可选 line、card 、 filled-card、 badge-card 类型
40
+ */
41
+ type?: TabType;
42
+
43
+ /**
44
+ * 禁止卡片交互效果
45
+ */
46
+ disabled?: boolean;
47
+
48
+ /**
49
+ * @description 自定义样式类
50
+ */
51
+ className?: string;
52
+
53
+ /**
54
+ * @description 自定义样式
55
+ */
56
+ style?: React.CSSProperties;
57
+ }
58
+
59
+ export type { TabsProps };
@@ -1,19 +1,19 @@
1
- type TreeNodeDefine = {
2
- [key: string]: any;
3
- icon?: React.ReactNode | ((node: TreeNodeDefine) => React.ReactNode);
4
- /**
5
- * @description 节点是否可被选中
6
- * @description 如果设置为 `false` 点击该节点不会有任何的交互和事件响应(但是如果节点有 children,会自动展开 children)
7
- * @default true
8
- */
9
- checkable?: boolean;
10
- /**
11
- * @description 节点是否被禁用
12
- * @description 如果设置为 `true`,节点仍会渲染灰色 checkbox/radio,但点击不会触发选中/取消选中
13
- * @description 与 `checkable: false` 不同——后者会隐藏勾选控件
14
- * @default false
15
- */
16
- disabled?: boolean;
17
- };
18
-
19
- export type { TreeNodeDefine };
1
+ type TreeNodeDefine = {
2
+ [key: string]: any;
3
+ icon?: React.ReactNode | ((node: TreeNodeDefine) => React.ReactNode);
4
+ /**
5
+ * @description 节点是否可被选中
6
+ * @description 如果设置为 `false` 点击该节点不会有任何的交互和事件响应(但是如果节点有 children,会自动展开 children)
7
+ * @default true
8
+ */
9
+ checkable?: boolean;
10
+ /**
11
+ * @description 节点是否被禁用
12
+ * @description 如果设置为 `true`,节点仍会渲染灰色 checkbox/radio,但点击不会触发选中/取消选中
13
+ * @description 与 `checkable: false` 不同——后者会隐藏勾选控件
14
+ * @default false
15
+ */
16
+ disabled?: boolean;
17
+ };
18
+
19
+ export type { TreeNodeDefine };
@@ -1,84 +1,82 @@
1
1
  import { TreeNodeDefine } from './node';
2
-
3
-
4
- export type CheckType = 'radio' | 'checkbox' | 'default';
5
-
6
- export type TreeProps = {
7
- data: TreeNodeDefine[];
8
- /**
9
- * @description 搜索值 (用于高亮显示)
10
- */
11
- searchValue?: string;
12
-
13
- /**
14
- * @description 字段名
15
- */
16
- fieldNames?: {
17
- title: string;
18
- value: string;
19
- children: string;
20
- };
21
-
22
- /**
23
- * @description 选中的节点 (受控)
24
- */
25
- selectedKeys?: (string | number)[];
26
-
27
- /**
28
- * @description 默认选中的节点 (非受控)
29
- */
30
- defaultSelectedKeys?: (string | number)[];
31
-
32
- /**
33
- * @description 展开的节点keys (受控)
34
- */
35
- expandedKeys?: (string | number)[];
36
-
37
- /**
38
- * @description 默认展开的节点keys (非受控)
39
- */
40
- defaultExpandedKeys?: (string | number)[];
41
-
42
- /**
43
- * @description 展开/收起节点时的回调
44
- */
45
- onExpand?: (expandedKeys: (string | number)[]) => void;
46
-
47
- /**
48
- * @description 选中节点回调
49
- */
50
- onSelect?: (value: string | number, node?: TreeNodeDefine) => void;
51
-
52
- /**
53
- * @description 取消选中节点回调
54
- */
55
- onDeSelect?: (value: string | number) => void;
56
-
57
- /**
58
- * @description 全局节点图标渲染函数
59
- */
60
- icon?: (node: TreeNodeDefine) => React.ReactNode;
61
-
62
- /**
63
- * @description 全局下拉箭头图标渲染函数
64
- */
65
- switcherIcon?: (expanded: boolean, node: TreeNodeDefine) => React.ReactNode;
66
-
67
- /**
68
- * @description 父节点是否可以被选中(如果设置为 true, 则所有节点的展开/折叠必须点击箭头按钮才能正常操作)
69
- */
70
- parentCheckable?: boolean;
71
-
72
- /**
73
- * @description 树形节点的选择样式
74
- * @description 如果设置为 `radio`,则只能单选,如果设置为 `checkbox`,则可以多选,如果设置为 `default`,则节点遵循默认行为
75
- * @default default
76
- */
77
- checkType?: CheckType;
78
-
79
- /**
80
- * @description 是否显示展开/收起节点时的箭头按钮
81
- * @default true
82
- */
83
- showSwitcher?: boolean;
84
- };
2
+ export type CheckType = 'radio' | 'checkbox' | 'default';
3
+
4
+ export type TreeProps = {
5
+ data: TreeNodeDefine[];
6
+ /**
7
+ * @description 搜索值 (用于高亮显示)
8
+ */
9
+ searchValue?: string;
10
+
11
+ /**
12
+ * @description 字段名
13
+ */
14
+ fieldNames?: {
15
+ title: string;
16
+ value: string;
17
+ children: string;
18
+ };
19
+
20
+ /**
21
+ * @description 选中的节点 (受控)
22
+ */
23
+ selectedKeys?: (string | number)[];
24
+
25
+ /**
26
+ * @description 默认选中的节点 (非受控)
27
+ */
28
+ defaultSelectedKeys?: (string | number)[];
29
+
30
+ /**
31
+ * @description 展开的节点keys (受控)
32
+ */
33
+ expandedKeys?: (string | number)[];
34
+
35
+ /**
36
+ * @description 默认展开的节点keys (非受控)
37
+ */
38
+ defaultExpandedKeys?: (string | number)[];
39
+
40
+ /**
41
+ * @description 展开/收起节点时的回调
42
+ */
43
+ onExpand?: (expandedKeys: (string | number)[]) => void;
44
+
45
+ /**
46
+ * @description 选中节点回调
47
+ */
48
+ onSelect?: (value: string | number, node?: TreeNodeDefine) => void;
49
+
50
+ /**
51
+ * @description 取消选中节点回调
52
+ */
53
+ onDeSelect?: (value: string | number) => void;
54
+
55
+ /**
56
+ * @description 全局节点图标渲染函数
57
+ */
58
+ icon?: (node: TreeNodeDefine) => React.ReactNode;
59
+
60
+ /**
61
+ * @description 全局下拉箭头图标渲染函数
62
+ */
63
+ switcherIcon?: (expanded: boolean, node: TreeNodeDefine) => React.ReactNode;
64
+
65
+ /**
66
+ * @description 父节点是否可以被选中(如果设置为 true, 则所有节点的展开/折叠必须点击箭头按钮才能正常操作)
67
+ */
68
+ parentCheckable?: boolean;
69
+
70
+ /**
71
+ * @description 树形节点的选择样式
72
+ * @description 如果设置为 `radio`,则只能单选,如果设置为 `checkbox`,则可以多选,如果设置为 `default`,则节点遵循默认行为
73
+ * @default default
74
+ */
75
+ checkType?: CheckType;
76
+
77
+ /**
78
+ * @description 是否显示展开/收起节点时的箭头按钮
79
+ * @default true
80
+ */
81
+ showSwitcher?: boolean;
82
+ };
@@ -14,6 +14,8 @@ export type { TooltipProps, TooltipTrigger, TooltipWidthMode, VirtualReference }
14
14
  export { Select } from './Select';
15
15
  export { Tree } from './Tree';
16
16
  export { default as Checkbox } from './CheckBox';
17
+ export { default as Radio } from './Radio';
18
+ /** @deprecated 拼写错误别名,请改用 `Radio` */
17
19
  export { default as Ratio } from './Radio';
18
20
  export { default as Tabs } from './Tabs';
19
21
  export { default as DropDown } from './DropDown';