Skip to content

Commit bb26087

Browse files
Doctor-wusxzz
authored andcommitted
feat(vapor): implement inheritAttrs
1 parent 4676188 commit bb26087

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/runtime-vapor/src/component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export type FunctionalComponent = SetupFn & Omit<ObjectComponent, 'setup'>
2828

2929
export interface ObjectComponent {
3030
props?: ComponentPropsOptions
31+
inheritAttrs?: boolean
3132
emits?: EmitsOptions
3233
setup?: SetupFn
3334
render?(ctx: any): Block
@@ -60,6 +61,11 @@ export interface ComponentInternalInstance {
6061
emitted: Record<string, boolean> | null
6162
attrs: Data
6263
refs: Data
64+
/**
65+
* resolved inheritAttrs options
66+
* @internal
67+
*/
68+
inheritAttrs?: boolean
6369

6470
// lifecycle
6571
isMounted: boolean

0 commit comments

Comments
 (0)