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
a0ec1580
Commit
a0ec1580
authored
Oct 16, 2017
by
Leopoldthecoder
Committed by
杨奕
Oct 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changelog: update for 1.4.7
parent
6d311ed6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
6 deletions
+23
-6
.gitignore
.gitignore
+1
-0
CHANGELOG.en-US.md
CHANGELOG.en-US.md
+7
-0
CHANGELOG.zh-CN.md
CHANGELOG.zh-CN.md
+6
-0
examples/app.vue
examples/app.vue
+2
-2
examples/docs/en-US/switch.md
examples/docs/en-US/switch.md
+4
-4
examples/docs/zh-CN/switch.md
examples/docs/zh-CN/switch.md
+3
-0
No files found.
.gitignore
View file @
a0ec1580
...
@@ -13,3 +13,4 @@ fe.element/element-ui
...
@@ -13,3 +13,4 @@ fe.element/element-ui
.npmrc
.npmrc
coverage
coverage
waiter.config.js
waiter.config.js
build/bin/algolia-key.js
CHANGELOG.en-US.md
View file @
a0ec1580
## Changelog
## Changelog
### 1.4.7
*2017-10-16*
-
Fixed compatibility of Autocomplete and Vue 2.5.x, #6942 (by @rennai)
-
Added
`allow-focus`
attribute for Switch, #7494 (by @breadadams)
### 1.4.6
### 1.4.6
*2017-09-27*
*2017-09-27*
...
...
CHANGELOG.zh-CN.md
View file @
a0ec1580
## 更新日志
## 更新日志
### 1.4.7
*2017-10-16*
-
修复 Autocomplete 与 Vue 2.5.x 不兼容的问题,#6942(by @rennai)
-
Switch 新增
`allow-focus`
属性,#7494(by @breadadams)
### 1.4.6
### 1.4.6
*2017-09-27*
*2017-09-27*
...
...
examples/app.vue
View file @
a0ec1580
...
@@ -204,8 +204,8 @@
...
@@ -204,8 +204,8 @@
if
(
!
notified
)
{
if
(
!
notified
)
{
const
h
=
this
.
$createElement
;
const
h
=
this
.
$createElement
;
const
title
=
this
.
lang
===
'
zh-CN
'
const
title
=
this
.
lang
===
'
zh-CN
'
?
'
2.0.0
-alpha.1
发布
'
?
'
2.0.0
Alpha
发布
'
:
'
2.0.0
-alpha.1
released
'
;
:
'
2.0.0
Alpha
released
'
;
const
messages
=
this
.
lang
===
'
zh-CN
'
const
messages
=
this
.
lang
===
'
zh-CN
'
?
[
'
点击
'
,
'
这里
'
,
'
查看详情
'
]
?
[
'
点击
'
,
'
这里
'
,
'
查看详情
'
]
:
[
'
Click
'
,
'
here
'
,
'
to learn more
'
];
:
[
'
Click
'
,
'
here
'
,
'
to learn more
'
];
...
...
examples/docs/en-US/switch.md
View file @
a0ec1580
...
@@ -123,12 +123,12 @@ off-value | switch value when in `off` state | boolean / string / number | —
...
@@ -123,12 +123,12 @@ off-value | switch value when in `off` state | boolean / string / number | —
on-color | background color when in
`on`
state | string | — | #20A0FF
on-color | background color when in
`on`
state | string | — | #20A0FF
off-color | background color when in
`off`
state | string | — | #C0CCDA
off-color | background color when in
`off`
state | string | — | #C0CCDA
name | input name of Switch | string | — | —
name | input name of Switch | string | — | —
allow-focus | allow
`
.focus()`
&
`.blur()`
methods on the
`input`
$ref
| boolean | — | false
allow-focus | allow
`
focus`
and
`blur`
events on the input
| boolean | — | false
### Events
### Events
Event Name | Description | Parameters
Event Name | Description | Parameters
---- | ----| ----
---- | ----| ----
change | triggers when value changes |
(value: Boolean)
change | triggers when value changes |
value after changing
blur | triggers on blur (if
`allow
Focus`
is
`true`
) | (event: Event)
blur | triggers on blur (if
`allow
-focus`
is true) | event: Event
focus | triggers on focus (if
`allow
Focus`
is
`true`
) | (event: Event)
focus | triggers on focus (if
`allow
-focus`
is true) | event: Event
examples/docs/zh-CN/switch.md
View file @
a0ec1580
...
@@ -124,8 +124,11 @@
...
@@ -124,8 +124,11 @@
| on-color | switch 打开时的背景色 | string | — | #20A0FF |
| on-color | switch 打开时的背景色 | string | — | #20A0FF |
| off-color | switch 关闭时的背景色 | string | — | #C0CCDA |
| off-color | switch 关闭时的背景色 | string | — | #C0CCDA |
| name | switch 对应的 name 属性 | string | — | — |
| name | switch 对应的 name 属性 | string | — | — |
| allow-focus | 允许 switch 触发 focus 和 blur 事件 | boolean | — | false |
### Events
### Events
| 事件名称 | 说明 | 回调参数 |
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
|---------- |-------- |---------- |
| change | switch 状态发生变化时的回调函数 | 新状态的值 |
| change | switch 状态发生变化时的回调函数 | 新状态的值 |
| blur | switch 失去焦点时触发,仅当
`allow-focus`
为 true 时生效 | Event 事件对象 |
| focus | switch 获得焦点时触发,仅当
`allow-focus`
为 true 时生效 | Event 事件对象 |
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