@robot-admin/naive-ui-components 0.31.4 → 0.32.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 (265) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +11 -5
  3. package/README_EN.md +11 -5
  4. package/dist/C_AutoComplete.cjs +1 -0
  5. package/dist/C_AutoComplete.css +36 -0
  6. package/dist/C_AutoComplete.d.cts +4 -0
  7. package/dist/C_AutoComplete.d.ts +4 -0
  8. package/dist/C_AutoComplete.js +1 -0
  9. package/dist/C_AutoComplete2.cjs +1 -0
  10. package/dist/C_AutoComplete2.js +1 -0
  11. package/dist/C_AvatarGroup.d.cts +1 -1
  12. package/dist/C_AvatarGroup.d.ts +1 -1
  13. package/dist/C_Barcode.d.cts +1 -1
  14. package/dist/C_Barcode.d.ts +1 -1
  15. package/dist/C_BatchResult.d.cts +1 -1
  16. package/dist/C_BatchResult.d.ts +1 -1
  17. package/dist/C_Breadcrumb.d.cts +2 -2
  18. package/dist/C_Breadcrumb.d.ts +1 -1
  19. package/dist/C_Cascade.d.cts +1 -1
  20. package/dist/C_Cascade.d.ts +1 -1
  21. package/dist/C_Chat.d.cts +1 -1
  22. package/dist/C_Chat.d.ts +1 -1
  23. package/dist/C_City.d.cts +1 -1
  24. package/dist/C_City.d.ts +1 -1
  25. package/dist/C_Code.d.cts +1 -1
  26. package/dist/C_Code.d.ts +1 -1
  27. package/dist/C_ContextMenu.d.cts +1 -1
  28. package/dist/C_ContextMenu.d.ts +1 -1
  29. package/dist/C_DataPicker.css +198 -31
  30. package/dist/C_DataPicker.d.cts +2 -2
  31. package/dist/C_DataPicker.d.ts +2 -2
  32. package/dist/C_Date.d.cts +1 -1
  33. package/dist/C_Date.d.ts +1 -1
  34. package/dist/C_Density.d.cts +1 -1
  35. package/dist/C_Density.d.ts +1 -1
  36. package/dist/C_Editor.d.cts +1 -1
  37. package/dist/C_Editor.d.ts +1 -1
  38. package/dist/C_ErrorSummary.d.cts +1 -1
  39. package/dist/C_ErrorSummary.d.ts +1 -1
  40. package/dist/C_Form.base.css +68 -1
  41. package/dist/C_Form.cjs +1 -1
  42. package/dist/C_Form.css +68 -1
  43. package/dist/C_Form.d.cts +3 -3
  44. package/dist/C_Form.d.ts +5 -3
  45. package/dist/C_Form.js +1 -1
  46. package/dist/C_FormModal.cjs +1 -1
  47. package/dist/C_FormModal.d.cts +1 -1
  48. package/dist/C_FormModal.d.ts +3 -1
  49. package/dist/C_FormModal.js +1 -1
  50. package/dist/C_FormModal2.cjs +1 -1
  51. package/dist/C_FormModal2.js +1 -1
  52. package/dist/C_FormSearch.css +139 -72
  53. package/dist/C_FormSearch.d.cts +1 -1
  54. package/dist/C_FormSearch.d.ts +1 -1
  55. package/dist/C_Guide.d.cts +1 -1
  56. package/dist/C_Guide.d.ts +1 -1
  57. package/dist/C_Icon.d.cts +1 -1
  58. package/dist/C_Icon.d.ts +1 -1
  59. package/dist/C_Language.d.cts +1 -1
  60. package/dist/C_Language.d.ts +1 -1
  61. package/dist/C_Loading.d.cts +1 -1
  62. package/dist/C_Loading.d.ts +1 -1
  63. package/dist/C_Login.d.cts +1 -1
  64. package/dist/C_Login.d.ts +1 -1
  65. package/dist/C_Markdown.d.cts +1 -1
  66. package/dist/C_Markdown.d.ts +1 -1
  67. package/dist/C_Menu.d.cts +2 -2
  68. package/dist/C_Menu.d.ts +1 -1
  69. package/dist/C_OrgChart.d.cts +1 -1
  70. package/dist/C_OrgChart.d.ts +1 -1
  71. package/dist/C_Progress.d.cts +1 -1
  72. package/dist/C_Progress.d.ts +1 -1
  73. package/dist/C_SectionNav.d.cts +1 -1
  74. package/dist/C_SectionNav.d.ts +1 -1
  75. package/dist/C_Select.css +32 -1
  76. package/dist/C_Select.d.cts +4 -2
  77. package/dist/C_Select.d.ts +4 -2
  78. package/dist/C_Select2.cjs +1 -1
  79. package/dist/C_Select2.js +1 -1
  80. package/dist/C_Skeleton.d.cts +1 -1
  81. package/dist/C_Skeleton.d.ts +1 -1
  82. package/dist/C_Steps.d.cts +1 -1
  83. package/dist/C_Steps.d.ts +1 -1
  84. package/dist/C_Table.base.css +183 -111
  85. package/dist/C_Table.cjs +1 -1
  86. package/dist/C_Table.css +115 -110
  87. package/dist/C_Table.d.cts +1 -1
  88. package/dist/C_Table.d.ts +11 -8
  89. package/dist/C_Table.js +1 -1
  90. package/dist/C_Table2.cjs +3 -3
  91. package/dist/C_Table2.js +3 -3
  92. package/dist/C_TagsView.d.cts +2 -2
  93. package/dist/C_TagsView.d.ts +1 -1
  94. package/dist/C_Theme.d.cts +1 -1
  95. package/dist/C_Theme.d.ts +1 -1
  96. package/dist/C_Timeline.d.cts +1 -1
  97. package/dist/C_Timeline.d.ts +1 -1
  98. package/dist/C_Transfer.d.cts +1 -1
  99. package/dist/C_Transfer.d.ts +1 -1
  100. package/dist/C_Tree.cjs +1 -1
  101. package/dist/C_Tree.d.ts +10 -7
  102. package/dist/C_Tree.js +1 -1
  103. package/dist/C_Tree2.cjs +1 -1
  104. package/dist/C_Tree2.js +1 -1
  105. package/dist/OptionStatus.cjs +1 -0
  106. package/dist/OptionStatus.js +1 -0
  107. package/dist/constants.d.cts +3 -3
  108. package/dist/constants.d.ts +3 -3
  109. package/dist/constants2.d.cts +2 -2
  110. package/dist/constants2.d.ts +2 -2
  111. package/dist/constants3.d.cts +3 -3
  112. package/dist/constants3.d.ts +3 -3
  113. package/dist/constants4.d.cts +7 -7
  114. package/dist/constants4.d.ts +7 -7
  115. package/dist/constants5.d.cts +2 -2
  116. package/dist/constants5.d.ts +2 -2
  117. package/dist/data.d.cts +2 -1
  118. package/dist/data.d.ts +2 -1
  119. package/dist/data2.d.cts +8 -8
  120. package/dist/data2.d.ts +8 -8
  121. package/dist/dateRange.d.cts +9 -4
  122. package/dist/dateRange.d.ts +9 -4
  123. package/dist/fieldRenderers.cjs +1 -0
  124. package/dist/fieldRenderers.js +1 -0
  125. package/dist/formField.cjs +1 -1
  126. package/dist/formField.d.cts +46 -19
  127. package/dist/formField.d.ts +46 -19
  128. package/dist/formField.js +1 -1
  129. package/dist/helpers.cjs +1 -1
  130. package/dist/helpers.js +1 -1
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.d.cts +62 -58
  133. package/dist/index.d.ts +62 -57
  134. package/dist/index.js +1 -1
  135. package/dist/index.vue.d.cts +4 -4
  136. package/dist/index.vue.d.ts +4 -4
  137. package/dist/index10.vue.d.cts +27 -35
  138. package/dist/index10.vue.d.ts +37 -80
  139. package/dist/index11.vue.d.cts +37 -80
  140. package/dist/index11.vue.d.ts +83 -16
  141. package/dist/index12.vue.d.cts +83 -16
  142. package/dist/index12.vue.d.ts +16 -59
  143. package/dist/index13.vue.d.cts +16 -59
  144. package/dist/index13.vue.d.ts +57 -17
  145. package/dist/index14.vue.d.cts +57 -17
  146. package/dist/index14.vue.d.ts +18 -55
  147. package/dist/index15.vue.d.cts +18 -55
  148. package/dist/index15.vue.d.ts +53 -124
  149. package/dist/index16.vue.d.cts +53 -124
  150. package/dist/index16.vue.d.ts +123 -51
  151. package/dist/index17.vue.d.cts +123 -51
  152. package/dist/index17.vue.d.ts +52 -25
  153. package/dist/index18.vue.d.cts +52 -25
  154. package/dist/index18.vue.d.ts +25 -12
  155. package/dist/index19.vue.d.cts +25 -12
  156. package/dist/index19.vue.d.ts +13 -129
  157. package/dist/index2.vue.d.cts +26 -82
  158. package/dist/index2.vue.d.ts +26 -82
  159. package/dist/index20.vue.d.cts +13 -129
  160. package/dist/index20.vue.d.ts +129 -76
  161. package/dist/index21.vue.d.cts +129 -76
  162. package/dist/index21.vue.d.ts +78 -72
  163. package/dist/index22.vue.d.cts +75 -97
  164. package/dist/index22.vue.d.ts +68 -96
  165. package/dist/index23.vue.d.cts +91 -40
  166. package/dist/index23.vue.d.ts +91 -40
  167. package/dist/index24.vue.d.cts +49 -23
  168. package/dist/index24.vue.d.ts +49 -23
  169. package/dist/index25.vue.d.cts +19 -46
  170. package/dist/index25.vue.d.ts +19 -46
  171. package/dist/index26.vue.d.cts +25 -98
  172. package/dist/index26.vue.d.ts +25 -98
  173. package/dist/index27.vue.d.cts +95 -37
  174. package/dist/index27.vue.d.ts +95 -37
  175. package/dist/index28.vue.d.cts +34 -8
  176. package/dist/index28.vue.d.ts +34 -8
  177. package/dist/index29.vue.d.cts +9 -86
  178. package/dist/index29.vue.d.ts +9 -86
  179. package/dist/index3.vue.d.cts +80 -30
  180. package/dist/index3.vue.d.ts +80 -30
  181. package/dist/index30.vue.d.cts +85 -99
  182. package/dist/index30.vue.d.ts +85 -99
  183. package/dist/index31.vue.d.cts +94 -63
  184. package/dist/index31.vue.d.ts +94 -63
  185. package/dist/index32.vue.d.cts +79 -0
  186. package/dist/index32.vue.d.ts +79 -0
  187. package/dist/index4.vue.d.cts +30 -19
  188. package/dist/index4.vue.d.ts +30 -19
  189. package/dist/index5.vue.d.cts +19 -128
  190. package/dist/index5.vue.d.ts +17 -34
  191. package/dist/index6.vue.d.cts +127 -35
  192. package/dist/index6.vue.d.ts +30 -22
  193. package/dist/index7.vue.d.cts +30 -22
  194. package/dist/index7.vue.d.ts +25 -118
  195. package/dist/index8.vue.d.cts +25 -118
  196. package/dist/index8.vue.d.ts +112 -21
  197. package/dist/index9.vue.d.cts +112 -21
  198. package/dist/index9.vue.d.ts +27 -35
  199. package/dist/mapUtils.d.cts +3 -3
  200. package/dist/mapUtils.d.ts +3 -3
  201. package/dist/optionSource.d.cts +30 -0
  202. package/dist/optionSource.d.ts +30 -0
  203. package/dist/resolver.cjs +1 -1
  204. package/dist/resolver.d.cts +1 -1
  205. package/dist/resolver.d.ts +1 -1
  206. package/dist/resolver.js +1 -1
  207. package/dist/serializeSearch.cjs +1 -1
  208. package/dist/serializeSearch.js +1 -1
  209. package/dist/style.css +349 -213
  210. package/dist/types2.d.cts +29 -103
  211. package/dist/types2.d.ts +30 -55
  212. package/dist/types3.d.cts +104 -55
  213. package/dist/types3.d.ts +60 -0
  214. package/dist/types4.d.cts +60 -0
  215. package/dist/types4.d.ts +42 -0
  216. package/dist/types5.d.cts +42 -0
  217. package/dist/useCalendarEvents.d.cts +1 -1
  218. package/dist/useCalendarEvents.d.ts +1 -1
  219. package/dist/useCollapsePanel.d.cts +3 -3
  220. package/dist/useCollapsePanel.d.ts +3 -3
  221. package/dist/useComponentLocale.cjs +1 -1
  222. package/dist/useComponentLocale.js +1 -1
  223. package/dist/useCropperCore.d.cts +9 -9
  224. package/dist/useCropperCore.d.ts +9 -9
  225. package/dist/useDataResource.cjs +1 -1
  226. package/dist/useDataResource.js +1 -1
  227. package/dist/useDynamicFormState.d.cts +15 -1
  228. package/dist/useDynamicFormState.d.ts +15 -1
  229. package/dist/useEdgeInteraction.d.cts +2 -2
  230. package/dist/useEdgeInteraction.d.ts +2 -2
  231. package/dist/useFormConfig.d.cts +5 -2
  232. package/dist/useFormConfig.d.ts +5 -2
  233. package/dist/useFormRenderer.d.cts +1 -1
  234. package/dist/useFormRenderer.d.ts +1 -1
  235. package/dist/useFullscreen.d.cts +2 -2
  236. package/dist/useFullscreen.d.ts +2 -2
  237. package/dist/useGridWidth.cjs +1 -1
  238. package/dist/useGridWidth.js +1 -1
  239. package/dist/useInfiniteScroll.d.cts +4 -4
  240. package/dist/useInfiniteScroll.d.ts +4 -4
  241. package/dist/useQRCode.d.cts +4 -4
  242. package/dist/useQRCode.d.ts +4 -4
  243. package/dist/useSignatureHistory.d.cts +3 -3
  244. package/dist/useSignatureHistory.d.ts +3 -3
  245. package/dist/useSplitResize.d.cts +5 -5
  246. package/dist/useSplitResize.d.ts +5 -5
  247. package/dist/useTableQuery.d.cts +13 -11
  248. package/dist/useTableQuery.d.ts +13 -11
  249. package/dist/useWorkflowValidation.d.cts +34 -34
  250. package/dist/useWorkflowValidation.d.ts +34 -34
  251. package/dist/verification.d.cts +2 -2
  252. package/dist/verification.d.ts +2 -2
  253. package/docs/architecture.md +3 -1
  254. package/docs/components.en.md +2 -1
  255. package/docs/components.md +2 -1
  256. package/docs/engineering.en.md +11 -1
  257. package/docs/engineering.md +11 -1
  258. package/docs/guides/data-picker.md +37 -1
  259. package/docs/guides/remote-options.md +93 -0
  260. package/docs/guides/search-workflows.md +99 -2
  261. package/docs/search-selection-coverage.md +59 -0
  262. package/docs/wl-ui-produce-coverage.md +2 -0
  263. package/package.json +6 -3
  264. package/dist/helpers2.cjs +0 -1
  265. package/dist/helpers2.js +0 -1
