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
51125076
Commit
51125076
authored
Oct 31, 2016
by
杨奕
Committed by
GitHub
Oct 31, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #754 from baiyaaaaa/master
fix docs
parents
5a02fdd5
c5c2f235
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
30 deletions
+3
-30
examples/docs/zh-cn/checkbox.md
examples/docs/zh-cn/checkbox.md
+2
-29
examples/docs/zh-cn/upload.md
examples/docs/zh-cn/upload.md
+1
-1
No files found.
examples/docs/zh-cn/checkbox.md
View file @
51125076
...
@@ -108,37 +108,10 @@
...
@@ -108,37 +108,10 @@
```
```
:::
:::
### 可切换值的多选框
多选框单独时,除了可以表示为是否选中的逻辑值以外,你还可以设定其选中和未选中所表示的值。
:::demo 使用
`true-label`
和
`false-label`
可以自定义选中时和未选中时的值,可以为
`String`
或
`Number`
类型。
```
html
<template>
<el-checkbox
v-model=
"isValid"
true-label=
"可用"
false-label=
"不可用"
>
{{isValid}}
</el-checkbox>
</template>
<script>
export
default
{
data
()
{
return
{
isValid
:
'
可用
'
};
}
};
</script>
```
:::
### Checkbox Attributes
### Checkbox Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |------------- |-------- |
|---------- |-------- |---------- |------------- |-------- |
| label | 选中状态的值(只有在
`checkbox-group`
下有意义)
| string | — | — |
| label | 选中状态的值(只有在
`checkbox-group`
或者绑定对象类型为
`array`
时有效)
| string | — | — |
| true-label | 选中时的值 | string, number | — | — |
| true-label | 选中时的值 | string, number | — | — |
| false-label | 没有选中时的值 | string, number | — | — |
| false-label | 没有选中时的值 | string, number | — | — |
| disabled | 按钮禁用 | boolean | — | false |
| disabled | 按钮禁用 | boolean | — | false |
...
...
examples/docs/zh-cn/upload.md
View file @
51125076
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
| with-credentials | 支持发送 cookie 凭证信息 | boolean | — | false |
| with-credentials | 支持发送 cookie 凭证信息 | boolean | — | false |
| show-upload-list | 是否显示已上传文件列表 | boolean | — | true |
| show-upload-list | 是否显示已上传文件列表 | boolean | — | true |
| type | 上传控件类型 | string | select,drag | select |
| type | 上传控件类型 | string | select,drag | select |
| accept | 可选参数, 接受上传的
[
文件类型
](
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept
)
, 拖拽文件上传时不受此参数影响
| string | — | — |
| accept | 可选参数, 接受上传的
[
文件类型
](
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept
)
(thumbnail-mode 模式下此参数无效)
| string | — | — |
| on-preview | 可选参数, 点击已上传的文件链接时的钩子 | function(file) | — | — |
| on-preview | 可选参数, 点击已上传的文件链接时的钩子 | function(file) | — | — |
| on-remove | 可选参数, 文件列表移除文件时的钩子 | function(file, fileList) | — | — |
| on-remove | 可选参数, 文件列表移除文件时的钩子 | function(file, fileList) | — | — |
| on-success | 可选参数, 文件上传成功时的钩子 | function(file, fileList) | — | — |
| on-success | 可选参数, 文件上传成功时的钩子 | function(file, fileList) | — | — |
...
...
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