@robot-admin/naive-ui-components 0.40.2 → 0.40.4

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 (227) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +2 -2
  3. package/README_EN.md +17 -17
  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 +10 -10
  37. package/dist/C_ContextMenu2.cjs +1 -1
  38. package/dist/C_ContextMenu2.js +1 -1
  39. package/dist/C_DataPicker.css +32 -32
  40. package/dist/C_DataPicker2.cjs +1 -1
  41. package/dist/C_DataPicker2.js +1 -1
  42. package/dist/C_Editor.css +13 -13
  43. package/dist/C_Editor.d.cts +2 -2
  44. package/dist/C_Editor.d.ts +2 -2
  45. package/dist/C_Editor2.cjs +1 -1
  46. package/dist/C_Editor2.js +1 -1
  47. package/dist/C_FilePreview.css +104 -104
  48. package/dist/C_FilePreview2.cjs +1 -1
  49. package/dist/C_FilePreview2.js +1 -1
  50. package/dist/C_FormModal.css +58 -52
  51. package/dist/C_FormSearch.css +72 -72
  52. package/dist/C_FullCalendar2.cjs +1 -1
  53. package/dist/C_FullCalendar2.js +1 -1
  54. package/dist/C_GlobalSearch.css +139 -136
  55. package/dist/C_GlobalSearch2.cjs +1 -1
  56. package/dist/C_GlobalSearch2.js +1 -1
  57. package/dist/C_Guide.css +3 -3
  58. package/dist/C_Guide2.cjs +1 -1
  59. package/dist/C_Guide2.js +1 -1
  60. package/dist/C_Language.css +2 -2
  61. package/dist/C_Language2.cjs +1 -1
  62. package/dist/C_Language2.js +1 -1
  63. package/dist/C_Login.css +136 -121
  64. package/dist/C_Login2.cjs +1 -1
  65. package/dist/C_Login2.js +1 -1
  66. package/dist/C_Markdown.css +37 -37
  67. package/dist/C_Markdown.d.cts +2 -2
  68. package/dist/C_Markdown.d.ts +2 -2
  69. package/dist/C_Markdown2.cjs +1 -1
  70. package/dist/C_Markdown2.js +1 -1
  71. package/dist/C_NotificationCenter.css +51 -36
  72. package/dist/C_NotificationCenter2.cjs +1 -1
  73. package/dist/C_NotificationCenter2.js +1 -1
  74. package/dist/C_Progress.d.cts +2 -2
  75. package/dist/C_Progress.d.ts +2 -2
  76. package/dist/C_Progress2.cjs +1 -1
  77. package/dist/C_Progress2.js +1 -1
  78. package/dist/C_Signature.css +15 -15
  79. package/dist/C_Signature2.cjs +1 -1
  80. package/dist/C_Signature2.js +1 -1
  81. package/dist/C_Steps.css +39 -39
  82. package/dist/C_Steps.d.cts +2 -2
  83. package/dist/C_Steps.d.ts +2 -2
  84. package/dist/C_Steps2.cjs +1 -1
  85. package/dist/C_Steps2.js +1 -1
  86. package/dist/C_Table.base.css +58 -52
  87. package/dist/C_Table.css +58 -52
  88. package/dist/C_Table.d.ts +1 -0
  89. package/dist/C_Table2.cjs +2 -2
  90. package/dist/C_Table2.js +2 -2
  91. package/dist/C_TagsView.css +60 -50
  92. package/dist/C_TagsView2.cjs +1 -1
  93. package/dist/C_TagsView2.js +1 -1
  94. package/dist/C_Timeline.css +53 -53
  95. package/dist/C_Timeline2.cjs +1 -1
  96. package/dist/C_Timeline2.js +1 -1
  97. package/dist/C_Tree.d.ts +1 -0
  98. package/dist/C_Upload.css +80 -80
  99. package/dist/C_Upload2.cjs +1 -1
  100. package/dist/C_Upload2.js +1 -1
  101. package/dist/C_WaterFall.css +41 -41
  102. package/dist/C_WaterFall.d.cts +2 -2
  103. package/dist/C_WaterFall.d.ts +2 -2
  104. package/dist/C_WaterFall2.cjs +1 -1
  105. package/dist/C_WaterFall2.js +1 -1
  106. package/dist/C_WorkFlow.css +93 -92
  107. package/dist/C_WorkFlow2.cjs +1 -1
  108. package/dist/C_WorkFlow2.js +1 -1
  109. package/dist/ER.cjs +1 -1
  110. package/dist/ER.js +1 -1
  111. package/dist/UML.cjs +3 -3
  112. package/dist/UML.js +3 -3
  113. package/dist/component-config.d.ts +2 -0
  114. package/dist/constants.d.cts +3 -3
  115. package/dist/constants.d.ts +3 -3
  116. package/dist/constants2.d.cts +2 -2
  117. package/dist/constants2.d.ts +2 -2
  118. package/dist/constants3.d.cts +1 -1
  119. package/dist/constants3.d.ts +1 -1
  120. package/dist/constants4.d.cts +6 -6
  121. package/dist/constants4.d.ts +7 -6
  122. package/dist/constants5.d.cts +2 -2
  123. package/dist/constants5.d.ts +2 -2
  124. package/dist/context.d.cts +2 -0
  125. package/dist/data2.d.cts +10 -10
  126. package/dist/data2.d.ts +10 -10
  127. package/dist/editors.cjs +1 -1
  128. package/dist/editors.d.cts +3 -3
  129. package/dist/editors.d.ts +3 -3
  130. package/dist/editors.js +1 -1
  131. package/dist/graphEditSession.cjs +1 -0
  132. package/dist/graphEditSession.js +1 -0
  133. package/dist/index.d.cts +9 -9
  134. package/dist/index.d.ts +10 -9
  135. package/dist/index.vue.d.cts +4 -4
  136. package/dist/index.vue.d.ts +4 -4
  137. package/dist/index10.vue.d.cts +2 -3
  138. package/dist/index10.vue.d.ts +10 -7
  139. package/dist/index11.vue.d.cts +10 -7
  140. package/dist/index11.vue.d.ts +4 -4
  141. package/dist/index12.vue.d.cts +4 -4
  142. package/dist/index13.vue.d.ts +16 -13
  143. package/dist/index14.vue.d.cts +16 -13
  144. package/dist/index16.vue.d.ts +6 -11
  145. package/dist/index17.vue.d.cts +6 -11
  146. package/dist/index17.vue.d.ts +6 -6
  147. package/dist/index18.vue.d.cts +6 -6
  148. package/dist/index18.vue.d.ts +4 -9
  149. package/dist/index19.vue.d.cts +4 -9
  150. package/dist/index20.vue.d.ts +1 -2
  151. package/dist/index21.vue.d.cts +1 -2
  152. package/dist/index21.vue.d.ts +19 -17
  153. package/dist/index22.vue.d.cts +19 -17
  154. package/dist/index24.vue.d.cts +9 -6
  155. package/dist/index24.vue.d.ts +9 -6
  156. package/dist/index27.vue.d.cts +3 -3
  157. package/dist/index27.vue.d.ts +3 -3
  158. package/dist/index28.vue.d.cts +12 -19
  159. package/dist/index28.vue.d.ts +12 -19
  160. package/dist/index3.vue.d.cts +3 -3
  161. package/dist/index3.vue.d.ts +3 -3
  162. package/dist/index30.vue.d.cts +3 -10
  163. package/dist/index30.vue.d.ts +3 -10
  164. package/dist/index31.vue.d.cts +5 -5
  165. package/dist/index31.vue.d.ts +5 -5
  166. package/dist/index32.vue.d.cts +4 -4
  167. package/dist/index32.vue.d.ts +4 -4
  168. package/dist/index4.vue.d.cts +12 -9
  169. package/dist/index4.vue.d.ts +12 -9
  170. package/dist/index7.vue.d.ts +14 -14
  171. package/dist/index8.vue.d.cts +14 -14
  172. package/dist/index8.vue.d.ts +1 -1
  173. package/dist/index9.vue.d.cts +1 -1
  174. package/dist/index9.vue.d.ts +2 -3
  175. package/dist/locale.cjs +1 -0
  176. package/dist/locale.js +1 -0
  177. package/dist/mapUtils.d.cts +4 -4
  178. package/dist/mapUtils.d.ts +4 -4
  179. package/dist/presets.d.cts +1 -1
  180. package/dist/presets.d.ts +1 -1
  181. package/dist/serializeSearch.cjs +1 -1
  182. package/dist/serializeSearch.js +1 -1
  183. package/dist/style.css +1250 -1200
  184. package/dist/types.d.cts +1 -0
  185. package/dist/types.d.ts +1 -0
  186. package/dist/useCollapsePanel.d.cts +7 -7
  187. package/dist/useCollapsePanel.d.ts +7 -7
  188. package/dist/useComponentLocale.cjs +1 -1
  189. package/dist/useComponentLocale.js +1 -1
  190. package/dist/useCropperCore.d.cts +10 -10
  191. package/dist/useCropperCore.d.ts +10 -10
  192. package/dist/useDynamicFormState.d.cts +2 -2
  193. package/dist/useDynamicFormState.d.ts +2 -2
  194. package/dist/useEdgeInteraction.d.cts +1 -1
  195. package/dist/useEdgeInteraction.d.ts +1 -1
  196. package/dist/useFullscreen.d.cts +1 -1
  197. package/dist/useFullscreen.d.ts +1 -1
  198. package/dist/useGlobalSearch.d.cts +1 -5
  199. package/dist/useGlobalSearch.d.ts +1 -5
  200. package/dist/useInfiniteScroll.d.cts +42 -70
  201. package/dist/useInfiniteScroll.d.ts +42 -70
  202. package/dist/useQRCode.d.cts +3 -3
  203. package/dist/useQRCode.d.ts +3 -3
  204. package/dist/useScopedComponentLocale.cjs +1 -0
  205. package/dist/useScopedComponentLocale.js +1 -0
  206. package/dist/useSignatureHistory.d.cts +9 -4
  207. package/dist/useSignatureHistory.d.ts +9 -4
  208. package/dist/useSplitResize.d.cts +8 -8
  209. package/dist/useSplitResize.d.ts +8 -8
  210. package/dist/useWorkflowValidation.d.cts +39 -34
  211. package/dist/useWorkflowValidation.d.ts +39 -34
  212. package/dist/verification.d.cts +2 -2
  213. package/dist/verification.d.ts +2 -2
  214. package/docs/architecture.en.md +1 -1
  215. package/docs/architecture.md +1 -1
  216. package/docs/component-audit-closure-0.40.4.md +62 -0
  217. package/docs/engineering.en.md +3 -2
  218. package/docs/engineering.md +3 -2
  219. package/docs/guides/search-workflows.md +2 -0
  220. package/docs/guides/transfer.md +2 -0
  221. package/docs/guides/usage.en.md +15 -1
  222. package/docs/guides/usage.md +25 -2
  223. package/docs/guides/workflow.md +5 -1
  224. package/docs/stability-boundaries-0.40.3.md +38 -0
  225. package/package.json +1 -1
  226. package/dist/readonlyGraph.cjs +0 -1
  227. package/dist/readonlyGraph.js +0 -1
