admin-vben/packages/effects/common-ui/src/authentication/typings.ts

106 lines
1.6 KiB
TypeScript
Raw Normal View History

interface AuthenticationProps {
/**
* @zh_CN
*/
codeLoginPath?: string;
/**
* @zh_CN
*/
forgetPasswordPath?: string;
/**
* @zh_CN
*/
loading?: boolean;
/**
* @zh_CN
*/
passwordPlaceholder?: string;
/**
* @zh_CN
*/
qrCodeLoginPath?: string;
/**
* @zh_CN
*/
registerPath?: string;
/**
* @zh_CN
*/
showCodeLogin?: boolean;
/**
* @zh_CN
*/
showForgetPassword?: boolean;
/**
* @zh_CN
*/
showQrcodeLogin?: boolean;
/**
* @zh_CN
*/
showRegister?: boolean;
/**
* @zh_CN
*/
showRememberMe?: boolean;
/**
* @zh_CN
*/
showThirdPartyLogin?: boolean;
/**
* @zh_CN
*/
subTitle?: string;
/**
* @zh_CN
*/
title?: string;
/**
* @zh_CN
*/
usernamePlaceholder?: string;
}
2024-05-19 13:20:42 +00:00
interface LoginAndRegisterParams {
password: string;
username: string;
}
interface LoginCodeParams {
code: string;
phoneNumber: string;
}
interface LoginEmits {
submit: [LoginAndRegisterParams];
}
interface LoginCodeEmits {
submit: [LoginCodeParams];
}
interface RegisterEmits {
submit: [LoginAndRegisterParams];
}
export type {
AuthenticationProps,
2024-05-19 13:20:42 +00:00
LoginAndRegisterParams,
LoginCodeEmits,
LoginCodeParams,
LoginEmits,
RegisterEmits,
};