king-design-analyzer 2.1.9 → 2.2.1

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 (327) hide show
  1. package/components/actions.json +109 -0
  2. package/components/advancedset.json +128 -0
  3. package/components/affix.json +8 -0
  4. package/components/aksk.json +172 -0
  5. package/components/anchor.json +220 -0
  6. package/components/anchorlink.json +111 -0
  7. package/components/az.json +15 -2
  8. package/components/badge.json +8 -0
  9. package/components/billtypes.json +14 -2
  10. package/components/breadcrumb.json +9 -1
  11. package/components/button.json +192 -0
  12. package/components/buttonlink.json +74 -0
  13. package/components/card.json +14 -4
  14. package/components/cardcol.json +142 -0
  15. package/components/cardcols.json +121 -0
  16. package/components/cardcontent.json +20 -3
  17. package/components/cardtabs.json +172 -0
  18. package/components/carousel.json +7 -0
  19. package/components/cascader.json +576 -368
  20. package/components/checkbox.json +51 -4
  21. package/components/cidrinput.json +140 -0
  22. package/components/code.json +8 -1
  23. package/components/collapse.json +335 -341
  24. package/components/colorpicker.json +217 -0
  25. package/components/configprovider.json +96 -0
  26. package/components/copy.json +7 -0
  27. package/components/copyhover.json +111 -0
  28. package/components/copyrow.json +125 -0
  29. package/components/datepicker.json +656 -524
  30. package/components/description.json +98 -0
  31. package/components/descriptions.json +10 -3
  32. package/components/diagram.json +295 -0
  33. package/components/dialog.json +526 -455
  34. package/components/divider.json +9 -1
  35. package/components/drawer.json +603 -558
  36. package/components/dropdown.json +464 -384
  37. package/components/duration.json +125 -0
  38. package/components/editable.json +66 -0
  39. package/components/ellipsis.json +34 -1
  40. package/components/filtertablefieldsdialog.json +128 -0
  41. package/components/flex.json +152 -0
  42. package/components/form.json +143 -3
  43. package/components/formiteminput.json +214 -0
  44. package/components/formitemspinner.json +213 -0
  45. package/components/formitemswitch.json +185 -0
  46. package/components/formitemtableconfigs.json +210 -0
  47. package/components/grid.json +7 -0
  48. package/components/header.json +165 -0
  49. package/components/icon.json +13 -1
  50. package/components/icontooltip.json +19 -1
  51. package/components/input.json +196 -8
  52. package/components/instancelist.json +194 -0
  53. package/components/instancenum.json +196 -0
  54. package/components/ipinput.json +117 -0
  55. package/components/kspstatus.json +205 -0
  56. package/components/kvcode.json +120 -0
  57. package/components/layoutcontent.json +24 -3
  58. package/components/layoutlistcontent.json +157 -0
  59. package/components/layoutpermissioncontent.json +156 -0
  60. package/components/layoutstandardlist.json +276 -0
  61. package/components/layouttabs.json +168 -0
  62. package/components/lazymount.json +87 -0
  63. package/components/lazyteleport.json +119 -0
  64. package/components/menu.json +11 -3
  65. package/components/notification.json +351 -0
  66. package/components/pagination.json +12 -0
  67. package/components/paginationplus.json +30 -3
  68. package/components/password.json +121 -0
  69. package/components/popover.json +457 -437
  70. package/components/projects.json +129 -0
  71. package/components/protable.json +99 -8
  72. package/components/queuevisualrange.json +110 -0
  73. package/components/radio.json +82 -2
  74. package/components/rate.json +200 -0
  75. package/components/region.json +14 -2
  76. package/components/scrollselect.json +140 -0
  77. package/components/search.json +221 -0
  78. package/components/searchinput.json +132 -0
  79. package/components/searchitems.json +215 -0
  80. package/components/searchselect.json +195 -0
  81. package/components/select.json +749 -666
  82. package/components/sidebar.json +198 -0
  83. package/components/skeleton.json +234 -0
  84. package/components/slider.json +12 -2
  85. package/components/spin.json +10 -2
  86. package/components/spinner.json +419 -429
  87. package/components/split.json +263 -0
  88. package/components/sshkeys.json +138 -0
  89. package/components/status.json +60 -3
  90. package/components/steps.json +7 -0
  91. package/components/switch.json +12 -3
  92. package/components/table.json +24 -2
  93. package/components/tablecolumnid.json +14 -2
  94. package/components/tabs.json +14 -2
  95. package/components/tag.json +8 -5
  96. package/components/timeline.json +215 -0
  97. package/components/timepicker.json +147 -3
  98. package/components/timerange.json +262 -0
  99. package/components/tip.json +27 -0
  100. package/components/tooltip.json +492 -395
  101. package/components/tour.json +418 -372
  102. package/components/transfer.json +79 -8
  103. package/components/tree.json +28 -5
  104. package/components/treeselect.json +612 -475
  105. package/components/upload.json +474 -473
  106. package/components/vdialog.json +309 -0
  107. package/components/vdrawer.json +335 -0
  108. package/components/virtuallist.json +7 -0
  109. package/dist/ast/index.d.mts +65 -2
  110. package/dist/ast/index.d.ts +65 -2
  111. package/dist/ast/index.js +4 -3
  112. package/dist/ast/index.mjs +2 -1
  113. package/dist/chunk-4OTQAQ6J.mjs +341 -0
  114. package/dist/{chunk-F26GUCGG.js → chunk-4WXOYU2N.js} +32 -9
  115. package/dist/chunk-6HOIRUQB.mjs +409 -0
  116. package/dist/chunk-DHLWNT53.js +364 -0
  117. package/dist/{chunk-H2ET6MMM.mjs → chunk-IPJJMPOO.mjs} +155 -66
  118. package/dist/{chunk-WYSRJVX4.js → chunk-JJ6AB4ZH.js} +2 -2
  119. package/dist/{chunk-2W6OCG2S.js → chunk-JNRGUR3O.js} +155 -67
  120. package/dist/chunk-KF5YBEM5.js +143 -0
  121. package/dist/{chunk-OJOHB64C.mjs → chunk-LRTDTFFQ.mjs} +28 -5
  122. package/dist/{chunk-DSWKLUIX.mjs → chunk-NZL6T22V.mjs} +1 -1
  123. package/dist/chunk-QC6VTSA3.mjs +117 -0
  124. package/dist/chunk-V5N65MRP.js +411 -0
  125. package/dist/full/index.d.mts +2 -0
  126. package/dist/full/index.d.ts +2 -0
  127. package/dist/full/index.js +7 -6
  128. package/dist/full/index.mjs +5 -4
  129. package/dist/index.d.mts +1 -0
  130. package/dist/index.d.ts +1 -0
  131. package/dist/index.js +14 -13
  132. package/dist/index.mjs +6 -5
  133. package/dist/metadata/index.d.mts +38 -3
  134. package/dist/metadata/index.d.ts +38 -3
  135. package/dist/metadata/index.js +26 -16
  136. package/dist/metadata/index.mjs +26 -15
  137. package/dist/resolve-BsLBxlBi.d.mts +24 -0
  138. package/dist/resolve-BsLBxlBi.d.ts +24 -0
  139. package/dist/runtime/index.d.mts +2 -0
  140. package/dist/runtime/index.d.ts +2 -0
  141. package/dist/runtime/index.js +4 -4
  142. package/dist/runtime/index.mjs +2 -2
  143. package/dist/shared/index.d.mts +10 -0
  144. package/dist/shared/index.d.ts +10 -0
  145. package/dist/shared/index.js +23 -0
  146. package/dist/shared/index.mjs +2 -0
  147. package/dist/static/index.js +5 -5
  148. package/dist/static/index.mjs +2 -2
  149. package/docs_for_llm/actions.doc.md +87 -0
  150. package/docs_for_llm/advancedset.doc.md +98 -0
  151. package/docs_for_llm/affix.doc.md +20 -7
  152. package/docs_for_llm/aksk.doc.md +111 -0
  153. package/docs_for_llm/anchor.doc.md +155 -0
  154. package/docs_for_llm/anchorlink.doc.md +75 -0
  155. package/docs_for_llm/az.doc.md +17 -11
  156. package/docs_for_llm/badge.doc.md +11 -5
  157. package/docs_for_llm/billtypes.doc.md +17 -11
  158. package/docs_for_llm/breadcrumb.doc.md +80 -4
  159. package/docs_for_llm/button.doc.md +91 -18
  160. package/docs_for_llm/buttonlink.doc.md +64 -0
  161. package/docs_for_llm/card.doc.md +58 -8
  162. package/docs_for_llm/cardcol.doc.md +78 -0
  163. package/docs_for_llm/cardcols.doc.md +84 -0
  164. package/docs_for_llm/cardcontent.doc.md +31 -10
  165. package/docs_for_llm/cardtabs.doc.md +106 -0
  166. package/docs_for_llm/carousel.doc.md +79 -7
  167. package/docs_for_llm/cascader.doc.md +106 -23
  168. package/docs_for_llm/checkbox.doc.md +25 -13
  169. package/docs_for_llm/cidrinput.doc.md +83 -0
  170. package/docs_for_llm/code.doc.md +22 -11
  171. package/docs_for_llm/collapse.doc.md +147 -14
  172. package/docs_for_llm/colorpicker.doc.md +104 -0
  173. package/docs_for_llm/configprovider.doc.md +77 -0
  174. package/docs_for_llm/copy.doc.md +15 -13
  175. package/docs_for_llm/copyhover.doc.md +59 -0
  176. package/docs_for_llm/copyrow.doc.md +80 -0
  177. package/docs_for_llm/datepicker.doc.md +66 -35
  178. package/docs_for_llm/description.doc.md +75 -0
  179. package/docs_for_llm/descriptions.doc.md +122 -10
  180. package/docs_for_llm/diagram.doc.md +343 -0
  181. package/docs_for_llm/dialog.doc.md +97 -77
  182. package/docs_for_llm/divider.doc.md +14 -7
  183. package/docs_for_llm/drawer.doc.md +114 -69
  184. package/docs_for_llm/dropdown.doc.md +290 -22
  185. package/docs_for_llm/duration.doc.md +76 -0
  186. package/docs_for_llm/editable.doc.md +36 -14
  187. package/docs_for_llm/ellipsis.doc.md +10 -5
  188. package/docs_for_llm/filtertablefieldsdialog.doc.md +99 -0
  189. package/docs_for_llm/flex.doc.md +83 -0
  190. package/docs_for_llm/form.doc.md +196 -18
  191. package/docs_for_llm/formiteminput.doc.md +128 -0
  192. package/docs_for_llm/formitemspinner.doc.md +105 -0
  193. package/docs_for_llm/formitemswitch.doc.md +113 -0
  194. package/docs_for_llm/formitemtableconfigs.doc.md +95 -0
  195. package/docs_for_llm/grid.doc.md +78 -5
  196. package/docs_for_llm/header.doc.md +114 -0
  197. package/docs_for_llm/icon.doc.md +12 -8
  198. package/docs_for_llm/icontooltip.doc.md +121 -0
  199. package/docs_for_llm/input.doc.md +199 -41
  200. package/docs_for_llm/instancelist.doc.md +113 -0
  201. package/docs_for_llm/instancenum.doc.md +95 -0
  202. package/docs_for_llm/ipinput.doc.md +77 -0
  203. package/docs_for_llm/kspstatus.doc.md +82 -0
  204. package/docs_for_llm/kvcode.doc.md +76 -0
  205. package/docs_for_llm/layoutcontent.doc.md +54 -17
  206. package/docs_for_llm/layoutlistcontent.doc.md +168 -0
  207. package/docs_for_llm/layoutpermissioncontent.doc.md +93 -0
  208. package/docs_for_llm/layoutstandardlist.doc.md +129 -0
  209. package/docs_for_llm/layouttabs.doc.md +101 -0
  210. package/docs_for_llm/lazymount.doc.md +82 -0
  211. package/docs_for_llm/lazyteleport.doc.md +85 -0
  212. package/docs_for_llm/menu.doc.md +139 -14
  213. package/docs_for_llm/message.doc.md +93 -10
  214. package/docs_for_llm/notification.doc.md +214 -0
  215. package/docs_for_llm/pagination.doc.md +30 -17
  216. package/docs_for_llm/paginationplus.doc.md +31 -10
  217. package/docs_for_llm/password.doc.md +86 -0
  218. package/docs_for_llm/popover.doc.md +24 -55
  219. package/docs_for_llm/progress.doc.md +13 -10
  220. package/docs_for_llm/projects.doc.md +91 -0
  221. package/docs_for_llm/protable.doc.md +98 -15
  222. package/docs_for_llm/queuevisualrange.doc.md +78 -0
  223. package/docs_for_llm/radio.doc.md +23 -8
  224. package/docs_for_llm/rate.doc.md +127 -0
  225. package/docs_for_llm/region.doc.md +25 -13
  226. package/docs_for_llm/scrollselect.doc.md +90 -0
  227. package/docs_for_llm/search.doc.md +120 -0
  228. package/docs_for_llm/searchinput.doc.md +111 -0
  229. package/docs_for_llm/searchitems.doc.md +116 -0
  230. package/docs_for_llm/searchselect.doc.md +126 -0
  231. package/docs_for_llm/select.doc.md +208 -49
  232. package/docs_for_llm/sidebar.doc.md +133 -0
  233. package/docs_for_llm/skeleton.doc.md +152 -0
  234. package/docs_for_llm/slider.doc.md +42 -22
  235. package/docs_for_llm/spin.doc.md +18 -6
  236. package/docs_for_llm/spinner.doc.md +28 -18
  237. package/docs_for_llm/split.doc.md +170 -0
  238. package/docs_for_llm/sshkeys.doc.md +88 -0
  239. package/docs_for_llm/status.doc.md +14 -9
  240. package/docs_for_llm/steps.doc.md +81 -7
  241. package/docs_for_llm/switch.doc.md +32 -16
  242. package/docs_for_llm/table.doc.md +317 -55
  243. package/docs_for_llm/tablecolumnid.doc.md +36 -16
  244. package/docs_for_llm/tabs.doc.md +117 -12
  245. package/docs_for_llm/tag.doc.md +167 -15
  246. package/docs_for_llm/timeline.doc.md +187 -0
  247. package/docs_for_llm/timepicker.doc.md +74 -36
  248. package/docs_for_llm/timerange.doc.md +157 -0
  249. package/docs_for_llm/tip.doc.md +50 -11
  250. package/docs_for_llm/tooltip.doc.md +99 -27
  251. package/docs_for_llm/tour.doc.md +125 -28
  252. package/docs_for_llm/transfer.doc.md +99 -33
  253. package/docs_for_llm/tree.doc.md +129 -24
  254. package/docs_for_llm/treeselect.doc.md +101 -44
  255. package/docs_for_llm/upload.doc.md +63 -32
  256. package/docs_for_llm/useCRUD.doc.md +49 -0
  257. package/docs_for_llm/useCountdown.doc.md +43 -0
  258. package/docs_for_llm/useDetail.doc.md +48 -0
  259. package/docs_for_llm/useDialog.doc.md +46 -0
  260. package/docs_for_llm/useEntity.doc.md +45 -0
  261. package/docs_for_llm/useEventListener.doc.md +44 -0
  262. package/docs_for_llm/useFalseUntilTruthy.doc.md +41 -0
  263. package/docs_for_llm/useGetCopyAuthText.doc.md +35 -0
  264. package/docs_for_llm/useGetUserPermission.doc.md +43 -0
  265. package/docs_for_llm/useGroup.doc.md +48 -0
  266. package/docs_for_llm/useIdEntities.doc.md +48 -0
  267. package/docs_for_llm/useIdEntity.doc.md +103 -0
  268. package/docs_for_llm/useInterval.doc.md +43 -0
  269. package/docs_for_llm/useLayoutStandardList.doc.md +38 -0
  270. package/docs_for_llm/useMessage.doc.md +46 -0
  271. package/docs_for_llm/useModifyCache.doc.md +37 -0
  272. package/docs_for_llm/useOpenDialog.doc.md +41 -0
  273. package/docs_for_llm/usePagination.doc.md +60 -0
  274. package/docs_for_llm/usePersist.doc.md +54 -0
  275. package/docs_for_llm/usePoll.doc.md +41 -0
  276. package/docs_for_llm/useRoutePlus.doc.md +34 -0
  277. package/docs_for_llm/useRouterPlus.doc.md +34 -0
  278. package/docs_for_llm/useSearch.doc.md +68 -0
  279. package/docs_for_llm/useShell.doc.md +43 -0
  280. package/docs_for_llm/useSkip.doc.md +41 -0
  281. package/docs_for_llm/useStorageIdEntity.doc.md +46 -0
  282. package/docs_for_llm/useStore.doc.md +34 -0
  283. package/docs_for_llm/useTable.doc.md +57 -0
  284. package/docs_for_llm/useTableGroup.doc.md +47 -0
  285. package/docs_for_llm/useTableSort.doc.md +40 -0
  286. package/docs_for_llm/useToState.doc.md +112 -0
  287. package/docs_for_llm/useUser.doc.md +38 -0
  288. package/docs_for_llm/useValidForm.doc.md +41 -0
  289. package/docs_for_llm/vdialog.doc.md +154 -0
  290. package/docs_for_llm/vdrawer.doc.md +148 -0
  291. package/docs_for_llm/virtuallist.doc.md +157 -3
  292. package/hooks/useCRUD.json +61 -0
  293. package/hooks/useCountdown.json +49 -0
  294. package/hooks/useDetail.json +67 -0
  295. package/hooks/useDialog.json +49 -0
  296. package/hooks/useEntity.json +61 -0
  297. package/hooks/useEventListener.json +61 -0
  298. package/hooks/useFalseUntilTruthy.json +43 -0
  299. package/hooks/useGetCopyAuthText.json +36 -0
  300. package/hooks/useGetUserPermission.json +55 -0
  301. package/hooks/useGroup.json +49 -0
  302. package/hooks/useIdEntities.json +61 -0
  303. package/hooks/useInterval.json +55 -0
  304. package/hooks/useLayoutStandardList.json +36 -0
  305. package/hooks/useMessage.json +73 -0
  306. package/hooks/useModifyCache.json +36 -0
  307. package/hooks/useOpenDialog.json +43 -0
  308. package/hooks/usePagination.json +49 -0
  309. package/hooks/usePersist.json +61 -0
  310. package/hooks/usePoll.json +43 -0
  311. package/hooks/useRoutePlus.json +36 -0
  312. package/hooks/useRouterPlus.json +36 -0
  313. package/hooks/useSearch.json +56 -0
  314. package/hooks/useShell.json +49 -0
  315. package/hooks/useSkip.json +43 -0
  316. package/hooks/useStorageIdEntity.json +67 -0
  317. package/hooks/useStore.json +36 -0
  318. package/hooks/useTable.json +49 -0
  319. package/hooks/useTableGroup.json +43 -0
  320. package/hooks/useTableSort.json +43 -0
  321. package/hooks/useUser.json +36 -0
  322. package/hooks/useValidForm.json +43 -0
  323. package/package.json +14 -8
  324. package/dist/chunk-D3Y6FGWA.js +0 -153
  325. package/dist/chunk-HPAUCD5I.js +0 -156
  326. package/dist/chunk-L4DS3EXI.mjs +0 -133
  327. package/dist/chunk-NZ6TLWMD.mjs +0 -151