@@ -62,26 +62,26 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
64
  select: (item: ContextMenuItem) => any;
65
+ close: () => any;
65
66
  open: (position: {
66
67
  x: number;
67
68
  y: number;
68
69
  }) => any;
69
- close: () => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
+ onClose?: (() => any) | undefined;
72
73
  onOpen?: ((position: {
73
74
  x: number;
74
75
  y: number;
75
76
  }) => any) | undefined;
76
- onClose?: (() => any) | undefined;
77
77
  }>, {
78
78
  items: ContextMenuItem[];
79
- disabled: boolean;
80
- zIndex: number;
81
79
  minWidth: number;
82
80
  maxWidth: number;
83
81
  subMenuPlacement: "right" | "left";
84
82
  autoClose: boolean;
83
+ disabled: boolean;
84
+ zIndex: number;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  //#endregion
@@ -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;
@@ -46,18 +49,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
46
49
  error: (error: Error) => any;
47
50
  "editor-mounted": (editor: EditorInstance) => any;
48
51
  "editor-change": (html: string) => any;
49
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
52
+ }, string, vue.PublicProps, Readonly<EditorProps> & Readonly<{
50
53
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
54
  onError?: ((error: Error) => any) | undefined;
52
55
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
56
  "onEditor-change"?: ((html: string) => any) | undefined;
54
57
  }>, {
55
58
  modelValue: string;
56
- disabled: boolean;
57
59
  height: number;
60
+ disabled: boolean;
58
61
  placeholder: string;
59
62
  readonly: boolean;
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 };
@@ -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;
@@ -46,18 +49,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
46
49
  error: (error: Error) => any;
