Files
ruoyi-plus-vben5/packages/business/universal-ui/src/authentication/typings.ts

93 lines
1.4 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
*/
showThirdPartyLogin?: boolean;
/**
* @zh_CN
*/
usernamePlaceholder?: string;
}
2024-05-19 21:20:42 +08: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 21:20:42 +08:00
LoginAndRegisterParams,
LoginCodeEmits,
LoginCodeParams,
LoginEmits,
RegisterEmits,
};