ep-craft 0.1.41 → 0.2.0

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 (251) hide show
  1. package/dist/components/input-number/EpInputNumber.vue.js +62 -63
  2. package/dist/components/input-number/input-number.d.ts +5 -0
  3. package/dist/components/input-number/input-number.js +6 -6
  4. package/dist/components/select/index.d.ts +6 -3
  5. package/dist/components/select/select.d.ts +1 -0
  6. package/dist/components/select/select.js +3 -3
  7. package/dist/components/select/select.vue.d.ts +3 -1
  8. package/dist/components/select/select.vue.js +9 -9
  9. package/dist/components/select/select2.vue.js +73 -75
  10. package/dist/components/select-v2/src/defaults.d.ts +1 -0
  11. package/dist/components/select-v2/src/defaults.js +1 -1
  12. package/dist/components/select-v2/src/select.vue.d.ts +3 -1
  13. package/dist/components/select-v2/src/select.vue.js +21 -21
  14. package/dist/components/select-v2/src/select2.vue.js +27 -29
  15. package/dist/components/tree-select/src/tree-select.vue.d.ts +2 -0
  16. package/dist-ai/components/affix.json +152 -0
  17. package/dist-ai/components/affix.md +73 -0
  18. package/dist-ai/components/alert.json +186 -0
  19. package/dist-ai/components/alert.md +89 -0
  20. package/dist-ai/components/anchor-link.json +102 -0
  21. package/dist-ai/components/anchor-link.md +67 -0
  22. package/dist-ai/components/anchor.json +179 -0
  23. package/dist-ai/components/anchor.md +87 -0
  24. package/dist-ai/components/aside.json +87 -0
  25. package/dist-ai/components/aside.md +63 -0
  26. package/dist-ai/components/autocomplete.json +613 -0
  27. package/dist-ai/components/autocomplete.md +140 -0
  28. package/dist-ai/components/avatar.json +163 -0
  29. package/dist-ai/components/avatar.md +83 -0
  30. package/dist-ai/components/backtop.json +118 -0
  31. package/dist-ai/components/backtop.md +66 -0
  32. package/dist-ai/components/badge.json +186 -0
  33. package/dist-ai/components/badge.md +85 -0
  34. package/dist-ai/components/breadcrumb-item.json +97 -0
  35. package/dist-ai/components/breadcrumb-item.md +65 -0
  36. package/dist-ai/components/breadcrumb.json +100 -0
  37. package/dist-ai/components/breadcrumb.md +68 -0
  38. package/dist-ai/components/button-group.json +123 -0
  39. package/dist-ai/components/button-group.md +65 -0
  40. package/dist-ai/components/button.json +349 -0
  41. package/dist-ai/components/button.md +124 -0
  42. package/dist-ai/components/calendar.json +148 -0
  43. package/dist-ai/components/calendar.md +74 -0
  44. package/dist-ai/components/card.json +168 -0
  45. package/dist-ai/components/card.md +87 -0
  46. package/dist-ai/components/carousel-item.json +99 -0
  47. package/dist-ai/components/carousel-item.md +68 -0
  48. package/dist-ai/components/carousel.json +245 -0
  49. package/dist-ai/components/carousel.md +97 -0
  50. package/dist-ai/components/cascader-panel.json +242 -0
  51. package/dist-ai/components/cascader-panel.md +108 -0
  52. package/dist-ai/components/cascader.json +531 -0
  53. package/dist-ai/components/cascader.md +146 -0
  54. package/dist-ai/components/check-tag.json +133 -0
  55. package/dist-ai/components/check-tag.md +72 -0
  56. package/dist-ai/components/checkbox-button.json +279 -0
  57. package/dist-ai/components/checkbox-button.md +94 -0
  58. package/dist-ai/components/checkbox-group.json +236 -0
  59. package/dist-ai/components/checkbox-group.md +90 -0
  60. package/dist-ai/components/checkbox.json +278 -0
  61. package/dist-ai/components/checkbox.md +91 -0
  62. package/dist-ai/components/col.json +168 -0
  63. package/dist-ai/components/col.md +72 -0
  64. package/dist-ai/components/collapse-item.json +133 -0
  65. package/dist-ai/components/collapse-item.md +75 -0
  66. package/dist-ai/components/collapse-transition.json +75 -0
  67. package/dist-ai/components/collapse-transition.md +59 -0
  68. package/dist-ai/components/collapse.json +129 -0
  69. package/dist-ai/components/collapse.md +76 -0
  70. package/dist-ai/components/color-picker.json +280 -0
  71. package/dist-ai/components/color-picker.md +85 -0
  72. package/dist-ai/components/config-provider.json +222 -0
  73. package/dist-ai/components/config-provider.md +76 -0
  74. package/dist-ai/components/container.json +95 -0
  75. package/dist-ai/components/container.md +70 -0
  76. package/dist-ai/components/countdown.json +155 -0
  77. package/dist-ai/components/countdown.md +73 -0
  78. package/dist-ai/components/date-picker-panel.json +346 -0
  79. package/dist-ai/components/date-picker-panel.md +91 -0
  80. package/dist-ai/components/date-picker.json +574 -0
  81. package/dist-ai/components/date-picker.md +153 -0
  82. package/dist-ai/components/descriptions-item.json +175 -0
  83. package/dist-ai/components/descriptions-item.md +73 -0
  84. package/dist-ai/components/descriptions.json +171 -0
  85. package/dist-ai/components/descriptions.md +78 -0
  86. package/dist-ai/components/dialog.json +403 -0
  87. package/dist-ai/components/dialog.md +108 -0
  88. package/dist-ai/components/divider.json +102 -0
  89. package/dist-ai/components/divider.md +59 -0
  90. package/dist-ai/components/drawer.json +468 -0
  91. package/dist-ai/components/drawer.md +115 -0
  92. package/dist-ai/components/dropdown-item.json +156 -0
  93. package/dist-ai/components/dropdown-item.md +84 -0
  94. package/dist-ai/components/dropdown-menu.json +92 -0
  95. package/dist-ai/components/dropdown-menu.md +70 -0
  96. package/dist-ai/components/dropdown.json +374 -0
  97. package/dist-ai/components/dropdown.md +108 -0
  98. package/dist-ai/components/empty.json +116 -0
  99. package/dist-ai/components/empty.md +62 -0
  100. package/dist-ai/components/footer.json +86 -0
  101. package/dist-ai/components/footer.md +63 -0
  102. package/dist-ai/components/form-item.json +242 -0
  103. package/dist-ai/components/form-item.md +93 -0
  104. package/dist-ai/components/form.json +277 -0
  105. package/dist-ai/components/form.md +117 -0
  106. package/dist-ai/components/header.json +86 -0
  107. package/dist-ai/components/header.md +63 -0
  108. package/dist-ai/components/icon.json +95 -0
  109. package/dist-ai/components/icon.md +61 -0
  110. package/dist-ai/components/image-viewer.json +235 -0
  111. package/dist-ai/components/image-viewer.md +88 -0
  112. package/dist-ai/components/image.json +299 -0
  113. package/dist-ai/components/image.md +96 -0
  114. package/dist-ai/components/input-number.json +370 -0
  115. package/dist-ai/components/input-number.md +127 -0
  116. package/dist-ai/components/input.json +545 -0
  117. package/dist-ai/components/input.md +166 -0
  118. package/dist-ai/components/link.json +162 -0
  119. package/dist-ai/components/link.md +72 -0
  120. package/dist-ai/components/main.json +77 -0
  121. package/dist-ai/components/main.md +58 -0
  122. package/dist-ai/components/mention.json +598 -0
  123. package/dist-ai/components/mention.md +136 -0
  124. package/dist-ai/components/menu-item-group.json +101 -0
  125. package/dist-ai/components/menu-item-group.md +69 -0
  126. package/dist-ai/components/menu-item.json +131 -0
  127. package/dist-ai/components/menu-item.md +76 -0
  128. package/dist-ai/components/menu.json +314 -0
  129. package/dist-ai/components/menu.md +104 -0
  130. package/dist-ai/components/option-group.json +113 -0
  131. package/dist-ai/components/option-group.md +79 -0
  132. package/dist-ai/components/option.json +122 -0
  133. package/dist-ai/components/option.md +70 -0
  134. package/dist-ai/components/page-header.json +131 -0
  135. package/dist-ai/components/page-header.md +70 -0
  136. package/dist-ai/components/pagination.json +325 -0
  137. package/dist-ai/components/pagination.md +115 -0
  138. package/dist-ai/components/popconfirm.json +240 -0
  139. package/dist-ai/components/popconfirm.md +89 -0
  140. package/dist-ai/components/popover.json +351 -0
  141. package/dist-ai/components/popover.md +99 -0
  142. package/dist-ai/components/popper.json +93 -0
  143. package/dist-ai/components/popper.md +66 -0
  144. package/dist-ai/components/progress.json +219 -0
  145. package/dist-ai/components/progress.md +74 -0
  146. package/dist-ai/components/radio-button.json +142 -0
  147. package/dist-ai/components/radio-button.md +76 -0
  148. package/dist-ai/components/radio-group.json +219 -0
  149. package/dist-ai/components/radio-group.md +88 -0
  150. package/dist-ai/components/radio.json +177 -0
  151. package/dist-ai/components/radio.md +83 -0
  152. package/dist-ai/components/rate.json +286 -0
  153. package/dist-ai/components/rate.md +83 -0
  154. package/dist-ai/components/result.json +118 -0
  155. package/dist-ai/components/result.md +66 -0
  156. package/dist-ai/components/row.json +115 -0
  157. package/dist-ai/components/row.md +68 -0
  158. package/dist-ai/components/scrollbar.json +280 -0
  159. package/dist-ai/components/scrollbar.md +89 -0
  160. package/dist-ai/components/segmented.json +204 -0
  161. package/dist-ai/components/segmented.md +81 -0
  162. package/dist-ai/components/select-v2.json +729 -0
  163. package/dist-ai/components/select-v2.md +193 -0
  164. package/dist-ai/components/select.json +697 -0
  165. package/dist-ai/components/select.md +188 -0
  166. package/dist-ai/components/skeleton-item.json +80 -0
  167. package/dist-ai/components/skeleton-item.md +57 -0
  168. package/dist-ai/components/skeleton.json +134 -0
  169. package/dist-ai/components/skeleton.md +65 -0
  170. package/dist-ai/components/slider.json +326 -0
  171. package/dist-ai/components/slider.md +88 -0
  172. package/dist-ai/components/space.json +178 -0
  173. package/dist-ai/components/space.md +73 -0
  174. package/dist-ai/components/statistic.json +167 -0
  175. package/dist-ai/components/statistic.md +66 -0
  176. package/dist-ai/components/step.json +124 -0
  177. package/dist-ai/components/step.md +69 -0
  178. package/dist-ai/components/steps.json +157 -0
  179. package/dist-ai/components/steps.md +79 -0
  180. package/dist-ai/components/sub-menu.json +211 -0
  181. package/dist-ai/components/sub-menu.md +88 -0
  182. package/dist-ai/components/switch.json +292 -0
  183. package/dist-ai/components/switch.md +88 -0
  184. package/dist-ai/components/tab-pane.json +137 -0
  185. package/dist-ai/components/tab-pane.md +72 -0
  186. package/dist-ai/components/table-column.json +368 -0
  187. package/dist-ai/components/table-column.md +103 -0
  188. package/dist-ai/components/table-v2.json +486 -0
  189. package/dist-ai/components/table-v2.md +123 -0
  190. package/dist-ai/components/table.json +734 -0
  191. package/dist-ai/components/table.md +205 -0
  192. package/dist-ai/components/tabs.json +231 -0
  193. package/dist-ai/components/tabs.md +127 -0
  194. package/dist-ai/components/tag.json +205 -0
  195. package/dist-ai/components/tag.md +105 -0
  196. package/dist-ai/components/text.json +143 -0
  197. package/dist-ai/components/text.md +66 -0
  198. package/dist-ai/components/time-picker.json +555 -0
  199. package/dist-ai/components/time-picker.md +123 -0
  200. package/dist-ai/components/time-select.json +321 -0
  201. package/dist-ai/components/time-select.md +93 -0
  202. package/dist-ai/components/timeline-item.json +186 -0
  203. package/dist-ai/components/timeline-item.md +78 -0
  204. package/dist-ai/components/timeline.json +99 -0
  205. package/dist-ai/components/timeline.md +65 -0
  206. package/dist-ai/components/tooltip.json +599 -0
  207. package/dist-ai/components/tooltip.md +137 -0
  208. package/dist-ai/components/tour-step.json +219 -0
  209. package/dist-ai/components/tour-step.md +88 -0
  210. package/dist-ai/components/tour.json +258 -0
  211. package/dist-ai/components/tour.md +96 -0
  212. package/dist-ai/components/transfer.json +275 -0
  213. package/dist-ai/components/transfer.md +95 -0
  214. package/dist-ai/components/tree-select.json +945 -0
  215. package/dist-ai/components/tree-select.md +181 -0
  216. package/dist-ai/components/tree-v2.json +395 -0
  217. package/dist-ai/components/tree-v2.md +113 -0
  218. package/dist-ai/components/tree.json +485 -0
  219. package/dist-ai/components/tree.md +131 -0
  220. package/dist-ai/components/upload.json +382 -0
  221. package/dist-ai/components/upload.md +130 -0
  222. package/dist-ai/components/watermark.json +157 -0
  223. package/dist-ai/components/watermark.md +66 -0
  224. package/dist-ai/directives/click-outside.json +61 -0
  225. package/dist-ai/directives/click-outside.md +50 -0
  226. package/dist-ai/directives/infinite-scroll.json +83 -0
  227. package/dist-ai/directives/infinite-scroll.md +62 -0
  228. package/dist-ai/directives/loading.json +89 -0
  229. package/dist-ai/directives/loading.md +69 -0
  230. package/dist-ai/directives/mousewheel.json +54 -0
  231. package/dist-ai/directives/mousewheel.md +48 -0
  232. package/dist-ai/directives/repeat-click.json +68 -0
  233. package/dist-ai/directives/repeat-click.md +49 -0
  234. package/dist-ai/directives/trap-focus.json +46 -0
  235. package/dist-ai/directives/trap-focus.md +46 -0
  236. package/dist-ai/icons.json +1 -0
  237. package/dist-ai/index.json +1 -0
  238. package/dist-ai/llms.txt +170 -0
  239. package/dist-ai/manifest.json +26590 -0
  240. package/dist-ai/schema/manifest.schema.json +793 -0
  241. package/dist-ai/services/infinite-scroll.json +80 -0
  242. package/dist-ai/services/infinite-scroll.md +71 -0
  243. package/dist-ai/services/loading.json +108 -0
  244. package/dist-ai/services/loading.md +58 -0
  245. package/dist-ai/services/message-box.json +159 -0
  246. package/dist-ai/services/message-box.md +78 -0
  247. package/dist-ai/services/message.json +137 -0
  248. package/dist-ai/services/message.md +72 -0
  249. package/dist-ai/services/notification.json +136 -0
  250. package/dist-ai/services/notification.md +73 -0
  251. package/package.json +12 -2
