@robot-admin/naive-ui-components 0.6.8 → 0.6.11

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 (177) hide show
  1. package/README.md +277 -261
  2. package/dist/C_AudioPlayer-DKRIGhi7.css.map +1 -0
  3. package/dist/C_AudioPlayer-DlB6eNsa.css.map +1 -0
  4. package/dist/C_AudioPlayer.cjs +1 -0
  5. package/dist/C_AudioPlayer.css +283 -0
  6. package/dist/C_AudioPlayer.d.cts +2 -0
  7. package/dist/C_AudioPlayer.d.ts +2 -0
  8. package/dist/C_AudioPlayer.js +1 -0
  9. package/dist/C_AudioPlayer.js.map +1 -0
  10. package/dist/C_AudioPlayer2.js +2 -0
  11. package/dist/C_AudioPlayer2.js.map +1 -0
  12. package/dist/C_AvatarGroup-D02zci-i.css.map +1 -0
  13. package/dist/C_AvatarGroup-DatHaUlY.css.map +1 -0
  14. package/dist/C_AvatarGroup.cjs +1 -0
  15. package/dist/C_AvatarGroup.css +107 -0
  16. package/dist/C_AvatarGroup.d.cts +2 -0
  17. package/dist/C_AvatarGroup.d.ts +2 -0
  18. package/dist/C_AvatarGroup.js +1 -0
  19. package/dist/C_AvatarGroup.js.map +1 -0
  20. package/dist/C_AvatarGroup2.js +2 -0
  21. package/dist/C_AvatarGroup2.js.map +1 -0
  22. package/dist/C_Barcode.d.cts +1 -1
  23. package/dist/C_Barcode.d.ts +1 -1
  24. package/dist/{C_Breadcrumb-B5PGpP5m.css.map → C_Breadcrumb-BiH0d9AI.css.map} +1 -1
  25. package/dist/{C_Breadcrumb-Cay7qluL.css.map → C_Breadcrumb-Bqqrl8nX.css.map} +1 -1
  26. package/dist/C_Breadcrumb.css +8 -2
  27. package/dist/C_Breadcrumb.d.cts +1 -1
  28. package/dist/C_Breadcrumb.d.ts +1 -1
  29. package/dist/C_Breadcrumb.js.map +1 -1
  30. package/dist/C_Breadcrumb2.js.map +1 -1
  31. package/dist/C_Captcha.d.cts +1 -1
  32. package/dist/C_Captcha.d.ts +1 -1
  33. package/dist/C_Cascade.d.cts +1 -1
  34. package/dist/C_Cascade.d.ts +1 -1
  35. package/dist/C_Chat-CcjZdAwu.css.map +1 -0
  36. package/dist/C_Chat-Diq7tyWU.css.map +1 -0
  37. package/dist/C_Chat.cjs +1 -0
  38. package/dist/C_Chat.css +395 -0
  39. package/dist/C_Chat.d.cts +2 -0
  40. package/dist/C_Chat.d.ts +2 -0
  41. package/dist/C_Chat.js +1 -0
  42. package/dist/C_Chat.js.map +1 -0
  43. package/dist/C_Chat2.js +2 -0
  44. package/dist/C_Chat2.js.map +1 -0
  45. package/dist/C_City.d.cts +1 -1
  46. package/dist/C_City.d.ts +1 -1
  47. package/dist/C_Code.d.cts +1 -1
  48. package/dist/C_Code.d.ts +1 -1
  49. package/dist/C_ContextMenu-B3Cgz_wJ.css.map +1 -0
  50. package/dist/C_ContextMenu-u1LixF3_.css.map +1 -0
  51. package/dist/C_ContextMenu.cjs +1 -0
  52. package/dist/C_ContextMenu.css +115 -0
  53. package/dist/C_ContextMenu.d.cts +2 -0
  54. package/dist/C_ContextMenu.d.ts +2 -0
  55. package/dist/C_ContextMenu.js +1 -0
  56. package/dist/C_ContextMenu.js.map +1 -0
  57. package/dist/C_ContextMenu2.js +2 -0
  58. package/dist/C_ContextMenu2.js.map +1 -0
  59. package/dist/C_Date.d.cts +1 -1
  60. package/dist/C_Date.d.ts +1 -1
  61. package/dist/C_Editor.d.cts +1 -1
  62. package/dist/C_Editor.d.ts +1 -1
  63. package/dist/C_Guide.d.cts +1 -1
  64. package/dist/C_Guide.d.ts +1 -1
  65. package/dist/C_Icon.d.cts +1 -1
  66. package/dist/C_Icon.d.ts +1 -1
  67. package/dist/C_Icon.js.map +1 -1
  68. package/dist/C_Icon2.js +1 -1
  69. package/dist/C_Icon2.js.map +1 -1
  70. package/dist/C_Language.d.cts +1 -1
  71. package/dist/C_Language.d.ts +1 -1
  72. package/dist/C_Language.js.map +1 -1
  73. package/dist/C_Language2.js +1 -1
  74. package/dist/C_Language2.js.map +1 -1
  75. package/dist/C_Login-BkdnkBKX.css.map +1 -0
  76. package/dist/C_Login-VkMM6OJ2.css.map +1 -0
  77. package/dist/C_Login.cjs +1 -0
  78. package/dist/C_Login.css +515 -0
  79. package/dist/C_Login.d.cts +2 -0
  80. package/dist/C_Login.d.ts +2 -0
  81. package/dist/C_Login.js +1 -0
  82. package/dist/C_Login.js.map +1 -0
  83. package/dist/C_Login2.js +2 -0
  84. package/dist/C_Login2.js.map +1 -0
  85. package/dist/C_Markdown.d.cts +1 -1
  86. package/dist/C_Markdown.d.ts +1 -1
  87. package/dist/C_Menu.d.cts +1 -1
  88. package/dist/C_Menu.d.ts +1 -1
  89. package/dist/C_Progress.d.cts +1 -1
  90. package/dist/C_Progress.d.ts +1 -1
  91. package/dist/C_Steps.d.cts +1 -1
  92. package/dist/C_Steps.d.ts +1 -1
  93. package/dist/C_TagsView.d.cts +1 -1
  94. package/dist/C_TagsView.d.ts +1 -1
  95. package/dist/C_Theme.d.cts +1 -1
  96. package/dist/C_Theme.d.ts +1 -1
  97. package/dist/C_Timeline-BIvw3f41.css.map +1 -0
  98. package/dist/C_Timeline-VsDfCv4Q.css.map +1 -0
  99. package/dist/C_Timeline.cjs +1 -0
  100. package/dist/C_Timeline.css +271 -0
  101. package/dist/C_Timeline.d.cts +2 -0
  102. package/dist/C_Timeline.d.ts +2 -0
  103. package/dist/C_Timeline.js +1 -0
  104. package/dist/C_Timeline.js.map +1 -0
  105. package/dist/C_Timeline2.js +2 -0
  106. package/dist/C_Timeline2.js.map +1 -0
  107. package/dist/C_Transfer-BOB6OBqS.css.map +1 -0
  108. package/dist/C_Transfer-Dpq7ezWC.css.map +1 -0
  109. package/dist/C_Transfer.cjs +1 -0
  110. package/dist/C_Transfer.css +193 -0
  111. package/dist/C_Transfer.d.cts +2 -0
  112. package/dist/C_Transfer.d.ts +2 -0
  113. package/dist/C_Transfer.js +1 -0
  114. package/dist/C_Transfer.js.map +1 -0
  115. package/dist/C_Transfer2.js +2 -0
  116. package/dist/C_Transfer2.js.map +1 -0
  117. package/dist/C_VtableGantt.d.cts +1 -1
  118. package/dist/C_VtableGantt.d.ts +1 -1
  119. package/dist/constants.d.ts +2 -2
  120. package/dist/constants2.d.ts +2 -2
  121. package/dist/constants4.d.ts +3 -3
  122. package/dist/constants5.d.ts +2 -2
  123. package/dist/data.d.ts +1 -1
  124. package/dist/index.cjs +1 -1
  125. package/dist/index.cjs.map +1 -1
  126. package/dist/index.d.cts +48 -41
  127. package/dist/index.d.ts +48 -41
  128. package/dist/index.js +1 -1
  129. package/dist/index.js.map +1 -1
  130. package/dist/index.vue.d.ts +1 -1
  131. package/dist/index10.vue.d.ts +41 -23
  132. package/dist/index11.vue.d.ts +80 -63
  133. package/dist/index12.vue.d.ts +48 -20
  134. package/dist/index13.vue.d.ts +23 -63
  135. package/dist/index14.vue.d.ts +21 -58
  136. package/dist/index15.vue.d.ts +65 -48
  137. package/dist/index16.vue.d.ts +16 -21
  138. package/dist/index17.vue.d.ts +106 -77
  139. package/dist/index18.vue.d.ts +74 -11
  140. package/dist/index19.vue.d.ts +58 -653
  141. package/dist/index2.vue.d.ts +75 -30
  142. package/dist/index20.vue.d.ts +55 -0
  143. package/dist/index21.vue.d.ts +33 -0
  144. package/dist/index22.vue.d.ts +88 -0
  145. package/dist/index23.vue.d.ts +18 -0
  146. package/dist/index24.vue.d.ts +112 -0
  147. package/dist/index25.vue.d.ts +81 -0
  148. package/dist/index26.vue.d.ts +662 -0
  149. package/dist/index3.vue.d.ts +77 -19
  150. package/dist/index4.vue.d.ts +29 -36
  151. package/dist/index5.vue.d.ts +19 -20
  152. package/dist/index6.vue.d.ts +36 -26
  153. package/dist/index7.vue.d.ts +23 -40
  154. package/dist/index8.vue.d.ts +117 -45
  155. package/dist/index9.vue.d.ts +19 -25
  156. package/dist/resolver.cjs +1 -1
  157. package/dist/resolver.cjs.map +1 -1
  158. package/dist/resolver.d.cts +1 -1
  159. package/dist/resolver.d.ts +1 -1
  160. package/dist/resolver.js +1 -1
  161. package/dist/resolver.js.map +1 -1
  162. package/dist/style.css +1920 -21
  163. package/dist/useCollapsePanel.d.ts +1 -1
  164. package/dist/useCropperCore.d.ts +4 -4
  165. package/dist/useDraggableLayout.d.ts +8 -8
  166. package/dist/useDynamicFormState.d.ts +10 -10
  167. package/dist/useEdgeInteraction.d.ts +1 -1
  168. package/dist/useInfiniteScroll.d.ts +2 -2
  169. package/dist/useModalEdit.d.ts +2 -2
  170. package/dist/useQRCode.d.ts +4 -4
  171. package/dist/useSearchState.d.ts +2 -2
  172. package/dist/useSignatureHistory.d.ts +1 -1
  173. package/dist/useSplitResize.d.ts +5 -5
  174. package/dist/useTimeSelection.d.ts +2 -2
  175. package/dist/useTreeOperations.d.ts +6 -6
  176. package/dist/useWorkflowValidation.d.ts +1 -1
  177. package/package.json +1 -1
