antd

    3热度

    3回答

    我试图重现https://github.com/ant-design/ant-design/blob/master/components/form/demo/horizontal-login.md 与更换React.createClass延伸React.Component的antd表例子正确创建antd形式,但我得到一个遗漏的类型错误:无法读取属性未定义 “getFieldDecorator”用下

    3热度

    1回答

    我试图使用react-recaptcha与antd,下面是我的源代码: import React from 'react'; import 'antd/dist/antd.css'; import Form from 'antd/lib/form'; import Input from 'antd/lib/input'; import Tooltip from 'antd/lib/too

    1热度

    2回答

    我正在编写一个基于react.js的网站。我希望在我的索引页面中自动滑动背景图像,并从Ant Design导入元素{carousel},该元素具有如何使用carousel的实现。我有代码将路由到每个组件。现在,我想知道如何将{carousel}插入索引页面。我有以下代码: /* eslint no-unused-vars: "off" */ import React from 'react';

    3热度

    1回答

    "antd": "^1.11.1", "react": "^15.1.0", "react-dom": "^15.1.0", 错误:未捕获的类型错误:getFieldDecorator不是一个函数 蚂蚁设计演示:https://ant.design/components/form/ import React, {Component} from 'react'; import { Form

    0热度

    2回答

    我写了一个Signup成分,这基本上是如下: const Login = ( <Modal> <NormalLoginForm/ ... </NormalLoginForm > </Modal> ) 的NormalLoginForm成分就是从这里开始的官方网站https://ant.design/components/form/ 我不需要这两个

    3热度

    1回答

    在这个例子中分量NormalLoginForm从这里官方网站https://ant.design/components/form/,为用户名的项目, <FormItem> {getFieldDecorator('userName', { rules: [{ required: true, message: 'Please input your username!' }],