first commit
This commit is contained in:
2
node_modules/@vant/use/dist/useRelation/index.d.ts
generated
vendored
Normal file
2
node_modules/@vant/use/dist/useRelation/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './useParent';
|
||||
export * from './useChildren';
|
||||
9
node_modules/@vant/use/dist/useRelation/useChildren.d.ts
generated
vendored
Normal file
9
node_modules/@vant/use/dist/useRelation/useChildren.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { VNode, InjectionKey, VNodeNormalizedChildren, ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
||||
export declare function flattenVNodes(children: VNodeNormalizedChildren): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>[];
|
||||
export declare function sortChildren(parent: ComponentInternalInstance, publicChildren: ComponentPublicInstance[], internalChildren: ComponentInternalInstance[]): void;
|
||||
export declare function useChildren<Child extends ComponentPublicInstance = ComponentPublicInstance<{}, any>, ProvideValue = never>(key: InjectionKey<ProvideValue>): {
|
||||
children: Child[];
|
||||
linkChildren: (value?: ProvideValue) => void;
|
||||
};
|
||||
15
node_modules/@vant/use/dist/useRelation/useParent.d.ts
generated
vendored
Normal file
15
node_modules/@vant/use/dist/useRelation/useParent.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { InjectionKey, ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
||||
type ParentProvide<T> = T & {
|
||||
link(child: ComponentInternalInstance): void;
|
||||
unlink(child: ComponentInternalInstance): void;
|
||||
children: ComponentPublicInstance[];
|
||||
internalChildren: ComponentInternalInstance[];
|
||||
};
|
||||
export declare function useParent<T>(key: InjectionKey<ParentProvide<T>>): {
|
||||
parent: ParentProvide<T>;
|
||||
index: import("vue").ComputedRef<number>;
|
||||
} | {
|
||||
parent: null;
|
||||
index: import("vue").Ref<number>;
|
||||
};
|
||||
export {};
|
||||
Reference in New Issue
Block a user