refactor: adjust render fn signature

This commit is contained in:
Evan You
2018-10-03 13:00:13 -04:00
parent 172b7f5cf7
commit 88be7ecd37
6 changed files with 34 additions and 19 deletions

View File

@@ -31,14 +31,14 @@ describe('attribute fallthrough', () => {
updated() {
childUpdated()
}
render(props: any) {
render() {
return h(
'div',
{
class: 'c2',
style: { fontWeight: 'bold' }
},
props.foo
this.$props.foo
)
}
}
@@ -103,14 +103,14 @@ describe('attribute fallthrough', () => {
updated() {
childUpdated()
}
render(props: any) {
render() {
return h(
'div',
{
class: 'c2',
style: { fontWeight: 'bold' }
},
props.foo
this.$props.foo
)
}
}