UNPKG

element-plus

Version:

A Component Library for Vue 3

18 lines (17 loc) 816 B
import * as vue from "vue"; import { ComponentInternalInstance, VNode } from "vue"; //#region ../../packages/hooks/use-ordered-children/index.d.ts type ChildEssential = { uid: number; getVnode: () => VNode; }; declare const useOrderedChildren: <T extends ChildEssential>(vm: ComponentInternalInstance, childComponentName: string) => { children: vue.ShallowRef<T[], T[]>; addChild: (child: T) => void; removeChild: (child: T) => void; ChildrenSorter: vue.DefineComponent<{}, () => VNode<vue.RendererNode, vue.RendererElement, { [key: string]: any; }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>; }; //#endregion export { useOrderedChildren };