@robot-admin/naive-ui-components 0.10.3 → 0.11.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 (658) hide show
  1. package/CHANGELOG.md +111 -100
  2. package/LICENSE +21 -21
  3. package/README.md +463 -318
  4. package/README_EN.md +404 -0
  5. package/SECURITY.md +23 -0
  6. package/dist/C_ActionBar.cjs +1 -1
  7. package/dist/C_ActionBar.css +46 -48
  8. package/dist/C_ActionBar.d.cts +1 -1
  9. package/dist/C_ActionBar.js +1 -1
  10. package/dist/C_ActionBar2.cjs +1 -0
  11. package/dist/C_ActionBar2.js +1 -2
  12. package/dist/C_AntV.cjs +1 -1
  13. package/dist/C_AntV.css +3 -3
  14. package/dist/C_AntV.d.cts +1 -1
  15. package/dist/C_AntV.js +1 -1
  16. package/dist/C_AntV2.cjs +4 -0
  17. package/dist/C_AntV2.js +3 -4
  18. package/dist/C_AudioPlayer.cjs +1 -1
  19. package/dist/C_AudioPlayer.css +15 -7
  20. package/dist/C_AudioPlayer.d.cts +1 -1
  21. package/dist/C_AudioPlayer.js +1 -1
  22. package/dist/C_AudioPlayer2.cjs +1 -0
  23. package/dist/C_AudioPlayer2.js +1 -2
  24. package/dist/C_AvatarGroup.cjs +1 -1
  25. package/dist/C_AvatarGroup.css +15 -7
  26. package/dist/C_AvatarGroup.d.cts +1 -1
  27. package/dist/C_AvatarGroup2.cjs +1 -0
  28. package/dist/C_AvatarGroup2.js +1 -2
  29. package/dist/C_Barcode.cjs +1 -1
  30. package/dist/C_Barcode.css +0 -2
  31. package/dist/C_Barcode.d.cts +1 -1
  32. package/dist/C_Barcode2.cjs +1 -0
  33. package/dist/C_Barcode2.js +1 -2
  34. package/dist/C_Breadcrumb.cjs +1 -1
  35. package/dist/C_Breadcrumb.css +0 -2
  36. package/dist/C_Breadcrumb.d.cts +2 -2
  37. package/dist/C_Breadcrumb.d.ts +1 -2
  38. package/dist/C_Breadcrumb.js +1 -1
  39. package/dist/C_Breadcrumb2.cjs +1 -0
  40. package/dist/C_Breadcrumb2.js +1 -2
  41. package/dist/C_Captcha.cjs +1 -1
  42. package/dist/C_Captcha.css +46 -21
  43. package/dist/C_Captcha.d.cts +3 -2
  44. package/dist/C_Captcha.d.ts +3 -2
  45. package/dist/C_Captcha.js +1 -1
  46. package/dist/C_Captcha2.cjs +1 -0
  47. package/dist/C_Captcha2.js +1 -2
  48. package/dist/C_Cascade.cjs +1 -1
  49. package/dist/C_Cascade.css +0 -2
  50. package/dist/C_Cascade.d.cts +1 -1
  51. package/dist/C_Cascade.d.ts +1 -1
  52. package/dist/C_Cascade2.cjs +1 -0
  53. package/dist/C_Cascade2.js +1 -2
  54. package/dist/C_Chat.cjs +1 -1
  55. package/dist/C_Chat.css +0 -2
  56. package/dist/C_Chat.d.cts +1 -1
  57. package/dist/C_Chat.d.ts +1 -1
  58. package/dist/C_Chat.js +1 -1
  59. package/dist/C_Chat2.cjs +1 -0
  60. package/dist/C_Chat2.js +1 -2
  61. package/dist/C_City.cjs +1 -1
  62. package/dist/C_City.css +28 -30
  63. package/dist/C_City.d.cts +1 -1
  64. package/dist/C_City.d.ts +1 -1
  65. package/dist/C_City2.cjs +1 -0
  66. package/dist/C_City2.js +1 -2
  67. package/dist/C_Code.cjs +1 -1
  68. package/dist/C_Code.css +241 -4
  69. package/dist/C_Code.d.cts +1 -1
  70. package/dist/C_Code.d.ts +1 -1
  71. package/dist/C_Code.js +1 -1
  72. package/dist/C_Code2.cjs +1 -0
  73. package/dist/C_Code2.js +1 -2
  74. package/dist/C_CollapsePanel.cjs +1 -1
  75. package/dist/C_CollapsePanel.css +12 -6
  76. package/dist/C_CollapsePanel.d.cts +1 -1
  77. package/dist/C_CollapsePanel.js +1 -1
  78. package/dist/C_CollapsePanel2.cjs +1 -0
  79. package/dist/C_CollapsePanel2.js +1 -2
  80. package/dist/C_ContextMenu.cjs +1 -1
  81. package/dist/C_ContextMenu.css +16 -18
  82. package/dist/C_ContextMenu.d.cts +1 -1
  83. package/dist/C_ContextMenu.d.ts +1 -1
  84. package/dist/C_ContextMenu.js +1 -1
  85. package/dist/C_ContextMenu2.cjs +1 -0
  86. package/dist/C_ContextMenu2.js +1 -2
  87. package/dist/C_Cron.cjs +1 -1
  88. package/dist/C_Cron.css +18 -8
  89. package/dist/C_Cron.d.cts +1 -1
  90. package/dist/C_Cron.js +1 -1
  91. package/dist/C_Cron2.cjs +1 -0
  92. package/dist/C_Cron2.js +1 -2
  93. package/dist/C_Date.cjs +1 -1
  94. package/dist/C_Date.css +1 -0
  95. package/dist/C_Date.d.cts +2 -2
  96. package/dist/C_Date.d.ts +2 -2
  97. package/dist/C_Date2.cjs +1 -0
  98. package/dist/C_Date2.js +1 -2
  99. package/dist/C_Draggable.cjs +1 -1
  100. package/dist/C_Draggable.css +9 -5
  101. package/dist/C_Draggable.d.cts +1 -1
  102. package/dist/C_Draggable2.cjs +1 -0
  103. package/dist/C_Draggable2.js +1 -2
  104. package/dist/C_Editor.cjs +1 -1
  105. package/dist/C_Editor.css +80 -67
  106. package/dist/C_Editor.d.cts +1 -1
  107. package/dist/C_Editor.d.ts +1 -1
  108. package/dist/C_Editor2.cjs +1 -0
  109. package/dist/C_Editor2.js +1 -2
  110. package/dist/C_FilePreview.cjs +1 -1
  111. package/dist/C_FilePreview.css +0 -2
  112. package/dist/C_FilePreview.d.cts +1 -1
  113. package/dist/C_FilePreview.js +1 -1
  114. package/dist/C_FilePreview2.cjs +1 -0
  115. package/dist/C_FilePreview2.js +1 -2
  116. package/dist/C_Form.base.css +980 -0
  117. package/dist/C_Form.cjs +1 -1
  118. package/dist/C_Form.css +256 -155
  119. package/dist/C_Form.d.cts +2 -2
  120. package/dist/C_Form.d.ts +2 -2
  121. package/dist/C_Form.js +1 -1
  122. package/dist/C_Form2.cjs +1 -0
  123. package/dist/C_Form2.js +1 -2
  124. package/dist/C_FormSearch.cjs +1 -1
  125. package/dist/C_FormSearch.css +47 -47
  126. package/dist/C_FormSearch.d.cts +2 -2
  127. package/dist/C_FormSearch.d.ts +2 -2
  128. package/dist/C_FormSearch2.cjs +1 -0
  129. package/dist/C_FormSearch2.js +1 -2
  130. package/dist/C_FormulaEditor.cjs +1 -1
  131. package/dist/C_FormulaEditor.css +64 -38
  132. package/dist/C_FormulaEditor.d.cts +1 -1
  133. package/dist/C_FormulaEditor.js +1 -1
  134. package/dist/C_FormulaEditor2.cjs +2 -0
  135. package/dist/C_FormulaEditor2.js +2 -2
  136. package/dist/C_FullCalendar.cjs +1 -1
  137. package/dist/C_FullCalendar.css +0 -2
  138. package/dist/C_FullCalendar.d.cts +1 -1
  139. package/dist/C_FullCalendar2.cjs +1 -0
  140. package/dist/C_FullCalendar2.js +1 -2
  141. package/dist/C_GlobalSearch.cjs +1 -1
  142. package/dist/C_GlobalSearch.css +111 -113
  143. package/dist/C_GlobalSearch.d.cts +1 -1
  144. package/dist/C_GlobalSearch2.cjs +1 -0
  145. package/dist/C_GlobalSearch2.js +1 -2
  146. package/dist/C_Guide.cjs +1 -1
  147. package/dist/C_Guide.css +1 -0
  148. package/dist/C_Guide.d.cts +1 -1
  149. package/dist/C_Guide.d.ts +1 -1
  150. package/dist/C_Guide.js +1 -1
  151. package/dist/C_Guide2.cjs +1 -0
  152. package/dist/C_Guide2.js +1 -2
  153. package/dist/C_Icon.cjs +1 -1
  154. package/dist/C_Icon.css +58 -0
  155. package/dist/C_Icon.d.cts +1 -1
  156. package/dist/C_Icon.d.ts +1 -1
  157. package/dist/C_Icon2.cjs +1 -0
  158. package/dist/C_Icon2.js +1 -2
  159. package/dist/C_ImageCropper.cjs +1 -1
  160. package/dist/C_ImageCropper.css +0 -2
  161. package/dist/C_ImageCropper.d.cts +1 -1
  162. package/dist/C_ImageCropper.js +1 -1
  163. package/dist/C_ImageCropper2.cjs +1 -0
  164. package/dist/C_ImageCropper2.js +1 -2
  165. package/dist/C_Language.cjs +1 -1
  166. package/dist/C_Language.css +1 -0
  167. package/dist/C_Language.d.cts +1 -1
  168. package/dist/C_Language.d.ts +1 -1
  169. package/dist/C_Language.js +1 -1
  170. package/dist/C_Language2.cjs +1 -0
  171. package/dist/C_Language2.js +1 -2
  172. package/dist/C_Login.cjs +1 -1
  173. package/dist/C_Login.css +92 -76
  174. package/dist/C_Login.d.cts +1 -1
  175. package/dist/C_Login.d.ts +1 -1
  176. package/dist/C_Login.js +1 -1
  177. package/dist/C_Login2.cjs +1 -0
  178. package/dist/C_Login2.js +1 -2
  179. package/dist/C_Map.cjs +1 -1
  180. package/dist/C_Map.css +665 -5
  181. package/dist/C_Map.d.cts +1 -1
  182. package/dist/C_Map2.cjs +1 -0
  183. package/dist/C_Map2.js +1 -2
  184. package/dist/C_Markdown.cjs +1 -1
  185. package/dist/C_Markdown.css +940 -35
  186. package/dist/C_Markdown.d.cts +1 -1
  187. package/dist/C_Markdown.d.ts +1 -1
  188. package/dist/C_Markdown2.cjs +1 -0
  189. package/dist/C_Markdown2.js +1 -2
  190. package/dist/C_Menu.cjs +1 -1
  191. package/dist/C_Menu.css +1 -0
  192. package/dist/C_Menu.d.cts +3 -3
  193. package/dist/C_Menu.d.ts +3 -4
  194. package/dist/C_Menu.js +1 -1
  195. package/dist/C_Menu2.cjs +1 -0
  196. package/dist/C_Menu2.js +1 -2
  197. package/dist/C_NotificationCenter.cjs +1 -1
  198. package/dist/C_NotificationCenter.css +95 -47
  199. package/dist/C_NotificationCenter.d.cts +1 -1
  200. package/dist/C_NotificationCenter.js +1 -1
  201. package/dist/C_NotificationCenter2.cjs +1 -0
  202. package/dist/C_NotificationCenter2.js +1 -2
  203. package/dist/C_OrgChart.cjs +1 -1
  204. package/dist/C_OrgChart.css +6 -4
  205. package/dist/C_OrgChart.d.cts +1 -1
  206. package/dist/C_OrgChart.d.ts +1 -1
  207. package/dist/C_OrgChart2.cjs +1 -0
  208. package/dist/C_OrgChart2.js +1 -2
  209. package/dist/C_Progress.cjs +1 -1
  210. package/dist/C_Progress.css +1 -0
  211. package/dist/C_Progress.d.cts +1 -1
  212. package/dist/C_Progress.d.ts +1 -1
  213. package/dist/C_Progress2.cjs +1 -0
  214. package/dist/C_Progress2.js +1 -2
  215. package/dist/C_QRCode.cjs +1 -1
  216. package/dist/C_QRCode.css +8 -10
  217. package/dist/C_QRCode.d.cts +1 -1
  218. package/dist/C_QRCode2.cjs +1 -0
  219. package/dist/C_QRCode2.js +1 -2
  220. package/dist/C_Signature.cjs +1 -1
  221. package/dist/C_Signature.css +0 -2
  222. package/dist/C_Signature.d.cts +1 -1
  223. package/dist/C_Signature.js +1 -1
  224. package/dist/C_Signature2.cjs +1 -0
  225. package/dist/C_Signature2.js +1 -2
  226. package/dist/C_Skeleton.cjs +1 -1
  227. package/dist/C_Skeleton.css +0 -2
  228. package/dist/C_Skeleton.d.cts +1 -1
  229. package/dist/C_Skeleton.d.ts +1 -1
  230. package/dist/C_Skeleton2.cjs +1 -0
  231. package/dist/C_Skeleton2.js +1 -2
  232. package/dist/C_SplitPane.cjs +1 -1
  233. package/dist/C_SplitPane.css +27 -11
  234. package/dist/C_SplitPane.d.cts +1 -1
  235. package/dist/C_SplitPane.js +1 -1
  236. package/dist/C_SplitPane2.cjs +1 -0
  237. package/dist/C_SplitPane2.js +1 -2
  238. package/dist/C_Steps.cjs +1 -1
  239. package/dist/C_Steps.css +37 -39
  240. package/dist/C_Steps.d.cts +1 -1
  241. package/dist/C_Steps.d.ts +1 -1
  242. package/dist/C_Steps2.cjs +1 -0
  243. package/dist/C_Steps2.js +1 -2
  244. package/dist/C_Table.base.css +1588 -0
  245. package/dist/C_Table.cjs +1 -1
  246. package/dist/C_Table.css +1202 -112
  247. package/dist/C_Table.d.cts +2 -2
  248. package/dist/C_Table.d.ts +11 -2
  249. package/dist/C_Table.js +1 -1
  250. package/dist/C_TagsView.cjs +1 -1
  251. package/dist/C_TagsView.css +44 -40
  252. package/dist/C_TagsView.d.cts +2 -2
  253. package/dist/C_TagsView.d.ts +2 -3
  254. package/dist/C_TagsView.js +1 -1
  255. package/dist/C_TagsView2.cjs +1 -0
  256. package/dist/C_TagsView2.js +1 -2
  257. package/dist/C_Theme.cjs +1 -1
  258. package/dist/C_Theme.css +1 -0
  259. package/dist/C_Theme.d.cts +1 -1
  260. package/dist/C_Theme.d.ts +1 -1
  261. package/dist/C_Theme.js +1 -1
  262. package/dist/C_Theme2.cjs +1 -0
  263. package/dist/C_Theme2.js +1 -2
  264. package/dist/C_Time.cjs +1 -1
  265. package/dist/C_Time.css +0 -2
  266. package/dist/C_Time.d.cts +2 -2
  267. package/dist/C_Time.d.ts +2 -2
  268. package/dist/C_Time2.cjs +1 -0
  269. package/dist/C_Time2.js +1 -2
  270. package/dist/C_Timeline.cjs +1 -1
  271. package/dist/C_Timeline.css +44 -46
  272. package/dist/C_Timeline.d.cts +1 -1
  273. package/dist/C_Timeline.js +1 -1
  274. package/dist/C_Timeline2.cjs +1 -0
  275. package/dist/C_Timeline2.js +1 -2
  276. package/dist/C_Transfer.cjs +1 -1
  277. package/dist/C_Transfer.css +21 -9
  278. package/dist/C_Transfer.d.cts +1 -1
  279. package/dist/C_Transfer.js +1 -1
  280. package/dist/C_Transfer2.cjs +1 -0
  281. package/dist/C_Transfer2.js +1 -2
  282. package/dist/C_Tree.cjs +1 -1
  283. package/dist/C_Tree.css +0 -2
  284. package/dist/C_Tree.d.cts +1 -1
  285. package/dist/C_Tree.js +1 -1
  286. package/dist/C_Tree2.cjs +1 -0
  287. package/dist/C_Tree2.js +1 -2
  288. package/dist/C_Upload.cjs +1 -1
  289. package/dist/C_Upload.css +17 -17
  290. package/dist/C_Upload.d.cts +1 -1
  291. package/dist/C_Upload.js +1 -1
  292. package/dist/C_Upload2.cjs +1 -0
  293. package/dist/C_Upload2.js +1 -25
  294. package/dist/C_VideoPlayer.cjs +1 -1
  295. package/dist/C_VideoPlayer.css +35 -24
  296. package/dist/C_VideoPlayer.d.cts +2 -2
  297. package/dist/C_VideoPlayer.d.ts +2 -2
  298. package/dist/C_VideoPlayer.js +1 -1
  299. package/dist/C_VideoPlayer2.cjs +3 -0
  300. package/dist/C_VideoPlayer2.js +3 -4
  301. package/dist/C_VtableGantt.cjs +1 -1
  302. package/dist/C_VtableGantt.css +15 -7
  303. package/dist/C_VtableGantt.d.cts +1 -1
  304. package/dist/C_VtableGantt.d.ts +1 -1
  305. package/dist/C_VtableGantt.js +1 -1
  306. package/dist/C_VtableGantt2.cjs +1 -0
  307. package/dist/C_VtableGantt2.js +1 -2
  308. package/dist/C_WaterFall.cjs +1 -1
  309. package/dist/C_WaterFall.css +15 -17
  310. package/dist/C_WaterFall.d.cts +1 -1
  311. package/dist/C_WaterFall2.cjs +1 -0
  312. package/dist/C_WaterFall2.js +1 -2
  313. package/dist/C_WorkFlow.cjs +1 -1
  314. package/dist/C_WorkFlow.css +257 -197
  315. package/dist/C_WorkFlow.d.cts +1 -1
  316. package/dist/C_WorkFlow.js +1 -1
  317. package/dist/C_WorkFlow2.cjs +1 -0
  318. package/dist/C_WorkFlow2.js +1 -2
  319. package/dist/city.cjs +1 -0
  320. package/dist/city.js +1 -2
  321. package/dist/config.cjs +1 -0
  322. package/dist/config.d.cts +33 -0
  323. package/dist/config.d.ts +33 -0
  324. package/dist/config.js +1 -0
  325. package/dist/constants.d.cts +272 -0
  326. package/dist/constants.d.ts +6 -7
  327. package/dist/constants2.d.cts +177 -0
  328. package/dist/constants2.d.ts +5 -6
  329. package/dist/constants3.d.cts +479 -0
  330. package/dist/constants3.d.ts +17 -13
  331. package/dist/constants4.d.cts +420 -0
  332. package/dist/constants4.d.ts +30 -40
  333. package/dist/constants5.d.cts +491 -0
  334. package/dist/constants5.d.ts +22 -6
  335. package/dist/data.cjs +1 -0
  336. package/dist/data.d.cts +67 -0
  337. package/dist/data.d.ts +13 -13
  338. package/dist/data.js +1 -0
  339. package/dist/export-helper.cjs +1 -0
  340. package/dist/helpers.cjs +1 -0
  341. package/dist/helpers.js +1 -0
  342. package/dist/html.cjs +1 -0
  343. package/dist/html.js +1 -0
  344. package/dist/images/marker-icon-2x.png +0 -0
  345. package/dist/images/marker-icon.png +0 -0
  346. package/dist/images/marker-shadow.png +0 -0
  347. package/dist/index.cjs +1 -2
  348. package/dist/index.d.cts +60 -99
  349. package/dist/index.d.ts +41 -83
  350. package/dist/index.js +1 -2
  351. package/dist/index.vue.d.cts +79 -0
  352. package/dist/index.vue.d.ts +3 -4
  353. package/dist/index10.vue.d.cts +47 -0
  354. package/dist/index10.vue.d.ts +80 -40
  355. package/dist/index11.vue.d.cts +88 -0
  356. package/dist/index11.vue.d.ts +68 -78
  357. package/dist/index12.vue.d.cts +79 -0
  358. package/dist/index12.vue.d.ts +49 -45
  359. package/dist/index13.vue.d.cts +64 -0
  360. package/dist/index13.vue.d.ts +99 -34
  361. package/dist/index14.vue.d.cts +106 -0
  362. package/dist/index14.vue.d.ts +82 -99
  363. package/dist/index15.vue.d.cts +91 -0
  364. package/dist/index15.vue.d.ts +25 -83
  365. package/dist/index16.vue.d.cts +34 -0
  366. package/dist/index16.vue.d.ts +113 -24
  367. package/dist/index17.vue.d.cts +124 -0
  368. package/dist/index17.vue.d.ts +76 -110
  369. package/dist/index18.vue.d.cts +83 -0
  370. package/dist/index18.vue.d.ts +67 -73
  371. package/dist/index19.vue.d.cts +101 -0
  372. package/dist/index19.vue.d.ts +93 -59
  373. package/dist/index2.vue.d.cts +82 -0
  374. package/dist/index2.vue.d.ts +1 -2
  375. package/dist/index20.vue.d.cts +54 -0
  376. package/dist/index20.vue.d.ts +40 -88
  377. package/dist/index21.vue.d.cts +103 -0
  378. package/dist/index21.vue.d.ts +89 -41
  379. package/dist/index22.vue.d.cts +45 -0
  380. package/dist/index22.vue.d.ts +37 -96
  381. package/dist/index23.vue.d.cts +19 -0
  382. package/dist/index23.vue.d.ts +8 -35
  383. package/dist/{index28.vue.d.ts → index24.vue.d.cts} +5 -6
  384. package/dist/index24.vue.d.ts +650 -86
  385. package/dist/index25.vue.d.cts +96 -0
  386. package/dist/index25.vue.d.ts +86 -10
  387. package/dist/index26.vue.d.cts +111 -0
  388. package/dist/index26.vue.d.ts +3 -4
  389. package/dist/index27.vue.d.cts +80 -0
  390. package/dist/index27.vue.d.ts +3 -4
  391. package/dist/index3.vue.d.cts +87 -0
  392. package/dist/index3.vue.d.ts +2 -3
  393. package/dist/index4.vue.d.cts +37 -0
  394. package/dist/index4.vue.d.ts +5 -6
  395. package/dist/index5.vue.d.cts +133 -0
  396. package/dist/index5.vue.d.ts +2 -3
  397. package/dist/index6.vue.d.cts +29 -0
  398. package/dist/index6.vue.d.ts +25 -38
  399. package/dist/index7.vue.d.cts +32 -0
  400. package/dist/index7.vue.d.ts +117 -23
  401. package/dist/index8.vue.d.cts +127 -0
  402. package/dist/index8.vue.d.ts +17 -111
  403. package/dist/index9.vue.d.cts +34 -0
  404. package/dist/index9.vue.d.ts +38 -26
  405. package/dist/{menuAdapter.d.ts → public.d.ts} +2 -3
  406. package/dist/resolver.cjs +1 -2
  407. package/dist/resolver.d.cts +6 -4
  408. package/dist/resolver.d.ts +6 -4
  409. package/dist/resolver.js +1 -2
  410. package/dist/storage.cjs +1 -0
  411. package/dist/storage.js +1 -2
  412. package/dist/style.css +9864 -7702
  413. package/dist/types.d.cts +107 -0
  414. package/dist/types.d.ts +58 -0
  415. package/dist/types2.d.cts +58 -0
  416. package/dist/useCalendarEvents.d.cts +150 -0
  417. package/dist/useCalendarEvents.d.ts +3 -4
  418. package/dist/useCollapsePanel.d.cts +133 -0
  419. package/dist/useCollapsePanel.d.ts +1 -2
  420. package/dist/useCropperCore.d.cts +104 -0
  421. package/dist/useCropperCore.d.ts +12 -10
  422. package/dist/useDraggableLayout.d.cts +196 -0
  423. package/dist/useDraggableLayout.d.ts +18 -16
  424. package/dist/useDynamicFormState.d.cts +749 -0
  425. package/dist/useDynamicFormState.d.ts +234 -112
  426. package/dist/useEdgeInteraction.d.cts +324 -0
  427. package/dist/useEdgeInteraction.d.ts +6 -7
  428. package/dist/useFullscreen.d.cts +165 -0
  429. package/dist/useFullscreen.d.ts +1 -2
  430. package/dist/useGlobalSearch.d.cts +110 -0
  431. package/dist/useGlobalSearch.d.ts +17 -9
  432. package/dist/useInfiniteScroll.d.cts +177 -0
  433. package/dist/useInfiniteScroll.d.ts +11 -3
  434. package/dist/useQRCode.d.cts +89 -0
  435. package/dist/useQRCode.d.ts +7 -5
  436. package/dist/useSearchState.d.cts +871 -0
  437. package/dist/useSearchState.d.ts +828 -28
  438. package/dist/useSignatureHistory.d.cts +197 -0
  439. package/dist/useSignatureHistory.d.ts +9 -4
  440. package/dist/useSplitResize.d.cts +157 -0
  441. package/dist/useSplitResize.d.ts +3 -4
  442. package/dist/useTableQuery.cjs +3 -0
  443. package/dist/{useModalEdit.d.ts → useTableQuery.d.cts} +624 -211
  444. package/dist/useTableQuery.d.ts +1721 -0
  445. package/dist/useTableQuery.js +3 -0
  446. package/dist/useTimeSelection.d.cts +116 -0
  447. package/dist/useTimeSelection.d.ts +19 -8
  448. package/dist/useTreeOperations.d.cts +185 -0
  449. package/dist/useTreeOperations.d.ts +14 -12
  450. package/dist/useWorkflowValidation.d.cts +1051 -0
  451. package/dist/useWorkflowValidation.d.ts +66 -67
  452. package/dist/verification.d.cts +58 -0
  453. package/dist/verification.d.ts +58 -0
  454. package/package.json +101 -69
  455. package/dist/C_ActionBar-BAcfOfRw.css.map +0 -1
  456. package/dist/C_ActionBar-DG2HW7t5.css.map +0 -1
  457. package/dist/C_ActionBar.js.map +0 -1
  458. package/dist/C_ActionBar2.js.map +0 -1
  459. package/dist/C_AntV-D_jTK8oZ.css.map +0 -1
  460. package/dist/C_AntV-DanTAq22.css.map +0 -1
  461. package/dist/C_AntV.js.map +0 -1
  462. package/dist/C_AntV2.js.map +0 -1
  463. package/dist/C_AudioPlayer-BnYIJXPD.css.map +0 -1
  464. package/dist/C_AudioPlayer-ldTy9Y34.css.map +0 -1
  465. package/dist/C_AudioPlayer.js.map +0 -1
  466. package/dist/C_AudioPlayer2.js.map +0 -1
  467. package/dist/C_AvatarGroup-B9d-GJ9c.css.map +0 -1
  468. package/dist/C_AvatarGroup-SIzxuuZr.css.map +0 -1
  469. package/dist/C_AvatarGroup.js.map +0 -1
  470. package/dist/C_AvatarGroup2.js.map +0 -1
  471. package/dist/C_Barcode-CAU2mFcx.css.map +0 -1
  472. package/dist/C_Barcode-D2oJaEg3.css.map +0 -1
  473. package/dist/C_Barcode.js.map +0 -1
  474. package/dist/C_Barcode2.js.map +0 -1
  475. package/dist/C_Breadcrumb-BiH0d9AI.css.map +0 -1
  476. package/dist/C_Breadcrumb-Bqqrl8nX.css.map +0 -1
  477. package/dist/C_Breadcrumb.js.map +0 -1
  478. package/dist/C_Breadcrumb2.js.map +0 -1
  479. package/dist/C_Captcha-B3yrtG7t.css.map +0 -1
  480. package/dist/C_Captcha-D4hDdWDu.css.map +0 -1
  481. package/dist/C_Captcha.js.map +0 -1
  482. package/dist/C_Captcha2.js.map +0 -1
  483. package/dist/C_Cascade-CmCrLVft.css.map +0 -1
  484. package/dist/C_Cascade-U6A5AJJb.css.map +0 -1
  485. package/dist/C_Cascade.js.map +0 -1
  486. package/dist/C_Cascade2.js.map +0 -1
  487. package/dist/C_Chat-CF1SU7mc.css.map +0 -1
  488. package/dist/C_Chat-DeUv6uuI.css.map +0 -1
  489. package/dist/C_Chat.js.map +0 -1
  490. package/dist/C_Chat2.js.map +0 -1
  491. package/dist/C_City-DdkX6u64.css.map +0 -1
  492. package/dist/C_City-iP-dIvui.css.map +0 -1
  493. package/dist/C_City.js.map +0 -1
  494. package/dist/C_City2.js.map +0 -1
  495. package/dist/C_Code-BWmJMNS7.css.map +0 -1
  496. package/dist/C_Code-k14vjgVl.css.map +0 -1
  497. package/dist/C_Code.js.map +0 -1
  498. package/dist/C_Code2.js.map +0 -1
  499. package/dist/C_CollapsePanel-BSKcWSmY.css.map +0 -1
  500. package/dist/C_CollapsePanel-DRvRq8tB.css.map +0 -1
  501. package/dist/C_CollapsePanel.js.map +0 -1
  502. package/dist/C_CollapsePanel2.js.map +0 -1
  503. package/dist/C_ContextMenu-Bn_uhJSo.css.map +0 -1
  504. package/dist/C_ContextMenu-C9iuxG2n.css.map +0 -1
  505. package/dist/C_ContextMenu.js.map +0 -1
  506. package/dist/C_ContextMenu2.js.map +0 -1
  507. package/dist/C_Cron-BIQ2By9v.css.map +0 -1
  508. package/dist/C_Cron-BNSAGD6A.css.map +0 -1
  509. package/dist/C_Cron.js.map +0 -1
  510. package/dist/C_Cron2.js.map +0 -1
  511. package/dist/C_Date.js.map +0 -1
  512. package/dist/C_Date2.js.map +0 -1
  513. package/dist/C_Draggable-BDAbk4s5.css.map +0 -1
  514. package/dist/C_Draggable-UhfDLXop.css.map +0 -1
  515. package/dist/C_Draggable.js.map +0 -1
  516. package/dist/C_Draggable2.js.map +0 -1
  517. package/dist/C_Editor-CZOaChru.css.map +0 -1
  518. package/dist/C_Editor-kJAQq5z6.css.map +0 -1
  519. package/dist/C_Editor.js.map +0 -1
  520. package/dist/C_Editor2.js.map +0 -1
  521. package/dist/C_FilePreview-Bs_omgJS.css.map +0 -1
  522. package/dist/C_FilePreview-DbwoyF2j.css.map +0 -1
  523. package/dist/C_FilePreview.js.map +0 -1
  524. package/dist/C_FilePreview2.js.map +0 -1
  525. package/dist/C_Form-B_2ql62V.css.map +0 -1
  526. package/dist/C_Form-CX-7xsz3.css.map +0 -1
  527. package/dist/C_Form.js.map +0 -1
  528. package/dist/C_Form2.js.map +0 -1
  529. package/dist/C_FormSearch-C3F8peAY.css.map +0 -1
  530. package/dist/C_FormSearch-qW56bJPo.css.map +0 -1
  531. package/dist/C_FormSearch.js.map +0 -1
  532. package/dist/C_FormSearch2.js.map +0 -1
  533. package/dist/C_FormulaEditor-ChOvDbsZ.css.map +0 -1
  534. package/dist/C_FormulaEditor-mfiIUDY4.css.map +0 -1
  535. package/dist/C_FormulaEditor.js.map +0 -1
  536. package/dist/C_FormulaEditor2.js.map +0 -1
  537. package/dist/C_FullCalendar-C2nsqrgS.css.map +0 -1
  538. package/dist/C_FullCalendar-DdFtXVhy.css.map +0 -1
  539. package/dist/C_FullCalendar.js.map +0 -1
  540. package/dist/C_FullCalendar2.js.map +0 -1
  541. package/dist/C_GlobalSearch-Dq4Wo01K.css.map +0 -1
  542. package/dist/C_GlobalSearch-RB7J43gu.css.map +0 -1
  543. package/dist/C_GlobalSearch.js.map +0 -1
  544. package/dist/C_GlobalSearch2.js.map +0 -1
  545. package/dist/C_Guide.js.map +0 -1
  546. package/dist/C_Guide2.js.map +0 -1
  547. package/dist/C_Icon.js.map +0 -1
  548. package/dist/C_Icon2.js.map +0 -1
  549. package/dist/C_ImageCropper-CdTX2nxU.css.map +0 -1
  550. package/dist/C_ImageCropper-ilOqPklJ.css.map +0 -1
  551. package/dist/C_ImageCropper.js.map +0 -1
  552. package/dist/C_ImageCropper2.js.map +0 -1
  553. package/dist/C_Language.js.map +0 -1
  554. package/dist/C_Language2.js.map +0 -1
  555. package/dist/C_Login-B3qYkLrN.css.map +0 -1
  556. package/dist/C_Login-xMI1_ojE.css.map +0 -1
  557. package/dist/C_Login.js.map +0 -1
  558. package/dist/C_Login2.js.map +0 -1
  559. package/dist/C_Map-CWMMN58_.css.map +0 -1
  560. package/dist/C_Map-xSR2H-9o.css.map +0 -1
  561. package/dist/C_Map.js.map +0 -1
  562. package/dist/C_Map2.js.map +0 -1
  563. package/dist/C_Markdown-C7lTVJ1S.css.map +0 -1
  564. package/dist/C_Markdown-CZDm_baQ.css.map +0 -1
  565. package/dist/C_Markdown.js.map +0 -1
  566. package/dist/C_Markdown2.js.map +0 -1
  567. package/dist/C_Menu.js.map +0 -1
  568. package/dist/C_Menu2.js.map +0 -1
  569. package/dist/C_NotificationCenter-D7GGGWg7.css.map +0 -1
  570. package/dist/C_NotificationCenter-SSmeHA45.css.map +0 -1
  571. package/dist/C_NotificationCenter.js.map +0 -1
  572. package/dist/C_NotificationCenter2.js.map +0 -1
  573. package/dist/C_OrgChart-ChZu346B.css.map +0 -1
  574. package/dist/C_OrgChart-DqBufOv5.css.map +0 -1
  575. package/dist/C_OrgChart.js.map +0 -1
  576. package/dist/C_OrgChart2.js.map +0 -1
  577. package/dist/C_Progress.js.map +0 -1
  578. package/dist/C_Progress2.js.map +0 -1
  579. package/dist/C_QRCode-B_1lHUdx.css.map +0 -1
  580. package/dist/C_QRCode-CuQRYu0s.css.map +0 -1
  581. package/dist/C_QRCode.js.map +0 -1
  582. package/dist/C_QRCode2.js.map +0 -1
  583. package/dist/C_Signature-Bp-RBpAl.css.map +0 -1
  584. package/dist/C_Signature-Cb2VW1ok.css.map +0 -1
  585. package/dist/C_Signature.js.map +0 -1
  586. package/dist/C_Signature2.js.map +0 -1
  587. package/dist/C_Skeleton-BNPbaut7.css.map +0 -1
  588. package/dist/C_Skeleton-Djsjw8XY.css.map +0 -1
  589. package/dist/C_Skeleton.js.map +0 -1
  590. package/dist/C_Skeleton2.js.map +0 -1
  591. package/dist/C_SplitPane-CgGWYsRE.css.map +0 -1
  592. package/dist/C_SplitPane-DGf6WEeR.css.map +0 -1
  593. package/dist/C_SplitPane.js.map +0 -1
  594. package/dist/C_SplitPane2.js.map +0 -1
  595. package/dist/C_Steps-27Exh7PM.css.map +0 -1
  596. package/dist/C_Steps-DU9ZsFrs.css.map +0 -1
  597. package/dist/C_Steps.js.map +0 -1
  598. package/dist/C_Steps2.js.map +0 -1
  599. package/dist/C_Table--kbQaaBv.css.map +0 -1
  600. package/dist/C_Table-D631kdXC.css.map +0 -1
  601. package/dist/C_Table.js.map +0 -1
  602. package/dist/C_Table2.js +0 -4
  603. package/dist/C_Table2.js.map +0 -1
  604. package/dist/C_TagsView-BN8vMRsY.css.map +0 -1
  605. package/dist/C_TagsView-s1dnSJAV.css.map +0 -1
  606. package/dist/C_TagsView.js.map +0 -1
  607. package/dist/C_TagsView2.js.map +0 -1
  608. package/dist/C_Theme.js.map +0 -1
  609. package/dist/C_Theme2.js.map +0 -1
  610. package/dist/C_Time-BQ9PGy8B.css.map +0 -1
  611. package/dist/C_Time-CO73krC6.css.map +0 -1
  612. package/dist/C_Time.js.map +0 -1
  613. package/dist/C_Time2.js.map +0 -1
  614. package/dist/C_Timeline-4rk0Dzgn.css.map +0 -1
  615. package/dist/C_Timeline-DdESmqwL.css.map +0 -1
  616. package/dist/C_Timeline.js.map +0 -1
  617. package/dist/C_Timeline2.js.map +0 -1
  618. package/dist/C_Transfer-B-vjvhjI.css.map +0 -1
  619. package/dist/C_Transfer-EzdHzZNv.css.map +0 -1
  620. package/dist/C_Transfer.js.map +0 -1
  621. package/dist/C_Transfer2.js.map +0 -1
  622. package/dist/C_Tree-CsXgGfhn.css.map +0 -1
  623. package/dist/C_Tree-P7eRpnOa.css.map +0 -1
  624. package/dist/C_Tree.js.map +0 -1
  625. package/dist/C_Tree2.js.map +0 -1
  626. package/dist/C_Upload-CHjiVVh7.css.map +0 -1
  627. package/dist/C_Upload-DE3OLsZD.css.map +0 -1
  628. package/dist/C_Upload.js.map +0 -1
  629. package/dist/C_Upload2.js.map +0 -1
  630. package/dist/C_VideoPlayer-CnaNOFtW.css.map +0 -1
  631. package/dist/C_VideoPlayer-cnP88zNV.css.map +0 -1
  632. package/dist/C_VideoPlayer.js.map +0 -1
  633. package/dist/C_VideoPlayer2.js.map +0 -1
  634. package/dist/C_VtableGantt-CZlJgvpC.css.map +0 -1
  635. package/dist/C_VtableGantt-DKfQkql0.css.map +0 -1
  636. package/dist/C_VtableGantt.js.map +0 -1
  637. package/dist/C_VtableGantt2.js.map +0 -1
  638. package/dist/C_WaterFall-BJ_39ext.css.map +0 -1
  639. package/dist/C_WaterFall-cYc1vntE.css.map +0 -1
  640. package/dist/C_WaterFall.js.map +0 -1
  641. package/dist/C_WaterFall2.js.map +0 -1
  642. package/dist/C_WorkFlow-BFzRGGhJ.css.map +0 -1
  643. package/dist/C_WorkFlow-DSyCOvRp.css.map +0 -1
  644. package/dist/C_WorkFlow.js.map +0 -1
  645. package/dist/C_WorkFlow2.js.map +0 -1
  646. package/dist/_shared.cjs +0 -1
  647. package/dist/_shared.d.cts +0 -2
  648. package/dist/_shared.d.ts +0 -2
  649. package/dist/_shared.js +0 -1
  650. package/dist/city.js.map +0 -1
  651. package/dist/index.cjs.map +0 -1
  652. package/dist/index.js.map +0 -1
  653. package/dist/menuAdapter.js +0 -2
  654. package/dist/menuAdapter.js.map +0 -1
  655. package/dist/resolver.cjs.map +0 -1
  656. package/dist/resolver.js.map +0 -1
  657. package/dist/storage.js.map +0 -1
  658. /package/dist/{chunk.js → chunk.cjs} +0 -0
