Skip to content

Commit

Permalink
Fixed es6 complie with Vue.default #7
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed Jun 27, 2017
1 parent bf7de5c commit 5691980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
} else {
root[moduleName] = factory(root['Vue'])
}
})(this, 'VirutalScrollList', function (Vue2) {
'use strict'
})(this, 'VirutalScrollList', function (Vue2) { 'use strict'

if (typeof Vue2 === 'object' && typeof Vue2.default === 'function') {
Vue2 = Vue2.default
}

return Vue2.component('vue-virtual-scroll-list', {
props: {
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": "vue-virtual-scroll-list",
"version": "1.0.7",
"version": "1.0.8",
"description": "A vue (2.x) component support big data and infinite loading by using virtual scroll list.",
"main": "index.js",
"files": [
Expand Down

0 comments on commit 5691980

Please sign in to comment.