@robot-admin/naive-ui-components 0.12.1 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +60 -1
  3. package/README_EN.md +59 -0
  4. package/dist/C_ActionBar.css +60 -60
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV.css +49 -49
  8. package/dist/C_AntV2.cjs +3 -3
  9. package/dist/C_AntV2.js +3 -3
  10. package/dist/C_AudioPlayer.css +81 -66
  11. package/dist/C_AudioPlayer2.cjs +1 -1
  12. package/dist/C_AudioPlayer2.js +1 -1
  13. package/dist/C_AvatarGroup.css +40 -25
  14. package/dist/C_AvatarGroup2.cjs +1 -1
  15. package/dist/C_AvatarGroup2.js +1 -1
  16. package/dist/C_Barcode.css +6 -6
  17. package/dist/C_Barcode2.cjs +1 -1
  18. package/dist/C_Barcode2.js +1 -1
  19. package/dist/C_Breadcrumb.css +14 -14
  20. package/dist/C_Breadcrumb2.cjs +1 -1
  21. package/dist/C_Breadcrumb2.js +1 -1
  22. package/dist/C_Captcha.css +50 -50
  23. package/dist/C_Captcha2.cjs +1 -1
  24. package/dist/C_Captcha2.js +1 -1
  25. package/dist/C_Cascade.css +2 -2
  26. package/dist/C_Cascade2.cjs +1 -1
  27. package/dist/C_Cascade2.js +1 -1
  28. package/dist/C_Chat.css +96 -78
  29. package/dist/C_Chat2.cjs +1 -1
  30. package/dist/C_Chat2.js +1 -1
  31. package/dist/C_City.css +52 -28
  32. package/dist/C_City2.cjs +1 -1
  33. package/dist/C_City2.js +1 -1
  34. package/dist/C_Code.css +48 -42
  35. package/dist/C_Code2.cjs +1 -1
  36. package/dist/C_Code2.js +1 -1
  37. package/dist/C_CollapsePanel.css +14 -14
  38. package/dist/C_CollapsePanel2.cjs +1 -1
  39. package/dist/C_CollapsePanel2.js +1 -1
  40. package/dist/C_ContextMenu.css +14 -14
  41. package/dist/C_ContextMenu2.cjs +1 -1
  42. package/dist/C_ContextMenu2.js +1 -1
  43. package/dist/C_Cron.css +94 -55
  44. package/dist/C_Cron2.cjs +1 -1
  45. package/dist/C_Cron2.js +1 -1
  46. package/dist/C_Date2.cjs +1 -1
  47. package/dist/C_Date2.js +1 -1
  48. package/dist/C_Draggable.css +48 -48
  49. package/dist/C_Draggable2.cjs +1 -1
  50. package/dist/C_Draggable2.js +1 -1
  51. package/dist/C_Editor.css +13 -14
  52. package/dist/C_Editor2.cjs +1 -1
  53. package/dist/C_Editor2.js +1 -1
  54. package/dist/C_FilePreview.css +18 -18
  55. package/dist/C_FilePreview2.cjs +1 -1
  56. package/dist/C_FilePreview2.js +1 -1
  57. package/dist/C_Form.base.css +36 -36
  58. package/dist/C_Form.css +49 -50
  59. package/dist/C_Form2.cjs +1 -1
  60. package/dist/C_Form2.js +1 -1
  61. package/dist/C_FormModal.css +8 -8
  62. package/dist/C_FormModal2.cjs +1 -1
  63. package/dist/C_FormModal2.js +1 -1
  64. package/dist/C_FormSearch.css +45 -45
  65. package/dist/C_FormSearch2.cjs +1 -1
  66. package/dist/C_FormSearch2.js +1 -1
  67. package/dist/C_FormulaEditor.css +94 -55
  68. package/dist/C_FormulaEditor2.cjs +2 -2
  69. package/dist/C_FormulaEditor2.js +2 -2
  70. package/dist/C_FullCalendar.css +8 -1
  71. package/dist/C_FullCalendar2.cjs +1 -1
  72. package/dist/C_FullCalendar2.js +1 -1
  73. package/dist/C_GlobalSearch2.cjs +1 -1
  74. package/dist/C_GlobalSearch2.js +1 -1
  75. package/dist/C_Guide.css +137 -14
  76. package/dist/C_Guide.d.cts +2 -2
  77. package/dist/C_Guide.d.ts +2 -2
  78. package/dist/C_Guide2.cjs +1 -1
  79. package/dist/C_Guide2.js +1 -1
  80. package/dist/C_Icon.css +14 -14
  81. package/dist/C_Icon2.cjs +1 -1
  82. package/dist/C_Icon2.js +1 -1
  83. package/dist/C_ImageCropper.css +22 -22
  84. package/dist/C_ImageCropper2.cjs +1 -1
  85. package/dist/C_ImageCropper2.js +1 -1
  86. package/dist/C_Language.css +14 -14
  87. package/dist/C_Language2.cjs +1 -1
  88. package/dist/C_Language2.js +1 -1
  89. package/dist/C_Login.css +134 -134
  90. package/dist/C_Login2.cjs +1 -1
  91. package/dist/C_Login2.js +1 -1
  92. package/dist/C_Map.css +3 -3
  93. package/dist/C_Map2.cjs +1 -1
  94. package/dist/C_Map2.js +1 -1
  95. package/dist/C_Markdown.css +35 -35
  96. package/dist/C_Markdown2.cjs +1 -1
  97. package/dist/C_Markdown2.js +1 -1
  98. package/dist/C_Menu2.cjs +1 -1
  99. package/dist/C_Menu2.js +1 -1
  100. package/dist/C_NotificationCenter.css +30 -30
  101. package/dist/C_NotificationCenter2.cjs +1 -1
  102. package/dist/C_NotificationCenter2.js +1 -1
  103. package/dist/C_OrgChart.css +4 -0
  104. package/dist/C_OrgChart2.cjs +1 -1
  105. package/dist/C_OrgChart2.js +1 -1
  106. package/dist/C_Progress2.cjs +1 -1
  107. package/dist/C_Progress2.js +1 -1
  108. package/dist/C_QRCode.css +8 -8
  109. package/dist/C_QRCode2.cjs +1 -1
  110. package/dist/C_QRCode2.js +1 -1
  111. package/dist/C_Signature.css +14 -14
  112. package/dist/C_Signature2.cjs +1 -1
  113. package/dist/C_Signature2.js +1 -1
  114. package/dist/C_Skeleton2.cjs +1 -1
  115. package/dist/C_Skeleton2.js +1 -1
  116. package/dist/C_SplitPane.css +39 -39
  117. package/dist/C_SplitPane2.cjs +1 -1
  118. package/dist/C_SplitPane2.js +1 -1
  119. package/dist/C_Steps.css +48 -38
  120. package/dist/C_Steps2.cjs +1 -1
  121. package/dist/C_Steps2.js +1 -1
  122. package/dist/C_Table.base.css +160 -160
  123. package/dist/C_Table.css +173 -174
  124. package/dist/C_TagsView.css +52 -52
  125. package/dist/C_TagsView2.cjs +1 -1
  126. package/dist/C_TagsView2.js +1 -1
  127. package/dist/C_Theme.css +14 -14
  128. package/dist/C_Theme2.cjs +1 -1
  129. package/dist/C_Theme2.js +1 -1
  130. package/dist/C_Time.css +4 -4
  131. package/dist/C_Time2.cjs +1 -1
  132. package/dist/C_Time2.js +1 -1
  133. package/dist/C_Timeline.css +76 -58
  134. package/dist/C_Timeline2.cjs +1 -1
  135. package/dist/C_Timeline2.js +1 -1
  136. package/dist/C_Transfer.css +51 -51
  137. package/dist/C_Transfer2.cjs +1 -1
  138. package/dist/C_Transfer2.js +1 -1
  139. package/dist/C_Tree.css +35 -32
  140. package/dist/C_Tree2.cjs +1 -1
  141. package/dist/C_Tree2.js +1 -1
  142. package/dist/C_Upload.css +53 -50
  143. package/dist/C_Upload2.cjs +1 -1
  144. package/dist/C_Upload2.js +1 -1
  145. package/dist/C_VideoPlayer.css +17 -13
  146. package/dist/C_VideoPlayer2.cjs +2 -2
  147. package/dist/C_VideoPlayer2.js +2 -2
  148. package/dist/C_VtableGantt.css +19 -19
  149. package/dist/C_VtableGantt2.cjs +1 -1
  150. package/dist/C_VtableGantt2.js +1 -1
  151. package/dist/C_WaterFall.css +19 -15
  152. package/dist/C_WaterFall2.cjs +1 -1
  153. package/dist/C_WaterFall2.js +1 -1
  154. package/dist/C_WorkFlow.css +123 -123
  155. package/dist/C_WorkFlow2.cjs +1 -1
  156. package/dist/C_WorkFlow2.js +1 -1
  157. package/dist/constants.d.cts +3 -3
  158. package/dist/constants.d.ts +3 -3
  159. package/dist/constants2.d.cts +2 -2
  160. package/dist/constants2.d.ts +2 -2
  161. package/dist/constants3.d.cts +12 -8
  162. package/dist/constants3.d.ts +12 -8
  163. package/dist/constants4.d.cts +9 -9
  164. package/dist/constants4.d.ts +9 -9
  165. package/dist/constants5.d.cts +4 -4
  166. package/dist/constants5.d.ts +4 -4
  167. package/dist/data.d.cts +11 -11
  168. package/dist/data.d.ts +11 -11
  169. package/dist/data2.cjs +1 -1
  170. package/dist/data2.js +1 -1
  171. package/dist/index.cjs +1 -1
  172. package/dist/index.d.cts +2 -3
  173. package/dist/index.d.ts +2 -2
  174. package/dist/index.js +1 -1
  175. package/dist/index.vue.d.cts +7 -5
  176. package/dist/index.vue.d.ts +7 -5
  177. package/dist/index10.vue.d.cts +2 -2
  178. package/dist/index10.vue.d.ts +2 -2
  179. package/dist/index11.vue.d.cts +2 -2
  180. package/dist/index11.vue.d.ts +5 -5
  181. package/dist/index12.vue.d.cts +5 -5
  182. package/dist/index12.vue.d.ts +2 -2
  183. package/dist/index13.vue.d.cts +2 -2
  184. package/dist/index13.vue.d.ts +35 -9
  185. package/dist/index14.vue.d.cts +35 -9
  186. package/dist/index14.vue.d.ts +15 -48
  187. package/dist/index15.vue.d.cts +15 -48
  188. package/dist/index17.vue.d.ts +4 -4
  189. package/dist/index18.vue.d.cts +4 -4
  190. package/dist/index18.vue.d.ts +2 -2
  191. package/dist/index19.vue.d.cts +2 -2
  192. package/dist/index19.vue.d.ts +2 -2
  193. package/dist/index2.vue.d.cts +3 -3
  194. package/dist/index2.vue.d.ts +3 -3
  195. package/dist/index20.vue.d.cts +2 -2
  196. package/dist/index20.vue.d.ts +2 -2
  197. package/dist/index21.vue.d.cts +3 -3
  198. package/dist/index21.vue.d.ts +3 -3
  199. package/dist/index22.vue.d.cts +1 -1
  200. package/dist/index22.vue.d.ts +1 -1
  201. package/dist/index24.vue.d.cts +3 -3
  202. package/dist/index24.vue.d.ts +3 -3
  203. package/dist/index26.vue.d.cts +1 -1
  204. package/dist/index26.vue.d.ts +1 -1
  205. package/dist/index27.vue.d.cts +1 -1
  206. package/dist/index27.vue.d.ts +1 -1
  207. package/dist/index3.vue.d.cts +8 -8
  208. package/dist/index3.vue.d.ts +8 -8
  209. package/dist/index4.vue.d.cts +2 -2
  210. package/dist/index6.vue.d.ts +1 -1
  211. package/dist/index7.vue.d.cts +1 -1
  212. package/dist/index8.vue.d.ts +3 -3
  213. package/dist/index9.vue.d.cts +3 -3
  214. package/dist/index9.vue.d.ts +2 -2
  215. package/dist/mapUtils.d.cts +4 -4
  216. package/dist/mapUtils.d.ts +4 -4
  217. package/dist/style.css +1698 -1365
  218. package/dist/useCalendarEvents.d.cts +23 -18
  219. package/dist/useCalendarEvents.d.ts +23 -18
  220. package/dist/useCollapsePanel.d.cts +1 -0
  221. package/dist/useCollapsePanel.d.ts +1 -0
  222. package/dist/useCropperCore.d.cts +32 -17
  223. package/dist/useCropperCore.d.ts +32 -17
  224. package/dist/useDraggableLayout.d.cts +3 -3
  225. package/dist/useDraggableLayout.d.ts +3 -3
  226. package/dist/useDynamicFormState.d.cts +5 -0
  227. package/dist/useDynamicFormState.d.ts +5 -0
  228. package/dist/useEdgeInteraction.d.cts +19 -19
  229. package/dist/useEdgeInteraction.d.ts +19 -19
  230. package/dist/useFullscreen.d.cts +6 -6
  231. package/dist/useFullscreen.d.ts +6 -6
  232. package/dist/useInfiniteScroll.d.cts +2 -2
  233. package/dist/useInfiniteScroll.d.ts +2 -2
  234. package/dist/useQRCode.d.cts +6 -5
  235. package/dist/useQRCode.d.ts +6 -5
  236. package/dist/useSearchState.d.cts +7 -7
  237. package/dist/useSearchState.d.ts +7 -7
  238. package/dist/useSignatureHistory.d.cts +16 -8
  239. package/dist/useSignatureHistory.d.ts +16 -8
  240. package/dist/useSplitResize.d.cts +4 -4
  241. package/dist/useSplitResize.d.ts +4 -4
  242. package/dist/useTableQuery.cjs +3 -3
  243. package/dist/useTableQuery.d.cts +2 -5
  244. package/dist/useTableQuery.d.ts +2 -5
  245. package/dist/useTableQuery.js +3 -3
  246. package/dist/useTimeSelection.d.cts +5 -2
  247. package/dist/useTimeSelection.d.ts +5 -2
  248. package/dist/useTreeOperations.d.cts +6 -6
  249. package/dist/useTreeOperations.d.ts +6 -6
  250. package/dist/useWorkflowValidation.d.cts +4 -2
  251. package/dist/useWorkflowValidation.d.ts +4 -2
  252. package/dist/verification.d.cts +3 -3
  253. package/dist/verification.d.ts +3 -3
  254. package/package.json +4 -3
