@robot-admin/naive-ui-components 0.26.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.
- package/CHANGELOG.md +8 -0
- package/README.md +7 -11
- package/README_EN.md +6 -8
- package/dist/C_Form.base.css +31 -13
- package/dist/C_Form.css +31 -13
- package/dist/C_Form.d.cts +3 -2
- package/dist/C_Form.d.ts +3 -19
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +2 -17
- package/dist/C_FormSearch.css +79 -79
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +140 -135
- package/dist/C_Table.css +109 -122
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +7 -5
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +7 -5
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.d.ts +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +1 -4
- package/dist/config.d.ts +1 -4
- package/dist/config.js +1 -1
- package/dist/constants2.d.cts +173 -402
- package/dist/constants2.d.ts +173 -402
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +402 -173
- package/dist/constants4.d.ts +402 -173
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +1 -2
- package/dist/data.d.ts +1 -2
- package/dist/data.js +1 -1
- package/dist/data2.d.cts +9 -9
- package/dist/data2.d.ts +9 -9
- package/dist/dateRange.d.cts +3 -2
- package/dist/dateRange.d.ts +3 -2
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +34 -34
- package/dist/index.d.ts +41 -42
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +4 -4
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.cts +4 -4
- package/dist/index11.vue.d.ts +7 -6
- package/dist/index12.vue.d.cts +7 -6
- package/dist/index13.vue.d.ts +5 -5
- package/dist/index14.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +52 -54
- package/dist/index16.vue.d.cts +52 -54
- package/dist/index16.vue.d.ts +125 -13
- package/dist/index17.vue.d.cts +125 -13
- package/dist/index17.vue.d.ts +51 -123
- package/dist/index18.vue.d.cts +51 -123
- package/dist/index18.vue.d.ts +26 -47
- package/dist/index19.vue.d.cts +26 -47
- package/dist/index19.vue.d.ts +13 -38
- package/dist/index2.vue.d.cts +3 -3
- package/dist/index2.vue.d.ts +3 -3
- package/dist/index20.vue.d.cts +13 -38
- package/dist/index20.vue.d.ts +128 -11
- package/dist/index21.vue.d.cts +128 -11
- package/dist/index21.vue.d.ts +75 -25
- package/dist/index22.vue.d.cts +75 -25
- package/dist/index22.vue.d.ts +72 -78
- package/dist/index23.vue.d.cts +97 -75
- package/dist/index23.vue.d.ts +96 -68
- package/dist/index24.vue.d.cts +47 -89
- package/dist/index24.vue.d.ts +47 -89
- package/dist/index25.vue.d.cts +19 -127
- package/dist/index25.vue.d.ts +19 -127
- package/dist/index26.vue.d.cts +87 -94
- package/dist/index26.vue.d.ts +87 -94
- package/dist/index27.vue.d.cts +36 -66
- package/dist/index27.vue.d.ts +36 -66
- package/dist/index28.vue.d.cts +12 -96
- package/dist/index28.vue.d.ts +12 -96
- package/dist/index29.vue.d.cts +85 -94
- package/dist/index29.vue.d.ts +85 -94
- package/dist/index3.vue.d.cts +5 -5
- package/dist/index3.vue.d.ts +5 -5
- package/dist/index30.vue.d.cts +103 -21
- package/dist/index30.vue.d.ts +103 -21
- package/dist/index31.vue.d.cts +75 -0
- package/dist/index31.vue.d.ts +75 -0
- package/dist/index5.vue.d.cts +3 -3
- package/dist/index7.vue.d.ts +1 -1
- package/dist/index8.vue.d.cts +1 -1
- package/dist/index9.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/options.cjs +1 -0
- package/dist/options.d.cts +9 -0
- package/dist/options.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +219 -214
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +3 -3
- package/dist/useCropperCore.d.ts +3 -3
- package/dist/useDynamicFormState.d.cts +11 -969
- package/dist/useDynamicFormState.d.ts +11 -959
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormConfig.d.cts +5 -5
- package/dist/useFormConfig.d.ts +13 -6
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +8 -8
- package/dist/useSplitResize.d.ts +8 -8
- package/dist/useTableQuery.d.cts +899 -0
- package/dist/useTableQuery.d.ts +889 -0
- package/dist/useWorkflowValidation.d.cts +1 -1
- package/dist/useWorkflowValidation.d.ts +1 -1
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/docs/guides/data-workflows.md +8 -48
- package/docs/guides/search-workflows.md +3 -5
- package/docs/guides/table-density.md +9 -1
- package/package.json +1 -1
- package/dist/dictionary.cjs +0 -1
- package/dist/dictionary.d.cts +0 -47
- package/dist/dictionary.d.ts +0 -47
- package/dist/dictionary.js +0 -1
- package/dist/useDictionary.cjs +0 -1
- package/dist/useDictionary.js +0 -1
package/dist/index24.vue.d.cts
CHANGED
|
@@ -1,96 +1,54 @@
|
|
|
1
|
-
import { i as TagItem } from "./types2.cjs";
|
|
2
1
|
import * as vue from "vue";
|
|
3
|
-
import {
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
4
3
|
|
|
5
|
-
//#region src/components/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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 {
|
|
54
|
+
export { _default as t };
|
package/dist/index24.vue.d.ts
CHANGED
|
@@ -1,96 +1,54 @@
|
|
|
1
|
-
import { s as TagItem } from "./public.js";
|
|
2
1
|
import * as vue from "vue";
|
|
3
|
-
import {
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
4
3
|
|
|
5
|
-
//#region src/components/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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 {
|
|
54
|
+
export { _default as t };
|
package/dist/index25.vue.d.cts
CHANGED
|
@@ -1,136 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
interface
|
|
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
|
-
|
|
27
|
-
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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/
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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 {
|
|
28
|
+
export { SectionNavItem as n, SectionNavProps as r, _default as t };
|
package/dist/index25.vue.d.ts
CHANGED
|
@@ -1,136 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.js";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
interface
|
|
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
|
-
|
|
27
|
-
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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/
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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 {
|
|
28
|
+
export { SectionNavItem as n, SectionNavProps as r, _default as t };
|