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
@@ -0,0 +1,351 @@
1
+ {
2
+ "id": "notification",
3
+ "name": "Notification",
4
+ "displayName": "通知提醒",
5
+ "category": "feedback",
6
+ "description": "全局通知组件,用于展示可停留、可关闭的系统级通知信息。支持不同语义类型、展示位置、自定义图标和点击回调,适合成功反馈、系统公告和后台异步任务提醒。",
7
+ "importStatement": "import { Notification } from '@king-design/vue';",
8
+ "props": [
9
+ {
10
+ "name": "title",
11
+ "description": "通知标题内容",
12
+ "type": {
13
+ "raw": "Children",
14
+ "kind": "custom"
15
+ },
16
+ "required": false,
17
+ "default": "undefined",
18
+ "usageExample": "Notification.notice({ title: '部署完成' })"
19
+ },
20
+ {
21
+ "name": "content",
22
+ "description": "通知正文内容",
23
+ "type": {
24
+ "raw": "Children",
25
+ "kind": "custom"
26
+ },
27
+ "required": false,
28
+ "default": "undefined",
29
+ "usageExample": "Notification.notice({ content: '实例已经创建成功' })"
30
+ },
31
+ {
32
+ "name": "duration",
33
+ "description": "通知自动关闭时间,单位 ms;传入 0 表示不自动关闭",
34
+ "type": {
35
+ "raw": "number",
36
+ "kind": "number"
37
+ },
38
+ "required": false,
39
+ "default": "5000",
40
+ "usageExample": "Notification.info({ title: '处理中', duration: 0 })"
41
+ },
42
+ {
43
+ "name": "type",
44
+ "description": "通知类型",
45
+ "type": {
46
+ "raw": "\"info\" | \"error\" | \"success\" | \"warning\" | \"\"",
47
+ "kind": "union",
48
+ "unionTypes": [
49
+ "info",
50
+ "error",
51
+ "success",
52
+ "warning",
53
+ ""
54
+ ]
55
+ },
56
+ "required": false,
57
+ "default": "\"info\"",
58
+ "allowedValues": [
59
+ {
60
+ "value": "info",
61
+ "label": "普通提示",
62
+ "isDefault": true
63
+ },
64
+ {
65
+ "value": "success",
66
+ "label": "成功通知"
67
+ },
68
+ {
69
+ "value": "warning",
70
+ "label": "警告通知"
71
+ },
72
+ {
73
+ "value": "error",
74
+ "label": "错误通知"
75
+ },
76
+ {
77
+ "value": "",
78
+ "label": "无类型样式"
79
+ }
80
+ ],
81
+ "usageExample": "Notification.success({ title: '发布成功' })"
82
+ },
83
+ {
84
+ "name": "closable",
85
+ "description": "是否显示关闭按钮",
86
+ "type": {
87
+ "raw": "boolean",
88
+ "kind": "boolean"
89
+ },
90
+ "required": false,
91
+ "default": "true",
92
+ "usageExample": "Notification.notice({ title: '系统公告', closable: false })"
93
+ },
94
+ {
95
+ "name": "icon",
96
+ "description": "自定义通知图标",
97
+ "type": {
98
+ "raw": "string | VNode",
99
+ "kind": "union"
100
+ },
101
+ "required": false,
102
+ "default": "undefined",
103
+ "usageExample": "Notification.notice({ title: '自定义图标', icon: 'k-icon-info' })"
104
+ },
105
+ {
106
+ "name": "position",
107
+ "description": "通知展示位置",
108
+ "type": {
109
+ "raw": "\"topRight\" | \"topLeft\" | \"bottomRight\" | \"bottomLeft\" | \"top\" | \"bottom\"",
110
+ "kind": "union",
111
+ "unionTypes": [
112
+ "topRight",
113
+ "topLeft",
114
+ "bottomRight",
115
+ "bottomLeft",
116
+ "top",
117
+ "bottom"
118
+ ]
119
+ },
120
+ "required": false,
121
+ "default": "\"topRight\"",
122
+ "allowedValues": [
123
+ {
124
+ "value": "topRight",
125
+ "label": "右上角",
126
+ "isDefault": true
127
+ },
128
+ {
129
+ "value": "topLeft",
130
+ "label": "左上角"
131
+ },
132
+ {
133
+ "value": "bottomRight",
134
+ "label": "右下角"
135
+ },
136
+ {
137
+ "value": "bottomLeft",
138
+ "label": "左下角"
139
+ },
140
+ {
141
+ "value": "top",
142
+ "label": "顶部居中"
143
+ },
144
+ {
145
+ "value": "bottom",
146
+ "label": "底部居中"
147
+ }
148
+ ],
149
+ "usageExample": "Notification.info({ title: '左下角通知', position: 'bottomLeft' })"
150
+ },
151
+ {
152
+ "name": "className",
153
+ "description": "自定义通知根节点类名",
154
+ "type": {
155
+ "raw": "string",
156
+ "kind": "string"
157
+ },
158
+ "required": false,
159
+ "default": "undefined",
160
+ "usageExample": "Notification.notice({ title: '自定义样式', className: 'my-notification' })"
161
+ },
162
+ {
163
+ "name": "onClick",
164
+ "description": "点击通知主体时触发的回调",
165
+ "type": {
166
+ "raw": "(e: MouseEvent) => void",
167
+ "kind": "function"
168
+ },
169
+ "required": false,
170
+ "default": "undefined",
171
+ "usageExample": "Notification.notice({ title: '查看详情', onClick: () => console.log('clicked') })"
172
+ },
173
+ {
174
+ "name": "onClose",
175
+ "description": "通知关闭后触发的回调",
176
+ "type": {
177
+ "raw": "() => void",
178
+ "kind": "function"
179
+ },
180
+ "required": false,
181
+ "default": "undefined",
182
+ "usageExample": "Notification.notice({ title: '关闭回调', onClose: () => console.log('closed') })"
183
+ }
184
+ ],
185
+ "events": [],
186
+ "slots": [],
187
+ "methods": [
188
+ {
189
+ "name": "notice",
190
+ "description": "展示一条通知并返回唯一 ID",
191
+ "params": [
192
+ {
193
+ "name": "props",
194
+ "type": "Partial<NotificationProps>",
195
+ "description": "通知配置对象"
196
+ }
197
+ ],
198
+ "returnType": "number",
199
+ "usageExample": "const id = Notification.notice({ title: '部署完成', content: '实例已创建完成' });"
200
+ },
201
+ {
202
+ "name": "close",
203
+ "description": "关闭指定 ID 的通知",
204
+ "params": [
205
+ {
206
+ "name": "id",
207
+ "type": "number",
208
+ "description": "由 notice 返回的通知 ID"
209
+ }
210
+ ],
211
+ "returnType": "void",
212
+ "usageExample": "Notification.close(id);"
213
+ },
214
+ {
215
+ "name": "info",
216
+ "description": "展示普通类型通知",
217
+ "params": [
218
+ {
219
+ "name": "props",
220
+ "type": "Partial<NotificationProps>",
221
+ "description": "通知配置对象"
222
+ }
223
+ ],
224
+ "returnType": "number",
225
+ "usageExample": "Notification.info({ title: '普通提醒', content: '这是一条信息通知' });"
226
+ },
227
+ {
228
+ "name": "success",
229
+ "description": "展示成功类型通知",
230
+ "params": [
231
+ {
232
+ "name": "props",
233
+ "type": "Partial<NotificationProps>",
234
+ "description": "通知配置对象"
235
+ }
236
+ ],
237
+ "returnType": "number",
238
+ "usageExample": "Notification.success({ title: '保存成功', content: '配置已更新' });"
239
+ },
240
+ {
241
+ "name": "warning",
242
+ "description": "展示警告类型通知",
243
+ "params": [
244
+ {
245
+ "name": "props",
246
+ "type": "Partial<NotificationProps>",
247
+ "description": "通知配置对象"
248
+ }
249
+ ],
250
+ "returnType": "number",
251
+ "usageExample": "Notification.warning({ title: '余额不足', content: '请尽快续费' });"
252
+ },
253
+ {
254
+ "name": "error",
255
+ "description": "展示错误类型通知",
256
+ "params": [
257
+ {
258
+ "name": "props",
259
+ "type": "Partial<NotificationProps>",
260
+ "description": "通知配置对象"
261
+ }
262
+ ],
263
+ "returnType": "number",
264
+ "usageExample": "Notification.error({ title: '提交失败', content: '请稍后重试' });"
265
+ }
266
+ ],
267
+ "examples": [
268
+ {
269
+ "id": "notification_basic",
270
+ "title": "基础通知",
271
+ "description": "点击按钮展示基础通知。",
272
+ "difficulty": "easy",
273
+ "code": "<script setup lang=\"ts\">\nimport { Button, Notification } from '@king-design/vue';\n\nconst openNotification = () => {\n Notification.notice({\n title: 'Hello, King Design',\n content: '这是一条基础通知',\n });\n};\n</script>\n<template>\n <Button @click=\"openNotification\">打开通知</Button>\n</template>",
274
+ "tags": [
275
+ "basic",
276
+ "notice"
277
+ ],
278
+ "usedProps": [],
279
+ "usedEvents": [],
280
+ "usedMethods": [
281
+ "notice"
282
+ ],
283
+ "scenario": "在页面操作完成后展示全局反馈。"
284
+ },
285
+ {
286
+ "id": "notification_types",
287
+ "title": "不同类型",
288
+ "description": "按语义展示不同类型的通知。",
289
+ "difficulty": "easy",
290
+ "code": "<script setup lang=\"ts\">\nimport { Button, Notification } from '@king-design/vue';\n</script>\n<template>\n <div style=\"display: flex; gap: 8px; flex-wrap: wrap;\">\n <Button @click=\"Notification.info({ title: '普通提醒', content: '这是一条信息通知' })\">Info</Button>\n <Button @click=\"Notification.success({ title: '发布成功', content: '版本已上线' })\">Success</Button>\n <Button @click=\"Notification.warning({ title: '容量不足', content: '请及时清理磁盘' })\">Warning</Button>\n <Button @click=\"Notification.error({ title: '同步失败', content: '网络连接异常' })\">Error</Button>\n </div>\n</template>",
291
+ "tags": [
292
+ "type",
293
+ "semantic"
294
+ ],
295
+ "usedProps": [
296
+ "type"
297
+ ],
298
+ "usedEvents": [],
299
+ "usedMethods": [
300
+ "info",
301
+ "success",
302
+ "warning",
303
+ "error"
304
+ ],
305
+ "scenario": "根据业务结果展示不同语义反馈。"
306
+ },
307
+ {
308
+ "id": "notification_position",
309
+ "title": "位置与常驻",
310
+ "description": "控制通知位置并让通知常驻直到手动关闭。",
311
+ "difficulty": "medium",
312
+ "code": "<script setup lang=\"ts\">\nimport { Button, Notification } from '@king-design/vue';\n\nconst openPinned = () => {\n Notification.notice({\n title: '系统公告',\n content: '该通知位于底部且不会自动关闭',\n position: 'bottom',\n duration: 0,\n });\n};\n</script>\n<template>\n <Button @click=\"openPinned\">打开常驻通知</Button>\n</template>",
313
+ "tags": [
314
+ "position",
315
+ "duration"
316
+ ],
317
+ "usedProps": [
318
+ "position",
319
+ "duration"
320
+ ],
321
+ "usedEvents": [],
322
+ "usedMethods": [
323
+ "notice"
324
+ ],
325
+ "scenario": "展示需要用户明确感知和手动关闭的通知。"
326
+ }
327
+ ],
328
+ "searchKeywords": [
329
+ "notification",
330
+ "通知",
331
+ "提醒",
332
+ "全局通知",
333
+ "notice"
334
+ ],
335
+ "useCases": [
336
+ "系统公告提醒",
337
+ "异步任务完成通知",
338
+ "操作成功或失败反馈"
339
+ ],
340
+ "typeDefinitions": [
341
+ {
342
+ "name": "NotificationPosition",
343
+ "definition": "type NotificationPosition = 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft' | 'top' | 'bottom'",
344
+ "description": "通知可展示的位置。"
345
+ }
346
+ ],
347
+ "relatedComponents": [
348
+ "Message",
349
+ "Dialog"
350
+ ]
351
+ }
@@ -438,6 +438,18 @@
438
438
  "文章列表分页",
