diff --git a/components/input-number/demo/basic.en-US.md b/components/input-number/demo/basic.md similarity index 75% rename from components/input-number/demo/basic.en-US.md rename to components/input-number/demo/basic.md index 1dae72fa75..bafc92bcd1 100644 --- a/components/input-number/demo/basic.en-US.md +++ b/components/input-number/demo/basic.md @@ -1,8 +1,16 @@ --- order: 0 -title: basic +title: + zh-CN: 基本 + en-US: Basic --- +## zh-CN + +数字输入框。 + +## en-US + Numeric-only input box. ````jsx diff --git a/components/input-number/demo/basic.zh-CN.md b/components/input-number/demo/basic.zh-CN.md deleted file mode 100644 index 3d1c63dfaf..0000000000 --- a/components/input-number/demo/basic.zh-CN.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -order: 0 -title: 基本 ---- - -数字输入框。 - -````jsx -import { InputNumber } from 'antd'; - -function onChange(value) { - console.log('changed', value); -} - -ReactDOM.render( - -, mountNode); -```` diff --git a/components/input-number/demo/digit.en-US.md b/components/input-number/demo/digit.md similarity index 72% rename from components/input-number/demo/digit.en-US.md rename to components/input-number/demo/digit.md index d0efa678c1..d7e1eb4ff3 100644 --- a/components/input-number/demo/digit.en-US.md +++ b/components/input-number/demo/digit.md @@ -1,8 +1,16 @@ --- order: 3 -title: decimals +title: + zh-CN: 小数 + en-US: Decimals --- +## zh-CN + +和原生的数字输入框一样,value 的精度由 step 的小数位数决定。 + +## en-US + A numeric-only input box whose values can be increased or decreased using a decimal step. The number of decimals (also known as precision) is determined by the step prop. ````jsx diff --git a/components/input-number/demo/digit.zh-CN.md b/components/input-number/demo/digit.zh-CN.md deleted file mode 100644 index e3cdc4b978..0000000000 --- a/components/input-number/demo/digit.zh-CN.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -order: 3 -title: 小数 ---- - -和原生的数字输入框一样,value 的精度由 step 的小数位数决定。 - -````jsx -import { InputNumber } from 'antd'; - -function onChange(value) { - console.log('changed', value); -} - -ReactDOM.render( - -, mountNode); -```` diff --git a/components/input-number/demo/disabled.en-US.md b/components/input-number/demo/disabled.md similarity index 86% rename from components/input-number/demo/disabled.en-US.md rename to components/input-number/demo/disabled.md index 5f92334ad7..b1012df468 100644 --- a/components/input-number/demo/disabled.en-US.md +++ b/components/input-number/demo/disabled.md @@ -1,8 +1,16 @@ --- order: 2 -title: disabled +title: + zh-CN: 不可用 + en-US: Disabled --- +## zh-CN + +点击按钮切换可用状态。 + +## en-US + Click the button to toggle between available and disabled states. ````jsx diff --git a/components/input-number/demo/disabled.zh-CN.md b/components/input-number/demo/disabled.zh-CN.md deleted file mode 100644 index a81d30b478..0000000000 --- a/components/input-number/demo/disabled.zh-CN.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -order: 2 -title: 不可用 ---- - -点击按钮切换可用状态。 - -````jsx -import { InputNumber, Button } from 'antd'; - -const Test = React.createClass({ - getInitialState() { - return { - disabled: true, - }; - }, - toggle() { - this.setState({ - disabled: !this.state.disabled, - }); - }, - render() { - return ( -
- -
- -
-
- ); - }, -}); - -ReactDOM.render(, mountNode); -```` diff --git a/components/input-number/demo/size.en-US.md b/components/input-number/demo/size.md similarity index 76% rename from components/input-number/demo/size.en-US.md rename to components/input-number/demo/size.md index 0dcd62b5ba..0b2f5c3504 100644 --- a/components/input-number/demo/size.en-US.md +++ b/components/input-number/demo/size.md @@ -1,10 +1,17 @@ --- order: 1 -title: Three sizes +title: + zh-CN: 三种大小 + en-US: Sizes --- -There are three sizes available to a numeric input box. By default, the size is `28px`. The two additional sizes are `large` and `small` which means `32px` and `22px`, respectively. +## zh-CN + +三种大小的数字输入框,当 size 分别为 `large` 和 `small` 时,输入框高度为 `32px` 和 `22px` ,默认高度为 `28px` +## en-US + +There are three sizes available to a numeric input box. By default, the size is `28px`. The two additional sizes are `large` and `small` which means `32px` and `22px`, respectively. ````jsx import { InputNumber } from 'antd'; diff --git a/components/input-number/demo/size.zh-CN.md b/components/input-number/demo/size.zh-CN.md deleted file mode 100644 index 519c33344c..0000000000 --- a/components/input-number/demo/size.zh-CN.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -order: 1 -title: 三种大小 ---- - -三种大小的数字输入框,当 size 分别为 `large` 和 `small` 时,输入框高度为 `32px` 和 `22px` ,默认高度为 `28px` - -````jsx -import { InputNumber } from 'antd'; - -function onChange(value) { - console.log('changed', value); -} - -ReactDOM.render( -
- - - -
-, mountNode); -```` - -````css -.ant-input-number { - margin-right: 10px; -} -````