@robot-admin/naive-ui-components 0.17.6 → 0.19.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 +18 -0
- package/dist/C_AntV.css +10 -10
- package/dist/C_AntV.d.cts +2 -2
- package/dist/C_AntV.d.ts +2 -2
- package/dist/C_AntV2.cjs +1 -1
- package/dist/C_AntV2.js +1 -1
- package/dist/C_Date.cjs +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date.d.cts +18 -2
- package/dist/C_Date.d.ts +18 -2
- package/dist/C_Date.js +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Draggable.css +53 -53
- package/dist/C_Draggable.d.cts +2 -2
- package/dist/C_Draggable.d.ts +2 -2
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +1 -1
- package/dist/C_FormSearch.cjs +1 -1
- package/dist/C_FormSearch.css +52 -52
- package/dist/C_FormSearch.d.cts +18 -2
- package/dist/C_FormSearch.d.ts +18 -2
- package/dist/C_FormSearch.js +1 -1
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +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_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 +144 -155
- package/dist/C_Table.css +144 -155
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +6 -6
- 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_Time.cjs +1 -1
- package/dist/C_Time.css +4 -4
- package/dist/C_Time.d.cts +18 -2
- package/dist/C_Time.d.ts +18 -2
- package/dist/C_Time.js +1 -1
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.css +26 -26
- package/dist/C_Transfer.d.cts +2 -2
- package/dist/C_Transfer.d.ts +2 -2
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +23 -23
- package/dist/C_Tree.d.ts +4 -4
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_VtableGantt.cjs +1 -1
- package/dist/C_VtableGantt.css +31 -31
- package/dist/C_VtableGantt.d.cts +18 -2
- package/dist/C_VtableGantt.d.ts +18 -2
- package/dist/C_VtableGantt.js +1 -1
- package/dist/C_WorkFlow.css +150 -150
- package/dist/C_WorkFlow.d.cts +2 -2
- package/dist/C_WorkFlow.d.ts +2 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/constants3.d.cts +6 -6
- package/dist/constants3.d.ts +6 -6
- 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 +7 -7
- package/dist/data.d.ts +7 -7
- package/dist/dateRange.d.cts +197 -0
- package/dist/dateRange.d.ts +197 -0
- package/dist/formValidation.cjs +1 -1
- package/dist/formValidation.js +1 -1
- package/dist/graphics.cjs +1 -0
- package/dist/graphics.d.cts +837 -0
- package/dist/graphics.d.ts +837 -0
- package/dist/graphics.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +47 -43
- package/dist/index.d.ts +47 -44
- 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 +3 -3
- package/dist/index10.vue.d.ts +53 -68
- package/dist/index11.vue.d.cts +53 -68
- package/dist/index11.vue.d.ts +52 -58
- package/dist/index12.vue.d.cts +52 -58
- package/dist/index12.vue.d.ts +124 -50
- package/dist/index13.vue.d.cts +124 -50
- package/dist/index13.vue.d.ts +51 -123
- package/dist/index14.vue.d.cts +51 -123
- package/dist/index14.vue.d.ts +26 -52
- package/dist/index15.vue.d.cts +26 -52
- package/dist/index15.vue.d.ts +12 -26
- package/dist/index16.vue.d.cts +12 -26
- package/dist/index16.vue.d.ts +129 -13
- package/dist/index17.vue.d.cts +129 -13
- package/dist/index17.vue.d.ts +76 -129
- package/dist/index18.vue.d.cts +76 -129
- package/dist/index18.vue.d.ts +65 -75
- package/dist/index19.vue.d.cts +97 -75
- package/dist/index19.vue.d.ts +94 -62
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +40 -91
- package/dist/index20.vue.d.ts +40 -91
- package/dist/index21.vue.d.cts +89 -40
- package/dist/index21.vue.d.ts +89 -40
- package/dist/index22.vue.d.cts +37 -95
- package/dist/index22.vue.d.ts +37 -95
- package/dist/index23.vue.d.cts +8 -34
- package/dist/index23.vue.d.ts +8 -34
- package/dist/index24.vue.d.cts +86 -9
- package/dist/index24.vue.d.ts +86 -9
- package/dist/index25.vue.d.cts +99 -654
- package/dist/index25.vue.d.ts +99 -654
- package/dist/index26.vue.d.cts +66 -87
- package/dist/index26.vue.d.ts +66 -87
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +3 -3
- package/dist/index6.vue.d.ts +3 -3
- package/dist/index7.vue.d.cts +3 -3
- package/dist/index8.vue.d.ts +4 -4
- package/dist/index9.vue.d.cts +4 -4
- package/dist/index9.vue.d.ts +3 -3
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/presets.d.cts +5 -3
- package/dist/presets.d.ts +5 -3
- package/dist/style.css +499 -510
- package/dist/types.d.ts +51 -0
- package/dist/types2.d.cts +51 -0
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDraggableLayout.d.cts +94 -125
- package/dist/useDraggableLayout.d.ts +94 -125
- package/dist/useDynamicFormState.d.cts +23 -15
- package/dist/useDynamicFormState.d.ts +23 -15
- package/dist/useEdgeInteraction.d.cts +10 -5
- package/dist/useEdgeInteraction.d.ts +10 -5
- package/dist/useFullscreen.d.cts +3 -3
- package/dist/useFullscreen.d.ts +3 -3
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- 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 +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTableQuery.cjs +2 -2
- package/dist/useTableQuery.d.cts +490 -519
- package/dist/useTableQuery.d.ts +490 -519
- package/dist/useTableQuery.js +2 -2
- package/dist/useTimeSelection.d.cts +19 -52
- package/dist/useTimeSelection.d.ts +19 -52
- package/dist/useWorkflowValidation.d.cts +495 -116
- package/dist/useWorkflowValidation.d.ts +495 -116
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +4 -4
- package/docs/guides/usage.en.md +18 -1
- package/docs/guides/usage.md +18 -1
- package/package.json +2 -2
- package/dist/C_VtableGantt2.cjs +0 -1
- package/dist/C_VtableGantt2.js +0 -1
- package/dist/index27.vue.d.cts +0 -111
- package/dist/index27.vue.d.ts +0 -111
- package/dist/index28.vue.d.cts +0 -84
- package/dist/index28.vue.d.ts +0 -84
- package/dist/useSearchState.d.cts +0 -163
- package/dist/useSearchState.d.ts +0 -163
package/dist/index13.vue.d.cts
CHANGED
|
@@ -1,58 +1,132 @@
|
|
|
1
|
-
import { D as FormConfig, X as FormOption, Z as FormRecord, ut as SubmitEventPayload } from "./useDynamicFormState.cjs";
|
|
2
1
|
import * as vue from "vue";
|
|
3
|
-
import { ComputedRef, Ref } from "vue";
|
|
4
2
|
|
|
5
|
-
//#region src/components/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
interface
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
17
|
-
setModel(model: T): void;
|
|
18
|
-
close(): void;
|
|
19
|
-
submit(model?: T): Promise<boolean>;
|
|
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;
|
|
20
14
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
32
47
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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;
|
|
36
91
|
}
|
|
37
92
|
//#endregion
|
|
38
|
-
//#region src/components/
|
|
39
|
-
declare const __VLS_export: <
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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;
|
|
99
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
+
error: (error: unknown) => any;
|
|
101
|
+
start: () => any;
|
|
102
|
+
close: (currentStep: number) => 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
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
108
|
+
onStart?: (() => any) | undefined;
|
|
109
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
110
|
+
onComplete?: (() => any) | undefined;
|
|
111
|
+
onSkip?: ((currentStep: number) => any) | undefined;
|
|
112
|
+
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
113
|
+
}>, {
|
|
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;
|
|
129
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
55
130
|
declare const _default: typeof __VLS_export;
|
|
56
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
57
131
|
//#endregion
|
|
58
|
-
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/index13.vue.d.ts
CHANGED
|
@@ -1,132 +1,60 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { Component } from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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;
|
|
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>;
|
|
91
24
|
}
|
|
92
25
|
//#endregion
|
|
93
|
-
//#region src/components/
|
|
94
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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>;
|
|
99
32
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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;
|
|
33
|
+
error: (type: string, error?: unknown) => any;
|
|
34
|
+
click: (event: KeyboardEvent | MouseEvent) => any;
|
|
35
|
+
load: () => any;
|
|
36
|
+
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
38
|
+
onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
39
|
+
onLoad?: (() => any) | undefined;
|
|
113
40
|
}>, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
41
|
+
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
42
|
+
size: number | string;
|
|
43
|
+
loading: boolean;
|
|
44
|
+
clickable: boolean;
|
|
45
|
+
title: string;
|
|
46
|
+
viewBox: string;
|
|
47
|
+
color: string;
|
|
48
|
+
rotate: number;
|
|
49
|
+
ariaLabel: string;
|
|
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>;
|
|
129
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
130
58
|
declare const _default: typeof __VLS_export;
|
|
131
59
|
//#endregion
|
|
132
|
-
export {
|
|
60
|
+
export { IconProps as n, _default as t };
|
package/dist/index14.vue.d.cts
CHANGED
|
@@ -1,132 +1,60 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { Component } from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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;
|
|
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>;
|
|
91
24
|
}
|
|
92
25
|
//#endregion
|
|
93
|
-
//#region src/components/
|
|
94
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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>;
|
|
99
32
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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;
|
|
33
|
+
error: (type: string, error?: unknown) => any;
|
|
34
|
+
click: (event: KeyboardEvent | MouseEvent) => any;
|
|
35
|
+
load: () => any;
|
|
36
|
+
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
38
|
+
onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
39
|
+
onLoad?: (() => any) | undefined;
|
|
113
40
|
}>, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
41
|
+
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
42
|
+
size: number | string;
|
|
43
|
+
loading: boolean;
|
|
44
|
+
clickable: boolean;
|
|
45
|
+
title: string;
|
|
46
|
+
viewBox: string;
|
|
47
|
+
color: string;
|
|
48
|
+
rotate: number;
|
|
49
|
+
ariaLabel: string;
|
|
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>;
|
|
129
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
130
58
|
declare const _default: typeof __VLS_export;
|
|
131
59
|
//#endregion
|
|
132
|
-
export {
|
|
60
|
+
export { IconProps as n, _default as t };
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -1,60 +1,34 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Component } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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>;
|
|
3
|
+
//#region src/components/C_Language/types.d.ts
|
|
4
|
+
interface LanguageOption {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
iconClass?: string;
|
|
24
8
|
}
|
|
25
9
|
//#endregion
|
|
26
|
-
//#region src/components/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
10
|
+
//#region src/components/C_Language/index.vue.d.ts
|
|
11
|
+
interface LegacyLanguageOption extends LanguageOption {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
}
|
|
16
|
+
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;
|
|
40
27
|
}>, {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
size: number | string;
|
|
45
|
-
svgPath: string;
|
|
46
|
-
viewBox: string;
|
|
47
|
-
alt: string;
|
|
48
|
-
clickable: boolean;
|
|
49
|
-
loading: boolean;
|
|
50
|
-
fallbackIcon: string;
|
|
51
|
-
loadTimeout: number;
|
|
52
|
-
ariaLabel: string;
|
|
53
|
-
customClass: string;
|
|
54
|
-
rotate: number;
|
|
55
|
-
flip: "horizontal" | "vertical" | "both";
|
|
56
|
-
componentProps: Record<string, unknown>;
|
|
28
|
+
modelValue: string;
|
|
29
|
+
options: LegacyLanguageOption[];
|
|
30
|
+
tooltip: string;
|
|
57
31
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
32
|
declare const _default: typeof __VLS_export;
|
|
59
33
|
//#endregion
|
|
60
|
-
export {
|
|
34
|
+
export { LanguageOption as n, _default as t };
|