@robot-admin/naive-ui-components 0.40.3 → 0.40.5

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 (208) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +101 -79
  3. package/README_EN.md +110 -67
  4. package/dist/BPMN.cjs +1 -1
  5. package/dist/BPMN.js +1 -1
  6. package/dist/C_ActionBar.css +58 -52
  7. package/dist/C_ActionBar2.cjs +1 -1
  8. package/dist/C_ActionBar2.js +1 -1
  9. package/dist/C_AntV.css +108 -108
  10. package/dist/C_AvatarGroup.css +29 -29
  11. package/dist/C_AvatarGroup2.cjs +1 -1
  12. package/dist/C_AvatarGroup2.js +1 -1
  13. package/dist/C_Barcode.css +6 -6
  14. package/dist/C_Barcode.d.cts +2 -2
  15. package/dist/C_Barcode.d.ts +2 -2
  16. package/dist/C_Barcode2.cjs +1 -1
  17. package/dist/C_Barcode2.js +1 -1
  18. package/dist/C_Captcha.css +42 -42
  19. package/dist/C_Captcha2.cjs +1 -1
  20. package/dist/C_Captcha2.js +1 -1
  21. package/dist/C_Cascade.css +4 -4
  22. package/dist/C_Cascade.d.cts +2 -2
  23. package/dist/C_Cascade.d.ts +2 -2
  24. package/dist/C_Cascade2.cjs +1 -1
  25. package/dist/C_Cascade2.js +1 -1
  26. package/dist/C_City.css +35 -35
  27. package/dist/C_City2.cjs +1 -1
  28. package/dist/C_City2.js +1 -1
  29. package/dist/C_Code.css +27 -27
  30. package/dist/C_Code.d.cts +2 -2
  31. package/dist/C_Code.d.ts +2 -2
  32. package/dist/C_Code2.cjs +1 -1
  33. package/dist/C_Code2.js +1 -1
  34. package/dist/C_CollapsePanel2.cjs +1 -1
  35. package/dist/C_CollapsePanel2.js +1 -1
  36. package/dist/C_ContextMenu.css +3 -3
  37. package/dist/C_ContextMenu2.cjs +1 -1
  38. package/dist/C_ContextMenu2.js +1 -1
  39. package/dist/C_Editor.css +13 -13
  40. package/dist/C_Editor.d.cts +2 -2
  41. package/dist/C_Editor.d.ts +2 -2
  42. package/dist/C_Editor2.cjs +1 -1
  43. package/dist/C_Editor2.js +1 -1
  44. package/dist/C_FilePreview.css +104 -104
  45. package/dist/C_FilePreview2.cjs +1 -1
  46. package/dist/C_FilePreview2.js +1 -1
  47. package/dist/C_FormModal.css +58 -52
  48. package/dist/C_GlobalSearch.css +139 -136
  49. package/dist/C_GlobalSearch2.cjs +1 -1
  50. package/dist/C_GlobalSearch2.js +1 -1
  51. package/dist/C_Guide.css +3 -3
  52. package/dist/C_Guide2.cjs +1 -1
  53. package/dist/C_Guide2.js +1 -1
  54. package/dist/C_Language.css +2 -2
  55. package/dist/C_Language2.cjs +1 -1
  56. package/dist/C_Language2.js +1 -1
  57. package/dist/C_Login.css +136 -121
  58. package/dist/C_Login2.cjs +1 -1
  59. package/dist/C_Login2.js +1 -1
  60. package/dist/C_Markdown.css +37 -37
  61. package/dist/C_Markdown.d.cts +2 -2
  62. package/dist/C_Markdown.d.ts +2 -2
  63. package/dist/C_Markdown2.cjs +1 -1
  64. package/dist/C_Markdown2.js +1 -1
  65. package/dist/C_NotificationCenter.css +51 -36
  66. package/dist/C_NotificationCenter2.cjs +1 -1
  67. package/dist/C_NotificationCenter2.js +1 -1
  68. package/dist/C_Progress.d.cts +2 -2
  69. package/dist/C_Progress.d.ts +2 -2
  70. package/dist/C_Progress2.cjs +1 -1
  71. package/dist/C_Progress2.js +1 -1
  72. package/dist/C_Signature.css +15 -15
  73. package/dist/C_Signature2.cjs +1 -1
  74. package/dist/C_Signature2.js +1 -1
  75. package/dist/C_Steps.css +39 -39
  76. package/dist/C_Steps.d.cts +2 -2
  77. package/dist/C_Steps.d.ts +2 -2
  78. package/dist/C_Steps2.cjs +1 -1
  79. package/dist/C_Steps2.js +1 -1
  80. package/dist/C_Table.base.css +58 -52
  81. package/dist/C_Table.css +58 -52
  82. package/dist/C_Table2.cjs +2 -2
  83. package/dist/C_Table2.js +2 -2
  84. package/dist/C_TagsView.css +60 -50
  85. package/dist/C_TagsView2.cjs +1 -1
  86. package/dist/C_TagsView2.js +1 -1
  87. package/dist/C_Timeline.css +53 -53
  88. package/dist/C_Timeline2.cjs +1 -1
  89. package/dist/C_Timeline2.js +1 -1
  90. package/dist/C_Upload2.cjs +1 -1
  91. package/dist/C_Upload2.js +1 -1
  92. package/dist/C_WaterFall.css +41 -41
  93. package/dist/C_WaterFall.d.cts +2 -2
  94. package/dist/C_WaterFall.d.ts +2 -2
  95. package/dist/C_WaterFall2.cjs +1 -1
  96. package/dist/C_WaterFall2.js +1 -1
  97. package/dist/C_WorkFlow.css +93 -92
  98. package/dist/C_WorkFlow2.cjs +1 -1
  99. package/dist/C_WorkFlow2.js +1 -1
  100. package/dist/ER.cjs +1 -1
  101. package/dist/ER.js +1 -1
  102. package/dist/UML.cjs +3 -3
  103. package/dist/UML.js +3 -3
  104. package/dist/component-config.d.ts +2 -0
  105. package/dist/constants.d.cts +1 -1
  106. package/dist/constants.d.ts +1 -1
  107. package/dist/constants3.d.cts +6 -6
  108. package/dist/constants3.d.ts +6 -6
  109. package/dist/constants4.d.cts +5 -5
  110. package/dist/constants4.d.ts +5 -5
  111. package/dist/context.d.cts +2 -0
  112. package/dist/data2.d.cts +7 -7
  113. package/dist/data2.d.ts +7 -7
  114. package/dist/editors.d.cts +8 -8
  115. package/dist/editors.d.ts +8 -8
  116. package/dist/graphEditSession.cjs +1 -0
  117. package/dist/graphEditSession.js +1 -0
  118. package/dist/index.d.cts +9 -10
  119. package/dist/index.d.ts +9 -9
  120. package/dist/index.vue.d.cts +3 -3
  121. package/dist/index.vue.d.ts +3 -3
  122. package/dist/index10.vue.d.cts +0 -1
  123. package/dist/index10.vue.d.ts +12 -9
  124. package/dist/index11.vue.d.cts +12 -9
  125. package/dist/index11.vue.d.ts +4 -4
  126. package/dist/index12.vue.d.cts +4 -4
  127. package/dist/index13.vue.d.ts +19 -16
  128. package/dist/index14.vue.d.cts +19 -16
  129. package/dist/index16.vue.d.ts +5 -10
  130. package/dist/index17.vue.d.cts +5 -10
  131. package/dist/index17.vue.d.ts +6 -6
  132. package/dist/index18.vue.d.cts +6 -6
  133. package/dist/index18.vue.d.ts +2 -7
  134. package/dist/index19.vue.d.cts +2 -7
  135. package/dist/index19.vue.d.ts +1 -1
  136. package/dist/index20.vue.d.cts +1 -1
  137. package/dist/index20.vue.d.ts +0 -1
  138. package/dist/index21.vue.d.cts +0 -1
  139. package/dist/index21.vue.d.ts +18 -16
  140. package/dist/index22.vue.d.cts +18 -16
  141. package/dist/index24.vue.d.cts +10 -7
  142. package/dist/index24.vue.d.ts +10 -7
  143. package/dist/index27.vue.d.cts +2 -2
  144. package/dist/index27.vue.d.ts +2 -2
  145. package/dist/index28.vue.d.cts +12 -19
  146. package/dist/index28.vue.d.ts +12 -19
  147. package/dist/index3.vue.d.cts +2 -2
  148. package/dist/index3.vue.d.ts +2 -2
  149. package/dist/index30.vue.d.cts +2 -9
  150. package/dist/index30.vue.d.ts +2 -9
  151. package/dist/index31.vue.d.cts +4 -4
  152. package/dist/index31.vue.d.ts +4 -4
  153. package/dist/index32.vue.d.cts +2 -2
  154. package/dist/index32.vue.d.ts +2 -2
  155. package/dist/index4.vue.d.cts +13 -10
  156. package/dist/index4.vue.d.ts +13 -10
  157. package/dist/index7.vue.d.ts +12 -12
  158. package/dist/index8.vue.d.cts +12 -12
  159. package/dist/index9.vue.d.ts +0 -1
  160. package/dist/mapUtils.d.cts +2 -2
  161. package/dist/mapUtils.d.ts +2 -2
  162. package/dist/presets.d.cts +1 -1
  163. package/dist/presets.d.ts +1 -1
  164. package/dist/serializeSearch.cjs +1 -1
  165. package/dist/serializeSearch.js +1 -1
  166. package/dist/style.css +1056 -1006
  167. package/dist/types.d.cts +1 -0
  168. package/dist/types.d.ts +1 -0
  169. package/dist/useCalendarEvents.d.cts +1 -1
  170. package/dist/useCalendarEvents.d.ts +1 -1
  171. package/dist/useCollapsePanel.d.cts +5 -5
  172. package/dist/useCollapsePanel.d.ts +5 -5
  173. package/dist/useCropperCore.d.cts +6 -6
  174. package/dist/useCropperCore.d.ts +6 -6
  175. package/dist/useEdgeInteraction.d.cts +1 -1
  176. package/dist/useEdgeInteraction.d.ts +1 -1
  177. package/dist/useFullscreen.d.cts +2 -2
  178. package/dist/useFullscreen.d.ts +2 -2
  179. package/dist/useGlobalSearch.d.cts +1 -5
  180. package/dist/useGlobalSearch.d.ts +1 -5
  181. package/dist/useInfiniteScroll.d.cts +42 -70
  182. package/dist/useInfiniteScroll.d.ts +42 -70
  183. package/dist/useQRCode.d.cts +5 -5
  184. package/dist/useQRCode.d.ts +5 -5
  185. package/dist/useScopedComponentLocale.cjs +1 -0
  186. package/dist/useScopedComponentLocale.js +1 -0
  187. package/dist/useSignatureHistory.d.cts +11 -6
  188. package/dist/useSignatureHistory.d.ts +11 -6
  189. package/dist/useSplitResize.d.cts +4 -4
  190. package/dist/useSplitResize.d.ts +4 -4
  191. package/dist/useTimeSelection.d.cts +3 -3
  192. package/dist/useTimeSelection.d.ts +3 -3
  193. package/dist/useWorkflowValidation.d.cts +89 -84
  194. package/dist/useWorkflowValidation.d.ts +89 -84
  195. package/dist/verification.d.cts +6 -6
  196. package/dist/verification.d.ts +6 -6
  197. package/docs/component-audit-closure-0.40.4.md +62 -0
  198. package/docs/engineering.en.md +6 -0
  199. package/docs/engineering.md +6 -0
  200. package/docs/guides/api-migration.md +17 -1
  201. package/docs/guides/search-workflows.md +2 -0
  202. package/docs/guides/transfer.md +2 -0
  203. package/docs/guides/usage.en.md +15 -1
  204. package/docs/guides/usage.md +24 -1
  205. package/docs/guides/workflow.md +5 -1
  206. package/package.json +1 -1
  207. package/dist/readonlyGraph.cjs +0 -1
  208. package/dist/readonlyGraph.js +0 -1
