Skip to content

Commit

Permalink
修复es6语法
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-xin committed Aug 1, 2018
1 parent d5ffc8f commit 96d2319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Toast.install = function (Vue, options) {
},
}
},
render(h) {
render: function(h) {
if(!this.show) return
return h(
'div',
Expand Down Expand Up @@ -100,7 +100,7 @@ Toast.install = function (Vue, options) {
tip: tip
}
},
render(h) {
render: function(h) {
if(!this.show) return
return h(
'div',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue2-toast",
"version": "2.0.0",
"version": "2.0.1",
"description": "A mobile toast plugin for vue2.",
"keywords":["vue.js","vue-plugin","toast"],
"main": "lib/index.js",
Expand Down

0 comments on commit 96d2319

Please sign in to comment.