@@ -243,8 +243,8 @@
243
243
  "description": "起始位置索引"
244
244
  }
245
245
  ],
246
- "usageExample": "<Tags draggable @dragstart=\"handleDragStart\"></Tags>",
247
- "handlerExample": "const handleDragStart = ({key, from}) => {\n console.log('开始拖拽', key, from);\n};"
246
+ "usageExample": "<Tags draggable @dragstart=\"handleTagDragStart\"></Tags>",
247
+ "handlerExample": "const draggingTagKey = ref<string | number | null>(null);\n\nconst handleTagDragStart = ({ key }) => {\n draggingTagKey.value = key;\n};"
248
248
  },
249
249
  {
250
250
  "name": "dragend",
@@ -267,14 +267,17 @@
267
267
  "description": "目标位置索引"
268
268
  }
269
269
  ],
270
- "usageExample": "<Tags draggable @dragend=\"handleDragEnd\"></Tags>",
271
- "handlerExample": "const handleDragEnd = ({key, from, to}) => {\n console.log('拖拽结束', key, 'from', from, 'to', to);\n};"
270
+ "usageExample": "<Tags draggable @dragend=\"handleTagDragEnd\"></Tags>",
271
+ "handlerExample": "const tags = ref(['稳定版', '灰度中', '待发布']);\nconst draggingTagKey = ref<string | number | null>(null);\n\nconst handleTagDragEnd = ({ from, to }) => {\n const moved = tags.value.splice(from, 1)[0];\n tags.value.splice(to, 0, moved);\n draggingTagKey.value = null;\n};"
272
272
  }
