This commit is contained in:
2022-11-14 11:59:26 +08:00
parent 0a63adba99
commit 492d0963fe
336 changed files with 70636 additions and 7 deletions

4
types/component/menu/index.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
import { WithInstallType } from "../../utils";
import Component from "./index.vue";
declare const component: WithInstallType<typeof Component>;
export default component;

8
types/component/menu/useLevel.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import { Ref, ComputedRef } from "vue";
export declare const LevelInjectionKey: unique symbol;
export declare function provideLevel(level: Ref<number> | number): void;
export default function useLevel(props?: {
provideNextLevel?: boolean;
}): {
level: ComputedRef<number>;
};

6
types/component/menu/utils.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
export declare function indentHandle(obj: {
indent: boolean | string;
level: number;
basePadding?: number;
isTree?: boolean;
}): string;