Skip to content

Commit 4ccf887

Browse files
committed
upgraded parcel and vue
1 parent dfd091b commit 4ccf887

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

examples/vuejs/App.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
</template>
1313

1414
<script lang="js">
15-
import Vue from "vue";
1615
import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';
1716
18-
export default Vue.extend({
17+
export default {
1918
data() {
2019
return {
2120
isLast: false,
@@ -73,7 +72,7 @@ export default Vue.extend({
7372
})
7473
}
7574
}
76-
});
75+
};
7776
</script>
7877

7978
<style lang="css" scoped>

examples/vuejs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<body>
1212
<div id="app"></div>
1313
<footer class="ias-foot">This <a href="https://infiniteajaxscroll.com/examples/vuejs/">VueJS infinite scroll</a> example is powered by <a href="https://infiniteajaxscroll.com">Infinite Ajax Scroll</a></footer>
14-
<script src="./index.js"></script>
14+
<script type="module" src="./index.js"></script>
1515
</body>
1616
</html>

examples/vuejs/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import Vue from 'vue';
1+
import { createApp } from "vue";
22
import App from './App.vue';
33

4-
new Vue({ render: createElement => createElement(App) }).$mount('#app');
4+
const app = createApp(App)
5+
6+
app.mount('#app')

examples/vuejs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"dependencies": {
2121
"@webcreate/infinite-ajax-scroll": "^3.0.0",
22-
"vue": "^2.6.14"
22+
"vue": "^3.2.37"
2323
},
2424
"devDependencies": {
25-
"parcel-bundler": "^1.12.5"
25+
"parcel": "^2.0.0"
2626
}
2727
}

0 commit comments

Comments
 (0)