@@ -60,22 +60,24 @@ type __VLS_Props = {
60
60
  theme?: AudioPlayerProps['theme'];
61
61
  };
62
62
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
63
+ error: (error: unknown) => any;
64
+ ended: (index: number) => any;
63
65
  play: (index: number) => any;
64
66
  pause: () => any;
65
- ended: (index: number) => any;
66
67
  modeChange: (mode: string) => any;
67
68
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
69
+ onError?: ((error: unknown) => any) | undefined;
70
+ onEnded?: ((index: number) => any) | undefined;
68
71
  onPlay?: ((index: number) => any) | undefined;
69
72
  onPause?: (() => any) | undefined;
70
- onEnded?: ((index: number) => any) | undefined;
71
73
  onModeChange?: ((mode: string) => any) | undefined;
72
74
  }>, {
75
+ mode: "list" | "loop" | "single" | "shuffle";
76
+ theme: "default" | "minimal";
77
+ autoplay: boolean;
73
78
  initialIndex: number;
74
79
  showPlaylist: boolean;
75
80
  showCover: boolean;
76
- autoplay: boolean;
77
- mode: "list" | "loop" | "single" | "shuffle";
78
- theme: "default" | "minimal";
79
81
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
82
  declare const _default: typeof __VLS_export;
81
83
  //#endregion
@@ -60,22 +60,24 @@ type __VLS_Props = {
60
60
  theme?: AudioPlayerProps['theme'];
61
61
  };
62
62
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
63
+ error: (error: unknown) => any;
64
+ ended: (index: number) => any;
63
65
  play: (index: number) => any;
64
66
  pause: () => any;
65
- ended: (index: number) => any;
66
67
  modeChange: (mode: string) => any;
67
68
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
69
+ onError?: ((error: unknown) => any) | undefined;
70
+ onEnded?: ((index: number) => any) | undefined;
68
71
  onPlay?: ((index: number) => any) | undefined;
69
72
  onPause?: (() => any) | undefined;
70
- onEnded?: ((index: number) => any) | undefined;
71
73
  onModeChange?: ((mode: string) => any) | undefined;
72
74
  }>, {
75
+ mode: "list" | "loop" | "single" | "shuffle";
76
+ theme: "default" | "minimal";
77
+ autoplay: boolean;
73
78
  initialIndex: number;
74
79
  showPlaylist: boolean;
75
80
  showCover: boolean;
76
- autoplay: boolean;
77
- mode: "list" | "loop" | "single" | "shuffle";
78
- theme: "default" | "minimal";
79
81
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
82
  declare const _default: typeof __VLS_export;
81
83
  //#endregion
@@ -61,15 +61,15 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
- select: (item: ContextMenuItem) => any;
65
64
  close: () => any;
65
+ select: (item: ContextMenuItem) => any;
66
66
  open: (position: {
67
67
  x: number;
68
68
  y: number;
69
69
  }) => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
- onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
71
  onClose?: (() => any) | undefined;
72
+ onSelect?: ((item: ContextMenuItem) => any) | undefined;
73
73
  onOpen?: ((position: {
74
74
  x: number;
75
75
  y: number;
@@ -59,11 +59,11 @@ declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {
59
59
  "onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
60
60
  "onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
61
61
  }>, {
62
- mode: DatePickerMode;
63
62
  placeholder: string;
64
- disabled: boolean;
63
+ mode: DatePickerMode;
65
64
  startPlaceholder: string;
66
65
  endPlaceholder: string;
66
+ disabled: boolean;
67
67
  disabledBeforeToday: boolean;
68
68
  disabledAfterToday: boolean;
69
69
  startDateProps: Record<string, unknown>;
@@ -59,11 +59,11 @@ declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {
59
59
  "onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
60
60
  "onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
61
61
  }>, {
62
- mode: DatePickerMode;
63
62
  placeholder: string;
64
- disabled: boolean;
63
+ mode: DatePickerMode;
65
64
  startPlaceholder: string;
66
65
  endPlaceholder: string;
66
+ disabled: boolean;
67
67
  disabledBeforeToday: boolean;
68
68
  disabledAfterToday: boolean;
69
69
  startDateProps: Record<string, unknown>;
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
42
42
  } | null>>;
43
43
  isInitialized: Readonly<vue.Ref<boolean, boolean>>;
44
44
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
45
- error: (error: Error) => any;
46
45
  "update:modelValue": (value: string) => any;
46
+ error: (error: Error) => any;
47
47
  "editor-mounted": (editor: EditorInstance) => any;
48
48
  "editor-change": (html: string) => any;
49
49
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
50
- onError?: ((error: Error) => any) | undefined;
51
50
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
+ onError?: ((error: Error) => any) | undefined;
52
52
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
53
  "onEditor-change"?: ((html: string) => any) | undefined;
54
54
  }>, {
55
- height: number;
56
- theme: "light" | "dark";
57
- modelValue: string;
58
55
  placeholder: string;
56
+ modelValue: string;
59
57
  disabled: boolean;
58
+ height: number;
60
59
  readonly: boolean;
60
+ theme: "light" | "dark";
61
61
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
62
62
  declare const _default: typeof __VLS_export;
63
63
  //#endregion
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
42
42
  } | null>>;
43
43
  isInitialized: Readonly<vue.Ref<boolean, boolean>>;
44
44
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
45
- error: (error: Error) => any;
46
45
  "update:modelValue": (value: string) => any;
46
+ error: (error: Error) => any;
47
47
  "editor-mounted": (editor: EditorInstance) => any;
48
48
  "editor-change": (html: string) => any;
49
49
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
50
- onError?: ((error: Error) => any) | undefined;
51
50
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
+ onError?: ((error: Error) => any) | undefined;
52
52
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
53
  "onEditor-change"?: ((html: string) => any) | undefined;
54
54
  }>, {
55
- height: number;
56
- theme: "light" | "dark";
57
- modelValue: string;
58
55
  placeholder: string;
56
+ modelValue: string;
59
57
  disabled: boolean;
58
+ height: number;
60
59
  readonly: boolean;
60
+ theme: "light" | "dark";
61
61
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
62
62
  declare const _default: typeof __VLS_export;
63
63
  //#endregion
@@ -38,8 +38,8 @@ interface FormModalEmits<T extends object = FormRecord> {
38
38
  //#region src/components/C_FormModal/index.vue.d.ts
39
39
  declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
40
40
  props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
41
- onClose?: (() => any) | undefined;
42
41
  onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
43
  }> & (typeof globalThis extends {
44
44
  __VLS_PROPS_FALLBACK: infer P;
45
45
  } ? P : {});
@@ -48,7 +48,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
48
48
  slots: {
49
49
  [x: string]: ((props: any) => any) | undefined;
50
50
  };
51
- emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
51
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
52
52
  }>) => vue.VNode & {
53
53
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
54
54
  };
@@ -38,8 +38,8 @@ interface FormModalEmits<T extends object = FormRecord> {
38
38
  //#region src/components/C_FormModal/index.vue.d.ts
39
39
  declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
40
40
  props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
41
- onClose?: (() => any) | undefined;
42
41
  onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
43
  }> & (typeof globalThis extends {
44
44
  __VLS_PROPS_FALLBACK: infer P;
45
45
  } ? P : {});
@@ -48,7 +48,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
48
48
  slots: {
49
49
  [x: string]: ((props: any) => any) | undefined;
50
50
  };
51
- emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
51
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
52
52
  }>) => vue.VNode & {
53
53
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
54
54
  };
