/* * @Description: * @Version: 1.0 * @Autor: xtingjin * @Date: 2022-04-21 15:30:46 * @LastEditors: xtingjin * @LastEditTime: 2022-04-21 16:43:05 */ import type { PropType } from "vue"; /** 账号密码 手机号 */ declare type loginType = "userPwd" | "phone"; declare type thirdLogin = "weixin" | "dingding" | "weibo"; declare type encryptType = "md5" | "aes" | "none"; export const props = { encryptType: { type: String as PropType, required: false, default: "none", }, originKey: { type: String, required: false, }, /** *账号placeholder */ placeholder: { type: Object, default: () => { return { username: "请输入账号", password: "请输入密码", }; }, }, /** 背景图片 支持图片地址和base64*/ backImg: { type: String as PropType, default: "", required: true, }, /** 验证码启用 */ setCaptcha: { type: Boolean as PropType, default: true, }, /* 获取验证码接口 不传不启用*/ getCaptchaUrl: { type: String as PropType, default: "", }, /** 登录类型 */ loginTypes: { type: Array as PropType, default: () => ["userPwd", "phone"], }, /** 用户登录接口 */ userLoginUrl: { type: String as PropType, default: "", }, /** 手机验证码接口 */ phoneCodeUrl: { type: String as PropType, default: "", }, /** 手机验证码登录接口 */ phoneLoginUrl: { type: String as PropType, default: "", }, /** 第三方登录启用 */ setThirdLogin: { type: Boolean as PropType, default: true, }, /** 第三方登录 不传不启用*/ thirdLoginTypes: { type: Array as PropType, // default: () => ['weixin', 'dingding', 'weibo'], }, /** 标题 */ title: { type: String as PropType, default: "用户登录", }, /** logo */ logo: { type: String as PropType, default: "", required: true, }, /** 底部内容 不传不显示 */ bottomContent: { type: String as PropType, default: "", // required: true, }, /**是否显示 忘记密码*/ isShowForgetPwd: { type: Boolean as PropType, default: true, }, }; export default props;