439
439
  "商品列表分页"
440
440
  ],
441
+ "typeDefinitions": [
442
+ {
443
+ "name": "PaginationChangePayload",
444
+ "definition": "type PaginationChangePayload = {\\n value: number\\n limit: number\\n}",
445
+ "description": "分页 change 事件返回的数据结构,包含当前页码和每页条数。"
446
+ },
447
+ {
448
+ "name": "PaginationSize",
449
+ "definition": "type PaginationSize = 'large' | 'default' | 'small' | 'mini'",
450
+ "description": "分页器尺寸枚举,用于适配不同密度的列表页面。"
451
+ }
452
+ ],
441
453
  "relatedComponents": [
442
454
  "Table"
443
455
  ]
@@ -5,6 +5,17 @@
5
5
  "category": "navigation",
6
6
  "description": "集成选中统计和操作的分页组件,继承自 Pagination。",
7
7
  "importStatement": "import { PaginationPlus } from '@ksyun-internal/versatile';",
8
+ "inherits": [
9
+ {
10
+ "component": "Pagination",
11
+ "include": [
12
+ "props"
13
+ ],
14
+ "exclude": [
15
+ "value"
16
+ ]
17
+ }
18
+ ],
8
19
  "props": [
9
20
  {
10
21
  "name": "modelValue",
@@ -66,9 +77,25 @@
66
77
  "pagination",
67
78
  "page",
68
79
  "paging",
69
- "分页"
80
+ "分页",
81
+ "增强分页",
82
+ "选中统计分页",
83
+ "列表底部分页"
70
84
  ],
71
85
  "useCases": [
72
- "列表页分页控制"
86
+ "列表页分页控制",
87
+ "批量勾选后的分页统计",
88
+ "带选中数量提示的资源列表分页"
89
+ ],
90
+ "typeDefinitions": [
91
+ {
92
+ "name": "PaginationPlusChange",
93
+ "definition": "type PaginationPlusChange = {\\n page: number\\n limit: number\\n}",
94
+ "description": "增强分页 change 事件返回的数据结构。"
95
+ }
96
+ ],
97
+ "relatedComponents": [
98
+ "Pagination",
99
+ "ProTable"
73
100
  ]
74
- }
101
+ }
@@ -0,0 +1,121 @@
1
+ {
2
+ "id": "password",
3
+ "name": "Password",
4
+ "displayName": "密码输入",
5
+ "category": "form",
6
+ "description": "面向密码录入的业务输入组件,内置校验能力和错误提示展示,适合实例登录密码、数据库密码等安全场景。",
7
+ "importStatement": "import { Password } from '@ksyun-internal/versatile';",
8
+ "props": [
9
+ {
10
+ "name": "modelValue",
11
+ "description": "当前密码值",
12
+ "type": {
13
+ "raw": "string",
14
+ "kind": "string"
15
+ },
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "validate",
20
+ "description": "自定义校验函数或校验规则",
21
+ "type": {
22
+ "raw": "string | Function",
23
+ "kind": "union"
24
+ },
25
+ "required": false
26
+ },
27
+ {
28
+ "name": "errorMessage",
29
+ "description": "校验失败时的错误提示文案",
30
+ "type": {
31
+ "raw": "string",
32
+ "kind": "string"
33
+ },
34
+ "required": false
35
+ }
36
+ ],
37
+ "events": [
38
+ {
39
+ "name": "update:modelValue",
40
+ "vueEventName": "@update:modelValue",
41
+ "description": "密码内容变化时触发,可与父级表单或强度校验逻辑联动。",
42
+ "params": [
43
+ {
44
+ "name": "value",
45
+ "type": "string",
46
+ "description": "当前输入的密码值。",
47
+ "optional": true
48
+ }
49
+ ]
50
+ }
51
+ ],
52
+ "slots": [],
53
+ "methods": [],
54
+ "examples": [
55
+ {
56
+ "id": "password_login",
57
+ "title": "实例登录密码录入",
58
+ "description": "结合 validate 和错误提示控制密码输入质量。",
59
+ "difficulty": "easy",
60
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { Password } from '@ksyun-internal/versatile';\n\nconst password = ref('');\nconst validate = (value: string) => /^(?=.*[A-Z])(?=.*\\d).{8,}$/.test(value);\n</script>\n\n<template>\n <Password\n v-model=\"password\"\n :validate=\"validate\"\n error-message=\"至少 8 位,且必须包含大写字母和数字\"\n />\n</template>",
61
+ "tags": [
62
+ "password",
63
+ "security"
64
+ ],
65
+ "usedProps": [
66
+ "modelValue",
67
+ "validate",
68
+ "errorMessage"
69
+ ],
70
+ "usedEvents": [
71
+ "update:modelValue"
72
+ ],
73
+ "usedMethods": [],
74
+ "scenario": "在创建实例或重置密码时录入并校验登录密码。"
75
+ },
76
+ {
77
+ "id": "password_db_rule",
78
+ "title": "数据库密码规则校验",
79
+ "description": "通过自定义规则约束数据库密码长度和复杂度。",
80
+ "difficulty": "medium",
81
+ "code": "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { Password } from '@ksyun-internal/versatile';\n\nconst password = ref('');\nconst validate = (value: string) => value.length >= 12 && /[A-Z]/.test(value) && /\\d/.test(value);\n</script>\n\n<template>\n <Password\n v-model=\"password\"\n :validate=\"validate\"\n error-message=\"至少 12 位,并包含大写字母和数字\"\n />\n</template>",
82
+ "tags": [
83
+ "password",
84
+ "database"
85
+ ],
86
+ "usedProps": [
87
+ "modelValue",
88
+ "validate",
89
+ "errorMessage"
90
+ ],
91
+ "usedEvents": [
92
+ "update:modelValue"
93
+ ],
94
+ "usedMethods": [],
95
+ "scenario": "在数据库创建页中校验更严格的密码复杂度要求。"
96
+ }
97
+ ],
98
+ "searchKeywords": [
99
+ "password",
100
+ "password input",
101
+ "密码输入",
102
+ "密码校验",
103
+ "数据库密码",
104
+ "登录密码"
105
+ ],
106
+ "useCases": [
107
+ "账号凭证录入",
108
+ "新建实例密码配置",
109
+ "数据库密码复杂度校验"
110
+ ],
111
+ "typeDefinitions": [
112
+ {
113
+ "name": "PasswordRule",
114
+ "definition": "type PasswordRule = RegExp | string",
115
+ "description": "密码校验规则类型,可传正则表达式或规则描述文本。"
116
+ }
117
+ ],
118
+ "relatedComponents": [
119
+ "Input"
120
+ ]
121
+ }