273
273
  ],
274
274
  "slots": [
275
275
  {
276
276
  "name": "append",
277
- "description": "追加到后面的元素,不参与到Tags对Tag的管理中"
277
+ "description": "追加到后面的元素,不参与到Tags对Tag的管理中",
278
+ "bindingType": "none",
279
+ "vueTemplate": "#append",
280
+ "usageExample": "<Tags>\n <Tag closable>标签一</Tag>\n <template #append>\n <Button type=\"link\">新增标签</Button>\n </template>\n</Tags>"
278
281
  }
279
282
  ]
280
283
  }
@@ -0,0 +1,215 @@
1
+ {
2
+ "id": "timeline",
3
+ "name": "Timeline",
4
+ "displayName": "时间轴",
5
+ "category": "data",
6
+ "description": "时间轴组件,用于按时间顺序展示事件或流程记录。配合 TimelineItem 子组件使用,支持不同状态类型和自定义节点。",
7
+ "importStatement": "import { Timeline, TimelineItem } from '@king-design/vue';",
8
+ "props": [],
9
+ "events": [],
10
+ "slots": [
11
+ {
12
+ "name": "default",
13
+ "description": "时间轴内容,通常由多个 TimelineItem 组成。",
14
+ "bindingType": "none",
15
+ "vueTemplate": "<Timeline>...</Timeline>",
16
+ "usageExample": "<Timeline><TimelineItem>创建完成</TimelineItem><TimelineItem>审核通过</TimelineItem></Timeline>"
17
+ }
18
+ ],
19
+ "methods": [],
20
+ "subComponents": [
21
+ {
22
+ "name": "TimelineItem",
23
+ "description": "时间轴节点项。",
24
+ "props": [
25
+ {
26
+ "name": "type",
27
+ "description": "节点状态类型。",
28
+ "type": {
29
+ "raw": "\"primary\" | \"warning\" | \"danger\" | \"success\"",
30
+ "kind": "union",
31
+ "unionTypes": [
32
+ "primary",
33
+ "warning",
34
+ "danger",
35
+ "success"
36
+ ]
37
+ },
38
+ "required": false,
39
+ "default": "\"primary\"",
40
+ "allowedValues": [
41
+ {
42
+ "value": "primary",
43
+ "label": "默认状态",
44
+ "isDefault": true
45
+ },
46
+ {
47
+ "value": "warning",
48
+ "label": "警告状态"
49
+ },
50
+ {
51
+ "value": "danger",
52
+ "label": "错误状态"
53
+ },
54
+ {
55
+ "value": "success",
56
+ "label": "成功状态"
57
+ }
58
+ ],
59
+ "usageExample": "<TimelineItem type=\"success\">发布成功</TimelineItem>"
60
+ },
61
+ {
62
+ "name": "size",
63
+ "description": "节点尺寸。",
64
+ "type": {
65
+ "raw": "\"large\" | \"default\" | \"small\" | \"mini\"",
66
+ "kind": "union",
67
+ "unionTypes": [
68
+ "large",
69
+ "default",
70
+ "small",
71
+ "mini"
72
+ ]
73
+ },
74
+ "required": false,
75
+ "default": "\"default\"",
76
+ "allowedValues": [
77
+ {
78
+ "value": "large",
79
+ "label": "大尺寸"
80
+ },
81
+ {
82
+ "value": "default",
83
+ "label": "默认尺寸",
84
+ "isDefault": true
85
+ },
86
+ {
87
+ "value": "small",
88
+ "label": "小尺寸"
89
+ },
90
+ {
91
+ "value": "mini",
92
+ "label": "迷你尺寸"
93
+ }
94
+ ],
95
+ "usageExample": "<TimelineItem size=\"small\">日志记录</TimelineItem>"
96
+ }
97
+ ],
98
+ "slots": [
99
+ {
100
+ "name": "dot",
101
+ "description": "自定义时间轴节点圆点。",
102
+ "vueTemplate": "<template #dot>...</template>",
103
+ "usageExample": "<TimelineItem><template #dot><Icon class=\"k-icon-check\" /></template>发布完成</TimelineItem>",
104
+ "bindingType": "none"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ "typeDefinitions": [
110
+ {
111
+ "name": "TimelineItemType",
112
+ "definition": "type TimelineItemType = 'primary' | 'warning' | 'danger' | 'success'",
113
+ "description": "TimelineItem 的状态类型"
114
+ }
115
+ ],
116
+ "examples": [
117
+ {
118
+ "id": "timeline_basic",
119
+ "title": "基础用法",
120
+ "description": "按时间顺序展示操作记录。",
121
+ "difficulty": "easy",
122
+ "code": "<template>\n <Timeline>\n <TimelineItem>2026-04-20 10:00 创建任务</TimelineItem>\n <TimelineItem>2026-04-20 10:10 分配负责人</TimelineItem>\n <TimelineItem type=\"success\">2026-04-20 10:30 处理完成</TimelineItem>\n </Timeline>\n</template>",
123
+ "tags": [
124
+ "basic",
125
+ "log"
126
+ ],
127
+ "usedProps": [
128
+ "type"
129
+ ],
130
+ "usedEvents": [],
131
+ "usedSlots": [
132
+ "default"
133
+ ],
134
+ "usedMethods": [],
135
+ "scenario": "展示任务处理过程"
136
+ },
137
+ {
138
+ "id": "timeline_status",
139
+ "title": "不同状态节点",
140
+ "description": "用颜色区分不同阶段。",
141
+ "difficulty": "easy",
142
+ "code": "<template>\n <Timeline>\n <TimelineItem type=\"primary\">等待执行</TimelineItem>\n <TimelineItem type=\"warning\">处理中</TimelineItem>\n <TimelineItem type=\"danger\">执行失败</TimelineItem>\n <TimelineItem type=\"success\">重新执行成功</TimelineItem>\n </Timeline>\n</template>",
143
+ "tags": [
144
+ "status",
145
+ "type"
146
+ ],
147
+ "usedProps": [
148
+ "type"
149
+ ],
150
+ "usedEvents": [],
151
+ "usedSlots": [
152
+ "default"
153
+ ],
154
+ "usedMethods": [],
155
+ "scenario": "用时间轴展示状态变更"
156
+ },
157
+ {
158
+ "id": "timeline_custom_dot",
159
+ "title": "自定义节点",
160
+ "description": "通过 dot 插槽渲染图标或编号。",
161
+ "difficulty": "medium",
162
+ "code": "<script setup lang=\"ts\">\nimport { Icon, Timeline, TimelineItem } from '@king-design/vue';\n</script>\n<template>\n <Timeline>\n <TimelineItem>\n <template #dot>\n <Icon class=\"k-icon-play-circle\" />\n </template>\n 服务启动\n </TimelineItem>\n <TimelineItem type=\"success\">\n <template #dot>\n <Icon class=\"k-icon-check\" />\n </template>\n 健康检查通过\n </TimelineItem>\n </Timeline>\n</template>",
163
+ "tags": [
164
+ "dot",
165
+ "icon"
166
+ ],
167
+ "usedProps": [
168
+ "type"
169
+ ],
170
+ "usedEvents": [],
171
+ "usedSlots": [
172
+ "dot"
173
+ ],
174
+ "usedMethods": [],
175
+ "scenario": "用图标增强时间轴状态表达"
176
+ }
177
+ ],
178
+ "commonMistakes": [
179
+ {
180
+ "id": "timeline_plain_children",
181
+ "description": "在 Timeline 中直接写普通 div,而不是 TimelineItem",
182
+ "wrongCode": "<Timeline><div>创建成功</div><div>发布完成</div></Timeline>",
183
+ "correctCode": "<Timeline><TimelineItem>创建成功</TimelineItem><TimelineItem>发布完成</TimelineItem></Timeline>",
184
+ "explanation": "Timeline 负责整体容器结构,具体节点应使用 TimelineItem 渲染,才能获得连线、圆点和状态样式。",
185
+ "relatedProps": []
186
+ },
187
+ {
188
+ "id": "timeline_dot_outside_item",
189
+ "description": "把 dot 插槽写在 Timeline 上",
190
+ "wrongCode": "<Timeline><template #dot>1</template></Timeline>",
191
+ "correctCode": "<Timeline><TimelineItem><template #dot>1</template>步骤一</TimelineItem></Timeline>",
192
+ "explanation": "dot 是 TimelineItem 的插槽,不属于 Timeline 容器本身。",
193
+ "relatedProps": []
194
+ }
195
+ ],
196
+ "searchKeywords": [
197
+ "timeline",
198
+ "时间轴",
199
+ "操作记录",
200
+ "流程日志",
201
+ "TimelineItem",
202
+ "dot"
203
+ ],
204
+ "useCases": [
205
+ "操作日志",
206
+ "订单轨迹",
207
+ "发布流程",
208
+ "任务执行记录"
209
+ ],
210
+ "relatedComponents": [
211
+ "Steps",
212
+ "Tag",
213
+ "Icon"
214
+ ]
215
+ }
@@ -39,6 +39,28 @@
39
39
  "default": "false",
40
40
  "usageExample": "<Timepicker multiple />"
41
41
  },
42
+ {
43
+ "name": "filterable",
44
+ "description": "是否支持筛选输入",
45
+ "type": {
46
+ "raw": "boolean",
47
+ "kind": "boolean"
48
+ },
49
+ "required": false,
50
+ "default": "false",
51
+ "usageExample": "<Timepicker filterable />"
52
+ },
53
+ {
54
+ "name": "loading",
55
+ "description": "数据加载状态",
56
+ "type": {
57
+ "raw": "boolean",
58
+ "kind": "boolean"
59
+ },
60
+ "required": false,
61
+ "default": "false",
62
+ "usageExample": "<Timepicker :loading=\"loading\" />"
63
+ },
42
64
  {
43
65
  "name": "disabled",
44
66
  "description": "是否禁用",
@@ -50,6 +72,17 @@
50
72
  "default": "false",
51
73
  "usageExample": "<Timepicker disabled />"
52
74
  },
75
+ {
76
+ "name": "name",
77
+ "description": "表单元素的 name 属性",
78
+ "type": {
79
+ "raw": "string",
80
+ "kind": "string"
81
+ },
82
+ "required": false,
83
+ "default": "undefined",
84
+ "usageExample": "<Timepicker name=\"startTime\" />"
85
+ },
53
86
  {
54
87
  "name": "clearable",
55
88
  "description": "是否可清空",
@@ -174,6 +207,18 @@
174
207
  "default": "undefined",
175
208
  "usageExample": "<Timepicker max=\"18:00:00\" />"
176
209
  },
210
+ {
211
+ "name": "disabledDate",
212
+ "description": "禁用日期的函数,返回 true 表示禁用该日期",
213
+ "type": {
214
+ "raw": "(v: Dayjs) => boolean",
215
+ "kind": "function",
216
+ "functionSignature": "(v: Dayjs) => boolean"
217
+ },
218
+ "required": false,
219
+ "default": "undefined",
220
+ "usageExample": "<Timepicker :disabledDate=\"(d) => d.day() === 0\" />"
221
+ },
177
222
  {
178
223
  "name": "hideIcon",
179
224
  "description": "是否隐藏后面的图标",
@@ -228,6 +273,78 @@
228
273
  "required": false,
229
274
  "default": "undefined",
230
275
  "usageExample": "<Timepicker :width=\"150\" />"
276
+ },
277
+ {
278
+ "name": "container",
279
+ "description": "指定弹出菜单追加的位置,默认 Dialog 组件会追加到 Dialog 中,其他追加到 body",
280
+ "type": {
281
+ "raw": "string | ((parentDom: Element, anchor: Node | null) => Element)",
282
+ "kind": "union"
283
+ },
284
+ "required": false,
285
+ "default": "undefined",
286
+ "usageExample": "<Timepicker :container=\"() => document.body\" />"
287
+ },
288
+ {
289
+ "name": "show",
290
+ "description": "是否展示菜单项(受控模式)",
291
+ "type": {
292
+ "raw": "boolean",
293
+ "kind": "boolean"
294
+ },
295
+ "required": false,
296
+ "default": "false",
297
+ "usageExample": "<Timepicker :show=\"visible\" />"
298
+ },
299
+ {
300
+ "name": "position",
301
+ "description": "菜单弹出的位置",
302
+ "type": {
303
+ "raw": "Position | \"left\" | \"bottom\" | \"right\" | \"top\"",
304
+ "kind": "union",
305
+ "unionTypes": [
306
+ "left",
307
+ "bottom",
308
+ "right",
309
+ "top"
310
+ ]
311
+ },
312
+ "required": false,
313
+ "default": "{my: 'left top+8', at: 'left bottom'}",
314
+ "usageExample": "<Timepicker position=\"top\" />"
315
+ },
316
+ {
317
+ "name": "nowrap",
318
+ "description": "选中值区域是否不换行展示,适合单行紧凑布局",
319
+ "type": {
320
+ "raw": "boolean",
321
+ "kind": "boolean"
322
+ },
323
+ "required": false,
324
+ "default": "false",
325
+ "usageExample": "<Timepicker nowrap />"
326
+ },
327
+ {
328
+ "name": "draggable",
329
+ "description": "多选值是否支持拖动排序",
330
+ "type": {
331
+ "raw": "boolean",
332
+ "kind": "boolean"
333
+ },
334
+ "required": false,
335
+ "default": "false",
336
+ "usageExample": "<Timepicker multiple draggable />"
337
+ },
338
+ {
339
+ "name": "virtual",
340
+ "description": "是否开启虚拟列表,用于大数据量场景",
341
+ "type": {
342
+ "raw": "boolean",
343
+ "kind": "boolean"
344
+ },
345
+ "required": false,
346
+ "default": "false",
347
+ "usageExample": "<Timepicker virtual />"
231
348
  }
232
349
  ],
233
350
  "events": [
@@ -270,13 +387,40 @@
270
387
  "name": "value",
271
388
  "type": "[Dayjs, Dayjs?]",
272
389
  "description": "当前选择的值"
390
+ },
391
+ {
392
+ "name": "confirmed",
393
+ "type": "boolean",
394
+ "description": "当前这次 selecting 是否已经进入确认完成态;常见交互过程中通常为 `false`。"
273
395
  }
274
396
  ],
275
397
  "usageExample": "<Timepicker range @selecting=\"handleSelecting\" />",
276
- "handlerExample": "const handleSelecting = (value) => {\n console.log('正在选择:', value);\n};"
398
+ "handlerExample": "const handleSelecting = (value, confirmed) => {\n console.log('正在选择:', value, confirmed);\n};"
399
+ }
400
+ ],
401
+ "methods": [
402
+ {
403
+ "name": "show",
404
+ "description": "主动展开时间选择面板。",
405
+ "params": [],
406
+ "returnType": "void",
407
+ "usageExample": "timepickerRef.value?.show();"
408
+ },
409
+ {
410
+ "name": "hide",
411
+ "description": "主动关闭时间选择面板。",
412
+ "params": [],
413
+ "returnType": "void",
414
+ "usageExample": "timepickerRef.value?.hide();"
415
+ },
416
+ {
417
+ "name": "position",
418
+ "description": "重新计算时间选择面板的位置。",
419
+ "params": [],
420
+ "returnType": "void",
421
+ "usageExample": "timepickerRef.value?.position();"
277
422
  }
278
423
  ],
279
- "methods": [],
280
424
  "typeDefinitions": [
281
425
  {
282
426
  "name": "Value",
@@ -444,4 +588,4 @@
444
588
  "relatedComponents": [
445
589
  "Datepicker"
446
590
  ]
447
- }
591
+ }