@robot-admin/naive-ui-components 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -9
  3. package/README_EN.md +6 -8
  4. package/dist/C_Form.base.css +31 -13
  5. package/dist/C_Form.css +31 -13
  6. package/dist/C_Form.d.cts +3 -2
  7. package/dist/C_Form.d.ts +3 -19
  8. package/dist/C_FormModal.d.cts +1 -1
  9. package/dist/C_FormModal.d.ts +2 -17
  10. package/dist/C_FormSearch.css +79 -79
  11. package/dist/C_FormSearch.d.cts +2 -1
  12. package/dist/C_FormSearch.d.ts +2 -2
  13. package/dist/C_FormulaEditor.d.cts +1 -1
  14. package/dist/C_FormulaEditor.d.ts +1 -1
  15. package/dist/C_Guide.d.cts +1 -1
  16. package/dist/C_Guide.d.ts +1 -1
  17. package/dist/C_Icon.d.cts +1 -1
  18. package/dist/C_Icon.d.ts +1 -1
  19. package/dist/C_Language.d.cts +1 -1
  20. package/dist/C_Language.d.ts +1 -1
  21. package/dist/C_Loading.d.cts +1 -1
  22. package/dist/C_Loading.d.ts +1 -1
  23. package/dist/C_Login.d.cts +1 -1
  24. package/dist/C_Login.d.ts +1 -1
  25. package/dist/C_Markdown.d.cts +1 -1
  26. package/dist/C_Markdown.d.ts +1 -1
  27. package/dist/C_Menu.d.ts +1 -1
  28. package/dist/C_OrgChart.d.cts +1 -1
  29. package/dist/C_OrgChart.d.ts +1 -1
  30. package/dist/C_Progress.d.cts +1 -1
  31. package/dist/C_Progress.d.ts +1 -1
  32. package/dist/C_SectionNav.d.cts +1 -1
  33. package/dist/C_SectionNav.d.ts +1 -1
  34. package/dist/C_Skeleton.d.cts +1 -1
  35. package/dist/C_Skeleton.d.ts +1 -1
  36. package/dist/C_Steps.d.cts +1 -1
  37. package/dist/C_Steps.d.ts +1 -1
  38. package/dist/C_Table.base.css +140 -135
  39. package/dist/C_Table.css +109 -122
  40. package/dist/C_Table.d.cts +1 -1
  41. package/dist/C_Table.d.ts +7 -5
  42. package/dist/C_Table2.cjs +3 -3
  43. package/dist/C_Table2.js +3 -3
  44. package/dist/C_TagsView.d.cts +1 -1
  45. package/dist/C_TagsView.d.ts +1 -1
  46. package/dist/C_Theme.d.cts +1 -1
  47. package/dist/C_Theme.d.ts +1 -1
  48. package/dist/C_Timeline.d.cts +1 -1
  49. package/dist/C_Timeline.d.ts +1 -1
  50. package/dist/C_Transfer.d.cts +1 -1
  51. package/dist/C_Transfer.d.ts +1 -1
  52. package/dist/C_Tree.d.cts +1 -1
  53. package/dist/C_Tree.d.ts +7 -5
  54. package/dist/C_Upload.d.cts +1 -1
  55. package/dist/C_Upload.d.ts +1 -1
  56. package/dist/config.cjs +1 -1
  57. package/dist/config.d.cts +1 -4
  58. package/dist/config.d.ts +1 -4
  59. package/dist/config.js +1 -1
  60. package/dist/constants.d.cts +1 -1
  61. package/dist/constants.d.ts +1 -1
  62. package/dist/constants2.d.cts +173 -402
  63. package/dist/constants2.d.ts +173 -402
  64. package/dist/constants3.d.cts +3 -3
  65. package/dist/constants3.d.ts +3 -3
  66. package/dist/constants4.d.cts +402 -173
  67. package/dist/constants4.d.ts +402 -173
  68. package/dist/constants5.d.cts +4 -4
  69. package/dist/constants5.d.ts +4 -4
  70. package/dist/data.cjs +1 -1
  71. package/dist/data.d.cts +1 -2
  72. package/dist/data.d.ts +1 -2
  73. package/dist/data.js +1 -1
  74. package/dist/data2.d.cts +10 -10
  75. package/dist/data2.d.ts +10 -10
  76. package/dist/dateRange.d.cts +3 -2
  77. package/dist/dateRange.d.ts +3 -2
  78. package/dist/helpers.cjs +1 -1
  79. package/dist/helpers.js +1 -1
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.d.cts +34 -34
  82. package/dist/index.d.ts +41 -42
  83. package/dist/index.js +1 -1
  84. package/dist/index.vue.d.cts +4 -4
  85. package/dist/index.vue.d.ts +4 -4
  86. package/dist/index10.vue.d.cts +4 -4
  87. package/dist/index10.vue.d.ts +3 -3
  88. package/dist/index11.vue.d.cts +3 -3
  89. package/dist/index11.vue.d.ts +7 -6
  90. package/dist/index12.vue.d.cts +7 -6
  91. package/dist/index13.vue.d.ts +5 -5
  92. package/dist/index14.vue.d.cts +5 -5
  93. package/dist/index15.vue.d.ts +52 -54
  94. package/dist/index16.vue.d.cts +52 -54
  95. package/dist/index16.vue.d.ts +125 -13
  96. package/dist/index17.vue.d.cts +125 -13
  97. package/dist/index17.vue.d.ts +51 -123
  98. package/dist/index18.vue.d.cts +51 -123
  99. package/dist/index18.vue.d.ts +26 -47
  100. package/dist/index19.vue.d.cts +26 -47
  101. package/dist/index19.vue.d.ts +13 -38
  102. package/dist/index20.vue.d.cts +13 -38
  103. package/dist/index20.vue.d.ts +128 -11
  104. package/dist/index21.vue.d.cts +128 -11
  105. package/dist/index21.vue.d.ts +75 -25
  106. package/dist/index22.vue.d.cts +75 -25
  107. package/dist/index22.vue.d.ts +72 -78
  108. package/dist/index23.vue.d.cts +97 -75
  109. package/dist/index23.vue.d.ts +96 -68
  110. package/dist/index24.vue.d.cts +47 -89
  111. package/dist/index24.vue.d.ts +47 -89
  112. package/dist/index25.vue.d.cts +19 -127
  113. package/dist/index25.vue.d.ts +19 -127
  114. package/dist/index26.vue.d.cts +87 -94
  115. package/dist/index26.vue.d.ts +87 -94
  116. package/dist/index27.vue.d.cts +36 -66
  117. package/dist/index27.vue.d.ts +36 -66
  118. package/dist/index28.vue.d.cts +12 -96
  119. package/dist/index28.vue.d.ts +12 -96
  120. package/dist/index29.vue.d.cts +85 -94
  121. package/dist/index29.vue.d.ts +85 -94
  122. package/dist/index3.vue.d.cts +3 -3
  123. package/dist/index3.vue.d.ts +3 -3
  124. package/dist/index30.vue.d.cts +103 -21
  125. package/dist/index30.vue.d.ts +103 -21
  126. package/dist/index31.vue.d.cts +75 -0
  127. package/dist/index31.vue.d.ts +75 -0
  128. package/dist/index5.vue.d.cts +3 -3
  129. package/dist/index7.vue.d.ts +1 -1
  130. package/dist/index8.vue.d.cts +1 -1
  131. package/dist/index9.vue.d.ts +4 -4
  132. package/dist/mapUtils.d.cts +4 -4
  133. package/dist/mapUtils.d.ts +4 -4
  134. package/dist/options.cjs +1 -0
  135. package/dist/options.d.cts +9 -0
  136. package/dist/options.js +1 -0
  137. package/dist/serializeSearch.cjs +1 -1
  138. package/dist/serializeSearch.js +1 -1
  139. package/dist/style.css +219 -214
  140. package/dist/useCollapsePanel.d.cts +4 -4
  141. package/dist/useCollapsePanel.d.ts +4 -4
  142. package/dist/useComponentLocale.cjs +1 -1
  143. package/dist/useComponentLocale.js +1 -1
  144. package/dist/useCropperCore.d.cts +6 -6
  145. package/dist/useCropperCore.d.ts +6 -6
  146. package/dist/useDynamicFormState.d.cts +12 -970
  147. package/dist/useDynamicFormState.d.ts +12 -960
  148. package/dist/useEdgeInteraction.d.cts +1 -1
  149. package/dist/useEdgeInteraction.d.ts +1 -1
  150. package/dist/useFormConfig.d.cts +5 -5
  151. package/dist/useFormConfig.d.ts +13 -6
  152. package/dist/useFullscreen.d.cts +2 -2
  153. package/dist/useFullscreen.d.ts +2 -2
  154. package/dist/useInfiniteScroll.d.cts +1 -1
  155. package/dist/useInfiniteScroll.d.ts +1 -1
  156. package/dist/useQRCode.d.cts +4 -4
  157. package/dist/useQRCode.d.ts +4 -4
  158. package/dist/useSignatureHistory.d.cts +4 -4
  159. package/dist/useSignatureHistory.d.ts +4 -4
  160. package/dist/useSplitResize.d.cts +7 -7
  161. package/dist/useSplitResize.d.ts +7 -7
  162. package/dist/useTableQuery.d.cts +899 -0
  163. package/dist/useTableQuery.d.ts +889 -0
  164. package/dist/useWorkflowValidation.d.cts +4 -4
  165. package/dist/useWorkflowValidation.d.ts +4 -4
  166. package/dist/verification.d.cts +2 -2
  167. package/dist/verification.d.ts +2 -2
  168. package/docs/guides/data-workflows.md +8 -38
  169. package/docs/guides/search-workflows.md +3 -5
  170. package/docs/guides/table-density.md +9 -1
  171. package/package.json +1 -1
  172. package/dist/dictionary.cjs +0 -1
  173. package/dist/dictionary.d.cts +0 -47
  174. package/dist/dictionary.d.ts +0 -47
  175. package/dist/dictionary.js +0 -1
  176. package/dist/useDictionary.cjs +0 -1
  177. package/dist/useDictionary.js +0 -1
