Browse Source

docs: udpate demo detail, close: #3111

pull/3115/merge
Benjy Cui 8 years ago
parent
commit
949907231b
  1. 2
      components/form/demo/input-group.md
  2. 24
      components/form/demo/mix.md
  3. 2
      components/form/demo/validate-other.md
  4. 4
      components/form/demo/validate-static.md
  5. 2
      components/progress/demo/format.md
  6. 4
      components/slider/demo/icon-slider.md
  7. 2
      site/theme/template/Home/Banner.jsx

2
components/form/demo/input-group.md

@ -56,7 +56,7 @@ ReactDOM.render(
</FormItem>
<FormItem
label="Please input your identity number"
label="Identity number"
labelCol={{ span: 6 }}
wrapperCol={{ span: 16 }}
>

24
components/form/demo/mix.md

@ -53,27 +53,27 @@ let Demo = React.createClass({
render() {
const { getFieldDecorator } = this.props.form;
return (
<Form horizontal onSubmit={this.handleSubmit} >
<Form horizontal onSubmit={this.handleSubmit}>
<FormItem
label="InputNumber Control"
label="I'm the title"
labelCol={{ span: 8 }}
wrapperCol={{ span: 10 }}
wrapperCol={{ span: 16 }}
>
{getFieldDecorator('inputNumber', { initialValue: 3 })(
<InputNumber min={1} max={10} style={{ width: 100 }} />
)}
<span className="ant-form-text"> machines</span>
<p className="ant-form-text" id="static" name="static">O, wind, if winter comes, can spring be far behind?</p>
<p className="ant-form-text">
<a href="#">link</a>
</p>
</FormItem>
<FormItem
label="I'm the title"
label="InputNumber"
labelCol={{ span: 8 }}
wrapperCol={{ span: 10 }}
>
<p className="ant-form-text" id="static" name="static">O, wind, if winter comes, can spring be far behind?</p>
<p className="ant-form-text">
<a href="#">link</a>
</p>
{getFieldDecorator('inputNumber', { initialValue: 3 })(
<InputNumber min={1} max={10} style={{ width: 100 }} />
)}
<span className="ant-form-text"> machines</span>
</FormItem>
<FormItem

2
components/form/demo/validate-other.md

@ -130,7 +130,7 @@ let Demo = React.createClass({
<Radio value="female">female</Radio>
</RadioGroup>
)}
<span><Icon type="info-circle-o" /> Temporarily no other gender</span>
<span><Icon type="info-circle-o" /> No other gender</span>
</FormItem>
<FormItem

4
components/form/demo/validate-static.md

@ -36,7 +36,7 @@ ReactDOM.render(
labelCol={{ span: 5 }}
wrapperCol={{ span: 12 }}
validateStatus="error"
help="Please enter a combination of numbers and alphabets"
help="Should be combination of numbers & alphabets"
>
<Input defaultValue="unavailable choice" id="error" />
</FormItem>
@ -87,7 +87,7 @@ ReactDOM.render(
wrapperCol={{ span: 12 }}
hasFeedback
validateStatus="error"
help="Please enter a combination of numbers and alphabets"
help="Should be combination of numbers & alphabets"
>
<Input defaultValue="unavailable choice" id="error" />
</FormItem>

2
components/progress/demo/format.md

@ -18,7 +18,7 @@ import { Progress } from 'antd';
ReactDOM.render(
<div>
<Progress type="circle" percent={75} format={percent => `${percent / 10.0} In Progress`} />
<Progress type="circle" percent={75} format={percent => `${percent}% Discount`} />
<Progress type="circle" percent={100} format={() => 'Complete'} />
</div>
, mountNode);

4
components/slider/demo/icon-slider.md

@ -1,6 +1,6 @@
---
order: 2
title:
title:
zh-CN: 带 icon 的滑块
en-US: Slider with icon
---
@ -49,7 +49,7 @@ const IconSlider = React.createClass({
});
ReactDOM.render(
<IconSlider min={0} max={20} value={0} icon={['frown', 'smile']} />
<IconSlider min={0} max={20} value={0} icon={['frown-o', 'smile-o']} />
, mountNode);
````

2
site/theme/template/Home/Banner.jsx

@ -27,7 +27,7 @@ export default class Banner extends React.Component {
<span className="line" key="line" />
<div key="button" className="start-button clearfix">
<Link to="/docs/spec/introduce">
<Icon type="smile-circle" />
<Icon type="smile-o" />
<FormattedMessage id="app.home.start" />
</Link>
</div>

Loading…
Cancel
Save