Skip to content

Commit 214651f

Browse files
committed
fix error:failed to resolve async component
1 parent 97392e4 commit 214651f

File tree

2 files changed

+1938
-1938
lines changed

2 files changed

+1938
-1938
lines changed

src/js/component/table/list.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div
33
class="list-view"
44
ref="list">
5-
<vue-scroll
5+
<vuescroll
66
:ops="ops"
77
@handle-scroll="handleScroll">
88
<list-body
@@ -24,15 +24,15 @@
2424
</div>
2525
</div>
2626
</list-body>
27-
</vue-scroll>
27+
</vuescroll>
2828
</div>
2929
</template>
3030
<script>
3131
import listBody from './body.vue';
32-
const vueScroll = require('./vuescroll/vuescroll-native.js');
32+
import vuescroll from 'vuescroll/dist/vuescroll-native';
3333
export default {
3434
components: {
35-
vueScroll,
35+
vuescroll,
3636
listBody,
3737
},
3838
props: {
@@ -77,7 +77,7 @@ export default {
7777
},
7878
methods: {
7979
handleScroll(v, h) {
80-
this.$emit('on-scroll', {v, h});
80+
this.$emit('on-scroll', { v, h });
8181
this.$refs.body.handleScroll(v, h);
8282
},
8383
columnItemClick(index) {

0 commit comments

Comments
 (0)