mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
commit
813be9145d
@ -25,7 +25,7 @@
|
||||
```html
|
||||
<Form.Item {...props}>
|
||||
{children}
|
||||
</Form.Item>`;
|
||||
</Form.Item>
|
||||
```
|
||||
|
||||
## Input 输入框
|
||||
|
@ -79,7 +79,7 @@ class Input extends React.Component {
|
||||
}
|
||||
switch (props.type) {
|
||||
case 'textarea':
|
||||
return <textarea {...props} placeholder={placeholder} className={inputClassName} ref="input" />;
|
||||
return <textarea {...props} value={props.value || props.defaultValue} placeholder={placeholder} className={inputClassName} ref="input" />;
|
||||
default:
|
||||
inputClassName = props.className ? props.className : inputClassName;
|
||||
return <input {...props} placeholder={placeholder} className={inputClassName} ref="input"/>;
|
||||
|
@ -45,7 +45,7 @@ const Demo = React.createClass({
|
||||
select: undefined,
|
||||
multiSelect: undefined,
|
||||
radio: undefined,
|
||||
birthday: undefined,
|
||||
birthday: null,
|
||||
primeNumber: 9
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user