king-design-analyzer 2.1.9 → 2.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 (305) hide show
  1. package/components/actions.json +101 -0
  2. package/components/advancedset.json +127 -0
  3. package/components/affix.json +7 -0
  4. package/components/aksk.json +172 -0
  5. package/components/az.json +15 -2
  6. package/components/badge.json +7 -0
  7. package/components/billtypes.json +14 -2
  8. package/components/breadcrumb.json +7 -0
  9. package/components/button.json +191 -0
  10. package/components/buttonlink.json +73 -0
  11. package/components/card.json +8 -1
  12. package/components/cardcol.json +142 -0
  13. package/components/cardcols.json +121 -0
  14. package/components/cardcontent.json +15 -3
  15. package/components/cardtabs.json +172 -0
  16. package/components/carousel.json +7 -0
  17. package/components/cascader.json +520 -368
  18. package/components/checkbox.json +51 -4
  19. package/components/cidrinput.json +140 -0
  20. package/components/code.json +8 -1
  21. package/components/collapse.json +7 -0
  22. package/components/colorpicker.json +217 -0
  23. package/components/copy.json +7 -0
  24. package/components/copyhover.json +111 -0
  25. package/components/copyrow.json +124 -0
  26. package/components/datepicker.json +656 -524
  27. package/components/description.json +98 -0
  28. package/components/dialog.json +522 -455
  29. package/components/divider.json +8 -1
  30. package/components/drawer.json +571 -558
  31. package/components/dropdown.json +464 -384
  32. package/components/duration.json +125 -0
  33. package/components/editable.json +66 -0
  34. package/components/ellipsis.json +34 -1
  35. package/components/filtertablefieldsdialog.json +128 -0
  36. package/components/flex.json +151 -0
  37. package/components/form.json +131 -0
  38. package/components/formiteminput.json +214 -0
  39. package/components/formitemspinner.json +213 -0
  40. package/components/formitemswitch.json +185 -0
  41. package/components/formitemtableconfigs.json +210 -0
  42. package/components/grid.json +7 -0
  43. package/components/header.json +161 -0
  44. package/components/icon.json +13 -1
  45. package/components/icontooltip.json +19 -1
  46. package/components/input.json +188 -4
  47. package/components/instancelist.json +194 -0
  48. package/components/instancenum.json +196 -0
  49. package/components/ipinput.json +117 -0
  50. package/components/kspstatus.json +205 -0
  51. package/components/kvcode.json +120 -0
  52. package/components/layoutcontent.json +15 -3
  53. package/components/layoutlistcontent.json +148 -0
  54. package/components/layoutpermissioncontent.json +155 -0
  55. package/components/layoutstandardlist.json +275 -0
  56. package/components/layouttabs.json +168 -0
  57. package/components/lazymount.json +86 -0
  58. package/components/lazyteleport.json +118 -0
  59. package/components/menu.json +7 -0
  60. package/components/pagination.json +12 -0
  61. package/components/paginationplus.json +30 -3
  62. package/components/password.json +121 -0
  63. package/components/popover.json +457 -437
  64. package/components/projects.json +129 -0
  65. package/components/protable.json +97 -8
  66. package/components/queuevisualrange.json +110 -0
  67. package/components/radio.json +82 -2
  68. package/components/rate.json +199 -0
  69. package/components/region.json +14 -2
  70. package/components/search.json +221 -0
  71. package/components/searchinput.json +132 -0
  72. package/components/searchitems.json +215 -0
  73. package/components/searchselect.json +195 -0
  74. package/components/select.json +686 -666
  75. package/components/sidebar.json +198 -0
  76. package/components/skeleton.json +233 -0
  77. package/components/spin.json +8 -1
  78. package/components/split.json +260 -0
  79. package/components/sshkeys.json +138 -0
  80. package/components/status.json +60 -3
  81. package/components/steps.json +7 -0
  82. package/components/switch.json +8 -1
  83. package/components/table.json +18 -1
  84. package/components/tablecolumnid.json +14 -2
  85. package/components/tabs.json +12 -0
  86. package/components/timeline.json +213 -0
  87. package/components/timepicker.json +147 -3
  88. package/components/timerange.json +262 -0
  89. package/components/tip.json +7 -0
  90. package/components/tooltip.json +484 -395
  91. package/components/tour.json +418 -372
  92. package/components/transfer.json +27 -3
  93. package/components/tree.json +6 -4
  94. package/components/treeselect.json +556 -475
  95. package/components/upload.json +474 -473
  96. package/components/vdialog.json +308 -0
  97. package/components/vdrawer.json +331 -0
  98. package/components/virtuallist.json +7 -0
  99. package/dist/ast/index.d.mts +35 -1
  100. package/dist/ast/index.d.ts +35 -1
  101. package/dist/ast/index.js +4 -3
  102. package/dist/ast/index.mjs +2 -1
  103. package/dist/{chunk-DSWKLUIX.mjs → chunk-3LYQ5XFM.mjs} +1 -1
  104. package/dist/chunk-BI5TIQID.mjs +330 -0
  105. package/dist/{chunk-F26GUCGG.js → chunk-CJGGFVQJ.js} +8 -8
  106. package/dist/chunk-CR3GC4H3.js +353 -0
  107. package/dist/{chunk-NZ6TLWMD.mjs → chunk-D2SXGGTX.mjs} +28 -17
  108. package/dist/{chunk-D3Y6FGWA.js → chunk-EYKZY2F3.js} +29 -18
  109. package/dist/chunk-KF5YBEM5.js +143 -0
  110. package/dist/{chunk-H2ET6MMM.mjs → chunk-KMIDURUR.mjs} +42 -47
  111. package/dist/chunk-QC6VTSA3.mjs +117 -0
  112. package/dist/{chunk-2W6OCG2S.js → chunk-SZYVGYKK.js} +42 -48
  113. package/dist/{chunk-WYSRJVX4.js → chunk-TA3SV4SP.js} +2 -2
  114. package/dist/{chunk-OJOHB64C.mjs → chunk-XGPHQHLR.mjs} +4 -4
  115. package/dist/full/index.js +7 -6
  116. package/dist/full/index.mjs +5 -4
  117. package/dist/index.d.mts +1 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +14 -13
  120. package/dist/index.mjs +6 -5
  121. package/dist/metadata/index.d.mts +22 -2
  122. package/dist/metadata/index.d.ts +22 -2
  123. package/dist/metadata/index.js +26 -16
  124. package/dist/metadata/index.mjs +26 -15
  125. package/dist/resolve-BsLBxlBi.d.mts +24 -0
  126. package/dist/resolve-BsLBxlBi.d.ts +24 -0
  127. package/dist/runtime/index.js +4 -4
  128. package/dist/runtime/index.mjs +2 -2
  129. package/dist/shared/index.d.mts +10 -0
  130. package/dist/shared/index.d.ts +10 -0
  131. package/dist/shared/index.js +23 -0
  132. package/dist/shared/index.mjs +2 -0
  133. package/dist/static/index.js +5 -5
  134. package/dist/static/index.mjs +2 -2
  135. package/docs_for_llm/actions.doc.md +77 -0
  136. package/docs_for_llm/advancedset.doc.md +89 -0
  137. package/docs_for_llm/affix.doc.md +15 -7
  138. package/docs_for_llm/aksk.doc.md +111 -0
  139. package/docs_for_llm/az.doc.md +17 -11
  140. package/docs_for_llm/badge.doc.md +6 -5
  141. package/docs_for_llm/billtypes.doc.md +17 -11
  142. package/docs_for_llm/breadcrumb.doc.md +6 -3
  143. package/docs_for_llm/button.doc.md +34 -18
  144. package/docs_for_llm/buttonlink.doc.md +55 -0
  145. package/docs_for_llm/card.doc.md +8 -5
  146. package/docs_for_llm/cardcol.doc.md +78 -0
  147. package/docs_for_llm/cardcols.doc.md +84 -0
  148. package/docs_for_llm/cardcontent.doc.md +10 -10
  149. package/docs_for_llm/cardtabs.doc.md +106 -0
  150. package/docs_for_llm/carousel.doc.md +8 -7
  151. package/docs_for_llm/cascader.doc.md +46 -25
  152. package/docs_for_llm/checkbox.doc.md +25 -13
  153. package/docs_for_llm/cidrinput.doc.md +83 -0
  154. package/docs_for_llm/code.doc.md +22 -11
  155. package/docs_for_llm/collapse.doc.md +9 -6
  156. package/docs_for_llm/colorpicker.doc.md +104 -0
  157. package/docs_for_llm/copy.doc.md +15 -13
  158. package/docs_for_llm/copyhover.doc.md +59 -0
  159. package/docs_for_llm/copyrow.doc.md +71 -0
  160. package/docs_for_llm/datepicker.doc.md +51 -39
  161. package/docs_for_llm/description.doc.md +75 -0
  162. package/docs_for_llm/descriptions.doc.md +9 -6
  163. package/docs_for_llm/dialog.doc.md +48 -77
  164. package/docs_for_llm/divider.doc.md +9 -7
  165. package/docs_for_llm/drawer.doc.md +43 -84
  166. package/docs_for_llm/dropdown.doc.md +52 -21
  167. package/docs_for_llm/duration.doc.md +76 -0
  168. package/docs_for_llm/editable.doc.md +36 -14
  169. package/docs_for_llm/ellipsis.doc.md +10 -5
  170. package/docs_for_llm/filtertablefieldsdialog.doc.md +99 -0
  171. package/docs_for_llm/flex.doc.md +74 -0
  172. package/docs_for_llm/form.doc.md +33 -14
  173. package/docs_for_llm/formiteminput.doc.md +128 -0
  174. package/docs_for_llm/formitemspinner.doc.md +105 -0
  175. package/docs_for_llm/formitemswitch.doc.md +113 -0
  176. package/docs_for_llm/formitemtableconfigs.doc.md +95 -0
  177. package/docs_for_llm/grid.doc.md +7 -5
  178. package/docs_for_llm/header.doc.md +85 -0
  179. package/docs_for_llm/icon.doc.md +12 -8
  180. package/docs_for_llm/icontooltip.doc.md +121 -0
  181. package/docs_for_llm/input.doc.md +90 -39
  182. package/docs_for_llm/instancelist.doc.md +113 -0
  183. package/docs_for_llm/instancenum.doc.md +95 -0
  184. package/docs_for_llm/ipinput.doc.md +77 -0
  185. package/docs_for_llm/kspstatus.doc.md +82 -0
  186. package/docs_for_llm/kvcode.doc.md +76 -0
  187. package/docs_for_llm/layoutcontent.doc.md +17 -17
  188. package/docs_for_llm/layoutlistcontent.doc.md +95 -0
  189. package/docs_for_llm/layoutpermissioncontent.doc.md +84 -0
  190. package/docs_for_llm/layoutstandardlist.doc.md +120 -0
  191. package/docs_for_llm/layouttabs.doc.md +101 -0
  192. package/docs_for_llm/lazymount.doc.md +73 -0
  193. package/docs_for_llm/lazyteleport.doc.md +76 -0
  194. package/docs_for_llm/menu.doc.md +14 -11
  195. package/docs_for_llm/message.doc.md +48 -10
  196. package/docs_for_llm/pagination.doc.md +30 -17
  197. package/docs_for_llm/paginationplus.doc.md +31 -10
  198. package/docs_for_llm/password.doc.md +86 -0
  199. package/docs_for_llm/popover.doc.md +24 -55
  200. package/docs_for_llm/progress.doc.md +13 -10
  201. package/docs_for_llm/projects.doc.md +91 -0
  202. package/docs_for_llm/protable.doc.md +89 -15
  203. package/docs_for_llm/queuevisualrange.doc.md +78 -0
  204. package/docs_for_llm/radio.doc.md +23 -8
  205. package/docs_for_llm/rate.doc.md +122 -0
  206. package/docs_for_llm/region.doc.md +25 -13
  207. package/docs_for_llm/search.doc.md +120 -0
  208. package/docs_for_llm/searchinput.doc.md +111 -0
  209. package/docs_for_llm/searchitems.doc.md +116 -0
  210. package/docs_for_llm/searchselect.doc.md +126 -0
  211. package/docs_for_llm/select.doc.md +40 -55
  212. package/docs_for_llm/sidebar.doc.md +133 -0
  213. package/docs_for_llm/skeleton.doc.md +117 -0
  214. package/docs_for_llm/slider.doc.md +31 -21
  215. package/docs_for_llm/spin.doc.md +8 -5
  216. package/docs_for_llm/spinner.doc.md +28 -18
  217. package/docs_for_llm/split.doc.md +157 -0
  218. package/docs_for_llm/sshkeys.doc.md +88 -0
  219. package/docs_for_llm/status.doc.md +14 -9
  220. package/docs_for_llm/steps.doc.md +10 -7
  221. package/docs_for_llm/switch.doc.md +17 -14
  222. package/docs_for_llm/table.doc.md +118 -51
  223. package/docs_for_llm/tablecolumnid.doc.md +36 -16
  224. package/docs_for_llm/tabs.doc.md +19 -10
  225. package/docs_for_llm/tag.doc.md +19 -10
  226. package/docs_for_llm/timeline.doc.md +109 -0
  227. package/docs_for_llm/timepicker.doc.md +57 -38
  228. package/docs_for_llm/timerange.doc.md +157 -0
  229. package/docs_for_llm/tip.doc.md +20 -11
  230. package/docs_for_llm/tooltip.doc.md +55 -29
  231. package/docs_for_llm/tour.doc.md +48 -29
  232. package/docs_for_llm/transfer.doc.md +40 -29
  233. package/docs_for_llm/tree.doc.md +65 -23
  234. package/docs_for_llm/treeselect.doc.md +37 -48
  235. package/docs_for_llm/upload.doc.md +56 -32
  236. package/docs_for_llm/useCRUD.doc.md +49 -0
  237. package/docs_for_llm/useCountdown.doc.md +43 -0
  238. package/docs_for_llm/useDetail.doc.md +48 -0
  239. package/docs_for_llm/useDialog.doc.md +46 -0
  240. package/docs_for_llm/useEntity.doc.md +45 -0
  241. package/docs_for_llm/useEventListener.doc.md +44 -0
  242. package/docs_for_llm/useFalseUntilTruthy.doc.md +41 -0
  243. package/docs_for_llm/useGetCopyAuthText.doc.md +35 -0
  244. package/docs_for_llm/useGetUserPermission.doc.md +43 -0
  245. package/docs_for_llm/useGroup.doc.md +48 -0
  246. package/docs_for_llm/useIdEntities.doc.md +48 -0
  247. package/docs_for_llm/useIdEntity.doc.md +103 -0
  248. package/docs_for_llm/useInterval.doc.md +43 -0
  249. package/docs_for_llm/useLayoutStandardList.doc.md +38 -0
  250. package/docs_for_llm/useMessage.doc.md +46 -0
  251. package/docs_for_llm/useModifyCache.doc.md +37 -0
  252. package/docs_for_llm/useOpenDialog.doc.md +41 -0
  253. package/docs_for_llm/usePagination.doc.md +60 -0
  254. package/docs_for_llm/usePersist.doc.md +54 -0
  255. package/docs_for_llm/usePoll.doc.md +41 -0
  256. package/docs_for_llm/useRoutePlus.doc.md +34 -0
  257. package/docs_for_llm/useRouterPlus.doc.md +34 -0
  258. package/docs_for_llm/useSearch.doc.md +68 -0
  259. package/docs_for_llm/useShell.doc.md +43 -0
  260. package/docs_for_llm/useSkip.doc.md +41 -0
  261. package/docs_for_llm/useStorageIdEntity.doc.md +46 -0
  262. package/docs_for_llm/useStore.doc.md +34 -0
  263. package/docs_for_llm/useTable.doc.md +57 -0
  264. package/docs_for_llm/useTableGroup.doc.md +47 -0
  265. package/docs_for_llm/useTableSort.doc.md +40 -0
  266. package/docs_for_llm/useToState.doc.md +112 -0
  267. package/docs_for_llm/useUser.doc.md +38 -0
  268. package/docs_for_llm/useValidForm.doc.md +41 -0
  269. package/docs_for_llm/vdialog.doc.md +129 -0
  270. package/docs_for_llm/vdrawer.doc.md +119 -0
  271. package/docs_for_llm/virtuallist.doc.md +6 -3
  272. package/hooks/useCRUD.json +61 -0
  273. package/hooks/useCountdown.json +49 -0
  274. package/hooks/useDetail.json +67 -0
  275. package/hooks/useDialog.json +49 -0
  276. package/hooks/useEntity.json +61 -0
  277. package/hooks/useEventListener.json +61 -0
  278. package/hooks/useFalseUntilTruthy.json +43 -0
  279. package/hooks/useGetCopyAuthText.json +36 -0
  280. package/hooks/useGetUserPermission.json +55 -0
  281. package/hooks/useGroup.json +49 -0
  282. package/hooks/useIdEntities.json +61 -0
  283. package/hooks/useInterval.json +55 -0
  284. package/hooks/useLayoutStandardList.json +36 -0
  285. package/hooks/useMessage.json +73 -0
  286. package/hooks/useModifyCache.json +36 -0
  287. package/hooks/useOpenDialog.json +43 -0
  288. package/hooks/usePagination.json +49 -0
  289. package/hooks/usePersist.json +61 -0
  290. package/hooks/usePoll.json +43 -0
  291. package/hooks/useRoutePlus.json +36 -0
  292. package/hooks/useRouterPlus.json +36 -0
  293. package/hooks/useSearch.json +56 -0
  294. package/hooks/useShell.json +49 -0
  295. package/hooks/useSkip.json +43 -0
  296. package/hooks/useStorageIdEntity.json +67 -0
  297. package/hooks/useStore.json +36 -0
  298. package/hooks/useTable.json +49 -0
  299. package/hooks/useTableGroup.json +43 -0
  300. package/hooks/useTableSort.json +43 -0
  301. package/hooks/useUser.json +36 -0
  302. package/hooks/useValidForm.json +43 -0
  303. package/package.json +12 -6
  304. package/dist/chunk-HPAUCD5I.js +0 -156
  305. package/dist/chunk-L4DS3EXI.mjs +0 -133