@@ -1,5 +1,17 @@
1
1
  import * as vue from "vue";
2
2
 
3
+ //#region src/components/C_Editor/types.d.ts
4
+ /** 组件输入的单一类型来源,可直接用于共享配置。 */
5
+ interface EditorProps {
6
+ editorId?: string;
7
+ modelValue?: string;
8
+ placeholder?: string;
9
+ disabled?: boolean;
10
+ readonly?: boolean;
11
+ height?: number;
12
+ theme?: 'light' | 'dark';
13
+ }
14
+ //#endregion
3
15
  //#region src/components/C_Editor/index.vue.d.ts
4
16
  interface EditorInstance {
5
17
  getHtml(): string;
@@ -9,16 +21,7 @@ interface EditorInstance {
9
21
  destroy(): void;
10
22
  isDestroyed: boolean;
11
23
  }
12
- interface Props {
13
- editorId?: string;
14
- modelValue?: string;
15
- placeholder?: string;
16
- disabled?: boolean;
17
- readonly?: boolean;
18
- height?: number;
19
- theme?: 'light' | 'dark';
20
- }
21
- declare const __VLS_export: vue.DefineComponent<Props, {
24
+ declare const __VLS_export: vue.DefineComponent<EditorProps, {
22
25
  initializeEditor: () => void;
23
26
  destroyEditor: () => void;
24
27
  setContent: (html: string) => void;
@@ -42,22 +45,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
42
45
  } | null>>;
43
46
  isInitialized: Readonly<vue.Ref<boolean, boolean>>;
44
47
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
45
- "update:modelValue": (value: string) => any;
46
48
  error: (error: Error) => any;
49
+ "update:modelValue": (value: string) => any;
47
50
  "editor-mounted": (editor: EditorInstance) => any;
48
51
  "editor-change": (html: string) => any;
49
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
50
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
52
+ }, string, vue.PublicProps, Readonly<EditorProps> & Readonly<{
51
53
  onError?: ((error: Error) => any) | undefined;
54
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
52
55
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
56
  "onEditor-change"?: ((html: string) => any) | undefined;
54
57
  }>, {
58
+ height: number;
55
59
  modelValue: string;
60
+ placeholder: string;
56
61
  disabled: boolean;
57
- height: number;
58
62
  readonly: boolean;
59
- placeholder: string;
60
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
61
64
  declare const _default: typeof __VLS_export;
62
65
  //#endregion
63
- export { _default as t };
66
+ export { EditorProps as n, _default as t };
@@ -97,34 +97,29 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
97
97
  resetCompleted: () => void;
98
98
  isCompleted: () => boolean;
99
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
- start: () => any;
100
+ error: (error: unknown) => any;
101
101
  close: (currentStep: number) => any;
102
+ start: () => any;
102
103
  complete: () => any;
103
104
  skip: (currentStep: number) => any;
104
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
105
- error: (error: unknown) => any;
106
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
- onStart?: (() => any) | undefined;
107
+ onError?: ((error: unknown) => any) | undefined;
108
108
  onClose?: ((currentStep: number) => any) | undefined;
109
+ onStart?: (() => any) | undefined;
109
110
  onComplete?: (() => any) | undefined;
110
111
  onSkip?: ((currentStep: number) => any) | undefined;
111
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
112
- onError?: ((error: unknown) => any) | undefined;
113
113
  }>, {
114
114
  steps: GuideStep[];
115
- doneBtnText: string;
116
- nextBtnText: string;
117
- prevBtnText: string;
115
+ keyboard: boolean;
118
116
  showSkipButton: boolean;
119
- skipBtnText: string;
120
117
  showProgress: boolean;
121
- keyboard: boolean;
122
118
  animate: boolean;
123
119
  allowClose: boolean;
124
120
  skipMissingElements: boolean;
125
121
  popoverClass: string;
126
122
  showTrigger: boolean;
127
- triggerTooltip: string;
128
123
  triggerIcon: string;
129
124
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
130
125
  declare const _default: typeof __VLS_export;
@@ -97,34 +97,29 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
97
97
  resetCompleted: () => void;
98
98
  isCompleted: () => boolean;
99
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
- start: () => any;
100
+ error: (error: unknown) => any;
101
101
  close: (currentStep: number) => any;
102
+ start: () => any;
102
103
  complete: () => any;
103
104
  skip: (currentStep: number) => any;
104
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
105
- error: (error: unknown) => any;
106
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
- onStart?: (() => any) | undefined;
107
+ onError?: ((error: unknown) => any) | undefined;
108
108
  onClose?: ((currentStep: number) => any) | undefined;
109
+ onStart?: (() => any) | undefined;
109
110
  onComplete?: (() => any) | undefined;
110
111
  onSkip?: ((currentStep: number) => any) | undefined;
111
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
112
- onError?: ((error: unknown) => any) | undefined;
113
113
  }>, {
114
114
  steps: GuideStep[];
115
- doneBtnText: string;
116
- nextBtnText: string;
117
- prevBtnText: string;
115
+ keyboard: boolean;
118
116
  showSkipButton: boolean;
119
- skipBtnText: string;
120
117
  showProgress: boolean;
121
- keyboard: boolean;
122
118
  animate: boolean;
123
119
  allowClose: boolean;
124
120
  skipMissingElements: boolean;
125
121
  popoverClass: string;
126
122
  showTrigger: boolean;
127
- triggerTooltip: string;
128
123
  triggerIcon: string;
129
124
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
130
125
  declare const _default: typeof __VLS_export;
@@ -38,21 +38,21 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onError?: ((type: string, error?: unknown) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
- clickable: boolean;
41
+ title: string;
43
42
  type: "iconify" | "unocss" | "component" | "svg" | "image";
44
43
  color: string;
45
- title: string;
46
- viewBox: string;
47
- loading: boolean;
48
- flip: "horizontal" | "vertical" | "both";
44
+ size: number | string;
49
45
  svgPath: string;
46
+ viewBox: string;
50
47
  alt: string;
48
+ clickable: boolean;
49
+ loading: boolean;
51
50
  fallbackIcon: string;
52
51
  loadTimeout: number;
53
52
  ariaLabel: string;
54
53
  customClass: string;
55
54
  rotate: number;
55
+ flip: "horizontal" | "vertical" | "both";
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -38,21 +38,21 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onError?: ((type: string, error?: unknown) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
- clickable: boolean;
41
+ title: string;
43
42
  type: "iconify" | "unocss" | "component" | "svg" | "image";
44
43
  color: string;
45
- title: string;
46
- viewBox: string;
47
- loading: boolean;
48
- flip: "horizontal" | "vertical" | "both";
44
+ size: number | string;
49
45
  svgPath: string;
46
+ viewBox: string;
50
47
  alt: string;
48
+ clickable: boolean;
49
+ loading: boolean;
51
50
  fallbackIcon: string;
52
51
  loadTimeout: number;
53
52
  ariaLabel: string;
54
53
  customClass: string;
55
54
  rotate: number;
55
+ flip: "horizontal" | "vertical" | "both";
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -8,14 +8,9 @@ interface LanguageOption {
8
8
  }
9
9
  //#endregion
10
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
11
  type __VLS_Props = {
17
12
  modelValue?: string;
18
- options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
13
+ options?: LanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
14
  tooltip?: string;
20
15
  };
21
16
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,7 +21,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
21
  onChange?: ((key: string) => any) | undefined;
27
22
  }>, {
28
23
  modelValue: string;
29
- options: LegacyLanguageOption[];
24
+ options: LanguageOption[];
30
25
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
31
26
  declare const _default: typeof __VLS_export;
32
27
  //#endregion
@@ -8,14 +8,9 @@ interface LanguageOption {
8
8
  }
9
9
  //#endregion
10
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
11
  type __VLS_Props = {
17
12
  modelValue?: string;
18
- options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
13
+ options?: LanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
19
14
  tooltip?: string;
20
15
  };
21
16
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,7 +21,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
21
  onChange?: ((key: string) => any) | undefined;
27
22
  }>, {
28
23
  modelValue: string;
29
- options: LegacyLanguageOption[];
24
+ options: LanguageOption[];
30
25
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
31
26
  declare const _default: typeof __VLS_export;
32
27
  //#endregion
@@ -12,8 +12,8 @@ interface LoadingProps {
12
12
  //#endregion
13
13
  //#region src/components/C_Loading/index.vue.d.ts
14
14
  declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
16
15
  label: string;
16
+ size: number;
17
17
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  //#endregion
@@ -12,8 +12,8 @@ interface LoadingProps {
12
12
  //#endregion
13
13
  //#region src/components/C_Loading/index.vue.d.ts
14
14
  declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
16
15
  label: string;
16
+ size: number;
17
17
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  //#endregion
@@ -116,7 +116,6 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- title: string;
120
119
  loading: boolean;
121
120
  storageKey: string;
122
121
  defaultUsername: string;
@@ -116,7 +116,6 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- title: string;
120
119
  loading: boolean;
121
120
  storageKey: string;
122
121
  defaultUsername: string;
@@ -1,14 +1,8 @@
1
1
  import * as vue from "vue";
2
2
 
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 {
3
+ //#region src/components/C_Markdown/types.d.ts
4
+ /** 组件输入的单一类型来源,可直接用于共享配置。 */
5
+ interface MarkdownProps {
12
6
  modelValue?: string;
13
7
  /** SSR 或同页多实例时建议显式传入稳定 ID */
14
8
  editorId?: string;
@@ -16,7 +10,7 @@ interface Props {
16
10
  disabled?: boolean;
17
11
  placeholder?: string;
18
12
  mode?: 'edit' | 'editable' | 'preview';
19
- toolbar?: object | ToolbarName[];
13
+ toolbar?: object | Array<string | number>;
20
14
  uploadImageConfig?: {
21
15
  accept?: string;
22
16
  multiple?: boolean;
@@ -35,7 +29,15 @@ interface Props {
35
29
  /** 是否为暗色主题(外部传入) */
36
30
  isDark?: boolean;
37
31
  }
38
- declare const __VLS_export: vue.DefineComponent<Props, {
32
+ //#endregion
33
+ //#region src/components/C_Markdown/index.vue.d.ts
34
+ type InsertImageFunction = (config: {
35
+ url: string;
36
+ desc?: string;
37
+ width?: string | number;
38
+ height?: string | number;
39
+ }) => void;
40
+ declare const __VLS_export: vue.DefineComponent<MarkdownProps, {
39
41
  focus: () => void;
40
42
  getHtml: () => string;
41
43
  insertText: (text: string) => void;
@@ -50,7 +52,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
50
52
  "word-count-change": (count: number) => any;
51
53
  "auto-save": (text: string) => any;
52
54
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
55
+ }, string, vue.PublicProps, Readonly<MarkdownProps> & Readonly<{
54
56
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
57
  onChange?: ((text: string, html: string) => any) | undefined;
56
58
  onSave?: ((text: string, html: string) => any) | undefined;
@@ -61,14 +63,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
63
  "onAuto-save"?: ((text: string) => any) | undefined;
62
64
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
65
  }>, {
66
+ height: string | number;
64
67
  modelValue: string;
68
+ placeholder: string;
65
69
  disabled: boolean;
66
- height: string | number;
67
70
  mode: "edit" | "editable" | "preview";
68
- placeholder: string;
69
- autofocus: boolean;
70
71
  tocNavPosition: "left" | "right";
71
72
  defaultFullscreen: boolean;
73
+ autofocus: boolean;
72
74
  includeLevel: number[];
73
75
  leftToolbar: string;
74
76
  rightToolbar: string;
@@ -80,4 +82,4 @@ declare const __VLS_export: vue.DefineComponent<Props, {
80
82
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
83
  declare const _default: typeof __VLS_export;
82
84
  //#endregion
83
- export { _default as t };
85
+ export { MarkdownProps as n, _default as t };
@@ -1,14 +1,8 @@
1
1
  import * as vue from "vue";
2
2
 
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 {
3
+ //#region src/components/C_Markdown/types.d.ts
4
+ /** 组件输入的单一类型来源,可直接用于共享配置。 */
5
+ interface MarkdownProps {
12
6
  modelValue?: string;
13
7
  /** SSR 或同页多实例时建议显式传入稳定 ID */
14
8
  editorId?: string;
@@ -16,7 +10,7 @@ interface Props {
16
10
  disabled?: boolean;
17
11
  placeholder?: string;
18
12
  mode?: 'edit' | 'editable' | 'preview';
19
- toolbar?: object | ToolbarName[];
13
+ toolbar?: object | Array<string | number>;
20
14
  uploadImageConfig?: {
21
15
  accept?: string;
22
16
  multiple?: boolean;
@@ -35,7 +29,15 @@ interface Props {
35
29
  /** 是否为暗色主题(外部传入) */
36
30
  isDark?: boolean;
37
31
  }
38
- declare const __VLS_export: vue.DefineComponent<Props, {
32
+ //#endregion
33
+ //#region src/components/C_Markdown/index.vue.d.ts
34
+ type InsertImageFunction = (config: {
35
+ url: string;
36
+ desc?: string;
37
+ width?: string | number;
38
+ height?: string | number;
39
+ }) => void;
40
+ declare const __VLS_export: vue.DefineComponent<MarkdownProps, {
39
41
  focus: () => void;
40
42
  getHtml: () => string;
41
43
  insertText: (text: string) => void;
@@ -50,7 +52,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
50
52
  "word-count-change": (count: number) => any;
51
53
  "auto-save": (text: string) => any;
52
54
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
55
+ }, string, vue.PublicProps, Readonly<MarkdownProps> & Readonly<{
54
56
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
57
  onChange?: ((text: string, html: string) => any) | undefined;
56
58
  onSave?: ((text: string, html: string) => any) | undefined;
@@ -61,14 +63,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
63
  "onAuto-save"?: ((text: string) => any) | undefined;
62
64
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
65
  }>, {
66
+ height: string | number;
64
67
  modelValue: string;
68
+ placeholder: string;
65
69
  disabled: boolean;
66
- height: string | number;
67
70
  mode: "edit" | "editable" | "preview";
68
- placeholder: string;
69
- autofocus: boolean;
70
71
  tocNavPosition: "left" | "right";
71
72
  defaultFullscreen: boolean;
73
+ autofocus: boolean;
72
74
  includeLevel: number[];
73
75
  leftToolbar: string;
74
76
  rightToolbar: string;
@@ -80,4 +82,4 @@ declare const __VLS_export: vue.DefineComponent<Props, {
80
82
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
83
  declare const _default: typeof __VLS_export;
82
84
  //#endregion
83
- export { _default as t };
85
+ export { MarkdownProps as n, _default as t };
@@ -1,9 +1,10 @@
1
1
  import * as vue from "vue";
2
2
  import { CSSProperties } from "vue";
3
3
 
4
- //#region src/components/C_Progress/index.vue.d.ts
4
+ //#region src/components/C_Progress/types.d.ts
5
5
  type CSS = CSSProperties | string;
6
- interface Props {
6
+ /** 组件输入的单一类型来源,可直接用于共享配置。 */
7
+ interface ProgressProps {
7
8
  percentage: number | number[];
8
9
  isAnimation?: boolean;
9
10
  time?: number;
@@ -29,18 +30,20 @@ interface Props {
29
30
  strokeWidth?: number;
30
31
  unit?: string;
31
32
  }
33
+ //#endregion
34
+ //#region src/components/C_Progress/index.vue.d.ts
32
35
  declare var __VLS_9: {};
33
36
  type __VLS_Slots = {} & {
34
37
  indicator?: (props: typeof __VLS_9) => any;
35
38
  };
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
- time: number;
39
+ declare const __VLS_base: vue.DefineComponent<ProgressProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
+ time: number;
42
43
  indicatorPlacement: "inside" | "outside";
43
44
  showIndicator: boolean;
45
+ status: "default" | "success" | "error" | "warning" | "info";
46
+ strokeWidth: number;
44
47
  unit: string;
45
48
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
49
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -51,4 +54,4 @@ type __VLS_WithSlots<T, S> = T & {
51
54
  };
52
55
  };
53
56
  //#endregion
54
- export { _default as t };
57
+ export { ProgressProps as n, _default as t };
@@ -1,9 +1,10 @@
1
1
  import * as vue from "vue";
2
2
  import { CSSProperties } from "vue";
3
3
 
4
- //#region src/components/C_Progress/index.vue.d.ts
4
+ //#region src/components/C_Progress/types.d.ts
5
5
  type CSS = CSSProperties | string;
6
- interface Props {
6
+ /** 组件输入的单一类型来源,可直接用于共享配置。 */
7
+ interface ProgressProps {
7
8
  percentage: number | number[];
8
9
  isAnimation?: boolean;
9
10
  time?: number;
@@ -29,18 +30,20 @@ interface Props {
29
30
  strokeWidth?: number;
30
31
  unit?: string;
31
32
  }
33
+ //#endregion
34
+ //#region src/components/C_Progress/index.vue.d.ts
32
35
  declare var __VLS_9: {};
33
36
  type __VLS_Slots = {} & {
34
37
  indicator?: (props: typeof __VLS_9) => any;
35
38
  };
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
- time: number;
39
+ declare const __VLS_base: vue.DefineComponent<ProgressProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
+ time: number;
42
43
  indicatorPlacement: "inside" | "outside";
43
44
  showIndicator: boolean;
45
+ status: "default" | "success" | "error" | "warning" | "info";
46
+ strokeWidth: number;
44
47
  unit: string;
45
48
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
49
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -51,4 +54,4 @@ type __VLS_WithSlots<T, S> = T & {
51
54
  };
52
55
  };
53
56
  //#endregion
54
- export { _default as t };
57
+ export { ProgressProps as n, _default as t };
@@ -64,7 +64,7 @@ interface SkeletonProps {
64
64
  loading?: boolean;
65
65
  /** 动画类型 */
66
66
  animation?: SkeletonAnimation;
67
- /** 重复次数(用于 text/card/list 模式) */
67
+ /** 重复次数(用于 text/card/image 模式;列表数量使用 list.items) */
68
68
  repeat?: number;
69
69
  /** 圆角大小 */
70
70
  borderRadius?: string;
@@ -89,8 +89,8 @@ declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue
89
89
  repeat: number;
90
90
  loading: boolean;
91
91
  borderRadius: string;
92
- preset: SkeletonPreset;
93
92
  animation: SkeletonAnimation;
93
+ preset: SkeletonPreset;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -64,7 +64,7 @@ interface SkeletonProps {
64
64
  loading?: boolean;
65
65
  /** 动画类型 */
66
66
  animation?: SkeletonAnimation;
67
- /** 重复次数(用于 text/card/list 模式) */
67
+ /** 重复次数(用于 text/card/image 模式;列表数量使用 list.items) */
68
68
  repeat?: number;
69
69
  /** 圆角大小 */
70
70
  borderRadius?: string;
@@ -89,8 +89,8 @@ declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue
89
89
  repeat: number;
90
90
  loading: boolean;
91
91
  borderRadius: string;
92
- preset: SkeletonPreset;
93
92
  animation: SkeletonAnimation;
93
+ preset: SkeletonPreset;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -10,36 +10,29 @@ interface StepItem {
10
10
  disabled?: boolean;
11
11
  detail?: string;
12
12
  }
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[];
13
+ /** 步骤数据与常用展示配置;只读数组可直接来自共享配置。 */
14
+ interface StepsProps {
15
+ steps: readonly StepItem[];
26
16
  current?: number;
27
17
  direction?: 'horizontal' | 'vertical';
28
- clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
18
+ clickable?: boolean;
19
+ /** 水平连接线是否贴近图标;默认保留两端间距。 */
29
20
  connected?: boolean;
30
- };
31
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
21
+ }
22
+ //#endregion
23
+ //#region src/components/C_Steps/index.vue.d.ts
24
+ declare const __VLS_export: vue.DefineComponent<StepsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
25
  change: (args_0: number) => any;
33
26
  "update:current": (args_0: number) => any;
34
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ }, string, vue.PublicProps, Readonly<StepsProps> & Readonly<{
35
28
  onChange?: ((args_0: number) => any) | undefined;
36
29
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
30
  }>, {
38
31
  direction: "horizontal" | "vertical";
39
32
  clickable: boolean;
40
- current: number;
41
33
  connected: boolean;
34
+ current: number;
42
35
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
36
  declare const _default: typeof __VLS_export;
44
37
  //#endregion
45
- export { StepItem as n, _default as t };
38
+ export { StepItem as n, StepsProps as r, _default as t };