@@ -1,45 +1,103 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Steps/types.d.ts
4
- interface StepItem {
5
- title: string;
6
- description?: string;
7
- time?: string;
8
- icon?: string;
9
- status?: 'wait' | 'process' | 'finish' | 'error';
10
- disabled?: boolean;
11
- detail?: string;
3
+ //#region src/components/C_Skeleton/types.d.ts
4
+ /** 骨架屏预设模式 */
5
+ type SkeletonPreset = 'text' | 'avatar' | 'card' | 'table' | 'form' | 'list' | 'detail' | 'image';
6
+ /** 骨架屏动画类型 */
7
+ type SkeletonAnimation = 'pulse' | 'wave' | false;
8
+ /** 表格骨架配置 */
9
+ interface SkeletonTableConfig {
10
+ /** 行数 */
11
+ rows?: number;
12
+ /** 列数 */
13
+ cols?: number;
14
+ /** 是否显示表头 */
15
+ showHeader?: boolean;
16
+ /** 是否显示操作列 */
17
+ showActions?: boolean;
12
18
  }
13
- //#endregion
14
- //#region src/components/C_Steps/index.vue.d.ts
15
- interface LegacyStepItem extends StepItem {
16
- title: string;
17
- description?: string;
18
- time?: string;
19
- icon?: string;
20
- status?: 'wait' | 'process' | 'finish' | 'error';
21
- disabled?: boolean;
22
- detail?: string;
19
+ /** 表单骨架配置 */
20
+ interface SkeletonFormConfig {
21
+ /** 字段数 */
22
+ fields?: number;
23
+ /** 每行列数 */
24
+ cols?: number;
25
+ /** 是否显示标签 */
26
+ showLabel?: boolean;
27
+ /** 是否显示操作按钮 */
28
+ showActions?: boolean;
29
+ }
30
+ /** 列表骨架配置 */
31
+ interface SkeletonListConfig {
32
+ /** 列表项数 */
33
+ items?: number;
34
+ /** 是否显示头像 */
35
+ showAvatar?: boolean;
36
+ /** 描述行数 */
37
+ descLines?: number;
38
+ }
39
+ /** 卡片骨架配置 */
40
+ interface SkeletonCardConfig {
41
+ /** 是否显示封面图 */
42
+ showCover?: boolean;
43
+ /** 标题行数 */
44
+ titleLines?: number;
45
+ /** 描述行数 */
46
+ descLines?: number;
47
+ /** 是否显示底部操作 */
48
+ showFooter?: boolean;
49
+ }
50
+ /** 详情骨架配置 */
51
+ interface SkeletonDetailConfig {
52
+ /** 字段数 */
53
+ fields?: number;
54
+ /** 每个字段的值行数 */
55
+ valueLines?: number;
56
+ /** 是否显示头像 */
57
+ showAvatar?: boolean;
23
58
  }
24
- type __VLS_Props = {
25
- steps: LegacyStepItem[];
26
- current?: number;
27
- direction?: 'horizontal' | 'vertical';
28
- clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
- connected?: boolean;
59
+ /** C_Skeleton Props */
60
+ interface SkeletonProps {
61
+ /** 预设模式 */
62
+ preset?: SkeletonPreset;
63
+ /** 是否正在加载(true 显示骨架屏,false 显示插槽内容) */
64
+ loading?: boolean;
65
+ /** 动画类型 */
66
+ animation?: SkeletonAnimation;
67
+ /** 重复次数(用于 text/card/list 模式) */
68
+ repeat?: number;
69
+ /** 圆角大小 */
70
+ borderRadius?: string;
71
+ /** 表格配置 */
72
+ table?: SkeletonTableConfig;
73
+ /** 表单配置 */
74
+ form?: SkeletonFormConfig;
75
+ /** 列表配置 */
76
+ list?: SkeletonListConfig;
77
+ /** 卡片配置 */
78
+ card?: SkeletonCardConfig;
79
+ /** 详情配置 */
80
+ detail?: SkeletonDetailConfig;
81
+ }
82
+ //#endregion
83
+ //#region src/components/C_Skeleton/index.vue.d.ts
84
+ declare var __VLS_1: {};
85
+ type __VLS_Slots = {} & {
86
+ default?: (props: typeof __VLS_1) => any;
30
87
  };
31
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
- "update:current": (args_0: number) => any;
33
- change: (args_0: number) => any;
34
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
36
- onChange?: ((args_0: number) => any) | undefined;
37
- }>, {
38
- current: number;
39
- direction: "horizontal" | "vertical";
40
- clickable: boolean;
41
- connected: boolean;
88
+ declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
+ repeat: number;
90
+ loading: boolean;
91
+ animation: SkeletonAnimation;
92
+ borderRadius: string;
93
+ preset: SkeletonPreset;
42
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
96
  declare const _default: typeof __VLS_export;
97
+ type __VLS_WithSlots<T, S> = T & {
98
+ new (): {
99
+ $slots: S;
100
+ };
101
+ };
44
102
  //#endregion
45
- export { StepItem as n, _default as t };
103
+ export { SkeletonFormConfig as a, SkeletonProps as c, SkeletonDetailConfig as i, SkeletonTableConfig as l, SkeletonAnimation as n, SkeletonListConfig as o, SkeletonCardConfig as r, SkeletonPreset as s, _default as t };
@@ -1,19 +1,45 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Theme/types.d.ts
4
- type ThemeMode = 'system' | 'light' | 'dark';
3
+ //#region src/components/C_Steps/types.d.ts
4
+ interface StepItem {
5
+ title: string;
6
+ description?: string;
7
+ time?: string;
8
+ icon?: string;
9
+ status?: 'wait' | 'process' | 'finish' | 'error';
10
+ disabled?: boolean;
11
+ detail?: string;
12
+ }
5
13
  //#endregion
6
- //#region src/components/C_Theme/index.vue.d.ts
14
+ //#region src/components/C_Steps/index.vue.d.ts
15
+ interface LegacyStepItem extends StepItem {
16
+ title: string;
17
+ description?: string;
18
+ time?: string;
19
+ icon?: string;
20
+ status?: 'wait' | 'process' | 'finish' | 'error';
21
+ disabled?: boolean;
22
+ detail?: string;
23
+ }
7
24
  type __VLS_Props = {
8
- modelValue?: ThemeMode;
25
+ steps: LegacyStepItem[];
26
+ current?: number;
27
+ direction?: 'horizontal' | 'vertical';
28
+ clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
+ connected?: boolean;
9
30
  };
10
31
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
- "update:modelValue": (mode: ThemeMode) => any;
32
+ change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
12
34
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
35
+ onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
14
37
  }>, {
15
- modelValue: ThemeMode;
38
+ clickable: boolean;
39
+ direction: "horizontal" | "vertical";
40
+ connected: boolean;
41
+ current: number;
16
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
17
43
  declare const _default: typeof __VLS_export;
18
44
  //#endregion
19
- export { ThemeMode as n, _default as t };
45
+ export { StepItem as n, _default as t };
@@ -1,19 +1,45 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Theme/types.d.ts
4
- type ThemeMode = 'system' | 'light' | 'dark';
3
+ //#region src/components/C_Steps/types.d.ts
4
+ interface StepItem {
5
+ title: string;
6
+ description?: string;
7
+ time?: string;
8
+ icon?: string;
9
+ status?: 'wait' | 'process' | 'finish' | 'error';
10
+ disabled?: boolean;
11
+ detail?: string;
12
+ }
5
13
  //#endregion
6
- //#region src/components/C_Theme/index.vue.d.ts
14
+ //#region src/components/C_Steps/index.vue.d.ts
15
+ interface LegacyStepItem extends StepItem {
16
+ title: string;
17
+ description?: string;
18
+ time?: string;
19
+ icon?: string;
20
+ status?: 'wait' | 'process' | 'finish' | 'error';
21
+ disabled?: boolean;
22
+ detail?: string;
23
+ }
7
24
  type __VLS_Props = {
8
- modelValue?: ThemeMode;
25
+ steps: LegacyStepItem[];
26
+ current?: number;
27
+ direction?: 'horizontal' | 'vertical';
28
+ clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
+ connected?: boolean;
9
30
  };
10
31
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
- "update:modelValue": (mode: ThemeMode) => any;
32
+ change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
12
34
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
35
+ onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
14
37
  }>, {
15
- modelValue: ThemeMode;
38
+ clickable: boolean;
39
+ direction: "horizontal" | "vertical";
40
+ connected: boolean;
41
+ current: number;
16
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
17
43
  declare const _default: typeof __VLS_export;
18
44
  //#endregion
19
- export { ThemeMode as n, _default as t };
45
+ export { StepItem as n, _default as t };
@@ -1,96 +1,19 @@
1
- import { i as TagItem } from "./types2.cjs";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
2
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
11
- }
12
- /**
13
- * 标签页管理 composable
14
- *
15
- * 独立于组件使用 — 可在任何地方管理标签状态
16
- *
17
- * @example 独立使用
18
- * ```ts
19
- * const tags = useTagsView({ persistKey: 'my-tags' })
20
- * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
- * ```
22
- */
23
- declare function useTagsView(options?: UseTagsViewOptions): {
24
- tagsViewList: Ref<TagItem[], TagItem[]>;
25
- activeTag: Ref<string, string>;
26
- homePath: string;
27
- initTags: (tags?: TagItem[]) => void;
28
- setActiveTag: (path: string) => void;
29
- addTag: (tag: TagItem) => void;
30
- removeTag: (index: number) => string | null;
31
- removeOtherTags: (index: number) => void;
32
- removeLeftTags: (index: number) => void;
33
- removeRightTags: (index: number) => void;
34
- removeAllTags: () => void;
35
- };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
44
- }
3
+ //#region src/components/C_Theme/types.d.ts
4
+ type ThemeMode = 'system' | 'light' | 'dark';
45
5
  //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
53
- }
6
+ //#region src/components/C_Theme/index.vue.d.ts
54
7
  type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