@@ -184,6 +184,17 @@
184
184
  ],
185
185
  "usageExample": "<Button htmlType=\"submit\">提交表单</Button>"
186
186
  },
187
+ {
188
+ "name": "color",
189
+ "description": "自定义按钮颜色,通常用于细粒度的主题色控制",
190
+ "type": {
191
+ "raw": "string",
192
+ "kind": "string"
193
+ },
194
+ "required": false,
195
+ "default": "undefined",
196
+ "usageExample": "<Button color=\"#1677ff\">自定义颜色按钮</Button>"
197
+ },
187
198
  {
188
199
  "name": "tagName",
189
200
  "description": "按钮渲染后的实际HTML元素,例如可以传入\"a\"来渲染成超链接",
@@ -195,6 +206,146 @@
195
206
  "default": "\"button\"",
196
207
  "usageExample": "<Button tagName=\"a\" href=\"https://example.com\" target=\"_blank\">链接按钮</Button>"
197
208
  },
209
+ {
210
+ "name": "autofocus",
211
+ "description": "原生 autofocus 属性,页面加载后自动聚焦按钮",
212
+ "type": {
213
+ "raw": "boolean",
214
+ "kind": "boolean"
215
+ },
216
+ "required": false,
217
+ "default": "undefined",
218
+ "usageExample": "<Button autofocus>自动聚焦</Button>",
219
+ "tags": [
220
+ "native"
221
+ ]
222
+ },
223
+ {
224
+ "name": "form",
225
+ "description": "原生 form 属性,指定按钮关联的表单 id",
226
+ "type": {
227
+ "raw": "string",
228
+ "kind": "string"
229
+ },
230
+ "required": false,
231
+ "default": "undefined",
232
+ "usageExample": "<Button form=\"loginForm\" htmlType=\"submit\">提交</Button>",
233
+ "tags": [
234
+ "native"
235
+ ]
236
+ },
237
+ {
238
+ "name": "formaction",
239
+ "description": "原生 formaction 属性,覆盖表单提交地址",
240
+ "type": {
241
+ "raw": "string",
242
+ "kind": "string"
243
+ },
244
+ "required": false,
245
+ "default": "undefined",
246
+ "usageExample": "<Button formaction=\"/api/submit\" htmlType=\"submit\">提交</Button>",
247
+ "tags": [
248
+ "native"
249
+ ]
250
+ },
251
+ {
252
+ "name": "formenctype",
253
+ "description": "原生 formenctype 属性,指定表单提交编码类型",
254
+ "type": {
255
+ "raw": "string",
256
+ "kind": "string"
257
+ },
258
+ "required": false,
259
+ "default": "undefined",
260
+ "usageExample": "<Button formenctype=\"multipart/form-data\" htmlType=\"submit\">上传</Button>",
261
+ "tags": [
262
+ "native"
263
+ ]
264
+ },
265
+ {
266
+ "name": "formmethod",
267
+ "description": "原生 formmethod 属性,指定表单提交方法",
268
+ "type": {
269
+ "raw": "\"post\" | \"get\" | \"dialog\" | string",
270
+ "kind": "union"
271
+ },
272
+ "required": false,
273
+ "default": "undefined",
274
+ "usageExample": "<Button formmethod=\"post\" htmlType=\"submit\">提交</Button>",
275
+ "tags": [
276
+ "native"
277
+ ]
278
+ },
279
+ {
280
+ "name": "formnovalidate",
281
+ "description": "原生 formnovalidate 属性,提交时跳过原生表单校验",
282
+ "type": {
283
+ "raw": "boolean",
284
+ "kind": "boolean"
285
+ },
286
+ "required": false,
287
+ "default": "undefined",
288
+ "usageExample": "<Button formnovalidate htmlType=\"submit\">跳过校验</Button>",
289
+ "tags": [
290
+ "native"
291
+ ]
292
+ },
293
+ {
294
+ "name": "formtarget",
295
+ "description": "原生 formtarget 属性,指定表单响应的打开位置",
296
+ "type": {
297
+ "raw": "string",
298
+ "kind": "string"
299
+ },
300
+ "required": false,
301
+ "default": "undefined",
302
+ "usageExample": "<Button formtarget=\"_blank\" htmlType=\"submit\">新窗口提交</Button>",
303
+ "tags": [
304
+ "native"
305
+ ]
306
+ },
307
+ {
308
+ "name": "href",
309
+ "description": "原生 href 属性,当 tagName=\"a\" 时指定跳转链接",
310
+ "type": {
311
+ "raw": "string",
312
+ "kind": "string"
313
+ },
314
+ "required": false,
315
+ "default": "undefined",
316
+ "usageExample": "<Button tagName=\"a\" href=\"https://example.com\">外部链接</Button>",
317
+ "tags": [
318
+ "native"
319
+ ]
320
+ },
321
+ {
322
+ "name": "target",
323
+ "description": "原生 target 属性,当 tagName=\"a\" 时指定打开方式",
324
+ "type": {
325
+ "raw": "string",
326
+ "kind": "string"
327
+ },
328
+ "required": false,
329
+ "default": "undefined",
330
+ "usageExample": "<Button tagName=\"a\" href=\"https://example.com\" target=\"_blank\">新窗口打开</Button>",
331
+ "tags": [
332
+ "native"
333
+ ]
334
+ },
335
+ {
336
+ "name": "download",
337
+ "description": "原生 download 属性,当 tagName=\"a\" 时提示浏览器下载资源",
338
+ "type": {
339
+ "raw": "string",
340
+ "kind": "string"
341
+ },
342
+ "required": false,
343
+ "default": "undefined",
344
+ "usageExample": "<Button tagName=\"a\" href=\"/file.pdf\" download=\"demo.pdf\">下载文件</Button>",
345
+ "tags": [
346
+ "native"
347
+ ]
348
+ },
198
349
  {
199
350
  "name": "value",
200
351
  "description": "对于radio/checkbox类型的按钮组,给按钮指定选中时的值",
@@ -206,6 +357,34 @@
206
357
  "default": "undefined",
207
358
  "usageExample": "<Button value=\"option1\">选项1</Button>"
208
359
  },