@@ -0,0 +1,133 @@
1
+ import { n as RouteItem } from "./types.cjs";
2
+ import * as vue from "vue";
3
+ import { Ref, VNode } from "vue";
4
+ import * as naive_ui0 from "naive-ui";
5
+ import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
6
+ import * as naive_ui_es_menu_src_interface0 from "naive-ui/es/menu/src/interface";
7
+
8
+ //#region src/components/_shared/menuAdapter.d.ts
9
+ /**
10
+ * 菜单适配器配置
11
+ */
12
+ interface MenuAdapterConfig {
13
+ /**
14
+ * 标签文本格式化函数(用于 i18n)
15
+ * 默认:原样返回 title
16
+ */
17
+ labelFormatter?: (title: string) => string;
18
+ /**
19
+ * 获取菜单项的唯一 key
20
+ * 默认:`normalizePath(route.path)`
21
+ */
22
+ getKey?: (route: RouteItem) => string;
23
+ /**
24
+ * 获取显示文本
25
+ * 默认:`route.meta?.title || route.name || ''`
26
+ */
27
+ getLabel?: (route: RouteItem) => string;
28
+ /**
29
+ * 路由过滤器 — return false 排除该项
30
+ * 默认:排除 `meta.hidden === true`
31
+ */
32
+ filter?: (route: RouteItem) => boolean;
33
+ /**
34
+ * 自定义图标渲染
35
+ * 默认:字符串 → Iconify Icon;函数 → 直接调用
36
+ */
37
+ renderIcon?: (icon: string | (() => VNode) | undefined) => (() => VNode) | undefined;
38
+ /**
39
+ * 是否递归处理 children
40
+ * 默认:true
41
+ */
42
+ recursive?: boolean;
43
+ }
44
+ /**
45
+ * 将路由数据转换为 NMenu 的 MenuOption[]
46
+ *
47
+ * 支持的输入格式:
48
+ * 1. **Vue Router RouteRecordRaw** — 直接传 `router.getRoutes()` 或手写路由表
49
+ * 2. **后端 JSON 路由表** — `{ path, meta: { title, icon }, children }`
50
+ * 3. **自定义格式** — 通过 config 完全自定义 key/label/icon 的取值逻辑
51
+ *
52
+ * @param routes 路由数据数组
53
+ * @param config 适配器配置
54
+ * @returns NMenu 可直接使用的 MenuOption[]
55
+ */
56
+ declare function createMenuOptions(routes: RouteItem[], config?: MenuAdapterConfig): MenuOption[];
57
+ /**
58
+ * 将路由树扁平化为一维数组(常用于搜索、快捷导航)
59
+ *
60
+ * @param routes 路由数据数组
61
+ * @param filter 过滤器(默认排除 hidden)
62
+ * @returns 扁平化后的路由数组
63
+ */
64
+ declare function flattenRoutes(routes: RouteItem[], filter?: (route: RouteItem) => boolean): RouteItem[];
65
+ //#endregion
66
+ //#region src/components/C_Menu/types.d.ts
67
+ type MenuValue = string | null;
68
+ interface MenuProps {
69
+ options?: MenuOption[];
70
+ routes?: RouteItem[];
71
+ adapterConfig?: MenuAdapterConfig;
72
+ labelFormatter?: (label: string) => string;
73
+ /** @deprecated Use modelValue. */
74
+ value?: MenuValue;
75
+ modelValue?: MenuValue;
76
+ expandedKeys?: string[];
77
+ defaultExpandedKeys?: string[];
78
+ mode?: 'vertical' | 'horizontal';
79
+ collapsed?: boolean;
80
+ collapsedWidth?: number;
81
+ collapsedIconSize?: number;
82
+ inverted?: boolean;
83
+ themeOverrides?: Record<string, any>;
84
+ indent?: number;
85
+ rootIndent?: number;
86
+ dropdownProps?: DropdownProps;
87
+ }
88
+ interface MenuEmits {
89
+ select: [key: string];
90
+ 'update:modelValue': [key: MenuValue];
91
+ /** @deprecated Use update:modelValue. */
92
+ 'update:value': [key: MenuValue];
93
+ 'update:expandedKeys': [keys: string[]];
94
+ }
95
+ interface MenuExpose {
96
+ showOption: (key: string) => void;
97
+ menuRef: Ref<MenuInst | null>;
98
+ }
99
+ //#endregion
100
+ //#region src/components/C_Menu/index.vue.d.ts
101
+ declare const __VLS_export: vue.DefineComponent<MenuProps, {
102
+ showOption: (key: string) => void | undefined;
103
+ menuRef: vue.Ref<{
104
+ showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
105
+ deriveResponsiveState: () => void;
106
+ } | null, MenuInst | {
107
+ showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
108
+ deriveResponsiveState: () => void;
109
+ } | null>;
110
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
111
+ "update:modelValue": (key: MenuValue) => any;
112
+ select: (key: string) => any;
113
+ "update:value": (key: MenuValue) => any;
114
+ "update:expandedKeys": (keys: string[]) => any;
115
+ }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
116
+ "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
117
+ onSelect?: ((key: string) => any) | undefined;
118
+ "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
119
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
120
+ }>, {
121
+ mode: "vertical" | "horizontal";
122
+ defaultExpandedKeys: string[];
123
+ collapsed: boolean;
124
+ collapsedWidth: number;
125
+ collapsedIconSize: number;
126
+ inverted: boolean;
127
+ indent: number;
128
+ rootIndent: number;
129
+ dropdownProps: naive_ui0.DropdownProps;
130
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
131
+ declare const _default: typeof __VLS_export;
132
+ //#endregion
133
+ export { MenuValue as a, flattenRoutes as c, MenuProps as i, MenuEmits as n, MenuAdapterConfig as o, MenuExpose as r, createMenuOptions as s, _default as t };
@@ -1,4 +1,4 @@
1
- import { i as BreadcrumbItem } from "./menuAdapter.js";
1
+ import { i as BreadcrumbItem } from "./public.js";
2
2
  import * as vue from "vue";
3
3
 
4
4
  //#region src/components/C_Breadcrumb/index.vue.d.ts
@@ -26,5 +26,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
26
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
27
  declare const _default: typeof __VLS_export;
28
28
  //#endregion
29
- export { _default as t };
30
- //# sourceMappingURL=index5.vue.d.ts.map
29
+ export { _default as t };
@@ -0,0 +1,29 @@
1
+ import { t as BreadcrumbItem } from "./types.cjs";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/C_Breadcrumb/index.vue.d.ts
5
+ type __VLS_Props = {
6
+ /**
7
+ * 手动传入面包屑数据
8
+ * 不传时自动从 `route.matched` 生成(零配置)
9
+ */
10
+ items?: BreadcrumbItem[]; /** 是否显示图标 */
11
+ showIcon?: boolean; /** 图标大小 (px),默认 16 */
12
+ iconSize?: number;
13
+ /**
14
+ * 标签文本格式化函数(用于 i18n)
15
+ * 仅在自动模式下生效
16
+ */
17
+ labelFormatter?: (label: string) => string;
18
+ };
19
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
+ select: (path: string) => any;
21
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onSelect?: ((path: string) => any) | undefined;
23
+ }>, {
24
+ showIcon: boolean;
25
+ iconSize: number;
26
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ //#endregion
29
+ export { _default as t };
@@ -1,45 +1,32 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Captcha/index.vue.d.ts
4
- interface CaptchaProps {
5
- triggerText?: string;
6
- images?: string[];
7
- disabled?: boolean;
8
- theme?: "light" | "dark";
3
+ //#region src/components/C_Cascade/types.d.ts
4
+ interface CascadeItem {
5
+ label: string;
6
+ value: string | number;
7
+ children?: CascadeItem[];
9
8
  }
10
- declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
11
- validate: () => boolean;
12
- getToken: () => string;
13
- getVerificationData: () => {
14
- token: string;
15
- timestamp: number;
16
- type: string;
17
- } | null;
18
- reset: () => void;
19
- show: () => void;
20
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
21
- change: (valid: boolean) => any;
22
- reset: () => any;
23
- success: (data: {
24
- token: string;
25
- timestamp: number;
26
- }) => any;
27
- fail: (error: string) => any;
28
- }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
- onChange?: ((valid: boolean) => any) | undefined;
30
- onReset?: (() => any) | undefined;
31
- onSuccess?: ((data: {
32
- token: string;
33
- timestamp: number;
34
- }) => any) | undefined;
35
- onFail?: ((error: string) => any) | undefined;
9
+ interface CascadeValue {
10
+ primary?: Pick<CascadeItem, 'label' | 'value'> | null;
11
+ secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
12
+ tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
13
+ }
14
+ //#endregion
15
+ //#region src/components/C_Cascade/index.vue.d.ts
16
+ type __VLS_Props = {
17
+ data: CascadeItem[];
18
+ placeholders?: string[];
19
+ modelValue?: CascadeValue;
20
+ };
21
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
+ "update:modelValue": (value: CascadeValue) => any;
23
+ change: (value: CascadeValue) => any;
24
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
+ onChange?: ((value: CascadeValue) => any) | undefined;
36
27
  }>, {
37
- disabled: boolean;
38
- theme: "light" | "dark";
39
- triggerText: string;
40
- images: string[];
28
+ placeholders: string[];
41
29
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
42
30
  declare const _default: typeof __VLS_export;
43
31
  //#endregion
44
- export { _default as t };
45
- //# sourceMappingURL=index6.vue.d.ts.map
32
+ export { CascadeItem as n, CascadeValue as r, _default as t };
@@ -0,0 +1,32 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Cascade/types.d.ts
4
+ interface CascadeItem {
5
+ label: string;
6
+ value: string | number;
7
+ children?: CascadeItem[];
8
+ }
9
+ interface CascadeValue {
10
+ primary?: Pick<CascadeItem, 'label' | 'value'> | null;
11
+ secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
12
+ tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
13
+ }
14
+ //#endregion
15
+ //#region src/components/C_Cascade/index.vue.d.ts
16
+ type __VLS_Props = {
17
+ data: CascadeItem[];
18
+ placeholders?: string[];
19
+ modelValue?: CascadeValue;
20
+ };
21
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
+ "update:modelValue": (value: CascadeValue) => any;
23
+ change: (value: CascadeValue) => any;
24
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
+ onChange?: ((value: CascadeValue) => any) | undefined;
27
+ }>, {
28
+ placeholders: string[];
29
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ //#endregion
32
+ export { CascadeItem as n, CascadeValue as r, _default as t };
@@ -1,33 +1,127 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Cascade/types.d.ts
4
- interface CascadeItem {
5
- label: string;
6
- value: string | number;
7
- children?: CascadeItem[];
3
+ //#region src/components/C_Chat/types.d.ts
4
+ /**
5
+ * @Description: C_Chat 通用聊天组件 - 类型定义
6
+ */
7
+ /** 消息类型 */
8
+ type MessageType = 'text' | 'image' | 'file' | 'system';
9
+ /** 消息发送方 */
10
+ type MessageSender = 'self' | 'other' | 'system';
11
+ /** 消息状态 */
12
+ type MessageStatus = 'sending' | 'sent' | 'failed';
13
+ /** 单条消息 */
14
+ interface ChatMessage {
15
+ /** 唯一标识 */
16
+ id: string;
17
+ /** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
18
+ content: string;
19
+ /** 消息类型 */
20
+ type: MessageType;
21
+ /** 发送方 */
22
+ sender: MessageSender;
23
+ /** 发送时间(ISO 字符串 或 时间戳) */
24
+ timestamp: string | number;
25
+ /** 发送者头像 URL */
26
+ avatar?: string;
27
+ /** 发送者用户名 */
28
+ username?: string;
29
+ /** 消息状态 */
30
+ status?: MessageStatus;
31
+ /** 文件名(type = 'file' 时使用) */
32
+ fileName?: string;
33
+ /** 文件大小(字节) */
34
+ fileSize?: number;
8
35
  }
9
- interface CascadeValue {
10
- primary?: Pick<CascadeItem, 'label' | 'value'> | null;
11
- secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
12
- tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
36
+ /** 联系人 / 会话 */
37
+ interface ChatContact {
38
+ /** 唯一标识 */
39
+ id: string;
40
+ /** 显示名称 */
41
+ name: string;
42
+ /** 头像 URL */
43
+ avatar?: string;
44
+ /** 最后一条消息摘要 */
45
+ lastMessage?: string;
46
+ /** 最后消息时间 */
47
+ lastTime?: string | number;
48
+ /** 未读数 */
49
+ unread?: number;
50
+ /** 是否在线 */
51
+ online?: boolean;
13
52
  }
53
+ interface ChatProps {
54
+ /** 联系人列表 */
55
+ contacts?: ChatContact[];
56
+ /** 消息列表 */
57
+ messages?: ChatMessage[];
58
+ /** 当前选中的联系人 ID */
59
+ currentContactId?: string;
60
+ /** 输入框占位符 */
61
+ placeholder?: string;
62
+ /** 是否显示联系人侧栏 */
63
+ showContacts?: boolean;
64
+ /** 是否显示消息时间戳 */
65
+ showTimestamp?: boolean;
66
+ /** 当前用户头像 */
67
+ selfAvatar?: string;
68
+ /** 当前用户名 */
69
+ selfName?: string;
70
+ /** 是否显示发送按钮 */
71
+ showSendBtn?: boolean;
72
+ /** 是否正在加载历史消息 */
73
+ loadingHistory?: boolean;
74
+ /** 标题(无联系人模式时显示) */
75
+ title?: string;
76
+ }
77
+ declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
14
78
  //#endregion
15
- //#region src/components/C_Cascade/index.vue.d.ts
16
- type __VLS_Props = {
17
- data: CascadeItem[];
18
- placeholders?: string[];
19
- modelValue?: CascadeValue;
79
+ //#region src/components/C_Chat/index.vue.d.ts
80
+ declare var __VLS_18: {}, __VLS_30: {};
81
+ type __VLS_Slots = {} & {
82
+ header?: (props: typeof __VLS_18) => any;
83
+ } & {
84
+ 'input-actions'?: (props: typeof __VLS_30) => any;
20
85
  };
21
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- change: (value: CascadeValue) => any;
23
- "update:modelValue": (value: CascadeValue) => any;
24
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onChange?: ((value: CascadeValue) => any) | undefined;
26
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
86
+ declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
+ scrollToBottom: () => void;
88
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
+ send: (content: string) => any;
90
+ "select-contact": (id: string) => any;
91
+ "load-more": () => any;
92
+ "image-preview": (url: string) => any;
93
+ "file-click": (msg: ChatMessage) => any;
94
+ "file-upload": () => any;
95
+ "emoji-click": () => any;
96
+ resend: (msg: ChatMessage) => any;
97
+ }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
+ onSend?: ((content: string) => any) | undefined;
99
+ "onSelect-contact"?: ((id: string) => any) | undefined;
100
+ "onLoad-more"?: (() => any) | undefined;
101
+ "onImage-preview"?: ((url: string) => any) | undefined;
102
+ "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
+ "onFile-upload"?: (() => any) | undefined;
104
+ "onEmoji-click"?: (() => any) | undefined;
105
+ onResend?: ((msg: ChatMessage) => any) | undefined;
27
106
  }>, {
28
- placeholders: string[];
107
+ placeholder: string;
108
+ title: string;
109
+ messages: ChatMessage[];
110
+ showContacts: boolean;
111
+ showTimestamp: boolean;
112
+ showSendBtn: boolean;
113
+ loadingHistory: boolean;
114
+ contacts: ChatContact[];
115
+ currentContactId: string;
116
+ selfAvatar: string;
117
+ selfName: string;
29
118
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
119
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
120
  declare const _default: typeof __VLS_export;
121
+ type __VLS_WithSlots<T, S> = T & {
122
+ new (): {
123
+ $slots: S;
124
+ };
125
+ };
31
126
  //#endregion
32
- export { CascadeItem as n, CascadeValue as r, _default as t };
33
- //# sourceMappingURL=index7.vue.d.ts.map
127
+ export { DEFAULT_CHAT_PROPS as a, MessageType as c, ChatProps as i, ChatContact as n, MessageSender as o, ChatMessage as r, MessageStatus as s, _default as t };
@@ -0,0 +1,127 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Chat/types.d.ts
4
+ /**
5
+ * @Description: C_Chat 通用聊天组件 - 类型定义
6
+ */
7
+ /** 消息类型 */
8
+ type MessageType = 'text' | 'image' | 'file' | 'system';
9
+ /** 消息发送方 */
10
+ type MessageSender = 'self' | 'other' | 'system';
11
+ /** 消息状态 */
12
+ type MessageStatus = 'sending' | 'sent' | 'failed';
13
+ /** 单条消息 */
14
+ interface ChatMessage {
15
+ /** 唯一标识 */
16
+ id: string;
17
+ /** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
18
+ content: string;
19
+ /** 消息类型 */
20
+ type: MessageType;
21
+ /** 发送方 */
22
+ sender: MessageSender;
23
+ /** 发送时间(ISO 字符串 或 时间戳) */
24
+ timestamp: string | number;
25
+ /** 发送者头像 URL */
26
+ avatar?: string;
27
+ /** 发送者用户名 */
28
+ username?: string;
29
+ /** 消息状态 */
30
+ status?: MessageStatus;
31
+ /** 文件名(type = 'file' 时使用) */
32
+ fileName?: string;
33
+ /** 文件大小(字节) */
34
+ fileSize?: number;
35
+ }
36
+ /** 联系人 / 会话 */
37
+ interface ChatContact {
38
+ /** 唯一标识 */
39
+ id: string;
40
+ /** 显示名称 */
41
+ name: string;
42
+ /** 头像 URL */
43
+ avatar?: string;
44
+ /** 最后一条消息摘要 */
45
+ lastMessage?: string;
46
+ /** 最后消息时间 */
47
+ lastTime?: string | number;
48
+ /** 未读数 */
49
+ unread?: number;
50
+ /** 是否在线 */
51
+ online?: boolean;
52
+ }
53
+ interface ChatProps {
54
+ /** 联系人列表 */
55
+ contacts?: ChatContact[];
56
+ /** 消息列表 */
57
+ messages?: ChatMessage[];
58
+ /** 当前选中的联系人 ID */
59
+ currentContactId?: string;
60
+ /** 输入框占位符 */
61
+ placeholder?: string;
62
+ /** 是否显示联系人侧栏 */
63
+ showContacts?: boolean;
64
+ /** 是否显示消息时间戳 */
65
+ showTimestamp?: boolean;
66
+ /** 当前用户头像 */
67
+ selfAvatar?: string;
68
+ /** 当前用户名 */
69
+ selfName?: string;
70
+ /** 是否显示发送按钮 */
71
+ showSendBtn?: boolean;
72
+ /** 是否正在加载历史消息 */
73
+ loadingHistory?: boolean;
74
+ /** 标题(无联系人模式时显示) */
75
+ title?: string;
76
+ }
77
+ declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
78
+ //#endregion
79
+ //#region src/components/C_Chat/index.vue.d.ts
80
+ declare var __VLS_18: {}, __VLS_30: {};
81
+ type __VLS_Slots = {} & {
82
+ header?: (props: typeof __VLS_18) => any;
83
+ } & {
84
+ 'input-actions'?: (props: typeof __VLS_30) => any;
85
+ };
86
+ declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
+ scrollToBottom: () => void;
88
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
+ send: (content: string) => any;
90
+ "select-contact": (id: string) => any;
91
+ "load-more": () => any;
92
+ "image-preview": (url: string) => any;
93
+ "file-click": (msg: ChatMessage) => any;
94
+ "file-upload": () => any;
95
+ "emoji-click": () => any;
96
+ resend: (msg: ChatMessage) => any;
97
+ }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
+ onSend?: ((content: string) => any) | undefined;
99
+ "onSelect-contact"?: ((id: string) => any) | undefined;
100
+ "onLoad-more"?: (() => any) | undefined;
101
+ "onImage-preview"?: ((url: string) => any) | undefined;
102
+ "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
+ "onFile-upload"?: (() => any) | undefined;
104
+ "onEmoji-click"?: (() => any) | undefined;
105
+ onResend?: ((msg: ChatMessage) => any) | undefined;
106
+ }>, {
107
+ placeholder: string;
108
+ title: string;
109
+ messages: ChatMessage[];
110
+ showContacts: boolean;
111
+ showTimestamp: boolean;
112
+ showSendBtn: boolean;
113
+ loadingHistory: boolean;
114
+ contacts: ChatContact[];
115
+ currentContactId: string;
116
+ selfAvatar: string;
117
+ selfName: string;
118
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
119
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
120
+ declare const _default: typeof __VLS_export;
121
+ type __VLS_WithSlots<T, S> = T & {
122
+ new (): {
123
+ $slots: S;
124
+ };
125
+ };
126
+ //#endregion
127
+ export { DEFAULT_CHAT_PROPS as a, MessageType as c, ChatProps as i, ChatContact as n, MessageSender as o, ChatMessage as r, MessageStatus as s, _default as t };