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

51 lines
1.4 KiB
TypeScript

import React from 'react';
import { WebComponentProps } from 'oak-frontend-base';
import { EntityDict } from '../../../oak-app-domain';
type DataProps = {
visible: boolean;
nickname: string;
name: string;
birth: string;
gender: string;
mobile: string;
genderOptions: Array<{
label: string;
value: 'male' | 'female';
}>;
attrs: Record<string, string>;
id: string;
refreshing: boolean;
canSyncWechat: boolean;
appId: string;
editAttr: string;
executable: boolean | Error;
nnDirty: boolean;
nameDirty: boolean;
birthDirty: boolean;
genderDirty: boolean;
userStateStr: string;
userStateColor: string;
idStateStr: string;
idStateColor: string;
idState: EntityDict['user']['Schema']['idState'];
isCreation: boolean;
authenticateUrl: string;
changeMobileUrl: string;
changePasswordUrl: string;
editable: boolean;
};
type MethodsProps = {
editMobile: () => void;
editPassword: () => void;
goAuthenticate: () => void;
setAvatar: () => void;
refreshWechatPublicUserInfo: () => void;
editNickname: () => void;
editName: () => void;
editGender: () => void;
cancelEdit: () => void;
editBirth: () => void;
};
export default function render(props: WebComponentProps<EntityDict, 'user', false, DataProps, MethodsProps>): React.JSX.Element;
export {};