menu-item.vue.d.ts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import type { MenuItemRegistered, MenuProvider } from './types';
  2. declare function __VLS_template(): {
  3. title?(_: {}): any;
  4. title?(_: {}): any;
  5. default?(_: {}): any;
  6. default?(_: {}): any;
  7. };
  8. declare const __VLS_component: import("vue").DefineComponent<{
  9. readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, null, boolean>;
  10. readonly route: {
  11. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw) | ((new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw))[], unknown, unknown>>;
  12. readonly required: false;
  13. readonly validator: ((val: unknown) => boolean) | undefined;
  14. __epPropKey: true;
  15. };
  16. readonly disabled: BooleanConstructor;
  17. }, {
  18. parentMenu: import("vue").ComputedRef<import("vue").ComponentInternalInstance>;
  19. rootMenu: MenuProvider;
  20. active: import("vue").ComputedRef<boolean>;
  21. nsMenu: {
  22. namespace: import("vue").ComputedRef<string>;
  23. b: (blockSuffix?: string) => string;
  24. e: (element?: string) => string;
  25. m: (modifier?: string) => string;
  26. be: (blockSuffix?: string, element?: string) => string;
  27. em: (element?: string, modifier?: string) => string;
  28. bm: (blockSuffix?: string, modifier?: string) => string;
  29. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  30. is: {
  31. (name: string, state: boolean | undefined): string;
  32. (name: string): string;
  33. };
  34. cssVar: (object: Record<string, string>) => Record<string, string>;
  35. cssVarName: (name: string) => string;
  36. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  37. cssVarBlockName: (name: string) => string;
  38. };
  39. nsMenuItem: {
  40. namespace: import("vue").ComputedRef<string>;
  41. b: (blockSuffix?: string) => string;
  42. e: (element?: string) => string;
  43. m: (modifier?: string) => string;
  44. be: (blockSuffix?: string, element?: string) => string;
  45. em: (element?: string, modifier?: string) => string;
  46. bm: (blockSuffix?: string, modifier?: string) => string;
  47. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  48. is: {
  49. (name: string, state: boolean | undefined): string;
  50. (name: string): string;
  51. };
  52. cssVar: (object: Record<string, string>) => Record<string, string>;
  53. cssVarName: (name: string) => string;
  54. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  55. cssVarBlockName: (name: string) => string;
  56. };
  57. handleClick: () => void;
  58. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  59. click: (item: MenuItemRegistered) => void;
  60. }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  61. readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, null, boolean>;
  62. readonly route: {
  63. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw) | ((new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw))[], unknown, unknown>>;
  64. readonly required: false;
  65. readonly validator: ((val: unknown) => boolean) | undefined;
  66. __epPropKey: true;
  67. };
  68. readonly disabled: BooleanConstructor;
  69. }>> & {
  70. onClick?: ((item: MenuItemRegistered) => any) | undefined;
  71. }, {
  72. readonly disabled: boolean;
  73. readonly index: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>;
  74. }>;
  75. declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
  76. export default _default;
  77. type __VLS_WithTemplateSlots<T, S> = T & {
  78. new (): {
  79. $slots: S;
  80. };
  81. };