فهرست منبع

Checkbox/Radio: add 'name' on doc (#1049)

杨奕 8 سال پیش
والد
کامیت
43ce738aad
4فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 1 0
      examples/docs/en-US/checkbox.md
  2. 1 0
      examples/docs/en-US/radio.md
  3. 1 0
      examples/docs/zh-CN/checkbox.md
  4. 1 0
      examples/docs/zh-CN/radio.md

+ 1 - 0
examples/docs/en-US/checkbox.md

@@ -99,6 +99,7 @@ It is used for multiple checkboxes which are bound in one group, and indicates w
 | label     | value of the checkbox when used inside a `checkbox-group`   | string    |       —        |     —    |
 | true-label | value of the checkbox if it's checked   | string, number    |       —        |     —    |
 | false-label | value of the checkbox if it's not checked   | string, number    |      —         |     —    |
+| name | native 'name' attribute | string    |      —         |     —    |
 | disabled  | if the checkbox is disabled   | boolean   |  — | false   |
 | checked  | if the checkbox is checked   | boolean   |  — | false   |
 | indeterminate  | same as `indeterminate` in native checkbox | boolean   |  — | false   |

+ 1 - 0
examples/docs/en-US/radio.md

@@ -107,6 +107,7 @@ Radio with button styles.
 ---- | ---- | ---- | ---- | ----
 label | the value of radio | string/number | — | —
 disabled | whether radio is disabled | boolean | — | false
+name | native 'name' attribute | string    |      —         |     —   
 
 ### Radio-group Attributes
 

+ 1 - 0
examples/docs/zh-CN/checkbox.md

@@ -114,6 +114,7 @@
 | label     | 选中状态的值(只有在`checkbox-group`或者绑定对象类型为`array`时有效)| string    |       —        |     —    |
 | true-label | 选中时的值   | string, number | — |     —    |
 | false-label | 没有选中时的值   | string, number    |      —         |     —    |
+| name | 原生 name 属性 | string    |      —         |     —    |
 | disabled  | 按钮禁用    | boolean   |  — | false   |
 | checked  | 当前是否勾选    | boolean   |  — | false   |
 | indeterminate  | 设置 indeterminate 状态,只负责样式控制    | boolean   |  — | false   |

+ 1 - 0
examples/docs/zh-CN/radio.md

@@ -121,6 +121,7 @@
 |---------- |-------- |---------- |-------------  |-------- |
 | label     | Radio 的 value   | string,number    |       —        |      —   |
 | disabled  | 是否禁用    | boolean   | — | false   |
+| name | 原生 name 属性 | string    |      —         |     —    |
 
 ### Radio-group Attributes
 | 参数      | 说明    | 类型      | 可选值       | 默认值   |