Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
71f1f511
Commit
71f1f511
authored
Mar 23, 2017
by
Mathieu DARTIGUES
Committed by
杨奕
Mar 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation to min/max props
parent
dfddd5d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
examples/docs/en-US/checkbox.md
examples/docs/en-US/checkbox.md
+9
-3
examples/docs/zh-CN/checkbox.md
examples/docs/zh-CN/checkbox.md
+10
-3
No files found.
examples/docs/en-US/checkbox.md
View file @
71f1f511
...
...
@@ -157,7 +157,7 @@ The `indeterminate` property can help you to achieve a 'check all' effect.
### Minimum / Maximum items checked
The
`min
imum`
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 |
|---------- |-------- |---------- |
...
...
examples/docs/zh-CN/checkbox.md
View file @
71f1f511
...
...
@@ -166,7 +166,7 @@
### Minimum / Maximum items checked (to be translated)
The
`min
imum`
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
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment