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
3bc43335
Commit
3bc43335
authored
Jul 10, 2017
by
Leopoldthecoder
Committed by
杨奕
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ColorPicker: add active-change event
parent
e7647fd7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
examples/docs/en-US/color-picker.md
examples/docs/en-US/color-picker.md
+2
-1
examples/docs/zh-CN/color-picker.md
examples/docs/zh-CN/color-picker.md
+2
-1
packages/color-picker/src/main.vue
packages/color-picker/src/main.vue
+3
-0
packages/switch/src/component.vue
packages/switch/src/component.vue
+1
-1
No files found.
examples/docs/en-US/color-picker.md
View file @
3bc43335
...
...
@@ -93,4 +93,5 @@ ColorPicker is a color selector supporting multiple color formats.
### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| change | triggers when input value changes | color value |
\ No newline at end of file
| change | triggers when input value changes | color value |
| active-change | triggers when the current active color changes | active color value |
\ No newline at end of file
examples/docs/zh-CN/color-picker.md
View file @
3bc43335
...
...
@@ -93,4 +93,5 @@
### Events
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| change | 当绑定值变化时触发 | 当前值 |
\ No newline at end of file
| change | 当绑定值变化时触发 | 当前值 |
| active-change | 面板中当前显示的颜色发生改变时触发 | 当前显示的颜色值 |
\ No newline at end of file
packages/color-picker/src/main.vue
View file @
3bc43335
...
...
@@ -70,6 +70,9 @@
handler
()
{
this
.
showPanelColor
=
true
;
}
},
displayedColor
(
val
)
{
this
.
$emit
(
'
active-change
'
,
val
);
}
},
...
...
packages/switch/src/component.vue
View file @
3bc43335
...
...
@@ -40,7 +40,7 @@
props
:
{
value
:
{
type
:
[
Boolean
,
String
,
Number
],
default
:
tru
e
default
:
fals
e
},
disabled
:
{
type
:
Boolean
,
...
...
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