Commit 71f1f511 authored by Mathieu DARTIGUES's avatar Mathieu DARTIGUES Committed by 杨奕

Fix documentation to min/max props

parent dfddd5d8
......@@ -157,7 +157,7 @@ The `indeterminate` property can help you to achieve a 'check all' effect.
### Minimum / Maximum items checked
The `minimum` and `maximum` properties can help you to limit the number of checked items.
The `min` and `max` properties can help you to limit the number of checked items.
:::demo
......@@ -165,8 +165,8 @@ The `minimum` and `maximum` properties can help you to limit the number of check
<template>
<el-checkbox-group
v-model="checkedCities1"
minimum="1"
maximum="2">
:min="1"
:max="2">
<el-checkbox v-for="city in cities" :label="city">{{city}}</el-checkbox>
</el-checkbox-group>
</template>
......@@ -199,6 +199,12 @@ The `minimum` and `maximum` properties can help you to limit the number of check
| checked | if the checkbox is checked | boolean | — | false |
| indeterminate | same as `indeterminate` in native checkbox | boolean | — | false |
### Checkbox-group Attributes
| Attribute | Description | Type | Options | Default|
|---------- |-------- |---------- |------------- |-------- |
| min | minimum number of checkbox checked | number | — | — |
| max | maximum number of checkbox checked | number | — | — |
### Checkbox-group Events
| Event Name | Description | Parameters |
|---------- |-------- |---------- |
......
......@@ -166,7 +166,7 @@
### Minimum / Maximum items checked (to be translated)
The `minimum` and `maximum` properties can help you to limit the number of checked items.
The `min` and `max` properties can help you to limit the number of checked items.
:::demo
......@@ -174,8 +174,8 @@ The `minimum` and `maximum` properties can help you to limit the number of check
<template>
<el-checkbox-group
v-model="checkedCities1"
minimum="1"
maximum="2">
:min="1"
:max="2">
<el-checkbox v-for="city in cities" :label="city">{{city}}</el-checkbox>
</el-checkbox-group>
</template>
......@@ -207,6 +207,13 @@ The `minimum` and `maximum` properties can help you to limit the number of check
| checked | 当前是否勾选 | boolean | — | false |
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | — | false |
### Checkbox-group Attributes (to be translated)
| Attribute | Description | Type | Options | Default|
|---------- |-------- |---------- |------------- |-------- |
| min | minimum number of checkbox checked | number | — | — |
| max | maximum number of checkbox checked | number | — | — |
### Checkbox-group Events
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment