Checkbox: update doc (#4379)

pull/4415/head
杨奕 2017-04-23 19:24:20 +08:00 committed by baiyaaaaa
parent 91476e5c79
commit 7036276b8a
1 changed files with 4 additions and 5 deletions

View File

@ -197,11 +197,11 @@
::: :::
### Button style (to be translated) ### 按钮样式
Checkbox with button styles. 按钮样式的多选组合。
:::demo 只需要把`el-checkbox`元素换成`el-checkbox-button`元素即可此外Element 还提供了`size`属性给按钮组,支持`large`和`small`两种(如果不设定为默认) :::demo 只需要把`el-checkbox`元素替换为`el-checkbox-button`元素即可。此外Element 还提供了`size`属性,支持`large`和`small`两种。
```html ```html
<template> <template>
<div style="margin: 15px 0;"></div> <div style="margin: 15px 0;"></div>
@ -245,7 +245,7 @@ Checkbox with button styles.
| checked | 当前是否勾选 | boolean | — | false | | checked | 当前是否勾选 | boolean | — | false |
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | — | false | | indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | — | false |
### Checkbox-group Attributes (to be translated) ### Checkbox-group Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |------------- |-------- | |---------- |-------- |---------- |------------- |-------- |
| size | Checkbox 按钮组尺寸 | string | large, small | — | | size | Checkbox 按钮组尺寸 | string | large, small | — |
@ -254,7 +254,6 @@ Checkbox with button styles.
| min | 可被勾选的 checkbox 的最大数量 | number | — | — | | min | 可被勾选的 checkbox 的最大数量 | number | — | — |
| max | 可被勾选的 checkbox 的最小数量 | number | — | — | | max | 可被勾选的 checkbox 的最小数量 | number | — | — |
### Checkbox-group Events ### Checkbox-group Events
| 事件名称 | 说明 | 回调参数 | | 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- | |---------- |-------- |---------- |