360
+ {
361
+ "name": "name",
362
+ "description": "原生 name 属性",
363
+ "type": {
364
+ "raw": "string",
365
+ "kind": "string"
366
+ },
367
+ "required": false,
368
+ "default": "undefined",
369
+ "usageExample": "<Button name=\"submitBtn\">提交</Button>",
370
+ "tags": [
371
+ "native"
372
+ ]
373
+ },
374
+ {
375
+ "name": "tabindex",
376
+ "description": "原生 tabindex 属性,控制键盘 Tab 导航顺序",
377
+ "type": {
378
+ "raw": "string | number",
379
+ "kind": "union"
380
+ },
381
+ "required": false,
382
+ "default": "undefined",
383
+ "usageExample": "<Button :tabindex=\"-1\">跳过焦点</Button>",
384
+ "tags": [
385
+ "native"
386
+ ]
387
+ },
209
388
  {
210
389
  "name": "ghost",
211
390
  "description": "展示透明背景的按钮,适用于深色背景",
@@ -504,6 +683,18 @@
504
683
  "城市切换单选按钮组",
505
684
  "多选标签按钮组"
506
685
  ],
686
+ "typeDefinitions": [
687
+ {
688
+ "name": "ButtonType",
689
+ "definition": "type ButtonType = 'default' | 'primary' | 'danger' | 'warning' | 'success' | 'link'",
690
+ "description": "按钮语义类型枚举,用于区分主要操作、危险操作和链接样式。"
691
+ },
692
+ {
693
+ "name": "ButtonGroupCheckType",
694
+ "definition": "type ButtonGroupCheckType = 'radio' | 'checkbox'",
695
+ "description": "按钮组选择模式枚举,控制单选或多选行为。"
696
+ }
697
+ ],
507
698
  "relatedComponents": [
508
699
  "ButtonGroup",
509
700
  "Icon"
@@ -0,0 +1,73 @@
1
+ {
2
+ "id": "buttonlink",
3
+ "name": "ButtonLink",
4
+ "displayName": "链接按钮",
5
+ "category": "feedback",
6
+ "description": "外观接近按钮但语义偏链接的操作组件,适合放在详情页头部、说明区或空状态中承载跳转型动作。",
7
+ "importStatement": "import { ButtonLink } from '@ksyun-internal/versatile';",
8
+ "props": [],
9
+ "events": [],
10
+ "slots": [
11
+ {
12
+ "name": "default",
13
+ "description": "按钮内容",
14
+ "vueTemplate": "<ButtonLink>...</ButtonLink>"
15
+ }
16
+ ],
17
+ "methods": [],
18
+ "examples": [
19
+ {
20
+ "id": "buttonlink_doc",
21
+ "title": "详情页中的文档跳转入口",
22
+ "description": "用按钮样式突出跳转动作,同时保持链接语义。",
23
+ "difficulty": "easy",
24
+ "code": "<script setup lang=\"ts\">\nimport { ButtonLink } from '@ksyun-internal/versatile';\n</script>\n\n<template>\n <ButtonLink>查看 API 文档</ButtonLink>\n</template>",
25
+ "tags": [
26
+ "link",
27
+ "action"
28
+ ],
29
+ "usedProps": [],
30
+ "usedEvents": [],
31
+ "usedMethods": [],
32
+ "scenario": "在操作区提供“查看文档”“前往控制台”等跳转动作。"
33
+ },
34
+ {
35
+ "id": "buttonlink_empty_action",
36
+ "title": "空状态跳转入口",
37
+ "description": "在空状态说明区域中用链接按钮承载引导操作。",
38
+ "difficulty": "medium",
39
+ "code": "<script setup lang=\"ts\">\nimport { ButtonLink } from '@ksyun-internal/versatile';\n</script>\n\n<template>\n <div>\n <p>当前没有可用项目。</p>\n <ButtonLink>前往创建项目</ButtonLink>\n </div>\n</template>",
40
+ "tags": [
41
+ "link",
42
+ "empty"
43
+ ],
44
+ "usedProps": [],
45
+ "usedEvents": [],
46
+ "usedMethods": [],
47
+ "scenario": "在空状态或帮助提示区提供跳转型操作。"
48
+ }
49
+ ],
50
+ "searchKeywords": [
51
+ "button link",
52
+ "link button",
53
+ "链接按钮",
54
+ "跳转按钮",
55
+ "文档入口"
56
+ ],
57
+ "useCases": [
58
+ "操作区链接按钮",
59
+ "详情页跳转入口",
60
+ "空状态引导操作"
61
+ ],
62
+ "typeDefinitions": [
63
+ {
64
+ "name": "ButtonLinkText",
65
+ "definition": "type ButtonLinkText = string",
66
+ "description": "链接按钮展示文案类型。"
67
+ }
68
+ ],
69
+ "relatedComponents": [
70
+ "IconTooltip",
71
+ "Actions"
72
+ ]
73
+ }
@@ -327,8 +327,15 @@
327
327
  "设置面板",
328
328
  "内容分组展示"
329
329
  ],