@@ -1,15 +1,27 @@
1
1
  import * as vue from "vue";
2
2
 
3
3
  //#region src/components/C_Guide/types.d.ts
4
+ /** 通用功能示意图,不包含宿主业务数据。 */
5
+ type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
6
+ /** 可使用选择器、真实元素或动态解析函数定位目标。 */
7
+ type GuideTarget = string | Element | (() => Element | null | undefined);
8
+ /** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
9
+ interface GuideExpose {
10
+ startGuide: (force?: boolean) => Promise<void>;
11
+ stopGuide: () => void;
12
+ resetCompleted: () => void;
13
+ isCompleted: () => boolean;
14
+ }
4
15
  /** 引导步骤定义 */
5
16
  interface GuideStep {
6
- /** 目标 DOM 选择器 */
7
- element: string;
17
+ /** 目标元素;不传时可展示居中的欢迎步骤。 */
18
+ element?: GuideTarget;
8
19
  /** 弹出层配置 */
9
20
  popover: {
10
21
  title: string;
11
22
  description: string;
12
- side?: 'top' | 'right' | 'bottom' | 'left';
23
+ side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
24
+ illustration?: GuideIllustration;
13
25
  };
14
26
  /** 步骤所属分组(用于步骤分组展示) */
15
27
  group?: string;
@@ -50,14 +62,20 @@ interface GuideProps {
50
62
  nextBtnText?: string;
51
63
  /** 上一步按钮文字 */
52
64
  prevBtnText?: string;
65
+ /** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
66
+ showSkipButton?: boolean;
67
+ /** 跳过按钮文字,默认“跳过引导”。 */
68
+ skipBtnText?: string;
53
69
  /** 是否显示进度条 */
54
70
  showProgress?: boolean;
55
- /** 是否启用键盘导航(← → Enter Esc) */
71
+ /** 是否启用键盘导航(← → Esc) */
56
72
  keyboard?: boolean;
57
73
  /** 是否启用动画 */
58
74
  animate?: boolean;
59
75
  /** 是否允许点击遮罩关闭 */
60
76
  allowClose?: boolean;
77
+ /** 自动跳过不存在或不可见的目标,默认 true。 */
78
+ skipMissingElements?: boolean;
61
79
  /** 主题配置 */
62
80
  theme?: GuideTheme;
63
81
  /** 持久化配置 */
@@ -74,28 +92,36 @@ interface GuideProps {
74
92
  //#endregion
75
93
  //#region src/components/C_Guide/index.vue.d.ts
76
94
  declare const __VLS_export: vue.DefineComponent<GuideProps, {
77
- startGuide: (force?: boolean) => void;
95
+ startGuide: (force?: boolean) => Promise<void>;
96
+ stopGuide: () => void;
78
97
  resetCompleted: () => void;
79
98
  isCompleted: () => boolean;
80
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
+ close: (currentStep: number) => any;
81
101
  start: () => any;
102
+ error: (error: unknown) => any;
82
103
  complete: () => any;
83
- close: (currentStep: number) => any;
104
+ skip: (currentStep: number) => any;
84
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
85
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
+ onClose?: ((currentStep: number) => any) | undefined;
86
108
  onStart?: (() => any) | undefined;
109
+ onError?: ((error: unknown) => any) | undefined;
87
110
  onComplete?: (() => any) | undefined;
88
- onClose?: ((currentStep: number) => any) | undefined;
111
+ onSkip?: ((currentStep: number) => any) | undefined;
89
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
90
113
  }>, {
91
114
  steps: GuideStep[];
115
+ keyboard: boolean;
92
116
  doneBtnText: string;
93
117
  nextBtnText: string;
94
118
  prevBtnText: string;
119
+ showSkipButton: boolean;
120
+ skipBtnText: string;
95
121
  showProgress: boolean;
96
- keyboard: boolean;
97
122
  animate: boolean;
98
123
  allowClose: boolean;
124
+ skipMissingElements: boolean;
99
125
  popoverClass: string;
100
126
  showTrigger: boolean;
101
127
  triggerTooltip: string;
@@ -103,4 +129,4 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
103
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
104
130
  declare const _default: typeof __VLS_export;
105
131
  //#endregion
106
- export { GuideTheme as a, GuideStep as i, GuidePersistence as n, GuideProps as r, _default as t };
132
+ export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
@@ -1,15 +1,27 @@
1
1
  import * as vue from "vue";
2
2
 
3
3
  //#region src/components/C_Guide/types.d.ts
4
+ /** 通用功能示意图,不包含宿主业务数据。 */
5
+ type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
6
+ /** 可使用选择器、真实元素或动态解析函数定位目标。 */
7
+ type GuideTarget = string | Element | (() => Element | null | undefined);
8
+ /** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
9
+ interface GuideExpose {
10
+ startGuide: (force?: boolean) => Promise<void>;
11
+ stopGuide: () => void;
12
+ resetCompleted: () => void;
13
+ isCompleted: () => boolean;
14
+ }
4
15
  /** 引导步骤定义 */
5
16
  interface GuideStep {
6
- /** 目标 DOM 选择器 */
7
- element: string;
17
+ /** 目标元素;不传时可展示居中的欢迎步骤。 */
18
+ element?: GuideTarget;
8
19
  /** 弹出层配置 */
9
20
  popover: {
10
21
  title: string;
11
22
  description: string;
12
- side?: 'top' | 'right' | 'bottom' | 'left';
23
+ side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
24
+ illustration?: GuideIllustration;
13
25
  };
14
26
  /** 步骤所属分组(用于步骤分组展示) */
15
27
  group?: string;
@@ -50,14 +62,20 @@ interface GuideProps {
50
62
  nextBtnText?: string;
51
63
  /** 上一步按钮文字 */
52
64
  prevBtnText?: string;
65
+ /** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
66
+ showSkipButton?: boolean;
67
+ /** 跳过按钮文字,默认“跳过引导”。 */
68
+ skipBtnText?: string;
53
69
  /** 是否显示进度条 */
54
70
  showProgress?: boolean;
55
- /** 是否启用键盘导航(← → Enter Esc) */
71
+ /** 是否启用键盘导航(← → Esc) */
56
72
  keyboard?: boolean;
57
73
  /** 是否启用动画 */
58
74
  animate?: boolean;
59
75
  /** 是否允许点击遮罩关闭 */
60
76
  allowClose?: boolean;
77
+ /** 自动跳过不存在或不可见的目标,默认 true。 */
78
+ skipMissingElements?: boolean;
61
79
  /** 主题配置 */
62
80
  theme?: GuideTheme;
63
81
  /** 持久化配置 */
@@ -74,28 +92,36 @@ interface GuideProps {
74
92
  //#endregion
75
93
  //#region src/components/C_Guide/index.vue.d.ts
76
94
  declare const __VLS_export: vue.DefineComponent<GuideProps, {
77
- startGuide: (force?: boolean) => void;
95
+ startGuide: (force?: boolean) => Promise<void>;
96
+ stopGuide: () => void;
78
97
  resetCompleted: () => void;
79
98
  isCompleted: () => boolean;
80
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
+ close: (currentStep: number) => any;
81
101
  start: () => any;
102
+ error: (error: unknown) => any;
82
103
  complete: () => any;
83
- close: (currentStep: number) => any;
104
+ skip: (currentStep: number) => any;
84
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
85
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
+ onClose?: ((currentStep: number) => any) | undefined;
86
108
  onStart?: (() => any) | undefined;
109
+ onError?: ((error: unknown) => any) | undefined;
87
110
  onComplete?: (() => any) | undefined;
88
- onClose?: ((currentStep: number) => any) | undefined;
111
+ onSkip?: ((currentStep: number) => any) | undefined;
89
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
90
113
  }>, {
91
114
  steps: GuideStep[];
115
+ keyboard: boolean;
92
116
  doneBtnText: string;
93
117
  nextBtnText: string;
94
118
  prevBtnText: string;
119
+ showSkipButton: boolean;
120
+ skipBtnText: string;
95
121
  showProgress: boolean;
96
- keyboard: boolean;
97
122
  animate: boolean;
98
123
  allowClose: boolean;
124
+ skipMissingElements: boolean;
99
125
  popoverClass: string;
100
126
  showTrigger: boolean;
101
127
  triggerTooltip: string;
@@ -103,4 +129,4 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
103
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
104
130
  declare const _default: typeof __VLS_export;
105
131
  //#endregion
106
- export { GuideTheme as a, GuideStep as i, GuidePersistence as n, GuideProps as r, _default as t };
132
+ export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
@@ -1,8 +1,9 @@
1
1
  import * as vue from "vue";
2
+ import { Component } from "vue";
2
3
 
3
4
  //#region src/components/C_Icon/types.d.ts
4
5
  interface IconProps {
5
- name: string | unknown;
6
+ name: string | Component;
6
7
  type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
7
8
  color?: string;
8
9
  size?: number | string;
@@ -21,70 +22,36 @@ interface IconProps {
21
22
  }
22
23
  //#endregion
23
24
  //#region src/components/C_Icon/index.vue.d.ts
24
- interface LegacyIconProps extends IconProps {
25
- /** 图标名称/路径/组件实例 */
26
- name: string | any;
27
- /** 图标类型 */
28
- type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
29
- /** 图标颜色 */
30
- color?: string;
31
- /** 图标大小(px) */
32
- size?: number | string;
33
- /** SVG路径数据(仅type=svg时使用) */
34
- svgPath?: string;
35
- /** SVG viewBox(仅type=svg时使用) */
36
- viewBox?: string;
37
- /** 图片alt属性(仅type=image时使用) */
38
- alt?: string;
39
- /** 是否可点击 */
40
- clickable?: boolean;
41
- /** 加载状态 */
42
- loading?: boolean;
43
- /** 错误时的回退图标 */
44
- fallbackIcon?: string;
45
- /** 工具提示 */
46
- title?: string;
47
- /** 无障碍标签 */
48
- ariaLabel?: string;
49
- /** 自定义样式类 */
50
- customClass?: string;
51
- /** 旋转角度 */
52
- rotate?: number;
53
- /** 是否翻转 */
54
- flip?: 'horizontal' | 'vertical' | 'both';
55
- /** 传递给组件的额外属性(仅type=component时使用) */
56
- componentProps?: Record<string, any>;
57
- }
58
- declare const __VLS_export: vue.DefineComponent<LegacyIconProps, {
25
+ declare const __VLS_export: vue.DefineComponent<IconProps, {
59
26
  /** 重新验证配置 */validate: () => void; /** 是否有错误 */
60
27
  hasError: Readonly<vue.Ref<boolean, boolean>>; /** 错误信息 */
61
28
  errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
62
29
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
63
30
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- error: (type: string, error?: any) => any;
65
- click: (event: MouseEvent) => any;
31
+ error: (type: string, error?: unknown) => any;
32
+ click: (event: KeyboardEvent | MouseEvent) => any;
66
33
  load: () => any;
67
- }, string, vue.PublicProps, Readonly<LegacyIconProps> & Readonly<{
68
- onError?: ((type: string, error?: any) => any) | undefined;
69
- onClick?: ((event: MouseEvent) => any) | undefined;
34
+ }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
35
+ onError?: ((type: string, error?: unknown) => any) | undefined;
36
+ onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
70
37
  onLoad?: (() => any) | undefined;
71
38
  }>, {
72
- type: "iconify" | "unocss" | "component" | "svg" | "image";
39
+ size: number | string;
73
40
  title: string;
74
- color: string;
41
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
42
+ name: string | vue.Component;
75
43
  loading: boolean;
76
- size: number | string;
77
- name: string | any;
78
- flip: "horizontal" | "vertical" | "both";
79
- clickable: boolean;
44
+ color: string;
80
45
  rotate: number;
81
46
  svgPath: string;
82
47
  viewBox: string;
83
48
  alt: string;
49
+ clickable: boolean;
84
50
  fallbackIcon: string;
85
51
  ariaLabel: string;
86
52
  customClass: string;
87
- componentProps: Record<string, any>;
53
+ flip: "horizontal" | "vertical" | "both";
54
+ componentProps: Record<string, unknown>;
88
55
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
89
56
  declare const _default: typeof __VLS_export;
90
57
  //#endregion
@@ -1,8 +1,9 @@
1
1
  import * as vue from "vue";
2
+ import { Component } from "vue";
2
3
 
3
4
  //#region src/components/C_Icon/types.d.ts
4
5
  interface IconProps {
5
- name: string | unknown;
6
+ name: string | Component;
6
7
  type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
7
8
  color?: string;
8
9
  size?: number | string;
@@ -21,70 +22,36 @@ interface IconProps {
21
22
  }
22
23
  //#endregion
23
24
  //#region src/components/C_Icon/index.vue.d.ts
24
- interface LegacyIconProps extends IconProps {
25
- /** 图标名称/路径/组件实例 */
26
- name: string | any;
27
- /** 图标类型 */
28
- type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
29
- /** 图标颜色 */
30
- color?: string;
31
- /** 图标大小(px) */
32
- size?: number | string;
33
- /** SVG路径数据(仅type=svg时使用) */
34
- svgPath?: string;
35
- /** SVG viewBox(仅type=svg时使用) */
36
- viewBox?: string;
37
- /** 图片alt属性(仅type=image时使用) */
38
- alt?: string;
39
- /** 是否可点击 */
40
- clickable?: boolean;
41
- /** 加载状态 */
42
- loading?: boolean;
43
- /** 错误时的回退图标 */
44
- fallbackIcon?: string;
45
- /** 工具提示 */
46
- title?: string;
47
- /** 无障碍标签 */
48
- ariaLabel?: string;
49
- /** 自定义样式类 */
50
- customClass?: string;
51
- /** 旋转角度 */
52
- rotate?: number;
53
- /** 是否翻转 */
54
- flip?: 'horizontal' | 'vertical' | 'both';
55
- /** 传递给组件的额外属性(仅type=component时使用) */
56
- componentProps?: Record<string, any>;
57
- }
58
- declare const __VLS_export: vue.DefineComponent<LegacyIconProps, {
25
+ declare const __VLS_export: vue.DefineComponent<IconProps, {
59
26
  /** 重新验证配置 */validate: () => void; /** 是否有错误 */
60
27
  hasError: Readonly<vue.Ref<boolean, boolean>>; /** 错误信息 */
61
28
  errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
62
29
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
63
30
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- error: (type: string, error?: any) => any;
65
- click: (event: MouseEvent) => any;
31
+ error: (type: string, error?: unknown) => any;
32
+ click: (event: KeyboardEvent | MouseEvent) => any;
66
33
  load: () => any;
67
- }, string, vue.PublicProps, Readonly<LegacyIconProps> & Readonly<{
68
- onError?: ((type: string, error?: any) => any) | undefined;
69
- onClick?: ((event: MouseEvent) => any) | undefined;
34
+ }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
35
+ onError?: ((type: string, error?: unknown) => any) | undefined;
36
+ onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
70
37
  onLoad?: (() => any) | undefined;
71
38
  }>, {
72
- type: "iconify" | "unocss" | "component" | "svg" | "image";
39
+ size: number | string;
73
40
  title: string;
74
- color: string;
41
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
42
+ name: string | vue.Component;
75
43
  loading: boolean;
76
- size: number | string;
77
- name: string | any;
78
- flip: "horizontal" | "vertical" | "both";
79
- clickable: boolean;
44
+ color: string;
80
45
  rotate: number;
81
46
  svgPath: string;
82
47
  viewBox: string;
83
48
  alt: string;
49
+ clickable: boolean;
84
50
  fallbackIcon: string;
85
51
  ariaLabel: string;
86
52
  customClass: string;
87
- componentProps: Record<string, any>;
53
+ flip: "horizontal" | "vertical" | "both";
54
+ componentProps: Record<string, unknown>;
88
55
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
89
56
  declare const _default: typeof __VLS_export;
90
57
  //#endregion
@@ -61,11 +61,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- height: string | number;
65
- mode: "edit" | "editable" | "preview";
66
- modelValue: string;
67
64
  placeholder: string;
65
+ modelValue: string;
66
+ mode: "edit" | "editable" | "preview";
68
67
  disabled: boolean;
68
+ height: string | number;
69
+ isDark: boolean;
69
70
  tocNavPosition: "left" | "right";
70
71
  defaultFullscreen: boolean;
71
72
  autofocus: boolean;
@@ -76,7 +77,6 @@ declare const __VLS_export: vue.DefineComponent<Props, {
76
77
  showWordCount: boolean;
77
78
  autoSave: boolean;
78
79
  autoSaveInterval: number;
79
- isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -61,11 +61,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- height: string | number;
65
- mode: "edit" | "editable" | "preview";
66
- modelValue: string;
67
64
  placeholder: string;
65
+ modelValue: string;
66
+ mode: "edit" | "editable" | "preview";
68
67
  disabled: boolean;
68
+ height: string | number;
69
+ isDark: boolean;
69
70
  tocNavPosition: "left" | "right";
70
71
  defaultFullscreen: boolean;
71
72
  autofocus: boolean;
@@ -76,7 +77,6 @@ declare const __VLS_export: vue.DefineComponent<Props, {
76
77
  showWordCount: boolean;
77
78
  autoSave: boolean;
78
79
  autoSaveInterval: number;
79
- isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -52,14 +52,14 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
52
52
  deriveResponsiveState: () => void;
53
53
  } | null>;
54
54
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
55
- select: (key: string) => any;
56
55
  "update:modelValue": (key: MenuValue) => any;
56
+ select: (key: string) => any;
57
57
  intent: (key: string) => any;
58
58
  "update:value": (key: MenuValue) => any;
59
59
  "update:expandedKeys": (keys: string[]) => any;
60
60
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
61
- onSelect?: ((key: string) => any) | undefined;
62
61
  "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
62
+ onSelect?: ((key: string) => any) | undefined;
63
63
  onIntent?: ((key: string) => any) | undefined;
64
64
  "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
65
65
  "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;