@robot-admin/naive-ui-components 0.22.0 → 0.23.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 (321) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +9 -5
  3. package/README_EN.md +9 -5
  4. package/dist/C_ActionBar.d.cts +2 -1
  5. package/dist/C_ActionBar.d.ts +2 -1
  6. package/dist/C_AntV2.cjs +3 -3
  7. package/dist/C_AntV2.js +3 -3
  8. package/dist/C_BatchResult.cjs +1 -0
  9. package/dist/C_BatchResult.css +32 -0
  10. package/dist/C_BatchResult.d.cts +2 -0
  11. package/dist/C_BatchResult.d.ts +2 -0
  12. package/dist/C_BatchResult.js +1 -0
  13. package/dist/C_BatchResult2.cjs +1 -0
  14. package/dist/C_BatchResult2.js +1 -0
  15. package/dist/C_Breadcrumb.d.cts +2 -2
  16. package/dist/C_Breadcrumb.d.ts +1 -1
  17. package/dist/C_Captcha.d.ts +2 -0
  18. package/dist/C_Cascade.d.cts +1 -1
  19. package/dist/C_Cascade.d.ts +1 -1
  20. package/dist/C_Chat.d.cts +1 -1
  21. package/dist/C_Chat.d.ts +1 -1
  22. package/dist/C_City.d.cts +1 -1
  23. package/dist/C_City.d.ts +1 -1
  24. package/dist/C_Code.d.cts +1 -1
  25. package/dist/C_Code.d.ts +1 -1
  26. package/dist/C_ContextMenu.d.cts +1 -1
  27. package/dist/C_ContextMenu.d.ts +1 -1
  28. package/dist/C_DataPicker.cjs +1 -0
  29. package/dist/C_DataPicker.css +54 -0
  30. package/dist/C_DataPicker.d.cts +2 -0
  31. package/dist/C_DataPicker.d.ts +5 -0
  32. package/dist/C_DataPicker.js +1 -0
  33. package/dist/C_DataPicker2.cjs +1 -0
  34. package/dist/C_DataPicker2.js +1 -0
  35. package/dist/C_Date.d.cts +1 -1
  36. package/dist/C_Date.d.ts +1 -1
  37. package/dist/C_Density.cjs +1 -0
  38. package/dist/C_Density.css +1 -0
  39. package/dist/C_Density.d.cts +3 -0
  40. package/dist/C_Density.d.ts +3 -0
  41. package/dist/C_Density.js +1 -0
  42. package/dist/C_Density2.cjs +1 -0
  43. package/dist/C_Density2.js +1 -0
  44. package/dist/C_Editor.d.cts +1 -1
  45. package/dist/C_Editor.d.ts +1 -1
  46. package/dist/C_ErrorSummary.cjs +1 -0
  47. package/dist/C_ErrorSummary.css +29 -0
  48. package/dist/C_ErrorSummary.d.cts +3 -0
  49. package/dist/C_ErrorSummary.d.ts +3 -0
  50. package/dist/C_ErrorSummary.js +1 -0
  51. package/dist/C_ErrorSummary2.cjs +1 -0
  52. package/dist/C_ErrorSummary2.js +1 -0
  53. package/dist/C_Form.base.css +150 -148
  54. package/dist/C_Form.cjs +1 -1
  55. package/dist/C_Form.css +151 -253
  56. package/dist/C_Form.d.cts +3 -1
  57. package/dist/C_Form.d.ts +19 -1
  58. package/dist/C_Form.js +1 -1
  59. package/dist/C_FormModal.css +11 -12
  60. package/dist/C_FormModal.d.cts +1 -1
  61. package/dist/C_FormModal.d.ts +18 -2
  62. package/dist/C_FormModal2.cjs +1 -1
  63. package/dist/C_FormModal2.js +1 -1
  64. package/dist/C_FormSearch.cjs +1 -1
  65. package/dist/C_FormSearch.css +128 -56
  66. package/dist/C_FormSearch.d.cts +3 -3
  67. package/dist/C_FormSearch.d.ts +5 -3
  68. package/dist/C_FormSearch.js +1 -1
  69. package/dist/C_FormulaEditor.d.cts +1 -1
  70. package/dist/C_FormulaEditor.d.ts +1 -1
  71. package/dist/C_Guide.d.cts +1 -1
  72. package/dist/C_Guide.d.ts +1 -1
  73. package/dist/C_Icon.d.cts +1 -1
  74. package/dist/C_Icon.d.ts +1 -1
  75. package/dist/C_Language.d.cts +1 -1
  76. package/dist/C_Language.d.ts +1 -1
  77. package/dist/C_Loading.d.cts +1 -1
  78. package/dist/C_Loading.d.ts +1 -1
  79. package/dist/C_Login.d.cts +1 -1
  80. package/dist/C_Login.d.ts +4 -1
  81. package/dist/C_Markdown.d.cts +1 -1
  82. package/dist/C_Markdown.d.ts +1 -1
  83. package/dist/C_Menu.d.cts +2 -2
  84. package/dist/C_Menu.d.ts +1 -1
  85. package/dist/C_OrgChart.d.cts +1 -1
  86. package/dist/C_OrgChart.d.ts +1 -1
  87. package/dist/C_Progress.d.cts +1 -1
  88. package/dist/C_Progress.d.ts +1 -1
  89. package/dist/C_SectionNav.cjs +1 -0
  90. package/dist/C_SectionNav.css +46 -0
  91. package/dist/C_SectionNav.d.cts +2 -0
  92. package/dist/C_SectionNav.d.ts +2 -0
  93. package/dist/C_SectionNav.js +1 -0
  94. package/dist/C_SectionNav2.cjs +1 -0
  95. package/dist/C_SectionNav2.js +1 -0
  96. package/dist/C_Skeleton.d.cts +1 -1
  97. package/dist/C_Skeleton.d.ts +1 -1
  98. package/dist/C_Steps.d.cts +1 -1
  99. package/dist/C_Steps.d.ts +1 -1
  100. package/dist/C_Table.base.css +258 -256
  101. package/dist/C_Table.cjs +1 -1
  102. package/dist/C_Table.css +109 -1283
  103. package/dist/C_Table.d.cts +2 -1
  104. package/dist/C_Table.d.ts +11 -7
  105. package/dist/C_Table.js +1 -1
  106. package/dist/C_Table2.cjs +3 -0
  107. package/dist/C_Table2.js +3 -0
  108. package/dist/C_Tabs.cjs +1 -1
  109. package/dist/C_Tabs.d.cts +1 -1
  110. package/dist/C_Tabs.d.ts +1 -1
  111. package/dist/C_Tabs.js +1 -1
  112. package/dist/C_TagsView.d.cts +1 -1
  113. package/dist/C_Theme.d.cts +1 -1
  114. package/dist/C_Theme.d.ts +1 -1
  115. package/dist/C_Timeline.d.cts +1 -1
  116. package/dist/C_Timeline.d.ts +1 -1
  117. package/dist/C_Transfer.d.cts +1 -1
  118. package/dist/C_Transfer.d.ts +1 -1
  119. package/dist/C_Tree.d.cts +1 -1
  120. package/dist/C_Tree.d.ts +10 -6
  121. package/dist/C_Upload.d.cts +1 -1
  122. package/dist/C_Upload.d.ts +1 -1
  123. package/dist/C_WorkFlow2.cjs +1 -1
  124. package/dist/C_WorkFlow2.js +1 -1
  125. package/dist/Card.cjs +1 -1
  126. package/dist/Card.js +1 -1
  127. package/dist/Steps.cjs +1 -1
  128. package/dist/Steps.js +1 -1
  129. package/dist/Tabs.cjs +1 -1
  130. package/dist/Tabs.js +1 -1
  131. package/dist/batchPatch.cjs +1 -0
  132. package/dist/batchPatch.d.cts +26 -0
  133. package/dist/batchPatch.d.ts +26 -0
  134. package/dist/batchPatch.js +1 -0
  135. package/dist/config.cjs +1 -1
  136. package/dist/config.d.cts +7 -1
  137. package/dist/config.d.ts +7 -1
  138. package/dist/config.js +1 -1
  139. package/dist/config2.d.ts +14 -0
  140. package/dist/constants.d.cts +3 -3
  141. package/dist/constants.d.ts +3 -3
  142. package/dist/constants2.d.cts +402 -173
  143. package/dist/constants2.d.ts +402 -173
  144. package/dist/constants3.d.cts +3 -3
  145. package/dist/constants3.d.ts +3 -3
  146. package/dist/constants4.d.cts +173 -402
  147. package/dist/constants4.d.ts +173 -402
  148. package/dist/constants5.d.cts +2 -2
  149. package/dist/constants5.d.ts +2 -2
  150. package/dist/data.cjs +1 -1
  151. package/dist/data.d.cts +5 -108
  152. package/dist/data.d.ts +5 -108
  153. package/dist/data.js +1 -1
  154. package/dist/data2.cjs +1 -1
  155. package/dist/data2.d.cts +108 -0
  156. package/dist/data2.d.ts +108 -0
  157. package/dist/data2.js +1 -1
  158. package/dist/data3.cjs +1 -0
  159. package/dist/data3.js +1 -0
  160. package/dist/dateRange.d.cts +108 -13
  161. package/dist/dateRange.d.ts +108 -13
  162. package/dist/density.cjs +1 -1
  163. package/dist/density.js +1 -1
  164. package/dist/dictionary.cjs +1 -0
  165. package/dist/dictionary.d.cts +38 -0
  166. package/dist/dictionary.d.ts +38 -0
  167. package/dist/dictionary.js +1 -0
  168. package/dist/helpers.cjs +1 -1
  169. package/dist/helpers.js +1 -1
  170. package/dist/index.cjs +1 -1
  171. package/dist/index.d.cts +65 -53
  172. package/dist/index.d.ts +73 -57
  173. package/dist/index.js +1 -1
  174. package/dist/index.vue.d.cts +1 -1
  175. package/dist/index.vue.d.ts +1 -1
  176. package/dist/index10.vue.d.cts +37 -80
  177. package/dist/index10.vue.d.ts +77 -53
  178. package/dist/index11.vue.d.cts +77 -53
  179. package/dist/index11.vue.d.ts +1117 -45
  180. package/dist/index12.vue.d.cts +1117 -45
  181. package/dist/index12.vue.d.ts +17 -128
  182. package/dist/index13.vue.d.cts +17 -128
  183. package/dist/index13.vue.d.ts +57 -53
  184. package/dist/index14.vue.d.cts +57 -53
  185. package/dist/index14.vue.d.ts +16 -25
  186. package/dist/index15.vue.d.cts +16 -25
  187. package/dist/index15.vue.d.ts +52 -12
  188. package/dist/index16.vue.d.cts +52 -12
  189. package/dist/index16.vue.d.ts +13 -129
  190. package/dist/index17.vue.d.cts +13 -129
  191. package/dist/index17.vue.d.ts +123 -74
  192. package/dist/index18.vue.d.cts +123 -74
  193. package/dist/index18.vue.d.ts +48 -71
  194. package/dist/index19.vue.d.cts +40 -91
  195. package/dist/index19.vue.d.ts +36 -96
  196. package/dist/index2.vue.d.cts +2 -2
  197. package/dist/index2.vue.d.ts +2 -2
  198. package/dist/index20.vue.d.cts +38 -47
  199. package/dist/index20.vue.d.ts +13 -48
  200. package/dist/index21.vue.d.cts +12 -96
  201. package/dist/index21.vue.d.ts +25 -95
  202. package/dist/index22.vue.d.cts +20 -32
  203. package/dist/index22.vue.d.ts +75 -37
  204. package/dist/index23.vue.d.cts +77 -13
  205. package/dist/index23.vue.d.ts +71 -13
  206. package/dist/index24.vue.d.cts +2 -2
  207. package/dist/index24.vue.d.ts +1 -1
  208. package/dist/index25.vue.d.cts +116 -90
  209. package/dist/index25.vue.d.ts +116 -90
  210. package/dist/index26.vue.d.cts +94 -59
  211. package/dist/index26.vue.d.ts +94 -59
  212. package/dist/index27.vue.d.cts +75 -0
  213. package/dist/index27.vue.d.ts +75 -0
  214. package/dist/index28.vue.d.cts +103 -0
  215. package/dist/index28.vue.d.ts +103 -0
  216. package/dist/index29.vue.d.cts +105 -0
  217. package/dist/index29.vue.d.ts +105 -0
  218. package/dist/index3.vue.d.cts +4 -4
  219. package/dist/index3.vue.d.ts +4 -4
  220. package/dist/index30.vue.d.cts +28 -0
  221. package/dist/index30.vue.d.ts +28 -0
  222. package/dist/index4.vue.d.cts +19 -128
  223. package/dist/index4.vue.d.ts +17 -34
  224. package/dist/index5.vue.d.cts +127 -35
  225. package/dist/index5.vue.d.ts +30 -19
  226. package/dist/index6.vue.d.cts +30 -19
  227. package/dist/index6.vue.d.ts +22 -118
  228. package/dist/index7.vue.d.cts +22 -118
  229. package/dist/index7.vue.d.ts +112 -18
  230. package/dist/index8.vue.d.cts +112 -18
  231. package/dist/index8.vue.d.ts +24 -35
  232. package/dist/index9.vue.d.cts +24 -35
  233. package/dist/index9.vue.d.ts +37 -80
  234. package/dist/mapUtils.d.cts +4 -4
  235. package/dist/mapUtils.d.ts +4 -4
  236. package/dist/numberCodec.cjs +1 -0
  237. package/dist/numberCodec.d.cts +25 -0
  238. package/dist/numberCodec.d.ts +25 -0
  239. package/dist/numberCodec.js +1 -0
  240. package/dist/observer.cjs +1 -0
  241. package/dist/observer.js +1 -0
  242. package/dist/presets.d.cts +3 -66
  243. package/dist/presets.d.ts +3 -66
  244. package/dist/resolver.cjs +1 -1
  245. package/dist/resolver.d.cts +1 -1
  246. package/dist/resolver.d.ts +1 -1
  247. package/dist/resolver.js +1 -1
  248. package/dist/serializeSearch.cjs +1 -0
  249. package/dist/serializeSearch.js +1 -0
  250. package/dist/style.css +561 -322
  251. package/dist/types.d.cts +60 -103
  252. package/dist/types.d.ts +62 -52
  253. package/dist/types2.d.cts +104 -51
  254. package/dist/types2.d.ts +56 -0
  255. package/dist/types3.d.cts +56 -0
  256. package/dist/useCalendarEvents.d.cts +1 -1
  257. package/dist/useCalendarEvents.d.ts +1 -1
  258. package/dist/useCollapsePanel.d.cts +6 -6
  259. package/dist/useCollapsePanel.d.ts +6 -6
  260. package/dist/useComponentLocale.cjs +1 -1
  261. package/dist/useComponentLocale.js +1 -1
  262. package/dist/useCropperCore.d.cts +13 -13
  263. package/dist/useCropperCore.d.ts +13 -13
  264. package/dist/useDataResource.cjs +1 -0
  265. package/dist/useDataResource.js +1 -0
  266. package/dist/useDictionary.cjs +1 -0
  267. package/dist/useDictionary.js +1 -0
  268. package/dist/useDynamicFormState.d.cts +959 -582
  269. package/dist/useDynamicFormState.d.ts +951 -584
  270. package/dist/useEdgeInteraction.d.cts +3 -3
  271. package/dist/useEdgeInteraction.d.ts +3 -3
  272. package/dist/useFormArray.cjs +1 -0
  273. package/dist/useFormArray.d.cts +69 -0
  274. package/dist/useFormArray.d.ts +69 -0
  275. package/dist/useFormArray.js +1 -0
  276. package/dist/useFormConfig.cjs +1 -0
  277. package/dist/useFormConfig.d.cts +590 -0
  278. package/dist/useFormConfig.d.ts +590 -0
  279. package/dist/useFormConfig.js +1 -0
  280. package/dist/useFullscreen.d.cts +3 -3
  281. package/dist/useFullscreen.d.ts +3 -3
  282. package/dist/useGridWidth.cjs +1 -0
  283. package/dist/useGridWidth.js +1 -0
  284. package/dist/useInfiniteScroll.d.cts +2 -2
  285. package/dist/useInfiniteScroll.d.ts +2 -2
  286. package/dist/useQRCode.d.cts +3 -3
  287. package/dist/useQRCode.d.ts +3 -3
  288. package/dist/useSignatureHistory.d.cts +4 -4
  289. package/dist/useSignatureHistory.d.ts +4 -4
  290. package/dist/useSplitResize.d.cts +5 -5
  291. package/dist/useSplitResize.d.ts +5 -5
  292. package/dist/useTableGlobalConfig.cjs +1 -0
  293. package/dist/useTableGlobalConfig.js +1 -0
  294. package/dist/useTableQuery.cjs +1 -3
  295. package/dist/useTableQuery.js +1 -3
  296. package/dist/useWorkflowValidation.d.cts +6 -6
  297. package/dist/useWorkflowValidation.d.ts +6 -6
  298. package/dist/validation.cjs +1 -0
  299. package/dist/validation.d.cts +18 -0
  300. package/dist/validation.d.ts +18 -0
  301. package/dist/validation.js +1 -0
  302. package/dist/verification.d.cts +4 -4
  303. package/dist/verification.d.ts +4 -4
  304. package/dist/workflows.cjs +1 -0
  305. package/dist/workflows.d.cts +2 -0
  306. package/dist/workflows.d.ts +2 -0
  307. package/dist/workflows.js +1 -0
  308. package/docs/components.en.md +13 -1
  309. package/docs/components.md +13 -1
  310. package/docs/guides/batch-results.md +47 -0
  311. package/docs/guides/data-picker.md +65 -0
  312. package/docs/guides/data-workflows.md +123 -0
  313. package/docs/guides/form-density.en.md +56 -3
  314. package/docs/guides/form-density.md +56 -3
  315. package/docs/guides/search-workflows.md +164 -0
  316. package/docs/guides/usage.en.md +1 -1
  317. package/package.json +21 -1
  318. package/dist/C_FormSearch2.cjs +0 -1
  319. package/dist/C_FormSearch2.js +0 -1
  320. package/dist/useTableQuery.d.cts +0 -1957
  321. package/dist/useTableQuery.d.ts +0 -1957
