@jctrans-materials/comps-vue3 1.0.41-beta.8 → 1.0.41
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/dist/components/ApplyDataDialog/constant.d.ts +13 -0
- package/dist/components/ChangePasswordDialog/index.d.ts +70 -0
- package/dist/components/ChineseCompanySearch/index.d.ts +1 -1
- package/dist/components/CodeInput/composables/useCountdown.d.ts +6 -0
- package/dist/components/CodeInput/constant.d.ts +2 -0
- package/dist/components/ForgotPasswordDialog/index.d.ts +42 -0
- package/dist/components/{GlobalModal.d.ts → GlobalModal/index.d.ts} +2 -8
- package/dist/components/JcImg/index.d.ts +69 -0
- package/dist/components/JcLoginDialog/JcLoginDialog.composables.test.d.ts +1 -0
- package/dist/components/JcLoginDialog/JcLoginDialog.test.d.ts +1 -0
- package/dist/components/JcLoginDialog/RegisterForm.test.d.ts +1 -0
- package/dist/components/JcLoginDialog/cmps/AuthBottomTip.d.ts +19 -0
- package/dist/components/JcLoginDialog/cmps/AuthBottomTip.test.d.ts +1 -0
- package/dist/components/JcLoginDialog/cmps/ThirdRegisterForm.test.d.ts +1 -0
- package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +3 -3
- package/dist/components/JcLoginDialog/composables/useLoginForm.d.ts +83 -0
- package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +3 -1
- package/dist/components/JcLoginDialog/constant.d.ts +33 -0
- package/dist/components/JcLoginDialog/index.d.ts +89 -0
- package/dist/components/JcLoginDialog.bak/cmps/ApplyJoinBtn.d.ts +33 -0
- package/dist/components/JcLoginDialog.bak/cmps/FooterBox.d.ts +27 -0
- package/dist/components/JcLoginDialog.bak/cmps/ForgetPassword.d.ts +10 -0
- package/dist/components/JcLoginDialog.bak/cmps/ThirdBindLogin.d.ts +23 -0
- package/dist/components/JcLoginDialog.bak/cmps/WechatBindLogin.d.ts +19 -0
- package/dist/components/JcLoginDialog.bak/cmps/WechatChooseType.d.ts +21 -0
- package/dist/components/JcLoginDialog.bak/cmps/WechatLogin.d.ts +45 -0
- package/dist/components/JcLoginDialog.bak/composables/useAuthLogin.d.ts +36 -0
- package/dist/components/JcLoginDialog.bak/composables/useForgetPassword.d.ts +35 -0
- package/dist/components/JcLoginDialog.bak/composables/useThirdPartyLogin.d.ts +81 -0
- package/dist/components/JcLoginDialog.bak/constant.d.ts +77 -0
- package/dist/components/JcSearch/index.d.ts +3 -3
- package/dist/index.cjs.js +4 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +14068 -6211
- package/package.json +4 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const typeOptions: readonly [{
|
|
2
|
+
readonly typeCn: "城市";
|
|
3
|
+
readonly typeEn: "City";
|
|
4
|
+
readonly type: "City";
|
|
5
|
+
}, {
|
|
6
|
+
readonly typeCn: "海运港口";
|
|
7
|
+
readonly typeEn: "Port";
|
|
8
|
+
readonly type: "Seaport";
|
|
9
|
+
}, {
|
|
10
|
+
readonly typeCn: "机场";
|
|
11
|
+
readonly typeEn: "Airport";
|
|
12
|
+
readonly type: "Airport";
|
|
13
|
+
}];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
visible?: boolean;
|
|
3
|
+
isEn?: boolean;
|
|
4
|
+
/** 标题,不传时根据 showPasswordTab 自动推断中英文 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 是否显示密码验证 tab,关闭后仅展示 Email + Mobile */
|
|
7
|
+
showPasswordTab?: boolean;
|
|
8
|
+
userAccount?: {
|
|
9
|
+
email?: string;
|
|
10
|
+
mobile?: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
isEn: boolean;
|
|
15
|
+
title: string;
|
|
16
|
+
showPasswordTab: boolean;
|
|
17
|
+
userAccount: () => {};
|
|
18
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
close: () => void;
|
|
20
|
+
"update:visible": (value: boolean) => void;
|
|
21
|
+
success: () => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
visible?: boolean;
|
|
24
|
+
isEn?: boolean;
|
|
25
|
+
/** 标题,不传时根据 showPasswordTab 自动推断中英文 */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** 是否显示密码验证 tab,关闭后仅展示 Email + Mobile */
|
|
28
|
+
showPasswordTab?: boolean;
|
|
29
|
+
userAccount?: {
|
|
30
|
+
email?: string;
|
|
31
|
+
mobile?: string;
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
34
|
+
visible: boolean;
|
|
35
|
+
isEn: boolean;
|
|
36
|
+
title: string;
|
|
37
|
+
showPasswordTab: boolean;
|
|
38
|
+
userAccount: () => {};
|
|
39
|
+
}>>> & Readonly<{
|
|
40
|
+
onClose?: (() => any) | undefined;
|
|
41
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onSuccess?: (() => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
title: string;
|
|
45
|
+
isEn: boolean;
|
|
46
|
+
visible: boolean;
|
|
47
|
+
showPasswordTab: boolean;
|
|
48
|
+
userAccount: {
|
|
49
|
+
email?: string;
|
|
50
|
+
mobile?: string;
|
|
51
|
+
};
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: import('vue').PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
}> : P[K];
|
|
67
|
+
};
|
|
68
|
+
type __VLS_Prettify<T> = {
|
|
69
|
+
[K in keyof T]: T[K];
|
|
70
|
+
} & {};
|
|
@@ -54,12 +54,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
54
54
|
"onUpdate:kqInfo"?: ((val: Record<string, any>) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
disabled: boolean;
|
|
57
|
-
city: Record<string, any>;
|
|
58
57
|
lang: string;
|
|
59
58
|
companyName: string;
|
|
60
59
|
useKq: boolean;
|
|
61
60
|
kqCode: string | number;
|
|
62
61
|
kqInfo: Record<string, any>;
|
|
62
|
+
city: Record<string, any>;
|
|
63
63
|
defaultFirstOption: boolean;
|
|
64
64
|
allowCreate: boolean;
|
|
65
65
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
visible?: boolean;
|
|
3
|
+
isEn?: boolean;
|
|
4
|
+
}>, {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
isEn: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => void;
|
|
9
|
+
"update:visible": (args_0: boolean) => void;
|
|
10
|
+
success: () => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
isEn?: boolean;
|
|
14
|
+
}>, {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
isEn: boolean;
|
|
17
|
+
}>>> & Readonly<{
|
|
18
|
+
onClose?: (() => any) | undefined;
|
|
19
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
20
|
+
onSuccess?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
isEn: boolean;
|
|
23
|
+
visible: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
modelValue:
|
|
3
|
-
required: true;
|
|
4
|
-
type: import('vue').PropType<boolean>;
|
|
5
|
-
};
|
|
2
|
+
modelValue: import('vue').PropType<boolean>;
|
|
6
3
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
modelValue:
|
|
8
|
-
required: true;
|
|
9
|
-
type: import('vue').PropType<boolean>;
|
|
10
|
-
};
|
|
4
|
+
modelValue: import('vue').PropType<boolean>;
|
|
11
5
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
6
|
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
interface Domains {
|
|
2
|
+
origin?: string;
|
|
3
|
+
thumbnail?: string;
|
|
4
|
+
webp?: string;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
/**
|
|
8
|
+
* 原始图片地址(Origin图片)
|
|
9
|
+
*/
|
|
10
|
+
src: string | undefined | null;
|
|
11
|
+
/**
|
|
12
|
+
* 降级等级
|
|
13
|
+
* 1 origin
|
|
14
|
+
* 2 thumbnail -> origin
|
|
15
|
+
* 3 webp -> thumbnail -> origin
|
|
16
|
+
*/
|
|
17
|
+
level?: 1 | 2 | 3;
|
|
18
|
+
/**
|
|
19
|
+
* 是否启用CDN转换
|
|
20
|
+
*/
|
|
21
|
+
transform?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* CDN域名配置
|
|
24
|
+
*/
|
|
25
|
+
domains?: Domains;
|
|
26
|
+
/**
|
|
27
|
+
* alt
|
|
28
|
+
*/
|
|
29
|
+
alt?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
32
|
+
level: number;
|
|
33
|
+
transform: boolean;
|
|
34
|
+
domains: () => {
|
|
35
|
+
origin: string;
|
|
36
|
+
thumbnail: string;
|
|
37
|
+
webp: string;
|
|
38
|
+
};
|
|
39
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
40
|
+
level: number;
|
|
41
|
+
transform: boolean;
|
|
42
|
+
domains: () => {
|
|
43
|
+
origin: string;
|
|
44
|
+
thumbnail: string;
|
|
45
|
+
webp: string;
|
|
46
|
+
};
|
|
47
|
+
}>>> & Readonly<{}>, {
|
|
48
|
+
transform: boolean;
|
|
49
|
+
level: 1 | 2 | 3;
|
|
50
|
+
domains: Domains;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type __VLS_WithDefaults<P, D> = {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
|
+
default: D[K];
|
|
65
|
+
}> : P[K];
|
|
66
|
+
};
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
formMode: "login" | "register";
|
|
3
|
+
isEn: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"switch-mode": (targetMode: "register" | "login") => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
8
|
+
"onSwitch-mode"?: ((targetMode: "register" | "login") => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
1
2
|
import { AreaCodeData, CaptchaData, LoginFormData } from '../loginDialog';
|
|
2
3
|
|
|
3
4
|
interface AuthOptions {
|
|
4
5
|
appId?: string;
|
|
5
|
-
isEn?: boolean
|
|
6
|
+
isEn?: boolean | ComputedRef<boolean>;
|
|
6
7
|
onSuccess?: (data: any) => void;
|
|
7
8
|
onNeedComplete?: (data: any) => void;
|
|
8
9
|
}
|
|
9
|
-
type LoginType = "account" | "code" | "wechat";
|
|
10
|
+
type LoginType = "account" | "code" | "wechat" | "TEST" | "linkedin" | "facebook";
|
|
10
11
|
export declare function useAuthLogin(options?: AuthOptions): {
|
|
11
12
|
loading: import('vue').Ref<boolean, boolean>;
|
|
12
|
-
captchaVisible: import('vue').Ref<boolean, boolean>;
|
|
13
13
|
handleAuthSubmit: (params: {
|
|
14
14
|
loginType: LoginType;
|
|
15
15
|
loginForm: LoginFormData;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { FormInstance } from 'element-plus';
|
|
3
|
+
import { AreaCodeData, CaptchaData, LoginFormData, LoginMethod, LoginType } from '../loginDialog';
|
|
4
|
+
|
|
5
|
+
interface UseLoginFormOptions {
|
|
6
|
+
isEn: ComputedRef<boolean>;
|
|
7
|
+
loginType: Ref<LoginType>;
|
|
8
|
+
}
|
|
9
|
+
export declare function useLoginForm(options: UseLoginFormOptions): {
|
|
10
|
+
loginFormRef: Ref<FormInstance | undefined, FormInstance | undefined>;
|
|
11
|
+
loginForm: Ref<{
|
|
12
|
+
type: string;
|
|
13
|
+
username: string;
|
|
14
|
+
password: string;
|
|
15
|
+
remember: boolean;
|
|
16
|
+
email: string;
|
|
17
|
+
phone: string;
|
|
18
|
+
areaCode: string;
|
|
19
|
+
code: string;
|
|
20
|
+
}, LoginFormData | {
|
|
21
|
+
type: string;
|
|
22
|
+
username: string;
|
|
23
|
+
password: string;
|
|
24
|
+
remember: boolean;
|
|
25
|
+
email: string;
|
|
26
|
+
phone: string;
|
|
27
|
+
areaCode: string;
|
|
28
|
+
code: string;
|
|
29
|
+
}>;
|
|
30
|
+
areaCodeData: Ref<{
|
|
31
|
+
id: string;
|
|
32
|
+
nameCn: string;
|
|
33
|
+
nameEn: string;
|
|
34
|
+
shortCode: string;
|
|
35
|
+
telCode: string;
|
|
36
|
+
}[], AreaCodeData[] | {
|
|
37
|
+
id: string;
|
|
38
|
+
nameCn: string;
|
|
39
|
+
nameEn: string;
|
|
40
|
+
shortCode: string;
|
|
41
|
+
telCode: string;
|
|
42
|
+
}[]>;
|
|
43
|
+
isCounting: Ref<boolean, boolean>;
|
|
44
|
+
codeReady: Ref<boolean, boolean>;
|
|
45
|
+
mobileUid: Ref<string, string>;
|
|
46
|
+
emailUid: Ref<string, string>;
|
|
47
|
+
verifyData: Ref<{
|
|
48
|
+
uuid: string;
|
|
49
|
+
code: string;
|
|
50
|
+
uniqueCode?: string | undefined;
|
|
51
|
+
}, CaptchaData | {
|
|
52
|
+
uuid: string;
|
|
53
|
+
code: string;
|
|
54
|
+
uniqueCode?: string | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
captchaVisible: Ref<boolean, boolean>;
|
|
57
|
+
loginMethod: Ref<LoginMethod, LoginMethod>;
|
|
58
|
+
computedRules: ComputedRef<{
|
|
59
|
+
username: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
60
|
+
password: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
61
|
+
} | {
|
|
62
|
+
email: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
63
|
+
code: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
64
|
+
username?: undefined;
|
|
65
|
+
password?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
phone: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
68
|
+
code: (import('element-plus').FormItemRule | import('element-plus').FormItemRule[]) | undefined;
|
|
69
|
+
username?: undefined;
|
|
70
|
+
password?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
username?: undefined;
|
|
73
|
+
password?: undefined;
|
|
74
|
+
}>;
|
|
75
|
+
switchLoginTab: (type: string) => void;
|
|
76
|
+
validateField: (field: string) => void;
|
|
77
|
+
handleGetCode: ({ captchaData, startTimer, }: {
|
|
78
|
+
captchaData: CaptchaData;
|
|
79
|
+
startTimer: () => void;
|
|
80
|
+
}) => Promise<void>;
|
|
81
|
+
handleChangeSubType: (type: string) => Promise<void>;
|
|
82
|
+
};
|
|
83
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
|
|
1
3
|
interface ThirdPartyConfig {
|
|
2
4
|
appId: string;
|
|
3
5
|
baseUrl?: string;
|
|
4
6
|
redirectPath?: string;
|
|
5
|
-
isEn?: boolean
|
|
7
|
+
isEn?: boolean | ComputedRef<boolean>;
|
|
6
8
|
onSuccess?: (data: any) => void;
|
|
7
9
|
onError?: (error: any) => void;
|
|
8
10
|
onNeedBind?: (list: any[]) => void;
|
|
@@ -74,4 +74,37 @@ export declare function go2Policy(target?: string): void;
|
|
|
74
74
|
* @param {number} delay - 延迟时间(ms),默认100ms
|
|
75
75
|
*/
|
|
76
76
|
export declare const handleRedirect: (path: any, delay?: number) => void;
|
|
77
|
+
/**
|
|
78
|
+
* 统一将重定向延迟输入规范化为毫秒数
|
|
79
|
+
* - undefined / null / "" → 0
|
|
80
|
+
* - "500" / 500 → 500;"1s" → 1000;"500ms" → 500
|
|
81
|
+
* - 小于 10 的数字按秒处理(1 → 1000)
|
|
82
|
+
* - 非有限数 / 负数 → 0
|
|
83
|
+
*/
|
|
84
|
+
export declare const normalizeDelayMs: (delayInput: any) => number;
|
|
85
|
+
/**
|
|
86
|
+
* 手机号脱敏:保留前 2 位 + 后 2 位,中间用 * 填充
|
|
87
|
+
* - 长度 <= 4 → 原样返回
|
|
88
|
+
* - "13800001234" → "13*******34"
|
|
89
|
+
*/
|
|
90
|
+
export declare const maskPhone: (phone: string | null | undefined) => string;
|
|
91
|
+
/**
|
|
92
|
+
* 邮箱脱敏:@ 前保留前 3 个字符 + ***,@ 后保留域名
|
|
93
|
+
* - 无 @ 或格式异常 → 原样返回
|
|
94
|
+
* - "liuxiaoming@outlook.com" → "liu***@outlook.com"
|
|
95
|
+
* - 长度 <= 3 的本地部分 → 原样保留本地部分
|
|
96
|
+
*/
|
|
97
|
+
export declare const maskEmail: (email: string | null | undefined) => string;
|
|
98
|
+
/**
|
|
99
|
+
* 计算验证码输入框的浮动 label
|
|
100
|
+
* - 中国区且已填手机 → "13*******34 验证码" / "13*******34 OTP"
|
|
101
|
+
* - 海外区且已填邮箱 → "liu***@outlook.com 验证码" / "liu***@outlook.com OTP"
|
|
102
|
+
* - 未填联系方式 → 回退到默认 placeholder
|
|
103
|
+
*/
|
|
104
|
+
export declare const buildCodeInputLabel: ({ isChina, phone, email, isEn, }: {
|
|
105
|
+
isChina: boolean;
|
|
106
|
+
phone: string | null | undefined;
|
|
107
|
+
email: string | null | undefined;
|
|
108
|
+
isEn: boolean;
|
|
109
|
+
}) => string;
|
|
77
110
|
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { FormMode, LoginType } from './loginDialog';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
lang?: string;
|
|
6
|
+
currentPath?: string;
|
|
7
|
+
loginPath?: string;
|
|
8
|
+
showTestThirdBtn?: boolean;
|
|
9
|
+
baseMode?: string;
|
|
10
|
+
appId?: string;
|
|
11
|
+
}>, {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
lang: string;
|
|
14
|
+
currentPath: string;
|
|
15
|
+
loginPath: string;
|
|
16
|
+
showTestThirdBtn: boolean;
|
|
17
|
+
baseMode: string;
|
|
18
|
+
appId: string;
|
|
19
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:visible": (value: boolean) => void;
|
|
21
|
+
open: () => void;
|
|
22
|
+
"update:baseMode": (value: string) => void;
|
|
23
|
+
"mode-change": (payload: {
|
|
24
|
+
formMode: FormMode;
|
|
25
|
+
baseMode: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
"auth-dialog-close": (payload: {
|
|
28
|
+
loginType: LoginType;
|
|
29
|
+
formMode: FormMode;
|
|
30
|
+
}) => void;
|
|
31
|
+
"login-success": (payload: Record<string, unknown>) => void;
|
|
32
|
+
"register-success": (payload: Record<string, unknown>) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
lang?: string;
|
|
36
|
+
currentPath?: string;
|
|
37
|
+
loginPath?: string;
|
|
38
|
+
showTestThirdBtn?: boolean;
|
|
39
|
+
baseMode?: string;
|
|
40
|
+
appId?: string;
|
|
41
|
+
}>, {
|
|
42
|
+
visible: boolean;
|
|
43
|
+
lang: string;
|
|
44
|
+
currentPath: string;
|
|
45
|
+
loginPath: string;
|
|
46
|
+
showTestThirdBtn: boolean;
|
|
47
|
+
baseMode: string;
|
|
48
|
+
appId: string;
|
|
49
|
+
}>>> & Readonly<{
|
|
50
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
51
|
+
onOpen?: (() => any) | undefined;
|
|
52
|
+
"onUpdate:baseMode"?: ((value: string) => any) | undefined;
|
|
53
|
+
"onMode-change"?: ((payload: {
|
|
54
|
+
formMode: FormMode;
|
|
55
|
+
baseMode: string;
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
"onAuth-dialog-close"?: ((payload: {
|
|
58
|
+
loginType: LoginType;
|
|
59
|
+
formMode: FormMode;
|
|
60
|
+
}) => any) | undefined;
|
|
61
|
+
"onLogin-success"?: ((payload: Record<string, unknown>) => any) | undefined;
|
|
62
|
+
"onRegister-success"?: ((payload: Record<string, unknown>) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
visible: boolean;
|
|
65
|
+
lang: string;
|
|
66
|
+
appId: string;
|
|
67
|
+
currentPath: string;
|
|
68
|
+
loginPath: string;
|
|
69
|
+
showTestThirdBtn: boolean;
|
|
70
|
+
baseMode: string;
|
|
71
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
export default _default;
|
|
73
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: import('vue').PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
type __VLS_WithDefaults<P, D> = {
|
|
83
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
84
|
+
default: D[K];
|
|
85
|
+
}> : P[K];
|
|
86
|
+
};
|
|
87
|
+
type __VLS_Prettify<T> = {
|
|
88
|
+
[K in keyof T]: T[K];
|
|
89
|
+
} & {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn: boolean;
|
|
3
|
+
}>, {
|
|
4
|
+
isEn: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"apply-join": (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
isEn: boolean;
|
|
9
|
+
}>, {
|
|
10
|
+
isEn: boolean;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
"onApply-join"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
isEn: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
subLabel: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
handleClick: (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
subLabel: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
label: string;
|
|
25
|
+
subLabel: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
isEn?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"to-login": (...args: any[]) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
isEn?: any;
|
|
7
|
+
}> & Readonly<{
|
|
8
|
+
"onTo-login"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
isEn: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
bindList: {
|
|
7
|
+
type: () => Array<any>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
isEn: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
bindList: {
|
|
16
|
+
type: () => Array<any>;
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
isEn: boolean;
|
|
21
|
+
bindList: any[];
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn?: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
needComplete: (data: any) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
isEn?: boolean;
|
|
7
|
+
}>>> & Readonly<{
|
|
8
|
+
onNeedComplete?: ((data: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn?: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
toBind: () => void;
|
|
5
|
+
toRegister: () => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
isEn?: boolean;
|
|
8
|
+
}>>> & Readonly<{
|
|
9
|
+
onToBind?: (() => any) | undefined;
|
|
10
|
+
onToRegister?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|