@@ -1,55 +1,72 @@
1
1
  import * as vue from "vue";
2
- import { CSSProperties } from "vue";
3
2
 
4
- //#region src/components/C_Progress/index.vue.d.ts
5
- type CSS = CSSProperties | string;
6
- interface Props {
7
- percentage: number | number[];
8
- isAnimation?: boolean;
9
- time?: number;
10
- type?: "line" | "circle" | "multiple-circle" | "dashboard";
11
- borderRadius?: number | string;
12
- circleGap?: number;
13
- color?: string | string[] | {
14
- stops: string[];
15
- } | Array<{
16
- stops: string[];
17
- }>;
18
- fillBorderRadius?: number | string;
19
- gapDegree?: number;
20
- gapOffsetDegree?: number;
21
- height?: number;
22
- indicatorPlacement?: "inside" | "outside";
23
- indicatorTextColor?: string;
24
- offsetDegree?: number;
25
- railColor?: string | string[];
26
- railStyle?: string | CSS | Array<string | CSS>;
27
- showIndicator?: boolean;
28
- status?: "default" | "success" | "error" | "warning" | "info";
29
- strokeWidth?: number;
30
- unit?: string;
3
+ //#region src/components/C_Icon/index.vue.d.ts
4
+ interface IconProps {
5
+ /** 图标名称/路径/组件实例 */
6
+ name: string | any;
7
+ /** 图标类型 */
8
+ type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
9
+ /** 图标颜色 */
10
+ color?: string;
11
+ /** 图标大小(px) */
12
+ size?: number | string;
13
+ /** SVG路径数据(仅type=svg时使用) */
14
+ svgPath?: string;
15
+ /** SVG viewBox(仅type=svg时使用) */
16
+ viewBox?: string;
17
+ /** 图片alt属性(仅type=image时使用) */
18
+ alt?: string;
19
+ /** 是否可点击 */
20
+ clickable?: boolean;
21
+ /** 加载状态 */
22
+ loading?: boolean;
23
+ /** 错误时的回退图标 */
24
+ fallbackIcon?: string;
25
+ /** 工具提示 */
26
+ title?: string;
27
+ /** 无障碍标签 */
28
+ ariaLabel?: string;
29
+ /** 自定义样式类 */
30
+ customClass?: string;
31
+ /** 旋转角度 */
32
+ rotate?: number;
33
+ /** 是否翻转 */
34
+ flip?: 'horizontal' | 'vertical' | 'both';
35
+ /** 传递给组件的额外属性(仅type=component时使用) */
36
+ componentProps?: Record<string, any>;
31
37
  }
32
- declare var __VLS_9: {};
33
- type __VLS_Slots = {} & {
34
- indicator?: (props: typeof __VLS_9) => any;
35
- };
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;
40
- percentage: number | number[];
41
- isAnimation: boolean;
42
- indicatorPlacement: "inside" | "outside";
43
- showIndicator: boolean;
44
- unit: string;
38
+ declare const __VLS_export: vue.DefineComponent<IconProps, {
39
+ /** 重新验证配置 */validate: () => void; /** 是否有错误 */
40
+ hasError: Readonly<vue.Ref<boolean, boolean>>; /** 错误信息 */
41
+ errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
42
+ el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
43
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
+ click: (event: MouseEvent) => any;
45
+ error: (type: string, error?: any) => any;
46
+ load: () => any;
47
+ }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
48
+ onClick?: ((event: MouseEvent) => any) | undefined;
49
+ onError?: ((type: string, error?: any) => any) | undefined;
50
+ onLoad?: (() => any) | undefined;
51
+ }>, {
52
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
53
+ title: string;
54
+ name: string | any;
55
+ color: string;
56
+ size: number | string;
57
+ svgPath: string;
58
+ viewBox: string;
59
+ alt: string;
60
+ clickable: boolean;
61
+ loading: boolean;
62
+ fallbackIcon: string;
63
+ ariaLabel: string;
64
+ customClass: string;
65
+ rotate: number;
66
+ flip: "horizontal" | "vertical" | "both";
67
+ componentProps: Record<string, any>;
45
68
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
69
  declare const _default: typeof __VLS_export;
48
- type __VLS_WithSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };
53
70
  //#endregion