@@ -1,54 +1,45 @@
1
1
  import * as vue from "vue";
2
- import { CSSProperties } from "vue";
3
2
 
4
- //#region src/components/C_Progress/index.vue.d.ts
5
- type CSS = CSSProperties | string;
6
- interface Props {
7
- percentage: number | number[];
8
- isAnimation?: boolean;
9
- time?: number;
10
- type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
11
- borderRadius?: number | string;
12
- circleGap?: number;
13
- color?: string | string[] | {
14
- stops: string[];
15
- } | Array<{
16
- stops: string[];
17
- }>;
18
- fillBorderRadius?: number | string;
19
- gapDegree?: number;
20
- gapOffsetDegree?: number;
21
- height?: number;
22
- indicatorPlacement?: 'inside' | 'outside';
23
- indicatorTextColor?: string;
24
- offsetDegree?: number;
25
- railColor?: string | string[];
26
- railStyle?: string | CSS | Array<string | CSS>;
27
- showIndicator?: boolean;
28
- status?: 'default' | 'success' | 'error' | 'warning' | 'info';
29
- strokeWidth?: number;
30
- unit?: string;
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;
31
12
  }
32
- declare var __VLS_9: {};
33
- type __VLS_Slots = {} & {
34
- indicator?: (props: typeof __VLS_9) => any;
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;
23
+ }
24
+ type __VLS_Props = {
25
+ steps: LegacyStepItem[];
26
+ current?: number;
27
+ direction?: 'horizontal' | 'vertical';
28
+ clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
+ connected?: boolean;
35
30
  };
