Skip to content

Commit

Permalink
fix: Allow use of class attributes
Browse files Browse the repository at this point in the history
fix #29
  • Loading branch information
HcySunYang committed Jan 12, 2019
1 parent 507b7c3 commit 31547f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __fixtures__/tsProp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export default class Child extends Vue {
// Description of prop
@Prop(Number)
a: number
a: number = 1
@Prop([Number, String])
b: number | string
Expand Down
1 change: 1 addition & 0 deletions src/parser/sfcToAST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function(
'objectRestSpread',
'dynamicImport',
'decorators-legacy',
'classProperties',
'typescript'
]
})
Expand Down

0 comments on commit 31547f8

Please sign in to comment.