54
- export { _default as t };
71
+ export { _default as n, IconProps as t };
55
72
  //# sourceMappingURL=index15.vue.d.ts.map
@@ -1,33 +1,28 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Steps/index.vue.d.ts
4
- interface StepItem {
5
- title: string;
6
- description?: string;
7
- time?: string;
8
- icon?: string;
9
- status?: "wait" | "process" | "finish" | "error";
10
- disabled?: boolean;
11
- detail?: string;
3
+ //#region src/components/C_Language/index.vue.d.ts
4
+ interface LanguageOption {
5
+ key: string;
6
+ label: string;
7
+ iconClass?: string;
12
8
  }
13
9
  type __VLS_Props = {
14
- steps: StepItem[];
15
- current?: number;
16
- direction?: "horizontal" | "vertical";
17
- clickable?: boolean;
10
+ modelValue?: string;
11
+ options?: LanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
12
+ tooltip?: string;
18
13
  };
19
14
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
- change: (args_0: number) => any;
21
- "update:current": (args_0: number) => any;
15
+ "update:modelValue": (key: string) => any;
16
+ change: (key: string) => any;
22
17
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onChange?: ((args_0: number) => any) | undefined;
24
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
19
+ onChange?: ((key: string) => any) | undefined;
25
20
  }>, {
26
- direction: "horizontal" | "vertical";
27
- clickable: boolean;
28
- current: number;
21
+ modelValue: string;
22
+ options: LanguageOption[];
23
+ tooltip: string;
29
24
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
30
25
  declare const _default: typeof __VLS_export;
31
26
  //#endregion
32
- export { _default as n, StepItem as t };
27
+ export { _default as n, LanguageOption as t };
33
28
  //# sourceMappingURL=index16.vue.d.ts.map
@@ -1,88 +1,117 @@
1
- import { s as TagItem } from "./menuAdapter.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
2
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
11
- }
3
+ //#region src/components/C_Login/types.d.ts
12
4
  /**
13
- * 标签页管理 composable
14
- *
15
- * 独立于组件使用 — 可在任何地方管理标签状态
16
- *
17
- * @example 独立使用
18
- * ```ts
19
- * const tags = useTagsView({ persistKey: 'my-tags' })
20
- * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
- * ```
5
+ * @Description: C_Login 通用登录组件 - 类型定义
22
6
  */
