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
7024daab
Commit
7024daab
authored
Jan 22, 2017
by
baiyaaaaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cascader en docs
parent
5c01a654
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
509 additions
and
12 deletions
+509
-12
examples/docs/en-US/cascader.md
examples/docs/en-US/cascader.md
+487
-1
examples/docs/zh-CN/cascader.md
examples/docs/zh-CN/cascader.md
+3
-1
examples/nav.config.json
examples/nav.config.json
+8
-8
packages/cascader/src/main.vue
packages/cascader/src/main.vue
+11
-2
No files found.
examples/docs/en-US/cascader.md
View file @
7024daab
This diff is collapsed.
Click to expand it.
examples/docs/zh-CN/cascader.md
View file @
7024daab
...
...
@@ -152,7 +152,9 @@
```
:::
### 禁用值
### 禁用选项
通过在数据源中设置
`disabled`
字段来声明该选项时禁用的
:::demo
```
html
...
...
examples/nav.config.json
View file @
7024daab
...
...
@@ -76,6 +76,10 @@
"path"
:
"/select"
,
"title"
:
"Select 选择器"
},
{
"path"
:
"/cascader"
,
"title"
:
"Cascader 级联选择"
},
{
"path"
:
"/switch"
,
"title"
:
"Switch 开关"
...
...
@@ -215,10 +219,6 @@
{
"path"
:
"/collapse"
,
"title"
:
"Collapse 折叠面板"
},
{
"path"
:
"/cascader"
,
"title"
:
"Cascader 级联选择"
}
]
}
...
...
@@ -302,6 +302,10 @@
"path"
:
"/select"
,
"title"
:
"Select"
},
{
"path"
:
"/cascader"
,
"title"
:
"Cascader"
},
{
"path"
:
"/switch"
,
"title"
:
"Switch"
...
...
@@ -441,10 +445,6 @@
{
"path"
:
"/collapse"
,
"title"
:
"Collapse"
},
{
"path"
:
"/cascader"
,
"title"
:
"Cascader"
}
]
}
...
...
packages/cascader/src/main.vue
View file @
7024daab
...
...
@@ -2,10 +2,13 @@
<span
class=
"el-cascader"
:class=
"[
{ 'is-opened': menuVisible },
{
'is-opened': menuVisible,
'is-disabled': disabled
},
size ? 'el-cascader--' + size : ''
]"
@click="
menuVisible = !menuVisible
"
@click="
handleClick
"
@mouseenter="inputHover = true"
@mouseleave="inputHover = false"
ref="reference"
...
...
@@ -18,6 +21,7 @@
@
change=
"handleInputChange"
:validate-event=
"false"
:size=
"size"
:disabled=
"disabled"
>
<template
slot=
"icon"
>
<i
...
...
@@ -209,6 +213,11 @@ export default {
},
handleClickoutside
()
{
this
.
menuVisible
=
false
;
},
handleClick
()
{
if
(
!
this
.
disabled
)
{
this
.
menuVisible
=
!
this
.
menuVisible
;
}
}
}
};
...
...
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