refactor(runtime-core): adjust attr fallthrough behavior

BREAKING CHANGE: attribute fallthrough behavior has been adjusted
according to https://github.com/vuejs/rfcs/pull/154
This commit is contained in:
Evan You
2020-04-02 21:51:01 -04:00
parent 2103a485d7
commit 21bcdec943
5 changed files with 144 additions and 27 deletions

View File

@@ -54,7 +54,8 @@ describe('api: setup context', () => {
}
const Child = defineComponent({
setup(props: { count: number }) {
props: { count: Number },
setup(props) {
watchEffect(() => {
dummy = props.count
})