330
+ "typeDefinitions": [
331
+ {
332
+ "name": "CardSize",
333
+ "definition": "type CardSize = 'default' | 'small' | 'mini'",
334
+ "description": "卡片尺寸枚举,用于控制内边距和布局密度。"
335
+ }
336
+ ],
330
337
  "relatedComponents": [
331
338
  "CardColumn",
332
339
  "Collapse"
333
340
  ]
334
- }
341
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "id": "cardcol",
3
+ "name": "CardCol",
4
+ "displayName": "卡片列项",
5
+ "category": "layout",
6
+ "description": "详情卡片中的单个字段展示组件,适合渲染基础文本、状态、可复制内容或带确认操作的字段项。",
7
+ "importStatement": "import { CardCol } from '@ksyun-internal/versatile';",
8
+ "props": [
9
+ {
10
+ "name": "label",
11
+ "description": "列标题",
12
+ "type": {
13
+ "raw": "string",
14
+ "kind": "string"
15
+ },
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "col",
20
+ "description": "列配置对象",
21
+ "type": {
22
+ "raw": "Record<string, any>",
23
+ "kind": "object"
24
+ },
25
+ "required": false,
26
+ "default": "{}"
27
+ },
28
+ {
29
+ "name": "loading",
30
+ "description": "是否处于加载状态",
31
+ "type": {
32
+ "raw": "boolean",
33
+ "kind": "boolean"
34
+ },
35
+ "required": false
36
+ },
37
+ {
38
+ "name": "gap",
39
+ "description": "列内容与标题间距",
40
+ "type": {
41
+ "raw": "number",
42
+ "kind": "number"
43
+ },
44
+ "required": false
45
+ }
46
+ ],
47
+ "events": [
48
+ {
49
+ "name": "change:value",
50
+ "vueEventName": "@change:value",
51
+ "description": "字段内部值发生变更时触发,常用于可编辑字段回写。",
52
+ "params": [
53
+ {
54
+ "name": "value",
55
+ "type": "CardColValue",
56
+ "description": "当前字段最新值,具体类型取决于该列使用的编辑控件。",
57
+ "optional": true
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "name": "confirmPopover",
63
+ "vueEventName": "@confirmPopover",
64
+ "description": "用户确认 Popover 内的二次操作时触发,适合承接危险操作确认。"
65
+ },
66
+ {
67
+ "name": "hidePopover",
68
+ "vueEventName": "@hidePopover",
69
+ "description": "字段上的确认弹层关闭时触发,可用于清理临时状态。"
70
+ }
71
+ ],
72
+ "slots": [],
73
+ "methods": [],
74
+ "examples": [
75
+ {
76
+ "id": "cardcol_detail_field",
77
+ "title": "详情页中的单字段展示",
78
+ "description": "用 CardCol 渲染一条实例属性,保持与详情卡片布局一致。",
79
+ "difficulty": "easy",
80
+ "code": "<script setup lang=\"ts\">\nimport { CardCol } from '@ksyun-internal/versatile';\n\nconst instanceCol = {\n value: 'i-2ze7x5a4',\n copyable: true,\n};\n</script>\n\n<template>\n <CardCol label=\"实例 ID\" :col=\"instanceCol\" :gap=\"12\" />\n</template>",
81
+ "tags": [
82
+ "detail",
83
+ "card"
84
+ ],
85
+ "usedProps": [
86
+ "label",
87
+ "col",
88
+ "gap"
89
+ ],
90
+ "usedEvents": [],
91
+ "usedMethods": [],
92
+ "scenario": "在实例详情卡片中展示单条字段并开启复制能力。"
93
+ },
94
+ {
95
+ "id": "cardcol_loading_state",
96
+ "title": "字段加载占位",
97
+ "description": "在详情数据尚未返回时先渲染字段级 loading 状态。",
98
+ "difficulty": "medium",
99
+ "code": "<script setup lang=\"ts\">\nimport { CardCol } from '@ksyun-internal/versatile';\n</script>\n\n<template>\n <CardCol label=\"公网 IP\" :loading=\"true\" />\n</template>",
100
+ "tags": [
101
+ "detail",
102
+ "loading"
103
+ ],
104
+ "usedProps": [
105
+ "label",
106
+ "loading"
107
+ ],
108
+ "usedEvents": [],
109
+ "usedMethods": [],
110
+ "scenario": "在详情页分段加载数据时先渲染单字段占位。"
111
+ }
112
+ ],
113
+ "searchKeywords": [
114
+ "card col",
115
+ "detail field",
116
+ "卡片列",
117
+ "详情字段",
118
+ "详情项",
119
+ "卡片字段",
120
+ "单字段展示",
121
+ "详情单元"
122
+ ],
123
+ "useCases": [
124
+ "详情页字段展示",
125
+ "卡片型信息布局",
126
+ "单字段 loading 占位",
127
+ "支持复制和状态展示的详情项"
128
+ ],
129
+ "relatedComponents": [
130
+ "CardCols",
131
+ "CardTabs",
132
+ "CopyHover",
133
+ "Editable"
134
+ ],
135
+ "typeDefinitions": [
136
+ {
137
+ "name": "CardColValue",
138
+ "definition": "type CardColValue = {\n value?: string | number\n copyable?: boolean\n status?: string\n}",
139
+ "description": "单个详情字段的值配置,可描述文本、复制能力和状态展示。"
140
+ }
141
+ ]
142
+ }
@@ -0,0 +1,121 @@
1
+ {
2
+ "id": "cardcols",
3
+ "name": "CardCols",
4
+ "displayName": "卡片列容器",
5
+ "category": "layout",
6
+ "description": "用于批量组织多个详情字段的卡片列容器,适合把实例、网络、计费等信息按栅格方式排布。",
7
+ "importStatement": "import { CardCols } from '@ksyun-internal/versatile';",
8
+ "props": [
9
+ {
10
+ "name": "cols",
11
+ "description": "列配置列表",
12
+ "type": {
13
+ "raw": "CardColItem[]",
14
+ "kind": "array"
15
+ },
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "colLength",
20
+ "description": "每行列数",
21
+ "type": {
22
+ "raw": "number",
23
+ "kind": "number"
24
+ },
25
+ "required": false,
26
+ "default": "3"
27
+ }
28
+ ],
29
+ "events": [
30
+ {
31
+ "name": "change:value",
32
+ "vueEventName": "@change:value",
33
+ "description": "任一字段值变化时统一向外抛出,便于父级集中处理。",
34
+ "params": [
35
+ {
36
+ "name": "value",
37
+ "type": "CardColItem[]",
38
+ "description": "当前卡片字段配置数组,包含每一列的最新值和展示配置。",
39
+ "optional": true
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "confirmPopover",
45
+ "vueEventName": "@confirmPopover",
46
+ "description": "列项中的确认弹层完成确认时触发。"
47
+ },
48
+ {
49
+ "name": "hidePopover",
50
+ "vueEventName": "@hidePopover",
51
+ "description": "列项中的确认弹层关闭时触发。"
52
+ }
53
+ ],
54
+ "slots": [],
55
+ "methods": [],
56
+ "examples": [
57
+ {
58
+ "id": "cardcols_instance_detail",
59
+ "title": "实例详情字段栅格布局",
60
+ "description": "通过 cols 配置一次性渲染多条详情字段。",
61
+ "difficulty": "easy",
62
+ "code": "<script setup lang=\"ts\">\nimport { CardCols } from '@ksyun-internal/versatile';\n\nconst cols = [\n { label: '实例 ID', value: 'i-2ze7x5a4', copyable: true },\n { label: '可用区', value: 'cn-beijing-6a' },\n { label: '运行状态', value: '运行中' },\n];\n</script>\n\n<template>\n <CardCols :cols=\"cols\" :col-length=\"3\" />\n</template>",
63
+ "tags": [
64
+ "detail",
65
+ "grid"
66
+ ],
67
+ "usedProps": [
68
+ "cols",
69
+ "colLength"
70
+ ],
71
+ "usedEvents": [],
72
+ "usedMethods": [],
73
+ "scenario": "在资源详情页中以三列布局展示基础信息。"
74
+ },
75
+ {
76
+ "id": "cardcols_two_columns",
77
+ "title": "两列详情布局",
78
+ "description": "通过 colLength 控制更宽松的两列详情排版。",
79
+ "difficulty": "medium",
80
+ "code": "<script setup lang=\"ts\">\nimport { CardCols } from '@ksyun-internal/versatile';\n\nconst cols = [\n { label: '项目名称', value: '核心项目' },\n { label: '计费方式', value: '包年包月' },\n { label: '到期时间', value: '2026-12-31 23:59:59' },\n { label: '可用区', value: 'cn-beijing-6a' },\n];\n</script>\n\n<template>\n <CardCols :cols=\"cols\" :col-length=\"2\" />\n</template>",
81
+ "tags": [
82
+ "detail",
83
+ "columns"
84
+ ],
85
+ "usedProps": [
86
+ "cols",
87
+ "colLength"
88
+ ],
89
+ "usedEvents": [],
90
+ "usedMethods": [],
91
+ "scenario": "在字段较长的详情页中改用两列布局提升可读性。"
92
+ }
93
+ ],
94
+ "searchKeywords": [
95
+ "card cols",
96
+ "detail grid",
97
+ "卡片列容器",
98
+ "详情布局",
99
+ "字段栅格",
100
+ "卡片详情区",
101
+ "多字段展示",
102
+ "详情栅格"
103
+ ],
104
+ "useCases": [
105
+ "详情页字段排版",
106
+ "卡片信息栅格布局",
107
+ "两列或三列详情分布",
108
+ "批量渲染多条详情字段"
109
+ ],
110
+ "relatedComponents": [
111
+ "CardCol",
112
+ "CardTabs"
113
+ ],
114
+ "typeDefinitions": [
115
+ {
116
+ "name": "CardColItem",
117
+ "definition": "type CardColItem = {\n label: string\n value?: string | number\n copyable?: boolean\n}",
118
+ "description": "CardCols 中的单个列项配置,至少包含展示标签。"
119
+ }
120
+ ]
121
+ }
@@ -136,9 +136,21 @@
136
136
  "card",
137
137
  "panel",
138
138
  "container",
139
- "卡片"
139
+ "卡片",
140
+ "内容卡片",
141
+ "详情卡片",
142
+ "卡片容器"
140
143
  ],
141
144
  "useCases": [
142
- "页面主体内容包裹"
145
+ "页面主体内容包裹",
146
+ "详情页分块信息卡片",
147
+ "带头部操作区的业务内容容器"
148
+ ],
149
+ "typeDefinitions": [
150
+ {
151
+ "name": "CardContentType",
152
+ "definition": "type CardContentType = 'shadow' | 'border' | 'none'",
153
+ "description": "卡片容器样式枚举,控制边框和阴影表现。"
154
+ }
143
155
  ]
144
- }
156
+ }