36
- declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- status: "default" | "success" | "error" | "warning" | "info";
38
- strokeWidth: number;
39
- percentage: number | number[];
40
- isAnimation: boolean;
41
- time: number;
42
- indicatorPlacement: "inside" | "outside";
43
- showIndicator: boolean;
44
- unit: string;
31
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
+ change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
34
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
+ }>, {
38
+ direction: "horizontal" | "vertical";
39
+ current: number;
40
+ clickable: boolean;
41
+ connected: boolean;
45
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
43
  declare const _default: typeof __VLS_export;
48
- type __VLS_WithSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };
53
44
  //#endregion
54
- export { _default as t };
45
+ export { StepItem as n, _default as t };
@@ -1,54 +1,19 @@
1
1
  import * as vue from "vue";
2
- import { CSSProperties } from "vue";
3
2
 
4
- //#region src/components/C_Progress/index.vue.d.ts
5
- type CSS = CSSProperties | string;
6
- interface Props {
7
- percentage: number | number[];
8
- isAnimation?: boolean;
9
- time?: number;
10
- type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
11
- borderRadius?: number | string;
12
- circleGap?: number;
13
- color?: string | string[] | {
14
- stops: string[];
15
- } | Array<{
16
- stops: string[];
17
- }>;
18
- fillBorderRadius?: number | string;
19
- gapDegree?: number;
20
- gapOffsetDegree?: number;
21
- height?: number;
22
- indicatorPlacement?: 'inside' | 'outside';
23
- indicatorTextColor?: string;
24
- offsetDegree?: number;
25
- railColor?: string | string[];
26
- railStyle?: string | CSS | Array<string | CSS>;
27
- showIndicator?: boolean;
28
- status?: 'default' | 'success' | 'error' | 'warning' | 'info';
29
- strokeWidth?: number;
30
- unit?: string;
31
- }
32
- declare var __VLS_9: {};
33
- type __VLS_Slots = {} & {
34
- indicator?: (props: typeof __VLS_9) => any;
3
+ //#region src/components/C_Theme/types.d.ts
4
+ type ThemeMode = 'system' | 'light' | 'dark';
5
+ //#endregion
6
+ //#region src/components/C_Theme/index.vue.d.ts
7
+ type __VLS_Props = {
8
+ modelValue?: ThemeMode;
35
9
  };
36
- declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- status: "default" | "success" | "error" | "warning" | "info";
38
- strokeWidth: number;
39
- percentage: number | number[];
40
- isAnimation: boolean;
41
- time: number;
42
- indicatorPlacement: "inside" | "outside";
43
- showIndicator: boolean;
44
- unit: string;
10
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
+ "update:modelValue": (mode: ThemeMode) => any;
12
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
14
+ }>, {
15
+ modelValue: ThemeMode;
45
16
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
17
  declare const _default: typeof __VLS_export;
48
- type __VLS_WithSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };
53
18
  //#endregion
