wip: props immutability

This commit is contained in:
Evan You
2019-05-29 10:43:27 +08:00
parent 6dfec3a4ae
commit eac8a4baa3
4 changed files with 81 additions and 55 deletions

View File

@@ -45,7 +45,7 @@ const isReservedKey = (key: string): boolean => key[0] === '_' || key[0] === '$'
export function initializeProps(
instance: ComponentInstance,
options: NormalizedPropsOptions | undefined,
options: ComponentPropsOptions | undefined,
rawProps: Data | null
) {
const { 0: props, 1: attrs } = resolveProps(rawProps, options)