@robot-admin/naive-ui-components 0.17.6 → 0.18.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 +10 -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_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 +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +8 -8
- package/dist/constants4.d.ts +8 -8
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +10 -10
- package/dist/data.d.ts +10 -10
- package/dist/dateRange.d.cts +197 -0
- package/dist/dateRange.d.ts +197 -0
- 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/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 +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +4 -4
- package/dist/index10.vue.d.ts +54 -69
- package/dist/index11.vue.d.cts +54 -69
- 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 +3 -3
- package/dist/index3.vue.d.ts +3 -3
- 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 +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- 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 +3 -3
- package/dist/useCalendarEvents.d.ts +3 -3
- package/dist/useCollapsePanel.d.cts +6 -6
- package/dist/useCollapsePanel.d.ts +6 -6
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDraggableLayout.d.cts +94 -125
- package/dist/useDraggableLayout.d.ts +94 -125
- package/dist/useDynamicFormState.d.cts +21 -8
- package/dist/useDynamicFormState.d.ts +21 -8
- 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 +7 -7
- package/dist/useSignatureHistory.d.ts +7 -7
- package/dist/useSplitResize.d.cts +1 -1
- package/dist/useSplitResize.d.ts +1 -1
- package/dist/useTableQuery.cjs +2 -2
- package/dist/useTableQuery.d.cts +473 -463
- package/dist/useTableQuery.d.ts +473 -463
- 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 +534 -155
- package/dist/useWorkflowValidation.d.ts +534 -155
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/usage.en.md +15 -0
- package/docs/guides/usage.md +15 -0
- package/package.json +1 -1
- 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/index17.vue.d.ts
CHANGED
|
@@ -1,136 +1,83 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
//#endregion
|
|
84
|
-
//#region src/components/C_Login/index.vue.d.ts
|
|
85
|
-
declare var __VLS_1: {}, __VLS_54: {
|
|
86
|
-
username: string;
|
|
87
|
-
loading: boolean;
|
|
3
|
+
//#region src/components/C_Markdown/index.vue.d.ts
|
|
4
|
+
type ToolbarName = string | number;
|
|
5
|
+
type InsertImageFunction = (config: {
|
|
6
|
+
url: string;
|
|
7
|
+
desc?: string;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
}) => void;
|
|
11
|
+
interface Props {
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
/** SSR 或同页多实例时建议显式传入稳定 ID */
|
|
14
|
+
editorId?: string;
|
|
15
|
+
height?: string | number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
mode?: 'edit' | 'editable' | 'preview';
|
|
19
|
+
toolbar?: object | ToolbarName[];
|
|
20
|
+
uploadImageConfig?: {
|
|
21
|
+
accept?: string;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
[key: string]: unknown;
|
|
88
24
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
25
|
+
tocNavPosition?: 'left' | 'right';
|
|
26
|
+
defaultFullscreen?: boolean;
|
|
27
|
+
autofocus?: boolean;
|
|
28
|
+
includeLevel?: number[];
|
|
29
|
+
leftToolbar?: string;
|
|
30
|
+
rightToolbar?: string;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
showWordCount?: boolean;
|
|
33
|
+
autoSave?: boolean;
|
|
34
|
+
autoSaveInterval?: number;
|
|
35
|
+
/** 是否为暗色主题(外部传入) */
|
|
36
|
+
isDark?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
39
|
+
focus: () => void;
|
|
40
|
+
getHtml: () => string;
|
|
41
|
+
insertText: (text: string) => void;
|
|
42
|
+
wordCount: vue.ComputedRef<number>;
|
|
43
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
44
|
+
"update:modelValue": (value: string) => any;
|
|
45
|
+
change: (text: string, html: string) => any;
|
|
46
|
+
save: (text: string, html: string) => any;
|
|
47
|
+
"upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
|
|
48
|
+
"fullscreen-change": (isFullscreen: boolean) => any;
|
|
49
|
+
"copy-code-success": (text: string) => any;
|
|
50
|
+
"word-count-change": (count: number) => any;
|
|
51
|
+
"auto-save": (text: string) => any;
|
|
52
|
+
"max-length-exceeded": (currentLength: number, maxLength: number) => any;
|
|
53
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
|
+
onChange?: ((text: string, html: string) => any) | undefined;
|
|
56
|
+
onSave?: ((text: string, html: string) => any) | undefined;
|
|
57
|
+
"onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
|
|
58
|
+
"onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
|
|
59
|
+
"onCopy-code-success"?: ((text: string) => any) | undefined;
|
|
60
|
+
"onWord-count-change"?: ((count: number) => any) | undefined;
|
|
61
|
+
"onAuto-save"?: ((text: string) => any) | undefined;
|
|
62
|
+
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
118
63
|
}>, {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
64
|
+
modelValue: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
height: string | number;
|
|
68
|
+
mode: "edit" | "editable" | "preview";
|
|
69
|
+
tocNavPosition: "left" | "right";
|
|
70
|
+
defaultFullscreen: boolean;
|
|
71
|
+
autofocus: boolean;
|
|
72
|
+
includeLevel: number[];
|
|
73
|
+
leftToolbar: string;
|
|
74
|
+
rightToolbar: string;
|
|
75
|
+
maxLength: number;
|
|
76
|
+
showWordCount: boolean;
|
|
77
|
+
autoSave: boolean;
|
|
78
|
+
autoSaveInterval: number;
|
|
79
|
+
isDark: boolean;
|
|
127
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
128
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
129
81
|
declare const _default: typeof __VLS_export;
|
|
130
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
131
|
-
new (): {
|
|
132
|
-
$slots: S;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
82
|
//#endregion
|
|
136
|
-
export {
|
|
83
|
+
export { _default as t };
|
package/dist/index18.vue.d.cts
CHANGED
|
@@ -1,136 +1,83 @@
|
|
|
1
|
-
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.cjs";
|
|
2
1
|
import * as vue 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
|
-
|
|
24
|
-
|
|
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
|
-
//#endregion
|
|
84
|
-
//#region src/components/C_Login/index.vue.d.ts
|
|
85
|
-
declare var __VLS_1: {}, __VLS_54: {
|
|
86
|
-
username: string;
|
|
87
|
-
loading: boolean;
|
|
3
|
+
//#region src/components/C_Markdown/index.vue.d.ts
|
|
4
|
+
type ToolbarName = string | number;
|
|
5
|
+
type InsertImageFunction = (config: {
|
|
6
|
+
url: string;
|
|
7
|
+
desc?: string;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
}) => void;
|
|
11
|
+
interface Props {
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
/** SSR 或同页多实例时建议显式传入稳定 ID */
|
|
14
|
+
editorId?: string;
|
|
15
|
+
height?: string | number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
mode?: 'edit' | 'editable' | 'preview';
|
|
19
|
+
toolbar?: object | ToolbarName[];
|
|
20
|
+
uploadImageConfig?: {
|
|
21
|
+
accept?: string;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
[key: string]: unknown;
|
|
88
24
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
25
|
+
tocNavPosition?: 'left' | 'right';
|
|
26
|
+
defaultFullscreen?: boolean;
|
|
27
|
+
autofocus?: boolean;
|
|
28
|
+
includeLevel?: number[];
|
|
29
|
+
leftToolbar?: string;
|
|
30
|
+
rightToolbar?: string;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
showWordCount?: boolean;
|
|
33
|
+
autoSave?: boolean;
|
|
34
|
+
autoSaveInterval?: number;
|
|
35
|
+
/** 是否为暗色主题(外部传入) */
|
|
36
|
+
isDark?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
39
|
+
focus: () => void;
|
|
40
|
+
getHtml: () => string;
|
|
41
|
+
insertText: (text: string) => void;
|
|
42
|
+
wordCount: vue.ComputedRef<number>;
|
|
43
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
44
|
+
"update:modelValue": (value: string) => any;
|
|
45
|
+
change: (text: string, html: string) => any;
|
|
46
|
+
save: (text: string, html: string) => any;
|
|
47
|
+
"upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
|
|
48
|
+
"fullscreen-change": (isFullscreen: boolean) => any;
|
|
49
|
+
"copy-code-success": (text: string) => any;
|
|
50
|
+
"word-count-change": (count: number) => any;
|
|
51
|
+
"auto-save": (text: string) => any;
|
|
52
|
+
"max-length-exceeded": (currentLength: number, maxLength: number) => any;
|
|
53
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
|
+
onChange?: ((text: string, html: string) => any) | undefined;
|
|
56
|
+
onSave?: ((text: string, html: string) => any) | undefined;
|
|
57
|
+
"onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
|
|
58
|
+
"onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
|
|
59
|
+
"onCopy-code-success"?: ((text: string) => any) | undefined;
|
|
60
|
+
"onWord-count-change"?: ((count: number) => any) | undefined;
|
|
61
|
+
"onAuto-save"?: ((text: string) => any) | undefined;
|
|
62
|
+
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
118
63
|
}>, {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
64
|
+
modelValue: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
height: string | number;
|
|
68
|
+
mode: "edit" | "editable" | "preview";
|
|
69
|
+
tocNavPosition: "left" | "right";
|
|
70
|
+
defaultFullscreen: boolean;
|
|
71
|
+
autofocus: boolean;
|
|
72
|
+
includeLevel: number[];
|
|
73
|
+
leftToolbar: string;
|
|
74
|
+
rightToolbar: string;
|
|
75
|
+
maxLength: number;
|
|
76
|
+
showWordCount: boolean;
|
|
77
|
+
autoSave: boolean;
|
|
78
|
+
autoSaveInterval: number;
|
|
79
|
+
isDark: boolean;
|
|
127
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
128
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
129
81
|
declare const _default: typeof __VLS_export;
|
|
130
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
131
|
-
new (): {
|
|
132
|
-
$slots: S;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
82
|
//#endregion
|
|
136
|
-
export {
|
|
83
|
+
export { _default as t };
|
package/dist/index18.vue.d.ts
CHANGED
|
@@ -1,83 +1,73 @@
|
|
|
1
|
+
import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
|
|
1
2
|
import * as vue from "vue";
|
|
3
|
+
import { Ref } from "vue";
|
|
4
|
+
import * as naive_ui0 from "naive-ui";
|
|
5
|
+
import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
|
|
2
6
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
modelValue?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
tocNavPosition?: 'left' | 'right';
|
|
26
|
-
defaultFullscreen?: boolean;
|
|
27
|
-
autofocus?: boolean;
|
|
28
|
-
includeLevel?: number[];
|
|
29
|
-
leftToolbar?: string;
|
|
30
|
-
rightToolbar?: string;
|
|
31
|
-
maxLength?: number;
|
|
32
|
-
showWordCount?: boolean;
|
|
33
|
-
autoSave?: boolean;
|
|
34
|
-
autoSaveInterval?: number;
|
|
35
|
-
/** 是否为暗色主题(外部传入) */
|
|
36
|
-
isDark?: boolean;
|
|
7
|
+
//#region src/components/C_Menu/types.d.ts
|
|
8
|
+
type MenuValue = string | null;
|
|
9
|
+
interface MenuProps {
|
|
10
|
+
options?: MenuOption[];
|
|
11
|
+
routes?: RouteItem[];
|
|
12
|
+
adapterConfig?: MenuAdapterConfig;
|
|
13
|
+
labelFormatter?: (label: string) => string;
|
|
14
|
+
/** @deprecated Use modelValue. */
|
|
15
|
+
value?: MenuValue;
|
|
16
|
+
modelValue?: MenuValue;
|
|
17
|
+
expandedKeys?: string[];
|
|
18
|
+
defaultExpandedKeys?: string[];
|
|
19
|
+
mode?: 'vertical' | 'horizontal';
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
collapsedWidth?: number;
|
|
22
|
+
collapsedIconSize?: number;
|
|
23
|
+
inverted?: boolean;
|
|
24
|
+
themeOverrides?: Record<string, any>;
|
|
25
|
+
indent?: number;
|
|
26
|
+
rootIndent?: number;
|
|
27
|
+
dropdownProps?: DropdownProps;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
interface MenuEmits {
|
|
30
|
+
select: [key: string];
|
|
31
|
+
/** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
|
|
32
|
+
intent: [key: string];
|
|
33
|
+
'update:modelValue': [key: MenuValue];
|
|
34
|
+
/** @deprecated Use update:modelValue. */
|
|
35
|
+
'update:value': [key: MenuValue];
|
|
36
|
+
'update:expandedKeys': [keys: string[]];
|
|
37
|
+
}
|
|
38
|
+
interface MenuExpose {
|
|
39
|
+
showOption: (key: string) => void;
|
|
40
|
+
/** Vue 公开实例会解包顶层 Ref。 */
|
|
41
|
+
menuRef: MenuInst | null;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/C_Menu/index.vue.d.ts
|
|
45
|
+
declare const __VLS_export: vue.DefineComponent<MenuProps, {
|
|
46
|
+
showOption: (key: string) => void | undefined;
|
|
47
|
+
menuRef: Ref<MenuInst | null, MenuInst | null>;
|
|
43
48
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
44
|
-
"update:modelValue": (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"onUpdate:
|
|
55
|
-
onChange?: ((text: string, html: string) => any) | undefined;
|
|
56
|
-
onSave?: ((text: string, html: string) => any) | undefined;
|
|
57
|
-
"onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
|
|
58
|
-
"onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
|
|
59
|
-
"onCopy-code-success"?: ((text: string) => any) | undefined;
|
|
60
|
-
"onWord-count-change"?: ((count: number) => any) | undefined;
|
|
61
|
-
"onAuto-save"?: ((text: string) => any) | undefined;
|
|
62
|
-
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
49
|
+
"update:modelValue": (key: MenuValue) => any;
|
|
50
|
+
select: (key: string) => any;
|
|
51
|
+
intent: (key: string) => any;
|
|
52
|
+
"update:value": (key: MenuValue) => any;
|
|
53
|
+
"update:expandedKeys": (keys: string[]) => any;
|
|
54
|
+
}, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
|
|
55
|
+
"onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
|
|
56
|
+
onSelect?: ((key: string) => any) | undefined;
|
|
57
|
+
onIntent?: ((key: string) => any) | undefined;
|
|
58
|
+
"onUpdate:value"?: ((key: MenuValue) => any) | undefined;
|
|
59
|
+
"onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
|
|
63
60
|
}>, {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
leftToolbar: string;
|
|
74
|
-
rightToolbar: string;
|
|
75
|
-
maxLength: number;
|
|
76
|
-
showWordCount: boolean;
|
|
77
|
-
autoSave: boolean;
|
|
78
|
-
autoSaveInterval: number;
|
|
79
|
-
isDark: boolean;
|
|
61
|
+
mode: "vertical" | "horizontal";
|
|
62
|
+
defaultExpandedKeys: string[];
|
|
63
|
+
collapsed: boolean;
|
|
64
|
+
collapsedWidth: number;
|
|
65
|
+
collapsedIconSize: number;
|
|
66
|
+
inverted: boolean;
|
|
67
|
+
indent: number;
|
|
68
|
+
rootIndent: number;
|
|
69
|
+
dropdownProps: naive_ui0.DropdownProps;
|
|
80
70
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
81
71
|
declare const _default: typeof __VLS_export;
|
|
82
72
|
//#endregion
|
|
83
|
-
export { _default as t };
|
|
73
|
+
export { MenuValue as a, MenuProps as i, MenuEmits as n, MenuExpose as r, _default as t };
|