@jctrans-materials/comps-vue3 1.0.14 → 1.0.16
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/JcLoginDialog/cmps/FooterBox.d.ts +27 -0
- package/dist/components/JcLoginDialog/cmps/ForgetPassword.d.ts +10 -0
- package/dist/components/JcLoginDialog/cmps/ThirdLogin.d.ts +29 -1
- package/dist/components/JcLoginDialog/cmps/WechatBindLogin.d.ts +6 -2
- package/dist/components/JcLoginDialog/cmps/WechatChooseType.d.ts +4 -4
- package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +8 -4
- package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +34 -0
- package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +26 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
isEn: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
loginType: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {
|
|
12
|
+
initLogin: (type: string) => void;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"to-login": (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
isEn: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
loginType: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{
|
|
25
|
+
"onTo-login"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
isEn: boolean;
|
|
28
|
+
loginType: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
30
|
export default _default;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
isEn?: boolean;
|
|
3
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
needComplete: (data: any) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
6
|
isEn?: boolean;
|
|
5
|
-
}>>> & Readonly<{
|
|
7
|
+
}>>> & Readonly<{
|
|
8
|
+
onNeedComplete?: ((data: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
10
|
export default _default;
|
|
7
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
isEn?: boolean;
|
|
3
3
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
toBind: () => void;
|
|
5
|
+
toRegister: () => void;
|
|
6
6
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
isEn?: boolean;
|
|
8
8
|
}>>> & Readonly<{
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
onToBind?: (() => any) | undefined;
|
|
10
|
+
onToRegister?: (() => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
|
13
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
import { AreaCodeData, CaptchaData, LoginFormData } from '../loginDialog';
|
|
2
|
+
|
|
1
3
|
interface AuthOptions {
|
|
2
4
|
appId?: string;
|
|
3
5
|
isEn?: boolean;
|
|
4
6
|
onSuccess?: (data: any) => void;
|
|
7
|
+
onNeedComplete?: (data: any) => void;
|
|
5
8
|
}
|
|
9
|
+
type LoginType = "account" | "code" | "wechat";
|
|
6
10
|
export declare function useAuthLogin(options?: AuthOptions): {
|
|
7
11
|
loading: import('vue').Ref<boolean, boolean>;
|
|
8
12
|
captchaVisible: import('vue').Ref<boolean, boolean>;
|
|
9
13
|
handleAuthSubmit: (params: {
|
|
10
|
-
loginType:
|
|
11
|
-
loginForm:
|
|
12
|
-
captchaData:
|
|
14
|
+
loginType: LoginType;
|
|
15
|
+
loginForm: LoginFormData;
|
|
16
|
+
captchaData: CaptchaData;
|
|
13
17
|
isKick?: boolean;
|
|
14
18
|
mobileUid?: string;
|
|
15
19
|
emailUid?: string;
|
|
16
|
-
areaCodeData?:
|
|
20
|
+
areaCodeData?: AreaCodeData[];
|
|
17
21
|
}) => Promise<void>;
|
|
18
22
|
executeRedirect: (loginData: any) => void;
|
|
19
23
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare function useForgetPassword(props: {
|
|
2
|
+
isEn: boolean;
|
|
3
|
+
}): {
|
|
4
|
+
activeStep: import('vue').Ref<number, number>;
|
|
5
|
+
activeTab: import('vue').Ref<"email" | "mobile", "email" | "mobile">;
|
|
6
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
verifyVisible: import('vue').Ref<boolean, boolean>;
|
|
8
|
+
formA: {
|
|
9
|
+
userName: string;
|
|
10
|
+
};
|
|
11
|
+
formB: {
|
|
12
|
+
code: string;
|
|
13
|
+
password: string;
|
|
14
|
+
confirmPassword: string;
|
|
15
|
+
};
|
|
16
|
+
userData: import('vue').Ref<any, any>;
|
|
17
|
+
disabledTabs: {
|
|
18
|
+
email: boolean;
|
|
19
|
+
mobile: boolean;
|
|
20
|
+
};
|
|
21
|
+
showCustomerService: import('vue').Ref<boolean, boolean>;
|
|
22
|
+
codeCountdown: {
|
|
23
|
+
mobile: boolean;
|
|
24
|
+
email: boolean;
|
|
25
|
+
};
|
|
26
|
+
codeReady: import('vue').Ref<boolean, boolean>;
|
|
27
|
+
handleTriggerVerify: () => void;
|
|
28
|
+
handleVerifySuccess: (captchaData: any) => void;
|
|
29
|
+
handleSendCodeVerifySuccess: ({ captchaData, startTimer }: {
|
|
30
|
+
captchaData: any;
|
|
31
|
+
startTimer: any;
|
|
32
|
+
}) => void;
|
|
33
|
+
handleSubmitReset: () => Promise<boolean | undefined>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ThirdPartyConfig {
|
|
2
|
+
appId: string;
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
redirectPath?: string;
|
|
5
|
+
onSuccess?: (data: any) => void;
|
|
6
|
+
onError?: (error: any) => void;
|
|
7
|
+
onNeedBind?: (list: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const getThirdPartySessions: () => {
|
|
10
|
+
thirdPartyId: string;
|
|
11
|
+
thirdPartyEmail: string;
|
|
12
|
+
thirdPartyType: string;
|
|
13
|
+
thirdPartyUserName: string;
|
|
14
|
+
mobileEmailList: any;
|
|
15
|
+
};
|
|
16
|
+
export declare function useThirdPartyLogin(config: ThirdPartyConfig): {
|
|
17
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
18
|
+
isBindDialogVisible: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
isRegisterVisible: import('vue').Ref<boolean, boolean>;
|
|
20
|
+
isUserClosed: import('vue').Ref<boolean, boolean>;
|
|
21
|
+
bindList: import('vue').Ref<any[], any[]>;
|
|
22
|
+
loginResult: import('vue').Ref<any, any>;
|
|
23
|
+
startLogin: (type: "FACEBOOK" | "LINKEDIN" | "TEST") => void;
|
|
24
|
+
resetState: () => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|