@@ -1,96 +1,54 @@
1
- import { i as TagItem } from "./types2.cjs";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
2
+ import { CSSProperties } from "vue";
4
3
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
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;
11
31
  }
12
- /**
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
- * ```
22
- */
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;
32
+ declare var __VLS_9: {};
33
+ type __VLS_Slots = {} & {
34
+ indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
44
- }
45
- //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
53
- }
54
- type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
65
- };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
84
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
87
- }>, {
88
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
36
+ declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ time: number;
38
+ status: "default" | "success" | "error" | "warning" | "info";
39
+ strokeWidth: number;
40
+ percentage: number | number[];
41
+ isAnimation: boolean;
42
+ indicatorPlacement: "inside" | "outside";
43
+ showIndicator: boolean;
44
+ unit: string;
93
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
47
  declare const _default: typeof __VLS_export;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
95
53
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
54
+ export { _default as t };
@@ -1,96 +1,54 @@
1
- import { s as TagItem } from "./public.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
2
+ import { CSSProperties } from "vue";
4
3
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
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;
11
31
  }
12
- /**
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
- * ```
22
- */
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;
32
+ declare var __VLS_9: {};
33
+ type __VLS_Slots = {} & {
34
+ indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
44
- }
45
- //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
53
- }
54
- type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
65
- };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
84
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
87
- }>, {
88
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
36
+ declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ time: number;
38
+ status: "default" | "success" | "error" | "warning" | "info";
39
+ strokeWidth: number;
40
+ percentage: number | number[];
41
+ isAnimation: boolean;
42
+ indicatorPlacement: "inside" | "outside";
43
+ showIndicator: boolean;
44
+ unit: string;
93
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
47
  declare const _default: typeof __VLS_export;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
95
53
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
54
+ export { _default as t };
@@ -1,136 +1,28 @@
1
- import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.cjs";
1
+ import { n as ComponentLocale } from "./contracts.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
- //#region src/components/C_Login/types.d.ts
5
- interface LoginFeatures {
6
- /** 是否显示密码登录(默认 true) */
7
- passwordLogin?: boolean;
8
- /** 是否显示验证码登录(默认 true) */
9
- captchaLogin?: boolean;
10
- /** 是否显示扫码登录(默认 true) */
11
- qrcodeLogin?: boolean;
12
- /** 是否显示其他账号登录(默认 true) */
13
- socialLogin?: boolean;
14
- /** 是否显示注册账号(默认 true) */
15
- register?: boolean;
16
- /** 是否启用人机验证拼图(默认 true) */
17
- captchaVerify?: boolean;
18
- /** 是否显示记住我(默认 true) */
19
- rememberMe?: boolean;
20
- /** 是否显示忘记密码(默认 true) */
21
- forgotPassword?: boolean;
22
- }
23
- interface SocialProvider {
4
+ //#region src/components/C_SectionNav/types.d.ts
5
+ interface SectionNavItem {
24
6
  key: string;
25
7
  label: string;
26
- /** mdi 图标名称 */
27
- icon: string;
28
- }
29
- interface PasswordFormData {
30
- username: string;
31
- password: string;
32
- captchaToken?: string;
33
- captchaTimestamp?: number;
34
- captchaType?: CaptchaProof['type'];
35
- captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
36
- }
37
- interface CaptchaFormData {
38
- account: string;
39
- code: string;
40
- }
41
- interface RegisterFormData {
42
- phone: string;
43
- code: string;
44
- password: string;
45
- confirmPassword: string;
8
+ errorCount?: number;
9
+ disabled?: boolean;
46
10
  }
47
- interface LoginProps {
48
- /** 标题文字 */
49
- title?: string;
50
- /** 副标题 */
51
- subtitle?: string;
52
- /** Logo icon 名称(mdi:xxx),不传则不显示图标 */
53
- logoIcon?: string;
54
- /** 功能开关配置 */
55
- features?: LoginFeatures;
56
- /** 社交登录提供商列表 */
57
- socialProviders?: SocialProvider[];
58
- /** 扫码登录二维码 URL */
59
- qrcodeUrl?: string;
60
- /** localStorage key(记住我) */
61
- storageKey?: string;
62
- /** 外部传入的 loading 状态 */
63
- loading?: boolean;
64
- /** 宿主扩展字段未就绪时阻止按钮和回车提交 */
65
- submitDisabled?: boolean;
66
- /** 表单默认用户名(Demo / 预填场景) */
67
- defaultUsername?: string;
68
- /** 表单默认密码(Demo / 预填场景) */
69
- defaultPassword?: string;
70
- /** 人机验证的应用服务端校验适配器 */
71
- captchaVerifier?: CaptchaVerifier;
72
- /** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
73
- captchaProvider?: CaptchaProvider;
74
- /** 签发一次性 ALTCHA 挑战的同源服务端地址 */
75
- captchaChallengeUrl?: string;
76
- /** 未配置服务端校验器时是否拒绝登录验证 */
77
- requireCaptchaServerVerification?: boolean;
78
- /** 服务端人机验证超时(毫秒) */
79
- captchaVerificationTimeout?: number;
11
+ interface SectionNavProps {
12
+ items: readonly SectionNavItem[];
13
+ modelValue?: string;
14
+ ariaLabel?: string;
15
+ locale?: ComponentLocale;
80
16
  }
81
- declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
82
- declare const DEFAULT_FEATURES: Required<LoginFeatures>;
83
17
  //#endregion
84
- //#region src/components/C_Login/index.vue.d.ts
85
- declare var __VLS_1: {}, __VLS_54: {
86
- username: string;
87
- loading: boolean;
88
- };
89
- type __VLS_Slots = {} & {
90
- logo?: (props: typeof __VLS_1) => any;
91
- } & {
92
- 'password-fields'?: (props: typeof __VLS_54) => any;
93
- };
94
- declare const __VLS_base: vue.DefineComponent<LoginProps, {
95
- resetCaptcha: () => void;
96
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
97
- submit: (data: PasswordFormData) => any;
98
- "captcha-submit": (data: CaptchaFormData) => any;
99
- "send-code": (account: string) => any;
100
- "social-login": (provider: string) => any;
101
- "forgot-password": () => any;
102
- "qrcode-refresh": () => any;
103
- "register-submit": (data: RegisterFormData) => any;
104
- "register-send-code": (phone: string) => any;
105
- "captcha-visible-change": (visible: boolean) => any;
106
- "username-change": (username: string) => any;
107
- }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
108
- onSubmit?: ((data: PasswordFormData) => any) | undefined;
109
- "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
110
- "onSend-code"?: ((account: string) => any) | undefined;
111
- "onSocial-login"?: ((provider: string) => any) | undefined;
112
- "onForgot-password"?: (() => any) | undefined;
113
- "onQrcode-refresh"?: (() => any) | undefined;
114
- "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
115
- "onRegister-send-code"?: ((phone: string) => any) | undefined;
116
- "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
- "onUsername-change"?: ((username: string) => any) | undefined;
118
- }>, {
119
- title: string;
120
- storageKey: string;
121
- loading: boolean;
122
- defaultUsername: string;
123
- defaultPassword: string;
124
- captchaProvider: CaptchaProvider;
125
- requireCaptchaServerVerification: boolean;
126
- captchaVerificationTimeout: number;
127
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
128
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ //#region src/components/C_SectionNav/index.vue.d.ts
19
+ declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
+ select: (key: string) => any;
21
+ "update:modelValue": (key: string) => any;
22
+ }, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
23
+ onSelect?: ((key: string) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
129
26
  declare const _default: typeof __VLS_export;
130
- type __VLS_WithSlots<T, S> = T & {
131
- new (): {
132
- $slots: S;
133
- };
134
- };
135
27
  //#endregion
136
- 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 };
28
+ export { SectionNavItem as n, SectionNavProps as r, _default as t };
@@ -1,136 +1,28 @@
1
- import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.js";
1
+ import { n as ComponentLocale } from "./contracts.js";
2
2
  import * as vue from "vue";
3
3
 
4
- //#region src/components/C_Login/types.d.ts
5
- interface LoginFeatures {
6
- /** 是否显示密码登录(默认 true) */
7
- passwordLogin?: boolean;
8
- /** 是否显示验证码登录(默认 true) */
9
- captchaLogin?: boolean;
10
- /** 是否显示扫码登录(默认 true) */
11
- qrcodeLogin?: boolean;
12
- /** 是否显示其他账号登录(默认 true) */
13
- socialLogin?: boolean;
14
- /** 是否显示注册账号(默认 true) */
15
- register?: boolean;
16
- /** 是否启用人机验证拼图(默认 true) */
17
- captchaVerify?: boolean;
18
- /** 是否显示记住我(默认 true) */
19
- rememberMe?: boolean;
20
- /** 是否显示忘记密码(默认 true) */
21
- forgotPassword?: boolean;
22
- }
23
- interface SocialProvider {
4
+ //#region src/components/C_SectionNav/types.d.ts
5
+ interface SectionNavItem {
24
6
  key: string;
25
7
  label: string;
26
- /** mdi 图标名称 */
27
- icon: string;
28
- }
29
- interface PasswordFormData {
30
- username: string;
31
- password: string;
32
- captchaToken?: string;
33
- captchaTimestamp?: number;
34
- captchaType?: CaptchaProof['type'];
35
- captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
36
- }
37
- interface CaptchaFormData {
38
- account: string;
39
- code: string;
40
- }
41
- interface RegisterFormData {
42
- phone: string;
43
- code: string;
44
- password: string;
45
- confirmPassword: string;
8
+ errorCount?: number;
9
+ disabled?: boolean;
46
10
  }
47
- interface LoginProps {
48
- /** 标题文字 */
49
- title?: string;
50
- /** 副标题 */
51
- subtitle?: string;
52
- /** Logo icon 名称(mdi:xxx),不传则不显示图标 */
53
- logoIcon?: string;
54
- /** 功能开关配置 */
55
- features?: LoginFeatures;
56
- /** 社交登录提供商列表 */
57
- socialProviders?: SocialProvider[];
58
- /** 扫码登录二维码 URL */
59
- qrcodeUrl?: string;
60
- /** localStorage key(记住我) */
61
- storageKey?: string;
62
- /** 外部传入的 loading 状态 */
63
- loading?: boolean;
64
- /** 宿主扩展字段未就绪时阻止按钮和回车提交 */
65
- submitDisabled?: boolean;
66
- /** 表单默认用户名(Demo / 预填场景) */
67
- defaultUsername?: string;
68
- /** 表单默认密码(Demo / 预填场景) */
69
- defaultPassword?: string;
70
- /** 人机验证的应用服务端校验适配器 */
71
- captchaVerifier?: CaptchaVerifier;
72
- /** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
73
- captchaProvider?: CaptchaProvider;
74
- /** 签发一次性 ALTCHA 挑战的同源服务端地址 */
75
- captchaChallengeUrl?: string;
76
- /** 未配置服务端校验器时是否拒绝登录验证 */
77
- requireCaptchaServerVerification?: boolean;
78
- /** 服务端人机验证超时(毫秒) */
79
- captchaVerificationTimeout?: number;
11
+ interface SectionNavProps {
12
+ items: readonly SectionNavItem[];
13
+ modelValue?: string;
14
+ ariaLabel?: string;
15
+ locale?: ComponentLocale;
80
16
  }
81
- declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
82
- declare const DEFAULT_FEATURES: Required<LoginFeatures>;
83
17
  //#endregion
84
- //#region src/components/C_Login/index.vue.d.ts
85
- declare var __VLS_1: {}, __VLS_54: {
86
- username: string;
87
- loading: boolean;
88
- };
89
- type __VLS_Slots = {} & {
90
- logo?: (props: typeof __VLS_1) => any;
91
- } & {
92
- 'password-fields'?: (props: typeof __VLS_54) => any;
93
- };
94
- declare const __VLS_base: vue.DefineComponent<LoginProps, {
95
- resetCaptcha: () => void;
96
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
97
- submit: (data: PasswordFormData) => any;
98
- "captcha-submit": (data: CaptchaFormData) => any;
99
- "send-code": (account: string) => any;
100
- "social-login": (provider: string) => any;
101
- "forgot-password": () => any;
102
- "qrcode-refresh": () => any;
103
- "register-submit": (data: RegisterFormData) => any;
104
- "register-send-code": (phone: string) => any;
105
- "captcha-visible-change": (visible: boolean) => any;
106
- "username-change": (username: string) => any;
107
- }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
108
- onSubmit?: ((data: PasswordFormData) => any) | undefined;
109
- "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
110
- "onSend-code"?: ((account: string) => any) | undefined;
111
- "onSocial-login"?: ((provider: string) => any) | undefined;
112
- "onForgot-password"?: (() => any) | undefined;
113
- "onQrcode-refresh"?: (() => any) | undefined;
114
- "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
115
- "onRegister-send-code"?: ((phone: string) => any) | undefined;
116
- "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
- "onUsername-change"?: ((username: string) => any) | undefined;
118
- }>, {
119
- title: string;
120
- storageKey: string;
121
- loading: boolean;
122
- defaultUsername: string;
123
- defaultPassword: string;
124
- captchaProvider: CaptchaProvider;
125
- requireCaptchaServerVerification: boolean;
126
- captchaVerificationTimeout: number;
127
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
128
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ //#region src/components/C_SectionNav/index.vue.d.ts
19
+ declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
+ select: (key: string) => any;
21
+ "update:modelValue": (key: string) => any;
22
+ }, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
23
+ onSelect?: ((key: string) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
129
26
  declare const _default: typeof __VLS_export;
130
- type __VLS_WithSlots<T, S> = T & {
131
- new (): {
132
- $slots: S;
133
- };
134
- };
135
27
  //#endregion
136
- 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 };
28
+ export { SectionNavItem as n, SectionNavProps as r, _default as t };