54
- export { _default as t };
19
+ export { ThemeMode as n, _default as t };
@@ -1,103 +1,19 @@
1
1
  import * as vue from "vue";
2
2
 
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;
18
- }
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;
58
- }
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
- }
3
+ //#region src/components/C_Theme/types.d.ts
4
+ type ThemeMode = 'system' | 'light' | 'dark';
82
5
  //#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;
6
+ //#region src/components/C_Theme/index.vue.d.ts
7
+ type __VLS_Props = {
8
+ modelValue?: ThemeMode;
87
9
  };
88
- declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
- repeat: number;
91
- preset: SkeletonPreset;
92
- animation: SkeletonAnimation;
93
- borderRadius: string;
10
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
+ "update:modelValue": (mode: ThemeMode) => any;
12
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
14
+ }>, {
15
+ modelValue: ThemeMode;
94
16
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
17
  declare const _default: typeof __VLS_export;
97
- type __VLS_WithSlots<T, S> = T & {
98
- new (): {
99
- $slots: S;
100
- };
101
- };
102
18
  //#endregion
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 };
19
+ export { ThemeMode as n, _default as t };
@@ -1,103 +1,33 @@
1
1
  import * as vue from "vue";
2
2
 
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;
18
- }
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;
58
- }
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;
3
+ //#region src/components/C_Language/types.d.ts
4
+ interface LanguageOption {
5
+ key: string;
6
+ label: string;
7
+ iconClass?: string;
81
8
  }
