File tree Expand file tree Collapse file tree 9 files changed +8
-7
lines changed Expand file tree Collapse file tree 9 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="utf-8 ">
5- < title > </ title >
5+ < title > Vue Class Component Example </ title >
66 </ head >
77 < body >
88 < div id ="app "> </ div >
Original file line number Diff line number Diff line change 1919
2020<script lang="ts">
2121import Vue from ' vue'
22- import Component from ' ../lib/index'
23- import Hello from ' ./Hello.vue'
24- import World from ' ./World'
22+ import Component from ' ../../ lib/index'
23+ import Hello from ' ./components/ Hello.vue'
24+ import World from ' ./components/ World'
2525import { mapGetters , mapActions } from ' vuex'
2626
2727// We declare the props separately
Original file line number Diff line number Diff line change 44
55<script lang="ts">
66 import Vue from ' vue'
7- import Component from ' ../lib/index'
7+ import Component from ' ../../../ lib/index'
88
99 @Component
1010 export default class Hello extends Vue {
Original file line number Diff line number Diff line change 11import Vue , { CreateElement } from 'vue'
2- import Component from '../lib/index'
2+ import Component from '../../../ lib/index'
33
44@Component
55export default class World extends Vue {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
22
33module . exports = {
44 mode : 'development' ,
5- entry : './example/example.ts' ,
5+ context : __dirname ,
6+ entry : './src/main.ts' ,
67 output : {
78 path : __dirname ,
89 filename : 'build.js'
You can’t perform that action at this time.
0 commit comments