47
50
  "editor-mounted": (editor: EditorInstance) => any;
48
51
  "editor-change": (html: string) => any;
49
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
52
+ }, string, vue.PublicProps, Readonly<EditorProps> & Readonly<{
50
53
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
54
  onError?: ((error: Error) => any) | undefined;
52
55
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
56
  "onEditor-change"?: ((html: string) => any) | undefined;
54
57
  }>, {
55
58
  modelValue: string;
56
- disabled: boolean;
57
59
  height: number;
60
+ disabled: boolean;
58
61
  placeholder: string;
59
62
  readonly: boolean;
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;
101
100
  error: (error: unknown) => any;
102
- close: (currentStep: number) => any;
101
+ start: () => any;
103
102
  complete: () => any;
103
+ close: (currentStep: number) => any;
104
104
  skip: (currentStep: number) => any;
105
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
106
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
- onStart?: (() => any) | undefined;
108
107
  onError?: ((error: unknown) => any) | undefined;
109
- onClose?: ((currentStep: number) => any) | undefined;
108
+ onStart?: (() => any) | undefined;
110
109
  onComplete?: (() => any) | undefined;
110
+ onClose?: ((currentStep: number) => any) | undefined;
111
111
  onSkip?: ((currentStep: number) => any) | undefined;
112
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
113
113
  }>, {
114
- keyboard: boolean;
115
- showTrigger: boolean;
116
114
  steps: GuideStep[];
117
- doneBtnText: string;
118
- nextBtnText: string;
119
- prevBtnText: string;
120
115
  showSkipButton: boolean;
121
- skipBtnText: string;
122
116
  showProgress: boolean;
117
+ keyboard: boolean;
123
118
  animate: boolean;
124
119
  allowClose: boolean;
125
120
  skipMissingElements: boolean;
126
121
  popoverClass: string;
127
- triggerTooltip: string;
122
+ showTrigger: boolean;
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;
101
100
  error: (error: unknown) => any;
102
- close: (currentStep: number) => any;
101
+ start: () => any;
103
102
  complete: () => any;
103
+ close: (currentStep: number) => any;
104
104
  skip: (currentStep: number) => any;
105
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
106
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
- onStart?: (() => any) | undefined;
108
107
  onError?: ((error: unknown) => any) | undefined;
109
- onClose?: ((currentStep: number) => any) | undefined;
108
+ onStart?: (() => any) | undefined;
110
109
  onComplete?: (() => any) | undefined;
110
+ onClose?: ((currentStep: number) => any) | undefined;
111
111
  onSkip?: ((currentStep: number) => any) | undefined;
112
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
113
113
  }>, {
114
- keyboard: boolean;
115
- showTrigger: boolean;
116
114
  steps: GuideStep[];
117
- doneBtnText: string;
118
- nextBtnText: string;
119
- prevBtnText: string;
120
115
  showSkipButton: boolean;
121
- skipBtnText: string;
122
116
  showProgress: boolean;
117
+ keyboard: boolean;
123
118
  animate: boolean;
124
119
  allowClose: boolean;
125
120
  skipMissingElements: boolean;
126
121
  popoverClass: string;
127
- triggerTooltip: string;
122
+ showTrigger: boolean;
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
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
41
  type: "iconify" | "unocss" | "component" | "svg" | "image";
43
42
  ariaLabel: string;
44
43
  color: string;
45
- flip: "horizontal" | "vertical" | "both";
46
- loading: boolean;
47
- title: string;
48
- rotate: number;
49
- clickable: boolean;
44
+ size: number | string;
50
45
  svgPath: string;
51
46
  viewBox: string;
52
47
  alt: string;
48
+ clickable: boolean;
49
+ loading: boolean;
53
50
  fallbackIcon: string;
54
51
  loadTimeout: number;
52
+ title: string;
55
53
  customClass: string;
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
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
41
  type: "iconify" | "unocss" | "component" | "svg" | "image";
43
42
  ariaLabel: string;
44
43
  color: string;
45
- flip: "horizontal" | "vertical" | "both";
46
- loading: boolean;
47
- title: string;
48
- rotate: number;
49
- clickable: boolean;
44
+ size: number | string;
50
45
  svgPath: string;
51
46
  viewBox: string;
52
47
  alt: string;
48
+ clickable: boolean;
49
+ loading: boolean;
53
50
  fallbackIcon: string;
54
51
  loadTimeout: number;
52
+ title: string;
55
53
  customClass: string;
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,25 +8,20 @@ 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, {
22
- change: (key: string) => any;
23
17
  "update:modelValue": (key: string) => any;
18
+ change: (key: string) => any;
24
19
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onChange?: ((key: string) => any) | undefined;
26
20
  "onUpdate:modelValue"?: ((key: string) => any) | undefined;
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,25 +8,20 @@ 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, {
22
- change: (key: string) => any;
23
17
  "update:modelValue": (key: string) => any;
18
+ change: (key: string) => any;
24
19
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onChange?: ((key: string) => any) | undefined;
26
20
  "onUpdate:modelValue"?: ((key: string) => any) | undefined;
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
@@ -116,9 +116,8 @@ 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
- storageKey: string;
120
119
  loading: boolean;
121
- title: string;
120
+ storageKey: string;
122
121
  defaultUsername: string;
123
122
  defaultPassword: string;
124
123
  captchaProvider: CaptchaProvider;
@@ -116,9 +116,8 @@ 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
- storageKey: string;
120
119
  loading: boolean;
121
- title: string;
120
+ storageKey: string;
122
121
  defaultUsername: string;
123
122
  defaultPassword: string;
124
123
  captchaProvider: CaptchaProvider;
@@ -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,14 +29,22 @@ 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;
42
44
  wordCount: vue.ComputedRef<number>;
43
45
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- change: (text: string, html: string) => any;
45
46
  "update:modelValue": (value: string) => any;
47
+ change: (text: string, html: string) => any;
46
48
  save: (text: string, html: string) => any;
47
49
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
50
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -50,9 +52,9 @@ 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<{
54
- onChange?: ((text: string, html: string) => any) | undefined;
55
+ }, string, vue.PublicProps, Readonly<MarkdownProps> & Readonly<{
55
56
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
57
+ onChange?: ((text: string, html: string) => any) | undefined;
56
58
  onSave?: ((text: string, html: string) => any) | undefined;
57
59
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
60
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -62,13 +64,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
64
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
65
  }>, {
64
66
  modelValue: string;
65
- disabled: boolean;
66
67
  height: string | number;
68
+ disabled: boolean;
67
69
  mode: "edit" | "editable" | "preview";
68
70
  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,14 +29,22 @@ 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;
42
44
  wordCount: vue.ComputedRef<number>;
43
45
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- change: (text: string, html: string) => any;
45
46
  "update:modelValue": (value: string) => any;
47
+ change: (text: string, html: string) => any;
46
48
  save: (text: string, html: string) => any;
47
49
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
50
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -50,9 +52,9 @@ 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<{
54
- onChange?: ((text: string, html: string) => any) | undefined;
55
+ }, string, vue.PublicProps, Readonly<MarkdownProps> & Readonly<{
55
56
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
57
+ onChange?: ((text: string, html: string) => any) | undefined;
56
58
  onSave?: ((text: string, html: string) => any) | undefined;
57
59
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
60
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -62,13 +64,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
64
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
65
  }>, {
64
66
  modelValue: string;
65
- disabled: boolean;
66
67
  height: string | number;
68
+ disabled: boolean;
67
69
  mode: "edit" | "editable" | "preview";
68
70
  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
- time: number;
39
+ declare const __VLS_base: vue.DefineComponent<ProgressProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
39
40
  strokeWidth: number;
40
41
  percentage: number | number[];
41
42
  isAnimation: boolean;
43
+ time: number;
42
44
  indicatorPlacement: "inside" | "outside";
43
45
  showIndicator: boolean;
46
+ status: "default" | "success" | "error" | "warning" | "info";
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
- time: number;
39
+ declare const __VLS_base: vue.DefineComponent<ProgressProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
39
40
  strokeWidth: number;
40
41
  percentage: number | number[];
41
42
  isAnimation: boolean;
43
+ time: number;
42
44
  indicatorPlacement: "inside" | "outside";
43
45
  showIndicator: boolean;
46
+ status: "default" | "success" | "error" | "warning" | "info";
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;
@@ -88,9 +88,9 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  repeat: number;
90
90
  loading: boolean;
91
- borderRadius: string;
92
- preset: SkeletonPreset;
93
91
  animation: SkeletonAnimation;
92
+ preset: SkeletonPreset;
93
+ borderRadius: string;
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;
@@ -88,9 +88,9 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  repeat: number;
90
90
  loading: boolean;
91
- borderRadius: string;
92
- preset: SkeletonPreset;
93
91
  animation: SkeletonAnimation;
92
+ preset: SkeletonPreset;
93
+ borderRadius: string;
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;