oak-general-business/es/components/user/login/web.d.ts

40 lines
1.1 KiB
TypeScript

import React from 'react';
import { WebComponentProps } from 'oak-frontend-base';
import { EntityDict } from '../../../oak-app-domain';
type Option = {
label: string;
value: string;
};
export default function Render(props: WebComponentProps<EntityDict, 'token', false, {
loginMode?: number;
appId: string;
loading: boolean;
width: string;
isSupportWechatGrant: boolean;
domain?: string;
disabled?: string;
redirectUri: string;
url: string;
passportTypes: EntityDict['passport']['Schema']['type'][];
callback: (() => void) | undefined;
inputOptions: Option[];
scanOptions: Option[];
smsDigit: number;
emailDigit: number;
pwdAllowMobile: boolean;
pwdAllowEmail: boolean;
pwdAllowLoginName: boolean;
pwdMode: 'all' | 'plain' | 'sha1';
allowRegister: boolean;
oauthOptions: {
name: string;
value: string;
logo?: string;
}[];
goRegister: () => void;
goOauthLogin: (oauthProviderId: string) => void;
}, {
setLoginMode: (value: number) => void;
}>): React.JSX.Element;
export {};