Skip to content

Commit

Permalink
docs: fix InputNumber demos' format
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Aug 18, 2016
1 parent 0723b96 commit 2c0ed57
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 104 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
order: 0
title: basic
title:
zh-CN: 基本
en-US: Basic
---

## zh-CN

数字输入框。

## en-US

Numeric-only input box.

````jsx
Expand Down
18 changes: 0 additions & 18 deletions components/input-number/demo/basic.zh-CN.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 0 additions & 18 deletions components/input-number/demo/digit.zh-CN.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Expand Down
35 changes: 0 additions & 35 deletions components/input-number/demo/disabled.zh-CN.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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';
Expand Down
28 changes: 0 additions & 28 deletions components/input-number/demo/size.zh-CN.md

This file was deleted.

0 comments on commit 2c0ed57

Please sign in to comment.