Skip to content

Commit

Permalink
previewer: fix method name starts with _ will get vue(2.4.4) warning (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Sep 18, 2017
1 parent 43ecb5c commit 9f84c56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/previewer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export default {
}
img.src = showItem.src
} else {
this._init(index)
this.doInit(index)
}
},
_init (index) {
doInit (index) {
const self = this
let options = objectAssign({
history: false,
Expand Down
5 changes: 5 additions & 0 deletions src/components/previewer/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ methods:
en: go to next image
zh-CN: 跳转到下一张
changes:
next:
en:
- '[fix] fix method name starts with _ will get vue(2.4.4) warning #2001'
zh-CN:
- '[fix] 修复组件函数名字以下划线开头将会被 Vue(2.4.4) 警告的问题 #2001'
v2.5.10:
en:
- '[enhance] Support method:goTo #1888'
Expand Down

0 comments on commit 9f84c56

Please sign in to comment.