47 lines
1.2 KiB
TypeScript
47 lines
1.2 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;
|
|
canSyncPublic: boolean;
|
|
appId: string;
|
|
editAttr: string;
|
|
executable: boolean | Error;
|
|
nnDirty: boolean;
|
|
nameDirty: boolean;
|
|
birthDirty: boolean;
|
|
genderDirty: boolean;
|
|
userStateStr: string;
|
|
userStateColor: string;
|
|
idStateStr: string;
|
|
idStateColor: string;
|
|
isCreation: boolean;
|
|
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 {};
|