23
- declare function useTagsView(options?: UseTagsViewOptions): {
24
- tagsViewList: Ref<TagItem[], TagItem[]>;
25
- activeTag: Ref<string, string>;
26
- homePath: string;
27
- initTags: (tags?: TagItem[]) => void;
28
- setActiveTag: (path: string) => void;
29
- addTag: (tag: TagItem) => void;
30
- removeTag: (index: number) => string | null;
31
- removeOtherTags: (index: number) => void;
32
- removeLeftTags: (index: number) => void;
33
- removeRightTags: (index: number) => void;
34
- removeAllTags: () => void;
35
- };
36
- //#endregion
37
- //#region src/components/C_TagsView/index.vue.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
7
+ interface LoginFeatures {
8
+ /** 是否显示密码登录(默认 true) */
9
+ passwordLogin?: boolean;
10
+ /** 是否显示验证码登录(默认 true) */
11
+ captchaLogin?: boolean;
12
+ /** 是否显示扫码登录(默认 true) */
13
+ qrcodeLogin?: boolean;
14
+ /** 是否显示其他账号登录(默认 true) */
15
+ socialLogin?: boolean;
16
+ /** 是否显示注册账号(默认 true) */
17
+ register?: boolean;
18
+ /** 是否启用人机验证拼图(默认 true) */
19
+ captchaVerify?: boolean;
20
+ /** 是否显示记住我(默认 true) */
21
+ rememberMe?: boolean;
22
+ /** 是否显示忘记密码(默认 true) */
23
+ forgotPassword?: boolean;
24
+ }
25
+ interface SocialProvider {
26
+ key: string;
27
+ label: string;
28
+ /** mdi 图标名称 */
29
+ icon: string;
30
+ }
31
+ interface PasswordFormData {
32
+ username: string;
33
+ password: string;
44
34
  }
