Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后期需要修复的一个bug #4

Open
Wscats opened this issue Nov 19, 2019 · 0 comments
Open

后期需要修复的一个bug #4

Wscats opened this issue Nov 19, 2019 · 0 comments

Comments

@Wscats
Copy link
Owner

Wscats commented Nov 19, 2019

<template name="Abc">
    <div>hello world</div>
</template>
<script>
    export default withRouter(Form.create({ name: 'normal_login' })(class {
        state = 1
        constructor(props) {
            super(props)
            console.log(props)
            const { getFieldDecorator } = this.props.form;
        }
        handleSubmit = (e) => {
            e.preventDefault();
            this.props.form.validateFields((err, values) => {
                if (!err) {
                    console.log('Received values of form: ', values);
                }
            })
        }
    }))
</script>
<style lang="scss">
    .logBox {
        background: #fff;
        width: 76%;
        height: 20rem;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

        header {
            color: #000;
            text-align: center;
            line-height: 50px
        }
    }
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant