Commit cbe854a6 authored by 陈帅's avatar 陈帅

beter typesscript

parent b405a52d
...@@ -92,7 +92,6 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -92,7 +92,6 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
componentDidUpdate() { componentDidUpdate() {
const { form, BLOCK_NAME_CAMEL_CASE } = this.props; const { form, BLOCK_NAME_CAMEL_CASE } = this.props;
const account = form.getFieldValue('mail');
if (BLOCK_NAME_CAMEL_CASE.status === 'ok') { if (BLOCK_NAME_CAMEL_CASE.status === 'ok') {
message.success('注册成功!'); message.success('注册成功!');
} }
...@@ -235,7 +234,9 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -235,7 +234,9 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
</FormItem> </FormItem>
<FormItem help={help}> <FormItem help={help}>
<Popover <Popover
getPopupContainer={node => (node && node.parentNode ? node.parentNode : node)} getPopupContainer={node =>
node && node.parentNode ? (node.parentNode as HTMLElement) : node
}
content={ content={
<div style={{ padding: '4px 0' }}> <div style={{ padding: '4px 0' }}>
{passwordStatusMap[this.getPasswordStatus()]} {passwordStatusMap[this.getPasswordStatus()]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment