mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
refactor(menu-toggle): change menu-button to be a generic menu-toggle instead
This commit is contained in:
61
packages/core/src/components.d.ts
vendored
61
packages/core/src/components.d.ts
vendored
@ -1539,37 +1539,6 @@ declare global {
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
MenuButton as IonMenuButton
|
||||
} from './components/menu-button/menu-button';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonMenuButtonElement extends IonMenuButton, HTMLElement {
|
||||
}
|
||||
var HTMLIonMenuButtonElement: {
|
||||
prototype: HTMLIonMenuButtonElement;
|
||||
new (): HTMLIonMenuButtonElement;
|
||||
};
|
||||
interface HTMLElementTagNameMap {
|
||||
"ion-menu-button": HTMLIonMenuButtonElement;
|
||||
}
|
||||
interface ElementTagNameMap {
|
||||
"ion-menu-button": HTMLIonMenuButtonElement;
|
||||
}
|
||||
namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"ion-menu-button": JSXElements.IonMenuButtonAttributes;
|
||||
}
|
||||
}
|
||||
namespace JSXElements {
|
||||
export interface IonMenuButtonAttributes extends HTMLAttributes {
|
||||
iconName?: string;
|
||||
menu?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
MenuController as IonMenuController
|
||||
} from './components/menu-controller/menu-controller';
|
||||
@ -1600,6 +1569,36 @@ declare global {
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
MenuToggle as IonMenuToggle
|
||||
} from './components/menu-toggle/menu-toggle';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonMenuToggleElement extends IonMenuToggle, HTMLElement {
|
||||
}
|
||||
var HTMLIonMenuToggleElement: {
|
||||
prototype: HTMLIonMenuToggleElement;
|
||||
new (): HTMLIonMenuToggleElement;
|
||||
};
|
||||
interface HTMLElementTagNameMap {
|
||||
"ion-menu-toggle": HTMLIonMenuToggleElement;
|
||||
}
|
||||
interface ElementTagNameMap {
|
||||
"ion-menu-toggle": HTMLIonMenuToggleElement;
|
||||
}
|
||||
namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"ion-menu-toggle": JSXElements.IonMenuToggleAttributes;
|
||||
}
|
||||
}
|
||||
namespace JSXElements {
|
||||
export interface IonMenuToggleAttributes extends HTMLAttributes {
|
||||
menu?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
Menu as IonMenu
|
||||
} from './components/menu/menu';
|
||||
|
Reference in New Issue
Block a user