82
9
  //#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;
10
+ //#region src/components/C_Language/index.vue.d.ts
11
+ interface LegacyLanguageOption extends LanguageOption {
12
+ key: string;
13
+ label: string;
14
+ iconClass?: string;
15
+ }
16
+ type __VLS_Props = {
17
+ modelValue?: string;
18
+ options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
+ tooltip?: string;
87
20
  };
88
- declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
- repeat: number;
91
- preset: SkeletonPreset;
92
- animation: SkeletonAnimation;
93
- borderRadius: string;
21
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
+ change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
+ }>, {
28
+ options: LegacyLanguageOption[];
29
+ modelValue: string;
94
30
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
31
  declare const _default: typeof __VLS_export;
97
- type __VLS_WithSlots<T, S> = T & {
98
- new (): {
99
- $slots: S;
100
- };
101
- };
102
32
  //#endregion
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 };
33
+ export { LanguageOption as n, _default as t };
@@ -1,45 +1,33 @@
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_Language/types.d.ts
4
+ interface LanguageOption {
5
+ key: string;
6
+ label: string;
7
+ iconClass?: string;
12
8
  }
13
9
  //#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;
10
+ //#region src/components/C_Language/index.vue.d.ts
11
+ interface LegacyLanguageOption extends LanguageOption {
12
+ key: string;
13
+ label: string;
14
+ iconClass?: string;
23
15
  }
