@robot-admin/naive-ui-components 0.29.3 → 0.30.1
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 +17 -0
- package/README.md +4 -2
- package/README_EN.md +4 -2
- package/dist/C_ActionBar.css +53 -51
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +1 -2
- package/dist/C_AudioPlayer.css +1 -2
- package/dist/C_AvatarGroup.css +1 -2
- package/dist/C_Barcode.css +1 -2
- package/dist/C_Breadcrumb.css +1 -2
- package/dist/C_Captcha.css +1 -2
- package/dist/C_Cascade.css +1 -2
- package/dist/C_Chat.css +1 -2
- package/dist/C_City.css +1 -2
- package/dist/C_Code.css +1 -2
- package/dist/C_CollapsePanel.css +1 -2
- package/dist/C_ContextMenu.css +1 -2
- package/dist/C_Cron.css +1 -2
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +29 -28
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +3 -2
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_Date.css +1 -2
- package/dist/C_Density.css +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Draggable.css +1 -2
- package/dist/C_Editor.css +1 -2
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.css +1 -2
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_FilePreview.css +1 -2
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +1 -2
- package/dist/C_Form.d.cts +2 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.css +52 -49
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +2 -1
- package/dist/C_FormSearch.css +67 -68
- package/dist/C_FormulaEditor.css +1 -2
- package/dist/C_FullCalendar.css +1 -2
- package/dist/C_GlobalSearch.css +1 -2
- package/dist/C_Guide.css +1 -2
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.css +1 -2
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_ImageCropper.css +1 -2
- package/dist/C_Language.css +1 -2
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.css +1 -2
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.css +1 -2
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Map.css +1 -2
- package/dist/C_Markdown.css +1 -2
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.css +1 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_NotificationCenter.css +1 -2
- package/dist/C_OrgChart.css +1 -2
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_PageLoading.css +1 -2
- package/dist/C_Progress.css +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_QRCode.css +1 -2
- package/dist/C_SectionNav.css +1 -2
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Signature.css +1 -2
- package/dist/C_Skeleton.css +1 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_SplitPane.css +1 -2
- package/dist/C_Steps.css +1 -2
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +162 -160
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +161 -158
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +7 -6
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_Tabs.css +1 -2
- package/dist/C_TagsView.css +1 -2
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.css +1 -2
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Time.css +1 -2
- package/dist/C_Timeline.css +1 -2
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.css +1 -2
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.css +1 -2
- package/dist/C_Tree.d.ts +6 -5
- package/dist/C_Upload.css +1 -2
- package/dist/C_VideoPlayer.css +1 -2
- package/dist/C_VtableGantt.css +1 -2
- package/dist/C_WaterFall.css +1 -2
- package/dist/C_WorkFlow.css +1 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.cts +1 -1
- package/dist/constants2.d.ts +1 -1
- package/dist/constants4.d.cts +7 -7
- package/dist/constants4.d.ts +7 -7
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/dateRange.d.cts +3 -0
- package/dist/dateRange.d.ts +3 -0
- package/dist/formField.cjs +1 -0
- package/dist/formField.d.cts +1181 -0
- package/dist/formField.d.ts +1181 -0
- package/dist/formField.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/helpers2.cjs +1 -0
- package/dist/helpers2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +23 -22
- package/dist/index.d.ts +24 -23
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +6 -6
- package/dist/index.vue.d.ts +6 -6
- package/dist/index10.vue.d.cts +3 -3
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +13 -1162
- package/dist/index12.vue.d.cts +13 -1162
- package/dist/index12.vue.d.ts +59 -16
- package/dist/index13.vue.d.cts +59 -16
- package/dist/index13.vue.d.ts +17 -57
- package/dist/index14.vue.d.cts +17 -57
- package/dist/index14.vue.d.ts +55 -18
- package/dist/index15.vue.d.cts +55 -18
- package/dist/index15.vue.d.ts +124 -53
- package/dist/index16.vue.d.cts +124 -53
- package/dist/index16.vue.d.ts +51 -123
- package/dist/index17.vue.d.cts +51 -123
- package/dist/index17.vue.d.ts +25 -52
- package/dist/index18.vue.d.cts +25 -52
- package/dist/index18.vue.d.ts +12 -25
- package/dist/index19.vue.d.cts +12 -25
- package/dist/index19.vue.d.ts +129 -13
- package/dist/index20.vue.d.cts +129 -13
- package/dist/index20.vue.d.ts +76 -129
- package/dist/index21.vue.d.cts +76 -129
- package/dist/index21.vue.d.ts +72 -78
- package/dist/index22.vue.d.cts +97 -75
- package/dist/index22.vue.d.ts +96 -68
- package/dist/index23.vue.d.cts +40 -91
- package/dist/index23.vue.d.ts +40 -91
- package/dist/index24.vue.d.cts +23 -49
- package/dist/index24.vue.d.ts +23 -49
- package/dist/index25.vue.d.cts +96 -21
- package/dist/index25.vue.d.ts +96 -21
- package/dist/index26.vue.d.cts +37 -95
- package/dist/index26.vue.d.ts +37 -95
- package/dist/index27.vue.d.cts +8 -34
- package/dist/index27.vue.d.ts +8 -34
- package/dist/index28.vue.d.cts +86 -9
- package/dist/index28.vue.d.ts +86 -9
- package/dist/index29.vue.d.cts +99 -85
- package/dist/index29.vue.d.ts +99 -85
- package/dist/index3.vue.d.cts +4 -4
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index30.vue.d.cts +59 -94
- package/dist/index30.vue.d.ts +59 -94
- package/dist/index7.vue.d.ts +3 -3
- package/dist/index8.vue.d.cts +3 -3
- package/dist/index9.vue.d.ts +3 -3
- package/dist/mapUtils.d.cts +5 -5
- package/dist/mapUtils.d.ts +5 -5
- package/dist/options.cjs +1 -1
- package/dist/options.js +1 -1
- package/dist/presets.d.cts +5 -2
- package/dist/presets.d.ts +5 -2
- package/dist/rolldown-runtime.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -0
- package/dist/style.css +256 -252
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.cts +10 -10
- package/dist/useCropperCore.d.ts +10 -10
- package/dist/useDynamicFormState.d.cts +3 -65
- package/dist/useDynamicFormState.d.ts +3 -65
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFormRenderer.d.cts +69 -0
- package/dist/useFormRenderer.d.ts +69 -0
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- 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 +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +11 -11
- package/dist/useSplitResize.d.ts +11 -11
- package/dist/useTableQuery.d.cts +8 -7
- package/dist/useTableQuery.d.ts +8 -7
- package/dist/useWorkflowValidation.d.cts +33 -33
- package/dist/useWorkflowValidation.d.ts +33 -33
- package/dist/verification.d.cts +3 -3
- package/dist/verification.d.ts +3 -3
- package/dist/{xlsx.js → xlsx2.js} +1 -1
- package/docs/guides/data-picker.md +22 -3
- package/docs/guides/data-workflows.md +22 -1
- package/docs/guides/runtime-performance.md +10 -0
- package/docs/guides/search-workflows.md +3 -1
- package/docs/guides/usage.en.md +2 -3
- package/docs/guides/usage.md +2 -3
- package/package.json +2 -1
- package/dist/C_DataPicker2.cjs +0 -1
- package/dist/C_DataPicker2.js +0 -1
- package/dist/index31.vue.d.cts +0 -75
- package/dist/index31.vue.d.ts +0 -75
package/dist/index20.vue.d.cts
CHANGED
|
@@ -1,20 +1,136 @@
|
|
|
1
|
+
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
4
|
+
//#region src/components/C_Login/types.d.ts
|
|
5
|
+
interface LoginFeatures {
|
|
6
|
+
/** 是否显示密码登录(默认 true) */
|
|
7
|
+
passwordLogin?: boolean;
|
|
8
|
+
/** 是否显示验证码登录(默认 true) */
|
|
9
|
+
captchaLogin?: boolean;
|
|
10
|
+
/** 是否显示扫码登录(默认 true) */
|
|
11
|
+
qrcodeLogin?: boolean;
|
|
12
|
+
/** 是否显示其他账号登录(默认 true) */
|
|
13
|
+
socialLogin?: boolean;
|
|
14
|
+
/** 是否显示注册账号(默认 true) */
|
|
15
|
+
register?: boolean;
|
|
16
|
+
/** 是否启用人机验证拼图(默认 true) */
|
|
17
|
+
captchaVerify?: boolean;
|
|
18
|
+
/** 是否显示记住我(默认 true) */
|
|
19
|
+
rememberMe?: boolean;
|
|
20
|
+
/** 是否显示忘记密码(默认 true) */
|
|
21
|
+
forgotPassword?: boolean;
|
|
11
22
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
|
|
23
|
+
interface SocialProvider {
|
|
24
|
+
key: string;
|
|
15
25
|
label: string;
|
|
16
|
-
|
|
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;
|
|
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;
|
|
17
127
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
128
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
129
|
declare const _default: typeof __VLS_export;
|
|
130
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
131
|
+
new (): {
|
|
132
|
+
$slots: S;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
19
135
|
//#endregion
|
|
20
|
-
export {
|
|
136
|
+
export { LoginFeatures as a, RegisterFormData as c, DEFAULT_SOCIAL_PROVIDERS as i, SocialProvider as l, CaptchaFormData as n, LoginProps as o, DEFAULT_FEATURES as r, PasswordFormData as s, _default as t };
|
package/dist/index20.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
|
+
disabled: boolean;
|
|
66
|
+
mode: "edit" | "editable" | "preview";
|
|
67
|
+
height: string | number;
|
|
68
|
+
placeholder: string;
|
|
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/index21.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
|
+
disabled: boolean;
|
|
66
|
+
mode: "edit" | "editable" | "preview";
|
|
67
|
+
height: string | number;
|
|
68
|
+
placeholder: string;
|
|
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 };
|