Skip to content

Commit 5691980

Browse files
committed
Fixed es6 complie with Vue.default #7
1 parent bf7de5c commit 5691980

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
} else {
99
root[moduleName] = factory(root['Vue'])
1010
}
11-
})(this, 'VirutalScrollList', function (Vue2) {
12-
'use strict'
11+
})(this, 'VirutalScrollList', function (Vue2) { 'use strict'
12+
13+
if (typeof Vue2 === 'object' && typeof Vue2.default === 'function') {
14+
Vue2 = Vue2.default
15+
}
1316

1417
return Vue2.component('vue-virtual-scroll-list', {
1518
props: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "A vue (2.x) component support big data and infinite loading by using virtual scroll list.",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)