24
16
  type __VLS_Props = {
25
- steps: LegacyStepItem[];
26
- current?: number;
27
- direction?: 'horizontal' | 'vertical';
28
- clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
- connected?: boolean;
17
+ modelValue?: string;
18
+ options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
+ tooltip?: string;
30
20
  };
31
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
- change: (args_0: number) => any;
33
- "update:current": (args_0: number) => any;
22
+ change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
34
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onChange?: ((args_0: number) => any) | undefined;
36
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
25
+ onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
37
27
  }>, {
38
- direction: "horizontal" | "vertical";
39
- current: number;
40
- clickable: boolean;
41
- connected: boolean;
28
+ options: LegacyLanguageOption[];
29
+ modelValue: string;
42
30
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
31
  declare const _default: typeof __VLS_export;
44
32
  //#endregion
45
- export { StepItem as n, _default as t };
33
+ export { LanguageOption as n, _default as t };
@@ -1,45 +1,83 @@
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';
3
+ //#region src/components/C_Markdown/index.vue.d.ts
4
+ type ToolbarName = string | number;
5
+ type InsertImageFunction = (config: {
6
+ url: string;
7
+ desc?: string;
8
+ width?: string | number;
9
+ height?: string | number;
10
+ }) => void;
11
+ interface Props {
12
+ modelValue?: string;
13
+ /** SSR 或同页多实例时建议显式传入稳定 ID */
14
+ editorId?: string;
15
+ height?: string | number;
10
16
  disabled?: boolean;
11
- detail?: string;
17
+ placeholder?: string;
18
+ mode?: 'edit' | 'editable' | 'preview';
19
+ toolbar?: object | ToolbarName[];
20
+ uploadImageConfig?: {
21
+ accept?: string;
22
+ multiple?: boolean;
23
+ [key: string]: unknown;
24
+ };
25
+ tocNavPosition?: 'left' | 'right';
26
+ defaultFullscreen?: boolean;
27
+ autofocus?: boolean;
28
+ includeLevel?: number[];
29
+ leftToolbar?: string;
30
+ rightToolbar?: string;
31
+ maxLength?: number;
32
+ showWordCount?: boolean;
33
+ autoSave?: boolean;
34
+ autoSaveInterval?: number;
35
+ /** 是否为暗色主题(外部传入) */
36
+ isDark?: boolean;
12
37
  }
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;
23
- }
24
- type __VLS_Props = {
25
- steps: LegacyStepItem[];
26
- current?: number;
27
- direction?: 'horizontal' | 'vertical';
28
- clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
29
- connected?: boolean;
30
- };
31
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
- change: (args_0: number) => any;
33
- "update:current": (args_0: number) => any;
34
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onChange?: ((args_0: number) => any) | undefined;
36
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
38
+ declare const __VLS_export: vue.DefineComponent<Props, {
39
+ focus: () => void;
40
+ getHtml: () => string;
41
+ insertText: (text: string) => void;
42
+ wordCount: vue.ComputedRef<number>;
43
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
+ change: (text: string, html: string) => any;
45
+ "update:modelValue": (value: string) => any;
46
+ save: (text: string, html: string) => any;
47
+ "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
+ "fullscreen-change": (isFullscreen: boolean) => any;
49
+ "copy-code-success": (text: string) => any;
50
+ "word-count-change": (count: number) => any;
51
+ "auto-save": (text: string) => any;
52
+ "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
+ }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
+ onChange?: ((text: string, html: string) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
+ onSave?: ((text: string, html: string) => any) | undefined;
57
+ "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
+ "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
59
+ "onCopy-code-success"?: ((text: string) => any) | undefined;
60
+ "onWord-count-change"?: ((count: number) => any) | undefined;
61
+ "onAuto-save"?: ((text: string) => any) | undefined;
62
+ "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
37
63
  }>, {
38
- direction: "horizontal" | "vertical";
39
- current: number;
40
- clickable: boolean;
41
- connected: boolean;
64
+ disabled: boolean;
65
+ height: string | number;
66
+ placeholder: string;
67
+ modelValue: string;
68
+ mode: "edit" | "editable" | "preview";
69
+ tocNavPosition: "left" | "right";
70
+ defaultFullscreen: boolean;
71
+ autofocus: boolean;
72
+ includeLevel: number[];
73
+ leftToolbar: string;
74
+ rightToolbar: string;
75
+ maxLength: number;
76
+ showWordCount: boolean;
77
+ autoSave: boolean;
78
+ autoSaveInterval: number;
79
+ isDark: boolean;
42
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
81
  declare const _default: typeof __VLS_export;
44
82
  //#endregion
45
- export { StepItem as n, _default as t };
83
+ export { _default as t };