File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 12
12
</template >
13
13
14
14
<script lang="ts">
15
- import { Options , Vue } from ' ../../src'
15
+ import { props } from ' ../../src'
16
16
17
- @Options ({
18
- props: {
19
- propMessage: String
20
- }
17
+ const Props = props ({
18
+ propMessage: String
21
19
})
22
- export default class App extends Vue {
23
- propMessage! : string
24
20
21
+ export default class App extends Props {
25
22
// inital data
26
23
msg: number = 123
27
24
Original file line number Diff line number Diff line change @@ -32,7 +32,18 @@ module.exports = {
32
32
} ,
33
33
{
34
34
test : / \. v u e $ / ,
35
- use : [ 'vue-loader' ] ,
35
+ use : [
36
+ {
37
+ loader : 'vue-loader' ,
38
+ options : {
39
+ babelParserPlugins : [
40
+ 'jsx' ,
41
+ 'classProperties' ,
42
+ 'decorators-legacy' ,
43
+ ] ,
44
+ } ,
45
+ } ,
46
+ ] ,
36
47
} ,
37
48
] ,
38
49
} ,
You can’t perform that action at this time.
0 commit comments