@@ -0,0 +1,219 @@
1
+ {
2
+ "entry": {
3
+ "category": "feedback",
4
+ "events": [],
5
+ "exampleOmittedReason": null,
6
+ "examples": [
7
+ {
8
+ "code": "<script setup lang=\"ts\">\nimport { EpProgress } from 'ep-craft'\n</script>\n\n<template>\n <ep-progress :percentage=\"60\" />\n</template>",
9
+ "id": "progress-1",
10
+ "language": "vue",
11
+ "title": "进度条"
12
+ }
13
+ ],
14
+ "exposes": [],
15
+ "hot": false,
16
+ "id": "component:progress",
17
+ "keywords": {
18
+ "en": [
19
+ "progress",
20
+ "bar",
21
+ "feedback"
22
+ ],
23
+ "zh": [
24
+ "进度条",
25
+ "反馈"
26
+ ]
27
+ },
28
+ "kind": "component",
29
+ "name": "EpProgress",
30
+ "nonUseCases": [
31
+ "无需用户感知状态变化时",
32
+ "需要完整业务弹窗流程时优先使用 Dialog"
33
+ ],
34
+ "props": [
35
+ {
36
+ "alias": null,
37
+ "defaultText": "line",
38
+ "description": "进度条类型",
39
+ "hasDefault": true,
40
+ "name": "type",
41
+ "required": false,
42
+ "type": "'line' | 'circle' | 'dashboard'"
43
+ },
44
+ {
45
+ "alias": null,
46
+ "defaultText": "0",
47
+ "description": "百分比",
48
+ "hasDefault": true,
49
+ "name": "percentage",
50
+ "required": false,
51
+ "type": "number"
52
+ },
53
+ {
54
+ "alias": null,
55
+ "defaultText": null,
56
+ "description": "进度条当前状态",
57
+ "hasDefault": true,
58
+ "name": "status",
59
+ "required": false,
60
+ "type": "'success' | 'exception' | 'warning'"
61
+ },
62
+ {
63
+ "alias": null,
64
+ "defaultText": "false",
65
+ "description": "是否为动画进度条",
66
+ "hasDefault": false,
67
+ "name": "indeterminate",
68
+ "required": false,
69
+ "type": "boolean"
70
+ },
71
+ {
72
+ "alias": null,
73
+ "defaultText": "3",
74
+ "description": "控制动画进度条速度",
75
+ "hasDefault": true,
76
+ "name": "duration",
77
+ "required": false,
78
+ "type": "number"
79
+ },
80
+ {
81
+ "alias": null,
82
+ "defaultText": "6",
83
+ "description": "进度条的宽度",
84
+ "hasDefault": true,
85
+ "name": "strokeWidth",
86
+ "required": false,
87
+ "type": "number"
88
+ },
89
+ {
90
+ "alias": null,
91
+ "defaultText": null,
92
+ "description": "",
93
+ "hasDefault": true,
94
+ "name": "strokeLinecap",
95
+ "required": false,
96
+ "type": "unknown"
97
+ },
98
+ {
99
+ "alias": null,
100
+ "defaultText": "false",
101
+ "description": "进度条显示文字内置在进度条内",
102
+ "hasDefault": false,
103
+ "name": "textInside",
104
+ "required": false,
105
+ "type": "boolean"
106
+ },
107
+ {
108
+ "alias": null,
109
+ "defaultText": "126",
110
+ "description": "环形进度条画布宽度",
111
+ "hasDefault": true,
112
+ "name": "width",
113
+ "required": false,
114
+ "type": "number"
115
+ },
116
+ {
117
+ "alias": null,
118
+ "defaultText": "true",
119
+ "description": "是否显示进度条文字内容",
120
+ "hasDefault": true,
121
+ "name": "showText",
122
+ "required": false,
123
+ "type": "boolean"
124
+ },
125
+ {
126
+ "alias": null,
127
+ "defaultText": null,
128
+ "description": "进度条背景色",
129
+ "hasDefault": true,
130
+ "name": "color",
131
+ "required": false,
132
+ "type": "string | Function | Array"
133
+ },
134
+ {
135
+ "alias": null,
136
+ "defaultText": "false",
137
+ "description": "在进度条上增加条纹",
138
+ "hasDefault": false,
139
+ "name": "striped",
140
+ "required": false,
141
+ "type": "boolean"
142
+ },
143
+ {
144
+ "alias": null,
145
+ "defaultText": "false",
146
+ "description": "让进度条上的条纹流动起来",
147
+ "hasDefault": false,
148
+ "name": "stripedFlow",
149
+ "required": false,
150
+ "type": "boolean"
151
+ },
152
+ {
153
+ "alias": null,
154
+ "defaultText": null,
155
+ "description": "指定进度条文字内容",
156
+ "hasDefault": true,
157
+ "name": "format",
158
+ "required": false,
159
+ "type": "(percentage: number) => string"
160
+ }
161
+ ],
162
+ "related": [
163
+ "EpLoading"
164
+ ],
165
+ "relations": {
166
+ "children": [],
167
+ "combos": [],
168
+ "parents": [],
169
+ "requiredChildren": []
170
+ },
171
+ "slots": [
172
+ {
173
+ "description": "自定义内容",
174
+ "name": "default"
175
+ }
176
+ ],
177
+ "slug": "progress",
178
+ "summary": "进度条,状态与结果反馈",
179
+ "tag": "ep-progress",
180
+ "useCases": [
181
+ "展示进度条并向用户传达状态",
182
+ "在操作前后提供即时反馈"
183
+ ],
184
+ "variants": [
185
+ {
186
+ "dimension": "type",
187
+ "values": [
188
+ "line",
189
+ "circle",
190
+ "dashboard"
191
+ ],
192
+ "when": "通过 type 选择进度条类型"
193
+ },
194
+ {
195
+ "dimension": "state",
196
+ "values": [
197
+ "indeterminate"
198
+ ],
199
+ "when": "通过布尔属性切换禁用、加载或选中状态"
200
+ }
201
+ ],
202
+ "visual": {
203
+ "cssVars": [
204
+ "--el-color-success",
205
+ "--el-color-warning",
206
+ "--el-color-danger",
207
+ "--el-font-size-base"
208
+ ],
209
+ "density": "中等",
210
+ "shape": "行内或块级提示",
211
+ "slotContent": [
212
+ "default:自定义内容"
213
+ ]
214
+ }
215
+ },
216
+ "generatedAt": "2026-11-03T03:09:12.050Z",
217
+ "libraryVersion": "0.2.0",
218
+ "schemaVersion": 1
219
+ }
@@ -0,0 +1,74 @@
1
+ # EpProgress
2
+
3
+ `ep-progress` · feedback(反馈) · `component:progress`
4
+
5
+ ## 摘要
6
+
7
+ 进度条,状态与结果反馈
8
+
9
+ ## 适用场景
10
+
11
+ - 适用:展示进度条并向用户传达状态
12
+ - 适用:在操作前后提供即时反馈
13
+ - 不适用:无需用户感知状态变化时
14
+ - 不适用:需要完整业务弹窗流程时优先使用 Dialog
15
+
16
+ ## 关键词
17
+
18
+ - 中文:进度条、反馈
19
+ - English: progress, bar, feedback
20
+
21
+ ## 变体
22
+
23
+ - type: line/circle/dashboard(通过 type 选择进度条类型)
24
+ - state: indeterminate(通过布尔属性切换禁用、加载或选中状态)
25
+
26
+ ## Props
27
+
28
+ - type ('line' | 'circle' | 'dashboard',默认 line):进度条类型
29
+ - percentage (number,默认 0):百分比
30
+ - status ('success' | 'exception' | 'warning',默认 见文档):进度条当前状态
31
+ - indeterminate (boolean):是否为动画进度条
32
+ - duration (number,默认 3):控制动画进度条速度
33
+ - strokeWidth (number,默认 6):进度条的宽度
34
+ - strokeLinecap (unknown,默认 见文档)
35
+ - textInside (boolean):进度条显示文字内置在进度条内
36
+ - width (number,默认 126):环形进度条画布宽度
37
+ - showText (boolean,默认 true):是否显示进度条文字内容
38
+ - color (string | Function | Array,默认 见文档):进度条背景色
39
+ - striped (boolean):在进度条上增加条纹
40
+ - stripedFlow (boolean):让进度条上的条纹流动起来
41
+ - format ((percentage: number) => string,默认 见文档):指定进度条文字内容
42
+
43
+ ## Slots
44
+
45
+ - default:自定义内容
46
+
47
+ ## 视觉提示
48
+
49
+ - 形状:行内或块级提示
50
+ - 密度:中等
51
+ - 插槽内容:default:自定义内容
52
+ - CSS 变量:--el-color-success、--el-color-warning、--el-color-danger、--el-font-size-base
53
+
54
+ ## 示例
55
+
56
+ ### 进度条
57
+
58
+ ```vue
59
+ <script setup lang="ts">
60
+ import { EpProgress } from 'ep-craft'
61
+ </script>
62
+
63
+ <template>
64
+ <ep-progress :percentage="60" />
65
+ </template>
66
+ ```
67
+
68
+ ## 相关条目
69
+
70
+ - EpLoading
71
+
72
+ ---
73
+
74
+ ep-craft 0.2.0
@@ -0,0 +1,142 @@
1
+ {
2
+ "entry": {
3
+ "category": "form",
4
+ "events": [],
5
+ "exampleOmittedReason": null,
6
+ "examples": [
7
+ {
8
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { EpRadioButton, EpRadioGroup } from 'ep-craft'\n\nconst value = ref('day')\n</script>\n\n<template>\n <ep-radio-group v-model=\"value\">\n <ep-radio-button value=\"day\">日</ep-radio-button>\n <ep-radio-button value=\"week\">周</ep-radio-button>\n <ep-radio-button value=\"month\">月</ep-radio-button>\n </ep-radio-group>\n</template>",
9
+ "id": "radio-button-1",
10
+ "language": "vue",
11
+ "title": "单选按钮"
12
+ }
13
+ ],
14
+ "exposes": [],
15
+ "hot": false,
16
+ "id": "component:radio-button",
17
+ "keywords": {
18
+ "en": [
19
+ "radio-button",
20
+ "radio",
21
+ "button",
22
+ "form"
23
+ ],
24
+ "zh": [
25
+ "单选按钮",
26
+ "表单"
27
+ ]
28
+ },
29
+ "kind": "component",
30
+ "name": "EpRadioButton",
31
+ "nonUseCases": [
32
+ "仅展示静态文本或只读数据时"
33
+ ],
34
+ "props": [
35
+ {
36
+ "alias": null,
37
+ "defaultText": null,
38
+ "description": "",
39
+ "hasDefault": true,
40
+ "name": "modelValue",
41
+ "required": false,
42
+ "type": "unknown"
43
+ },
44
+ {
45
+ "alias": null,
46
+ "defaultText": null,
47
+ "description": "",
48
+ "hasDefault": false,
49
+ "name": "size",
50
+ "required": false,
51
+ "type": "unknown"
52
+ },
53
+ {
54
+ "alias": null,
55
+ "defaultText": "false",
56
+ "description": "是否禁用",
57
+ "hasDefault": true,
58
+ "name": "disabled",
59
+ "required": false,
60
+ "type": "boolean"
61
+ },
62
+ {
63
+ "alias": null,
64
+ "defaultText": null,
65
+ "description": "单选框的值(已废弃)",
66
+ "hasDefault": true,
67
+ "name": "label",
68
+ "required": false,
69
+ "type": "string | number | boolean"
70
+ },
71
+ {
72
+ "alias": null,
73
+ "defaultText": null,
74
+ "description": "单选框的值",
75
+ "hasDefault": true,
76
+ "name": "value",
77
+ "required": false,
78
+ "type": "string | number | boolean"
79
+ },
80
+ {
81
+ "alias": null,
82
+ "defaultText": null,
83
+ "description": "原生 name 属性",
84
+ "hasDefault": true,
85
+ "name": "name",
86
+ "required": false,
87
+ "type": "string"
88
+ }
89
+ ],
90
+ "related": [
91
+ "EpRadioGroup"
92
+ ],
93
+ "relations": {
94
+ "children": [],
95
+ "combos": [
96
+ "EpRadioGroup + EpRadioButton"
97
+ ],
98
+ "parents": [
99
+ "EpRadioGroup"
100
+ ],
101
+ "requiredChildren": []
102
+ },
103
+ "slots": [
104
+ {
105
+ "description": "自定义默认内容",
106
+ "name": "default"
107
+ }
108
+ ],
109
+ "slug": "radio-button",
110
+ "summary": "单选按钮,表单数据录入控件",
111
+ "tag": "ep-radio-button",
112
+ "useCases": [
113
+ "表单中收集或编辑单选按钮数据",
114
+ "与 EpForm、EpFormItem 组合完成校验"
115
+ ],
116
+ "variants": [
117
+ {
118
+ "dimension": "state",
119
+ "values": [
120
+ "disabled"
121
+ ],
122
+ "when": "通过布尔属性切换禁用、加载或选中状态"
123
+ }
124
+ ],
125
+ "visual": {
126
+ "cssVars": [
127
+ "--el-border-color",
128
+ "--el-border-radius-base",
129
+ "--el-color-primary",
130
+ "--el-font-size-base"
131
+ ],
132
+ "density": "中等",
133
+ "shape": "矩形输入框",
134
+ "slotContent": [
135
+ "default:自定义默认内容"
136
+ ]
137
+ }
138
+ },
139
+ "generatedAt": "2026-11-03T03:09:12.050Z",
140
+ "libraryVersion": "0.2.0",
141
+ "schemaVersion": 1
142
+ }
@@ -0,0 +1,76 @@
1
+ # EpRadioButton
2
+
3
+ `ep-radio-button` · form(表单) · `component:radio-button`
4
+
5
+ ## 摘要
6
+
7
+ 单选按钮,表单数据录入控件
8
+
9
+ ## 适用场景
10
+
11
+ - 适用:表单中收集或编辑单选按钮数据
12
+ - 适用:与 EpForm、EpFormItem 组合完成校验
13
+ - 不适用:仅展示静态文本或只读数据时
14
+
15
+ ## 关键词
16
+
17
+ - 中文:单选按钮、表单
18
+ - English: radio-button, radio, button, form
19
+
20
+ ## 变体
21
+
22
+ - state: disabled(通过布尔属性切换禁用、加载或选中状态)
23
+
24
+ ## Props
25
+
26
+ - modelValue (unknown,默认 见文档)
27
+ - size (unknown)
28
+ - disabled (boolean,默认 false):是否禁用
29
+ - label (string | number | boolean,默认 见文档):单选框的值(已废弃)
30
+ - value (string | number | boolean,默认 见文档):单选框的值
31
+ - name (string,默认 见文档):原生 name 属性
32
+
33
+ ## Slots
34
+
35
+ - default:自定义默认内容
36
+
37
+ ## 关系
38
+
39
+ - 父级:EpRadioGroup
40
+ - 常用组合:EpRadioGroup + EpRadioButton
41
+
42
+ ## 视觉提示
43
+
44
+ - 形状:矩形输入框
45
+ - 密度:中等
46
+ - 插槽内容:default:自定义默认内容
47
+ - CSS 变量:--el-border-color、--el-border-radius-base、--el-color-primary、--el-font-size-base
48
+
49
+ ## 示例
50
+
51
+ ### 单选按钮
52
+
53
+ ```vue
54
+ <script setup lang="ts">
55
+ import { ref } from 'vue'
56
+ import { EpRadioButton, EpRadioGroup } from 'ep-craft'
57
+
58
+ const value = ref('day')
59
+ </script>
60
+
61
+ <template>
62
+ <ep-radio-group v-model="value">
63
+ <ep-radio-button value="day">日</ep-radio-button>
64
+ <ep-radio-button value="week">周</ep-radio-button>
65
+ <ep-radio-button value="month">月</ep-radio-button>
66
+ </ep-radio-group>
67
+ </template>
68
+ ```
69
+
70
+ ## 相关条目
71
+
72
+ - EpRadioGroup
73
+
74
+ ---
75
+
76
+ ep-craft 0.2.0