mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
143
components/lib/menu/Menu.d.ts
vendored
Executable file
143
components/lib/menu/Menu.d.ts
vendored
Executable file
|
@ -0,0 +1,143 @@
|
|||
/**
|
||||
*
|
||||
* Menu is a navigation / command component that supports dynamic and static positioning.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/menu/)
|
||||
*
|
||||
* @module menu
|
||||
*
|
||||
*/
|
||||
import { VNode } from 'vue';
|
||||
import { MenuItem } from '../menuitem';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Defines valid properties in Menu component.
|
||||
*/
|
||||
export interface MenuProps {
|
||||
/**
|
||||
* An array of menuitems.
|
||||
*/
|
||||
model?: MenuItem[] | undefined;
|
||||
/**
|
||||
* Defines if menu would displayed as a popup.
|
||||
* @defaultValue false
|
||||
*/
|
||||
popup?: boolean | undefined;
|
||||
/**
|
||||
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
||||
* @defaultValue body
|
||||
*/
|
||||
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
||||
/**
|
||||
* Whether to automatically manage layering.
|
||||
* @defaultValue true
|
||||
*/
|
||||
autoZIndex?: boolean | undefined;
|
||||
/**
|
||||
* Base zIndex value to use in layering.
|
||||
* @defaultValue 0
|
||||
*/
|
||||
baseZIndex?: number | undefined;
|
||||
/**
|
||||
* Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
|
||||
* @defaultValue true
|
||||
*/
|
||||
exact?: boolean | undefined;
|
||||
/**
|
||||
* Index of the element in tabbing order.
|
||||
*/
|
||||
tabindex?: number | string | undefined;
|
||||
/**
|
||||
* Defines a string value that labels an interactive element.
|
||||
*/
|
||||
'aria-label'?: string | undefined;
|
||||
/**
|
||||
* Identifier of the underlying input element.
|
||||
*/
|
||||
'aria-labelledby'?: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Menu component.
|
||||
*/
|
||||
export interface MenuSlots {
|
||||
/**
|
||||
* Custom start template.
|
||||
*/
|
||||
start(): VNode[];
|
||||
/**
|
||||
* Custom end template.
|
||||
*/
|
||||
end(): VNode[];
|
||||
/**
|
||||
* Custom item template.
|
||||
* @param {Object} scope - item slot's params.
|
||||
*/
|
||||
item(scope: {
|
||||
/**
|
||||
* Menuitem instance
|
||||
*/
|
||||
item: MenuItem;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in Menu component.
|
||||
*/
|
||||
export interface MenuEmits {
|
||||
/**
|
||||
* Callback to invoke when the component receives focus.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
focus(event: Event): void;
|
||||
/**
|
||||
* Callback to invoke when the component loses focus.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
blur(event: Event): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Menu**
|
||||
*
|
||||
* _Menu is a navigation / command component that supports dynamic and static positioning._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/menu/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class Menu extends ClassComponent<MenuProps, MenuSlots, MenuEmits> {
|
||||
/**
|
||||
* Toggles the visibility of the overlay.
|
||||
* @param {Event} event - Browser event.
|
||||
*
|
||||
* @memberof Menu
|
||||
*/
|
||||
toggle(event: Event): void;
|
||||
/**
|
||||
* Shows the overlay.
|
||||
* @param {Event} event - Browser event.
|
||||
* @param {*} [target] - Target element
|
||||
*
|
||||
* @memberof Menu
|
||||
*/
|
||||
show(event: Event, target?: any): void;
|
||||
/**
|
||||
* Hides the overlay.
|
||||
*
|
||||
* @memberof Menu
|
||||
*/
|
||||
hide(): void;
|
||||
}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Menu: GlobalComponentConstructor<Menu>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Menu;
|
Loading…
Add table
Add a link
Reference in a new issue