UNPKG

@skiyee/uni-ui

Version:

一个由原子化CSS驱动、符合直觉设计、高度定制化、面向AI时代的移动端 UI 库,助力开发者打造独特且差异化的移动端应用程序

23 lines (22 loc) 647 B
/** * @skiyee/uni-ui v1.0.0 * @author skiyee(https://github.com/skiyee) * @license Apache License 2.0 * @copyright 2025-present skiyee All rights reserved. **/ import * as vue0 from "vue"; import { ComponentInternalInstance, InjectionKey } from "vue"; //#region src/composables/use-parent.d.ts declare function useParent<T>(key: InjectionKey<T>): { parent: null; index: vue0.Ref<number>; } | { parent: T & { add: (children: ComponentInternalInstance) => void; remove: (child: ComponentInternalInstance) => void; children: ComponentInternalInstance[]; }; index: vue0.ComputedRef<number>; }; //#endregion export { useParent };