45
- type __VLS_Props = {
46
- /**
47
- * 标签文本格式化函数(用于 i18n)
48
- */
49
- labelFormatter?: (label: string) => string; /** 首页路径 */
50
- homePath?: string; /** 首页标题(原始文本) */
51
- homeTitle?: string; /** 首页图标 */
52
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
53
- persistKey?: string; /** 右键菜单文案(国际化适配) */
54
- contextMenuLabels?: ContextMenuLabels; /** useTagsView 配置项(优先级最高) */
55
- tagsViewOptions?: UseTagsViewOptions;
35
+ interface CaptchaFormData {
36
+ account: string;
37
+ code: string;
38
+ }
39
+ interface RegisterFormData {
40
+ phone: string;
41
+ code: string;
42
+ password: string;
43
+ confirmPassword: string;
44
+ }
45
+ interface LoginProps {
46
+ /** 标题文字 */
47
+ title?: string;
48
+ /** 副标题 */
49
+ subtitle?: string;
50
+ /** Logo icon 名称(mdi:xxx),不传则不显示图标 */
51
+ logoIcon?: string;
52
+ /** 功能开关配置 */
53
+ features?: LoginFeatures;
54
+ /** 社交登录提供商列表 */
55
+ socialProviders?: SocialProvider[];
56
+ /** 扫码登录二维码 URL */
57
+ qrcodeUrl?: string;
58
+ /** localStorage key(记住我) */
59
+ storageKey?: string;
60
+ /** 外部传入的 loading 状态 */
61
+ loading?: boolean;
62
+ /** 表单默认用户名(Demo / 预填场景) */
63
+ defaultUsername?: string;
64
+ /** 表单默认密码(Demo / 预填场景) */
65
+ defaultPassword?: string;
66
+ }
67
+ declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
68
+ declare const DEFAULT_FEATURES: Required<LoginFeatures>;
69
+ //#endregion
70
+ //#region src/components/C_Login/index.vue.d.ts
71
+ declare var __VLS_1: {};
72
+ type __VLS_Slots = {} & {
73
+ logo?: (props: typeof __VLS_1) => any;
56
74
  };
57
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
58
- /** useTagsView composable 实例 */tags: {
59
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
60
- activeTag: vue.Ref<string, string>;
61
- homePath: string;
62
- initTags: (tags?: TagItem[]) => void;
63
- setActiveTag: (path: string) => void;
64
- addTag: (tag: TagItem) => void;
65
- removeTag: (index: number) => string | null;
66
- removeOtherTags: (index: number) => void;
67
- removeLeftTags: (index: number) => void;
68
- removeRightTags: (index: number) => void;
69
- removeAllTags: () => void;
70
- }; /** 滚动到指定标签 */
71
- scrollToTag: (path: string) => void;
72
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
- close: (fallbackPath: string) => any;
74
- closeAll: () => any;
75
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
76
- onClose?: ((fallbackPath: string) => any) | undefined;
77
- onCloseAll?: (() => any) | undefined;
75
+ declare const __VLS_base: vue.DefineComponent<LoginProps, {
76
+ resetCaptcha: () => void;
77
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
78
+ submit: (data: PasswordFormData & {
79
+ captchaToken?: string;
80
+ captchaTimestamp?: number;
81
+ }) => any;
82
+ "captcha-submit": (data: CaptchaFormData) => any;
83
+ "send-code": (account: string) => any;
84
+ "social-login": (provider: string) => any;
85
+ "forgot-password": () => any;
86
+ "qrcode-refresh": () => any;
87
+ "register-submit": (data: RegisterFormData) => any;
88
+ "register-send-code": (phone: string) => any;
89
+ }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
90
+ onSubmit?: ((data: PasswordFormData & {
91
+ captchaToken?: string;
92
+ captchaTimestamp?: number;
93
+ }) => any) | undefined;
94
+ "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
95
+ "onSend-code"?: ((account: string) => any) | undefined;
96
+ "onSocial-login"?: ((provider: string) => any) | undefined;
97
+ "onForgot-password"?: (() => any) | undefined;
98
+ "onQrcode-refresh"?: (() => any) | undefined;
99
+ "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
100
+ "onRegister-send-code"?: ((phone: string) => any) | undefined;
78
101
  }>, {
79
- homePath: string;
80
- homeTitle: string;
81
- homeIcon: string;
82
- persistKey: string;
83
- contextMenuLabels: ContextMenuLabels;
102
+ title: string;
103
+ loading: boolean;
104
+ storageKey: string;
105
+ defaultUsername: string;
106
+ defaultPassword: string;
84
107
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
108
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
85
109
  declare const _default: typeof __VLS_export;
110
+ type __VLS_WithSlots<T, S> = T & {
111
+ new (): {
112
+ $slots: S;
113
+ };
114
+ };
86
115
  //#endregion
87
- export { useTagsView as i, _default as n, UseTagsViewOptions as r, ContextMenuLabels as t };
116
+ export { LoginFeatures as a, RegisterFormData as c, DEFAULT_SOCIAL_PROVIDERS as i, SocialProvider as l, CaptchaFormData as n, LoginProps as o, DEFAULT_FEATURES as r, PasswordFormData as s, _default as t };
88
117
  //# sourceMappingURL=index17.vue.d.ts.map
@@ -1,18 +1,81 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Theme/index.vue.d.ts
4
- type ThemeMode = 'system' | 'light' | 'dark';
5
- type __VLS_Props = {
6
- modelValue?: ThemeMode;
7
- };
8
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
9
- "update:modelValue": (mode: ThemeMode) => any;
10
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- "onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
3
+ //#region src/components/C_Markdown/index.vue.d.ts
4
+ type InsertImageFunction = (config: {
5
+ url: string;
6
+ desc?: string;
7
+ width?: string | number;
8
+ height?: string | number;
9
+ }) => void;
10
+ interface Props {
11
+ modelValue?: string;
12
+ height?: string | number;
13
+ disabled?: boolean;
14
+ placeholder?: string;
15
+ mode?: 'edit' | 'editable' | 'preview';
16
+ toolbar?: object;
17
+ uploadImageConfig?: {
18
+ accept?: string;
19
+ multiple?: boolean;
20
+ [key: string]: any;
21
+ };
22
+ tocNavPosition?: 'left' | 'right';
23
+ defaultFullscreen?: boolean;
24
+ autofocus?: boolean;
25
+ includeLevel?: number[];
26
+ leftToolbar?: string;
27
+ rightToolbar?: string;
28
+ maxLength?: number;
29
+ showWordCount?: boolean;
30
+ autoSave?: boolean;
31
+ autoSaveInterval?: number;
32
+ /** 是否为暗色主题(外部传入) */
33
+ isDark?: boolean;
34
+ }
35
+ declare const __VLS_export: vue.DefineComponent<Props, {
36
+ focus: () => void;
37
+ getHtml: () => string;
38
+ insertText: (text: string) => void;
39
+ wordCount: vue.ComputedRef<number>;
40
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
41
+ "update:modelValue": (value: string) => any;
42
+ change: (text: string, html: string) => any;
43
+ save: (text: string, html: string) => any;
44
+ "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
45
+ "fullscreen-change": (isFullscreen: boolean) => any;
46
+ "copy-code-success": (text: string) => any;
47
+ "word-count-change": (count: number) => any;
48
+ "auto-save": (text: string) => any;
49
+ "max-length-exceeded": (currentLength: number, maxLength: number) => any;
50
+ }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
52
+ onChange?: ((text: string, html: string) => any) | undefined;
53
+ onSave?: ((text: string, html: string) => any) | undefined;
54
+ "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
55
+ "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
56
+ "onCopy-code-success"?: ((text: string) => any) | undefined;
57
+ "onWord-count-change"?: ((count: number) => any) | undefined;
58
+ "onAuto-save"?: ((text: string) => any) | undefined;
59
+ "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
12
60
  }>, {
13
- modelValue: ThemeMode;
61
+ modelValue: string;
62
+ height: string | number;
63
+ disabled: boolean;
64
+ placeholder: string;
65
+ mode: "edit" | "editable" | "preview";
66
+ autoSave: boolean;
67
+ tocNavPosition: "left" | "right";
68
+ defaultFullscreen: boolean;
69
+ autofocus: boolean;
70
+ includeLevel: number[];
71
+ leftToolbar: string;
72
+ rightToolbar: string;
73
+ maxLength: number;
74
+ showWordCount: boolean;
75
+ autoSaveInterval: number;
76
+ isDark: boolean;
14
77
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
15
78
  declare const _default: typeof __VLS_export;
16
79
  //#endregion
17
- export { _default as n, ThemeMode as t };
80
+ export { _default as t };
18
81
  //# sourceMappingURL=index18.vue.d.ts.map