8
+ modelValue?: ThemeMode;
65
9
  };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
10
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
+ "update:modelValue": (mode: ThemeMode) => any;
84
12
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
13
+ "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
87
14
  }>, {
88
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
15
+ modelValue: ThemeMode;
93
16
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
17
  declare const _default: typeof __VLS_export;
95
18
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
19
+ export { ThemeMode as n, _default as t };
@@ -1,96 +1,19 @@
1
- import { s as TagItem } from "./public.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
2
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
11
- }
12
- /**
13
- * 标签页管理 composable
14
- *
15
- * 独立于组件使用 — 可在任何地方管理标签状态
16
- *
17
- * @example 独立使用
18
- * ```ts
19
- * const tags = useTagsView({ persistKey: 'my-tags' })
20
- * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
- * ```
22
- */
23
- declare function useTagsView(options?: UseTagsViewOptions): {
24
- tagsViewList: Ref<TagItem[], TagItem[]>;
25
- activeTag: Ref<string, string>;
26
- homePath: string;
27
- initTags: (tags?: TagItem[]) => void;
28
- setActiveTag: (path: string) => void;
29
- addTag: (tag: TagItem) => void;
30
- removeTag: (index: number) => string | null;
31
- removeOtherTags: (index: number) => void;
32
- removeLeftTags: (index: number) => void;
33
- removeRightTags: (index: number) => void;
34
- removeAllTags: () => void;
35
- };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
44
- }
3
+ //#region src/components/C_Theme/types.d.ts
4
+ type ThemeMode = 'system' | 'light' | 'dark';
45
5
  //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
