wip: defineContext()

This commit is contained in:
Evan You
2020-11-12 14:10:39 -05:00
parent dc098c7f81
commit 6a9b56ca60
10 changed files with 200 additions and 142 deletions

View File

@@ -95,6 +95,7 @@ export function renderComponentRoot(
props,
__DEV__
? {
props,
get attrs() {
markAttrsAccessed()
return attrs
@@ -102,7 +103,7 @@ export function renderComponentRoot(
slots,
emit
}
: { attrs, slots, emit }
: { props, attrs, slots, emit }
)
: render(props, null as any /* we know it doesn't need it */)
)