106 lines
1.6 KiB
TypeScript
106 lines
1.6 KiB
TypeScript
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;
|
|
}
|
|
|
|
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,
|
|
LoginAndRegisterParams,
|
|
LoginCodeEmits,
|
|
LoginCodeParams,
|
|
LoginEmits,
|
|
RegisterEmits,
|
|
};
|