feat(core): adjust attrs fallthrough behavior

This commit is contained in:
Evan You
2019-10-25 12:12:17 -04:00
parent d76cfba7fb
commit 8edfbf9df9
8 changed files with 175 additions and 26 deletions

View File

@@ -62,6 +62,7 @@ export interface ComponentOptionsBase<
render?: Function
components?: Record<string, Component>
directives?: Record<string, Directive>
inheritAttrs?: boolean
}
export type ComponentOptionsWithoutProps<
@@ -80,7 +81,7 @@ export type ComponentOptionsWithArrayProps<
D = {},
C extends ComputedOptions = {},
M extends MethodOptions = {},
Props = { [key in PropNames]?: unknown }
Props = { [key in PropNames]?: any }
> = ComponentOptionsBase<Props, RawBindings, D, C, M> & {
props: PropNames[]
} & ThisType<ComponentPublicInstance<Props, RawBindings, D, C, M>>