@robot-admin/naive-ui-components 0.31.4 → 0.32.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 +16 -0
- package/README.md +11 -5
- package/README_EN.md +11 -5
- package/dist/C_AutoComplete.cjs +1 -0
- package/dist/C_AutoComplete.css +36 -0
- package/dist/C_AutoComplete.d.cts +4 -0
- package/dist/C_AutoComplete.d.ts +4 -0
- package/dist/C_AutoComplete.js +1 -0
- package/dist/C_AutoComplete2.cjs +1 -0
- package/dist/C_AutoComplete2.js +1 -0
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.css +198 -31
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_Form.base.css +68 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +68 -1
- package/dist/C_Form.d.cts +3 -3
- package/dist/C_Form.d.ts +5 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +3 -1
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +139 -72
- package/dist/C_FormSearch.d.cts +1 -1
- package/dist/C_FormSearch.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.cts +2 -2
- 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_Select.css +32 -1
- package/dist/C_Select.d.cts +4 -2
- package/dist/C_Select.d.ts +4 -2
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +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 +183 -111
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +115 -110
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +11 -8
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +2 -2
- 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.cjs +1 -1
- package/dist/C_Tree.d.ts +10 -7
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/OptionStatus.cjs +1 -0
- package/dist/OptionStatus.js +1 -0
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +7 -7
- package/dist/constants4.d.ts +7 -7
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +2 -1
- package/dist/data.d.ts +2 -1
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/dateRange.d.cts +9 -4
- package/dist/dateRange.d.ts +9 -4
- package/dist/fieldRenderers.cjs +1 -0
- package/dist/fieldRenderers.js +1 -0
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +46 -19
- package/dist/formField.d.ts +46 -19
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +62 -58
- package/dist/index.d.ts +62 -57
- 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 +27 -35
- package/dist/index10.vue.d.ts +37 -80
- package/dist/index11.vue.d.cts +37 -80
- package/dist/index11.vue.d.ts +83 -16
- package/dist/index12.vue.d.cts +83 -16
- package/dist/index12.vue.d.ts +16 -59
- package/dist/index13.vue.d.cts +16 -59
- package/dist/index13.vue.d.ts +57 -17
- package/dist/index14.vue.d.cts +57 -17
- package/dist/index14.vue.d.ts +18 -55
- package/dist/index15.vue.d.cts +18 -55
- package/dist/index15.vue.d.ts +53 -124
- package/dist/index16.vue.d.cts +53 -124
- package/dist/index16.vue.d.ts +123 -51
- package/dist/index17.vue.d.cts +123 -51
- package/dist/index17.vue.d.ts +52 -25
- package/dist/index18.vue.d.cts +52 -25
- package/dist/index18.vue.d.ts +25 -12
- package/dist/index19.vue.d.cts +25 -12
- package/dist/index19.vue.d.ts +13 -129
- package/dist/index2.vue.d.cts +26 -82
- package/dist/index2.vue.d.ts +26 -82
- package/dist/index20.vue.d.cts +13 -129
- package/dist/index20.vue.d.ts +129 -76
- package/dist/index21.vue.d.cts +129 -76
- package/dist/index21.vue.d.ts +78 -72
- package/dist/index22.vue.d.cts +75 -97
- package/dist/index22.vue.d.ts +68 -96
- package/dist/index23.vue.d.cts +91 -40
- package/dist/index23.vue.d.ts +91 -40
- package/dist/index24.vue.d.cts +49 -23
- package/dist/index24.vue.d.ts +49 -23
- package/dist/index25.vue.d.cts +19 -46
- package/dist/index25.vue.d.ts +19 -46
- package/dist/index26.vue.d.cts +25 -98
- package/dist/index26.vue.d.ts +25 -98
- package/dist/index27.vue.d.cts +95 -37
- package/dist/index27.vue.d.ts +95 -37
- package/dist/index28.vue.d.cts +34 -8
- package/dist/index28.vue.d.ts +34 -8
- package/dist/index29.vue.d.cts +9 -86
- package/dist/index29.vue.d.ts +9 -86
- package/dist/index3.vue.d.cts +80 -30
- package/dist/index3.vue.d.ts +80 -30
- package/dist/index30.vue.d.cts +85 -99
- package/dist/index30.vue.d.ts +85 -99
- package/dist/index31.vue.d.cts +94 -63
- package/dist/index31.vue.d.ts +94 -63
- package/dist/index32.vue.d.cts +79 -0
- package/dist/index32.vue.d.ts +79 -0
- package/dist/index4.vue.d.cts +30 -19
- package/dist/index4.vue.d.ts +30 -19
- package/dist/index5.vue.d.cts +19 -128
- package/dist/index5.vue.d.ts +17 -34
- package/dist/index6.vue.d.cts +127 -35
- package/dist/index6.vue.d.ts +30 -22
- package/dist/index7.vue.d.cts +30 -22
- package/dist/index7.vue.d.ts +25 -118
- package/dist/index8.vue.d.cts +25 -118
- package/dist/index8.vue.d.ts +112 -21
- package/dist/index9.vue.d.cts +112 -21
- package/dist/index9.vue.d.ts +27 -35
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/optionSource.d.cts +30 -0
- package/dist/optionSource.d.ts +30 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +349 -213
- package/dist/types2.d.cts +29 -103
- package/dist/types2.d.ts +30 -55
- package/dist/types3.d.cts +104 -55
- package/dist/types3.d.ts +60 -0
- package/dist/types4.d.cts +60 -0
- package/dist/types4.d.ts +42 -0
- package/dist/types5.d.cts +42 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDataResource.cjs +1 -1
- package/dist/useDataResource.js +1 -1
- package/dist/useDynamicFormState.d.cts +15 -1
- package/dist/useDynamicFormState.d.ts +15 -1
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormConfig.d.cts +5 -2
- package/dist/useFormConfig.d.ts +5 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGridWidth.cjs +1 -1
- package/dist/useGridWidth.js +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +5 -5
- package/dist/useSplitResize.d.ts +5 -5
- package/dist/useTableQuery.d.cts +13 -11
- package/dist/useTableQuery.d.ts +13 -11
- package/dist/useWorkflowValidation.d.cts +34 -34
- package/dist/useWorkflowValidation.d.ts +34 -34
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/architecture.md +3 -1
- package/docs/components.en.md +2 -1
- package/docs/components.md +2 -1
- package/docs/engineering.en.md +11 -1
- package/docs/engineering.md +11 -1
- package/docs/guides/data-picker.md +37 -1
- package/docs/guides/remote-options.md +93 -0
- package/docs/guides/search-workflows.md +99 -2
- package/docs/search-selection-coverage.md +59 -0
- package/docs/wl-ui-produce-coverage.md +2 -0
- package/package.json +6 -3
- package/dist/helpers2.cjs +0 -1
- package/dist/helpers2.js +0 -1
package/dist/index17.vue.d.cts
CHANGED
|
@@ -1,60 +1,132 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Component } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
//#region src/components/C_Guide/types.d.ts
|
|
4
|
+
/** 通用功能示意图,不包含宿主业务数据。 */
|
|
5
|
+
type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
|
|
6
|
+
/** 可使用选择器、真实元素或动态解析函数定位目标。 */
|
|
7
|
+
type GuideTarget = string | Element | (() => Element | null | undefined);
|
|
8
|
+
/** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
|
|
9
|
+
interface GuideExpose {
|
|
10
|
+
startGuide: (force?: boolean) => Promise<void>;
|
|
11
|
+
stopGuide: () => void;
|
|
12
|
+
resetCompleted: () => void;
|
|
13
|
+
isCompleted: () => boolean;
|
|
14
|
+
}
|
|
15
|
+
/** 引导步骤定义 */
|
|
16
|
+
interface GuideStep {
|
|
17
|
+
/** 目标元素;不传时可展示居中的欢迎步骤。 */
|
|
18
|
+
element?: GuideTarget;
|
|
19
|
+
/** 弹出层配置 */
|
|
20
|
+
popover: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
|
|
24
|
+
illustration?: GuideIllustration;
|
|
25
|
+
};
|
|
26
|
+
/** 步骤所属分组(用于步骤分组展示) */
|
|
27
|
+
group?: string;
|
|
28
|
+
/** 进入此步骤前的回调 */
|
|
29
|
+
onHighlightStarted?: (element: Element | undefined, step: GuideStep) => void;
|
|
30
|
+
/** 离开此步骤后的回调 */
|
|
31
|
+
onDeselected?: (element: Element | undefined, step: GuideStep) => void;
|
|
32
|
+
/** 是否跳过此步骤的条件 */
|
|
33
|
+
skipIf?: () => boolean;
|
|
34
|
+
}
|
|
35
|
+
/** 引导主题配置 */
|
|
36
|
+
interface GuideTheme {
|
|
37
|
+
/** 弹层背景色 */
|
|
38
|
+
popoverBgColor?: string;
|
|
39
|
+
/** 弹层文字色 */
|
|
40
|
+
popoverTextColor?: string;
|
|
41
|
+
/** 按钮主色 */
|
|
42
|
+
primaryColor?: string;
|
|
43
|
+
/** 遮罩层透明度 */
|
|
44
|
+
overlayOpacity?: number;
|
|
45
|
+
/** 弹层圆角 */
|
|
46
|
+
borderRadius?: string;
|
|
47
|
+
}
|
|
48
|
+
/** 引导持久化配置 */
|
|
49
|
+
interface GuidePersistence {
|
|
50
|
+
/** 是否启用持久化(记住已完成的引导) */
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
/** 持久化 key 前缀 */
|
|
53
|
+
keyPrefix?: string;
|
|
54
|
+
}
|
|
55
|
+
/** C_Guide Props */
|
|
56
|
+
interface GuideProps {
|
|
57
|
+
/** 引导步骤 */
|
|
58
|
+
steps?: GuideStep[];
|
|
59
|
+
/** 完成按钮文字 */
|
|
60
|
+
doneBtnText?: string;
|
|
61
|
+
/** 下一步按钮文字 */
|
|
62
|
+
nextBtnText?: string;
|
|
63
|
+
/** 上一步按钮文字 */
|
|
64
|
+
prevBtnText?: string;
|
|
65
|
+
/** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
|
|
66
|
+
showSkipButton?: boolean;
|
|
67
|
+
/** 跳过按钮文字,默认“跳过引导”。 */
|
|
68
|
+
skipBtnText?: string;
|
|
69
|
+
/** 是否显示进度条 */
|
|
70
|
+
showProgress?: boolean;
|
|
71
|
+
/** 是否启用键盘导航(← → Esc) */
|
|
72
|
+
keyboard?: boolean;
|
|
73
|
+
/** 是否启用动画 */
|
|
74
|
+
animate?: boolean;
|
|
75
|
+
/** 是否允许点击遮罩关闭 */
|
|
76
|
+
allowClose?: boolean;
|
|
77
|
+
/** 自动跳过不存在或不可见的目标,默认 true。 */
|
|
78
|
+
skipMissingElements?: boolean;
|
|
79
|
+
/** 主题配置 */
|
|
80
|
+
theme?: GuideTheme;
|
|
81
|
+
/** 持久化配置 */
|
|
82
|
+
persistence?: GuidePersistence;
|
|
83
|
+
/** 弹层自定义 CSS 类 */
|
|
84
|
+
popoverClass?: string;
|
|
85
|
+
/** 是否显示触发按钮(设为 false 则仅通过 expose 的 startGuide 触发) */
|
|
86
|
+
showTrigger?: boolean;
|
|
87
|
+
/** 触发按钮的 tooltip 文字 */
|
|
88
|
+
triggerTooltip?: string;
|
|
89
|
+
/** 触发按钮图标 */
|
|
90
|
+
triggerIcon?: string;
|
|
24
91
|
}
|
|
25
92
|
//#endregion
|
|
26
|
-
//#region src/components/
|
|
27
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
93
|
+
//#region src/components/C_Guide/index.vue.d.ts
|
|
94
|
+
declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
95
|
+
startGuide: (force?: boolean) => Promise<void>;
|
|
96
|
+
stopGuide: () => void;
|
|
97
|
+
resetCompleted: () => void;
|
|
98
|
+
isCompleted: () => boolean;
|
|
32
99
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
100
|
+
close: (currentStep: number) => any;
|
|
101
|
+
error: (error: unknown) => any;
|
|
102
|
+
start: () => any;
|
|
103
|
+
complete: () => any;
|
|
104
|
+
skip: (currentStep: number) => any;
|
|
105
|
+
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
106
|
+
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
107
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
108
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
109
|
+
onStart?: (() => any) | undefined;
|
|
110
|
+
onComplete?: (() => any) | undefined;
|
|
111
|
+
onSkip?: ((currentStep: number) => any) | undefined;
|
|
112
|
+
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
40
113
|
}>, {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
componentProps: Record<string, unknown>;
|
|
114
|
+
keyboard: boolean;
|
|
115
|
+
steps: GuideStep[];
|
|
116
|
+
doneBtnText: string;
|
|
117
|
+
nextBtnText: string;
|
|
118
|
+
prevBtnText: string;
|
|
119
|
+
showSkipButton: boolean;
|
|
120
|
+
skipBtnText: string;
|
|
121
|
+
showProgress: boolean;
|
|
122
|
+
animate: boolean;
|
|
123
|
+
allowClose: boolean;
|
|
124
|
+
skipMissingElements: boolean;
|
|
125
|
+
popoverClass: string;
|
|
126
|
+
showTrigger: boolean;
|
|
127
|
+
triggerTooltip: string;
|
|
128
|
+
triggerIcon: string;
|
|
57
129
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
130
|
declare const _default: typeof __VLS_export;
|
|
59
131
|
//#endregion
|
|
60
|
-
export {
|
|
132
|
+
export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
|
package/dist/index17.vue.d.ts
CHANGED
|
@@ -1,33 +1,60 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { Component } from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
//#region src/components/C_Icon/types.d.ts
|
|
5
|
+
interface IconProps {
|
|
6
|
+
name?: string | Component;
|
|
7
|
+
type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: number | string;
|
|
10
|
+
svgPath?: string;
|
|
11
|
+
viewBox?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
clickable?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
fallbackIcon?: string;
|
|
16
|
+
/** 图标 API 请求超时(毫秒);超时后显示离线占位或配置的回退图标。 */
|
|
17
|
+
loadTimeout?: number;
|
|
18
|
+
title?: string;
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
customClass?: string;
|
|
21
|
+
rotate?: number;
|
|
22
|
+
flip?: 'horizontal' | 'vertical' | 'both';
|
|
23
|
+
componentProps?: Record<string, unknown>;
|
|
8
24
|
}
|
|
9
25
|
//#endregion
|
|
10
|
-
//#region src/components/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onChange?: ((key: string) => any) | undefined;
|
|
26
|
-
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
|
+
//#region src/components/C_Icon/index.vue.d.ts
|
|
27
|
+
declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
28
|
+
validate: () => void;
|
|
29
|
+
hasError: Readonly<vue.Ref<boolean, boolean>>;
|
|
30
|
+
errorMessage: Readonly<vue.Ref<string, string>>;
|
|
31
|
+
el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
32
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
33
|
+
click: (event: MouseEvent | KeyboardEvent) => any;
|
|
34
|
+
error: (type: string, error?: unknown) => any;
|
|
35
|
+
load: () => any;
|
|
36
|
+
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
+
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
38
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
39
|
+
onLoad?: (() => any) | undefined;
|
|
27
40
|
}>, {
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
title: string;
|
|
42
|
+
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
43
|
+
size: number | string;
|
|
44
|
+
clickable: boolean;
|
|
45
|
+
ariaLabel: string;
|
|
46
|
+
viewBox: string;
|
|
47
|
+
color: string;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
rotate: number;
|
|
50
|
+
svgPath: string;
|
|
51
|
+
alt: string;
|
|
52
|
+
fallbackIcon: string;
|
|
53
|
+
loadTimeout: number;
|
|
54
|
+
customClass: string;
|
|
55
|
+
flip: "horizontal" | "vertical" | "both";
|
|
56
|
+
componentProps: Record<string, unknown>;
|
|
30
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
31
58
|
declare const _default: typeof __VLS_export;
|
|
32
59
|
//#endregion
|
|
33
|
-
export {
|
|
60
|
+
export { IconProps as n, _default as t };
|
package/dist/index18.vue.d.cts
CHANGED
|
@@ -1,33 +1,60 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { Component } from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
//#region src/components/C_Icon/types.d.ts
|
|
5
|
+
interface IconProps {
|
|
6
|
+
name?: string | Component;
|
|
7
|
+
type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: number | string;
|
|
10
|
+
svgPath?: string;
|
|
11
|
+
viewBox?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
clickable?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
fallbackIcon?: string;
|
|
16
|
+
/** 图标 API 请求超时(毫秒);超时后显示离线占位或配置的回退图标。 */
|
|
17
|
+
loadTimeout?: number;
|
|
18
|
+
title?: string;
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
customClass?: string;
|
|
21
|
+
rotate?: number;
|
|
22
|
+
flip?: 'horizontal' | 'vertical' | 'both';
|
|
23
|
+
componentProps?: Record<string, unknown>;
|
|
8
24
|
}
|
|
9
25
|
//#endregion
|
|
10
|
-
//#region src/components/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onChange?: ((key: string) => any) | undefined;
|
|
26
|
-
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
|
+
//#region src/components/C_Icon/index.vue.d.ts
|
|
27
|
+
declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
28
|
+
validate: () => void;
|
|
29
|
+
hasError: Readonly<vue.Ref<boolean, boolean>>;
|
|
30
|
+
errorMessage: Readonly<vue.Ref<string, string>>;
|
|
31
|
+
el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
32
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
33
|
+
click: (event: MouseEvent | KeyboardEvent) => any;
|
|
34
|
+
error: (type: string, error?: unknown) => any;
|
|
35
|
+
load: () => any;
|
|
36
|
+
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
+
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
38
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
39
|
+
onLoad?: (() => any) | undefined;
|
|
27
40
|
}>, {
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
title: string;
|
|
42
|
+
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
43
|
+
size: number | string;
|
|
44
|
+
clickable: boolean;
|
|
45
|
+
ariaLabel: string;
|
|
46
|
+
viewBox: string;
|
|
47
|
+
color: string;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
rotate: number;
|
|
50
|
+
svgPath: string;
|
|
51
|
+
alt: string;
|
|
52
|
+
fallbackIcon: string;
|
|
53
|
+
loadTimeout: number;
|
|
54
|
+
customClass: string;
|
|
55
|
+
flip: "horizontal" | "vertical" | "both";
|
|
56
|
+
componentProps: Record<string, unknown>;
|
|
30
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
31
58
|
declare const _default: typeof __VLS_export;
|
|
32
59
|
//#endregion
|
|
33
|
-
export {
|
|
60
|
+
export { IconProps as n, _default as t };
|
package/dist/index18.vue.d.ts
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label?: string;
|
|
9
|
-
/** 默认使用 Naive UI 主题主色。 */
|
|
10
|
-
color?: string;
|
|
3
|
+
//#region src/components/C_Language/types.d.ts
|
|
4
|
+
interface LanguageOption {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
iconClass?: string;
|
|
11
8
|
}
|
|
12
9
|
//#endregion
|
|
13
|
-
//#region src/components/
|
|
14
|
-
|
|
10
|
+
//#region src/components/C_Language/index.vue.d.ts
|
|
11
|
+
interface LegacyLanguageOption extends LanguageOption {
|
|
12
|
+
key: string;
|
|
15
13
|
label: string;
|
|
16
|
-
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
modelValue?: string;
|
|
18
|
+
options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (key: string) => any;
|
|
23
|
+
change: (key: string) => any;
|
|
24
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
|
+
onChange?: ((key: string) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
modelValue: string;
|
|
29
|
+
options: LegacyLanguageOption[];
|
|
17
30
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
31
|
declare const _default: typeof __VLS_export;
|
|
19
32
|
//#endregion
|
|
20
|
-
export {
|
|
33
|
+
export { LanguageOption as n, _default as t };
|
package/dist/index19.vue.d.cts
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label?: string;
|
|
9
|
-
/** 默认使用 Naive UI 主题主色。 */
|
|
10
|
-
color?: string;
|
|
3
|
+
//#region src/components/C_Language/types.d.ts
|
|
4
|
+
interface LanguageOption {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
iconClass?: string;
|
|
11
8
|
}
|
|
12
9
|
//#endregion
|
|
13
|
-
//#region src/components/
|
|
14
|
-
|
|
10
|
+
//#region src/components/C_Language/index.vue.d.ts
|
|
11
|
+
interface LegacyLanguageOption extends LanguageOption {
|
|
12
|
+
key: string;
|
|
15
13
|
label: string;
|
|
16
|
-
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
modelValue?: string;
|
|
18
|
+
options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (key: string) => any;
|
|
23
|
+
change: (key: string) => any;
|
|
24
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
|
+
onChange?: ((key: string) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
modelValue: string;
|
|
29
|
+
options: LegacyLanguageOption[];
|
|
17
30
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
31
|
declare const _default: typeof __VLS_export;
|
|
19
32
|
//#endregion
|
|
20
|
-
export {
|
|
33
|
+
export { LanguageOption as n, _default as t };
|
package/dist/index19.vue.d.ts
CHANGED
|
@@ -1,136 +1,20 @@
|
|
|
1
|
-
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.js";
|
|
2
1
|
import * as vue from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
interface
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
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;
|
|
3
|
+
//#region src/components/C_Loading/types.d.ts
|
|
4
|
+
interface LoadingProps {
|
|
5
|
+
/** SVG 尺寸,单位 px,默认 48。 */
|
|
6
|
+
size?: number;
|
|
7
|
+
/** 可选可见提示;不传时仍提供可访问的加载说明。 */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** 默认使用 Naive UI 主题主色。 */
|
|
10
|
+
color?: string;
|
|
22
11
|
}
|
|
23
|
-
interface SocialProvider {
|
|
24
|
-
key: string;
|
|
25
|
-
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;
|
|
46
|
-
}
|
|
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;
|
|
80
|
-
}
|
|
81
|
-
declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
|
|
82
|
-
declare const DEFAULT_FEATURES: Required<LoginFeatures>;
|
|
83
12
|
//#endregion
|
|
84
|
-
//#region src/components/
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
loading: boolean;
|
|
120
|
-
title: string;
|
|
121
|
-
storageKey: string;
|
|
122
|
-
defaultUsername: string;
|
|
123
|
-
defaultPassword: string;
|
|
124
|
-
captchaProvider: CaptchaProvider;
|
|
125
|
-
requireCaptchaServerVerification: boolean;
|
|
126
|
-
captchaVerificationTimeout: number;
|
|
13
|
+
//#region src/components/C_Loading/index.vue.d.ts
|
|
14
|
+
declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
|
|
15
|
+
size: number;
|
|
16
|
+
label: string;
|
|
127
17
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
128
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
129
18
|
declare const _default: typeof __VLS_export;
|
|
130
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
131
|
-
new (): {
|
|
132
|
-
$slots: S;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
19
|
//#endregion
|
|
136
|
-
export {
|
|
20
|
+
export { LoadingProps as n, _default as t };
|