53
- }
6
+ //#region src/components/C_Theme/index.vue.d.ts
54
7
  type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
8
+ modelValue?: ThemeMode;
65
9
  };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
10
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
+ "update:modelValue": (mode: ThemeMode) => any;
84
12
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
13
+ "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
87
14
  }>, {
88
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
15
+ modelValue: ThemeMode;
93
16
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
17
  declare const _default: typeof __VLS_export;
95
18
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
19
+ export { ThemeMode as n, _default as t };
@@ -1,37 +1,87 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Barcode/index.vue.d.ts
4
- interface Props {
5
- value: string;
6
- format?: 'CODE128' | 'CODE39' | 'EAN13' | 'EAN8' | 'UPC' | 'ITF14' | 'MSI' | 'pharmacode';
7
- width?: number;
8
- height?: number;
9
- showText?: boolean;
10
- fontSize?: number;
11
- textPosition?: 'bottom' | 'top';
12
- lineColor?: string;
13
- background?: string;
14
- showBorder?: boolean;
15
- label?: string;
16
- showLabel?: boolean;
3
+ //#region src/components/C_AvatarGroup/types.d.ts
4
+ /**
5
+ * @Description: 头像组组件类型定义
6
+ * Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
7
+ */
8
+ /** 单个头像数据 */
9
+ interface AvatarItem {
10
+ /** 唯一标识 */
11
+ id: string | number;
12
+ /** 头像图片 URL */
13
+ src?: string;
14
+ /** 姓名(用于首字母 fallback 和 tooltip) */
15
+ name: string;
16
+ /** 悬浮提示(默认取 name) */
17
+ tooltip?: string;
18
+ /** 在线状态 */
19
+ status?: 'online' | 'offline' | 'busy' | 'away';
20
+ /** 额外数据 */
21
+ extra?: Record<string, unknown>;
17
22
  }
18
- declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
19
- error: (error: Error) => any;
20
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
- onError?: ((error: Error) => any) | undefined;
23
+ /** 组件 Props */
24
+ interface AvatarGroupProps {
25
+ /** 头像数据列表 */
26
+ items: AvatarItem[];
27
+ /** 最多显示数量(超出 +N) */
28
+ max?: number;
29
+ /** 头像尺寸 (px) */
30
+ size?: number;
31
+ /** 头像间重叠偏移量 (px),负值表示堆叠 */
32
+ overlap?: number;
33
+ /** 形状 */
34
+ shape?: 'circle' | 'square';
35
+ /** 是否显示状态指示点 */
36
+ showStatus?: boolean;
37
+ /** 是否显示悬浮提示 */
38
+ showTooltip?: boolean;
39
+ /** 是否可点击 */
40
+ clickable?: boolean;
41
+ /** +N 溢出按钮是否可点击 */
42
+ overflowClickable?: boolean;
43
+ /** 堆叠方向 */
44
+ direction?: 'ltr' | 'rtl';
45
+ }
46
+ /** 默认 Props */
47
+ declare const DEFAULT_AVATAR_GROUP_PROPS: Partial<AvatarGroupProps>;
48
+ /** 状态颜色映射 */
49
+ declare const STATUS_COLOR_MAP: Record<string, string>;
50
+ /** 从名字中提取首字母 */
51
+ declare function getInitials(name: string): string;
52
+ /** 根据名字生成稳定的背景色 */
53
+ declare function nameToColor(name: string): string;
54
+ //#endregion
55
+ //#region src/components/C_AvatarGroup/index.vue.d.ts
56
+ type __VLS_Props = {
57
+ items: AvatarGroupProps['items'];
58
+ max?: number;
59
+ size?: number;
60
+ overlap?: number;
61
+ shape?: AvatarGroupProps['shape'];
62
+ showStatus?: boolean;
63
+ showTooltip?: boolean;
64
+ clickable?: boolean;
65
+ overflowClickable?: boolean;
66
+ direction?: AvatarGroupProps['direction'];
67
+ };
68
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
69
+ itemClick: (item: AvatarItem) => any;
70
+ overflowClick: (hiddenItems: AvatarItem[]) => any;
71
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
72
+ onItemClick?: ((item: AvatarItem) => any) | undefined;
73
+ onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
22
74
  }>, {
23
- label: string;
24
- height: number;
25
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
26
- width: number;
27
- showBorder: boolean;
28
- showLabel: boolean;
29
- fontSize: number;
30
- lineColor: string;
31
- background: string;
32
- showText: boolean;
33
- textPosition: "bottom" | "top";
75
+ size: number;
76
+ max: number;
77
+ overlap: number;
78
+ shape: "circle" | "square";
79
+ showStatus: boolean;
80
+ showTooltip: boolean;
81
+ clickable: boolean;
82
+ overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
34
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
85
  declare const _default: typeof __VLS_export;
36
86
  //#endregion
37
- export { _default as t };
87
+ export { STATUS_COLOR_MAP as a, DEFAULT_AVATAR_GROUP_PROPS as i, AvatarGroupProps as n, getInitials as o, AvatarItem as r, nameToColor as s, _default as t };