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
ba27ca55
Commit
ba27ca55
authored
Oct 12, 2016
by
杨奕
Committed by
GitHub
Oct 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #364 from baiyaaaaa/master
dropdown split button prop size
parents
da4097fd
d8eebafb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
examples/docs/zh-cn/dropdown.md
examples/docs/zh-cn/dropdown.md
+2
-1
packages/dropdown/src/dropdown.vue
packages/dropdown/src/dropdown.vue
+5
-6
No files found.
examples/docs/zh-cn/dropdown.md
View file @
ba27ca55
...
...
@@ -152,7 +152,8 @@
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- |
| type | 菜单按钮类型,同 Button 组件 | string | — | — |
| type | 菜单按钮类型,同 Button 组件(只在
`split-button`
为 true 的情况下有效) | string | — | — |
| size | 菜单按钮尺寸,同 Button 组件(只在
`split-button`
为 true 的情况下有效) | string | hover, click | hover |
| split-button | 下拉触发元素呈现为按钮组 | boolean | — | false |
| menu-align | 菜单水平对齐方向 | string | start, end | end |
| trigger | 触发下拉的行为 | string | hover, click | hover |
...
...
packages/dropdown/src/dropdown.vue
View file @
ba27ca55
...
...
@@ -18,9 +18,8 @@
type
:
String
,
default
:
'
end
'
},
type
:
{
type
:
String
},
type
:
String
,
size
:
String
,
splitButton
:
Boolean
},
...
...
@@ -83,7 +82,7 @@
},
render
(
h
)
{
let
{
hide
,
splitButton
,
type
}
=
this
;
let
{
hide
,
splitButton
,
type
,
size
}
=
this
;
var
handleClick
=
_
=>
{
this
.
$emit
(
'
click
'
);
...
...
@@ -92,10 +91,10 @@
let
triggerElm
=
!
splitButton
?
this
.
$slots
.
default
:
(
<
el
-
button
-
group
>
<
el
-
button
type
=
{
type
}
nativeOn
-
click
=
{
handleClick
}
>
<
el
-
button
type
=
{
type
}
size
=
{
size
}
nativeOn
-
click
=
{
handleClick
}
>
{
this
.
$slots
.
default
}
<
/el-button
>
<
el
-
button
ref
=
"
trigger
"
type
=
{
type
}
class
=
"
el-dropdown__icon-button
"
>
<
el
-
button
ref
=
"
trigger
"
type
=
{
type
}
size
=
{
size
}
class
=
"
el-dropdown__icon-button
"
>
<
i
class
=
"
el-dropdown__icon el-icon-caret-bottom
"
><
/i
>
<
/el-button
>
<
/el-button-group>
)
;
...
...
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