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!' }],