wqyfavor closed pull request #299: Draft
URL: https://github.com/apache/incubator-weex-site/pull/299
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/docs/components/input.md b/docs/docs/components/input.md
index db9d09230..3cf9a10ae 100644
--- a/docs/docs/components/input.md
+++ b/docs/docs/components/input.md
@@ -26,7 +26,7 @@ No child should be added to a `input`.
 
 * `autofocus`: a boolean attribute lets you specify that a form control should 
have input focus when the page loads.
 
-* `singleline`: <Badge text="only android & ios" type="warning" />a boolean 
sttribute sets the properties of this field (lines, horizontally scrolling, 
transformation method) to be for a single-line input.
+* `singleline`: a boolean sttribute sets the properties of this field (lines, 
horizontally scrolling, transformation method) to be for a single-line input.
 
 * `lines`: makes the input exactly this many lines tall.
 
@@ -36,17 +36,19 @@ No child should be added to a `input`.
 
 * `min` constrain the min date when `type` is `date`, format is `yyyy-MM-dd`
 
-* `maxlength`: <Badge text="0.7+" type="warning" /> a number value to specify 
maxlength of input.
+* `maxlength`: a number value to specify maxlength of input.
 
-* `return-key-type`:<Badge text="0.11+" type="warning" />the keybord returen 
key type support `defalut`, `go`, `next`, `search`, `send`, `done`.
+* `return-key-type`: the keybord returen key type support `defalut`, `go`, 
`next`, `search`, `send`, `done`.
 
-* `auto-capitalization-type`:the keybord auto capitalization type support 
`none`, `words`, `sentences`, `allCharacters`.
+* `auto-capitalization-type`: the keybord auto capitalization type support 
`none`, `words`, `sentences`, `allCharacters`.
+
+* `upriseOffset`: <Badge text="v0.21+ & iOS" type="warn" vertical="middle"/> 
the additional vertical margin between bottom of input and top of keyboard if 
the keyboard would cover the input. Default is 20 system pixels on iOS.
 
 
 ## Styles
 
 * placeholder-color: the color of placeholder. Default value is '#999999'.
-* Pseudo-class<Badge text="0.9.5" type="warning" /> : `input` component 
support the following pseudo-classes:
+* Pseudo-class: `input` component support the following pseudo-classes:
   * `active`
   * `focus`
   * `disabled`
diff --git a/docs/zh/docs/components/input.md b/docs/zh/docs/components/input.md
index 835f5eae4..c48f54df8 100644
--- a/docs/zh/docs/components/input.md
+++ b/docs/zh/docs/components/input.md
@@ -29,12 +29,13 @@ table td:first-child {
 | `value`                                                                     
| string  | 组件的默认内容                                                             
                                       |        |                               
                                                                                
                                                                                
                                             |
 | `placeholder`                                                               
| string  | 提示用户可以输入什么。 提示文本不能有回车或换行                                            
                       |        |                                               
                                                                                
                                                                                
                             |
 | `autofocus`                                                                 
| boolean | 布尔类型的数据,表示是否在页面加载时控件自动获得输入焦点                                        
                  |        |                                                    
                                                                                
                                                                                
                        |
-| `maxlength` <br /><Badge text="v0.7" type="warn" vertical="middle"/>        
| nubmer  | 一个数值类型的值,表示输入的最大长度                                                  
                            |        |                                          
                                                                                
                                                                                
                                  |
-| `return-key-type` <br /><Badge text="v0.11" type="warn" vertical="middle"/> 
| string  | 键盘返回键的类型(即手机输入法右下角回车按钮的地方)<br /><img 
src="https://img.alicdn.com/tfs/TB1GSs7n9zqK1RjSZFLXXcn2XXa-311-156.png"; 
height="100px" width="200px" /> |        | 支持 defalut;go;next;search;send,done 
<br /> [查看示例](http://dotwe.org/vue/703c94a1db921df110a11ce33b42c0d7)            
                                                                                
                                 |  |
-| `singleline` <br /><Badge text="only android & ios" type="warning" />       
| boolean | 控制内容是否只允许单行                                                         
                                   | true   |                                   
                                                                                
                                                                                
                                         |
+| `maxlength` | nubmer  | 一个数值类型的值,表示输入的最大长度                                   
                                           |        |                           
                                                                                
                                                                                
                                                 |
+| `return-key-type` | string  | 键盘返回键的类型(即手机输入法右下角回车按钮的地方)<br /><img 
src="https://img.alicdn.com/tfs/TB1GSs7n9zqK1RjSZFLXXcn2XXa-311-156.png"; 
height="100px" width="200px" /> |        | 支持 defalut;go;next;search;send,done 
<br /> [查看示例](http://dotwe.org/vue/703c94a1db921df110a11ce33b42c0d7)            
                                                                                
                                 |  |
+| `singleline` | boolean | 控制内容是否只允许单行                                         
                                                   | true   |                   
                                                                                
                                                                                
                                                         |
 | `max-length`                                                                
| number  | 控制输入内容的最大长度                                                         
                                   |        | 字符串长度,即中英文字符长度都为 1                
                                                                                
                                                                                
                         |
 | `max`                                                                       
| string  | 控制当 type 属性为 date 时选择日期的最大时间,格式为 yyyy-MM-dd                         
                          |        |                                            
                                                                                
                                                                                
                                |
 | `min`                                                                       
| string  | 控制当 type 属性为 date 时选择日期的最小时间,格式为 yyyy-MM-dd                         
                          |        |                                            
                                                                                
                                                                                
                                |
+| `upriseOffset` <Badge text="v0.21+ & iOS" type="warn" vertical="middle"/> | 
number  | 当键盘弹起可能盖住输入框时,页面整体会上移。这个属性指定键盘上边缘与输入框下边缘的间隙。使用 iOS 系统坐标,默认是 20。 |    
20    |                                                                         
                                                                                
                                                                                
   |
 
 ## 样式
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to