{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/3500","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/3500/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/3500/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/3500/events","html_url":"https://github.com/ant-design/ant-design/issues/3500","id":184005995,"number":3500,"title":"求教：不使用redux，Form组件最快捷实现表单内部数据双向绑定的方式如何做？","user":{"login":"mervynchung","id":7628467,"avatar_url":"https://avatars.githubusercontent.com/u/7628467?v=3","gravatar_id":"","url":"https://api.github.com/users/mervynchung","html_url":"https://github.com/mervynchung","followers_url":"https://api.github.com/users/mervynchung/followers","following_url":"https://api.github.com/users/mervynchung/following{/other_user}","gists_url":"https://api.github.com/users/mervynchung/gists{/gist_id}","starred_url":"https://api.github.com/users/mervynchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mervynchung/subscriptions","organizations_url":"https://api.github.com/users/mervynchung/orgs","repos_url":"https://api.github.com/users/mervynchung/repos","events_url":"https://api.github.com/users/mervynchung/events{/privacy}","received_events_url":"https://api.github.com/users/mervynchung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-19T16:06:23Z","updated_at":"2016-10-20T05:49:46Z","closed_at":"2016-10-20T05:49:46Z","body":"- antd 版本:1.8\r\n- 操作系统及其版本:\r\n- 浏览器及其版本:chrome\r\n\r\n#### 您做了什么？\r\n例如如下三个数字输入框a，b，c\r\nc框disabled，且c值= a + b\r\n在a框与b框输入数字，c框的值跟随变化，\r\n```\r\n<FormItem><InputNumber  {...getFieldProps('a')}/></FormItem>\r\n<FormItem><InputNumber  {...getFieldProps('b')}/></FormItem>\r\n<FormItem><InputNumber disabled  {...getFieldProps('c')}/></FormItem>\r\n```\r\n\r\n#### 您期待的结果是：\r\n如在 a ， b 分别输入 “3”， ”5“\r\nc框实时赋值”8“\r\n且表单能通过getFieldValues() 采集到 a，b，c三项的值\r\n\r\napi文档里看遍还是没找到比较直观的实现\r\n\r\n\r\n"}}
{"actor":{"display_login":"benjycui"}}