wip: defineOptions -> defineProps + defineEmit + useContext

This commit is contained in:
Evan You
2020-11-24 15:12:59 -05:00
parent ae2caad740
commit 47d73c23e1
13 changed files with 593 additions and 523 deletions

View File

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