mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
style(popover): remove the Event interface type from ev
This commit is contained in:
5
packages/core/src/components.d.ts
vendored
5
packages/core/src/components.d.ts
vendored
@ -32,9 +32,6 @@ import {
|
|||||||
PickerButton,
|
PickerButton,
|
||||||
PickerColumn as PickerColumn2,
|
PickerColumn as PickerColumn2,
|
||||||
} from './components/picker/picker';
|
} from './components/picker/picker';
|
||||||
import {
|
|
||||||
Event,
|
|
||||||
} from '@stencil/core';
|
|
||||||
import {
|
import {
|
||||||
ScrollCallback,
|
ScrollCallback,
|
||||||
} from './components/scroll/scroll';
|
} from './components/scroll/scroll';
|
||||||
@ -2268,7 +2265,7 @@ declare global {
|
|||||||
delegate?: FrameworkDelegate;
|
delegate?: FrameworkDelegate;
|
||||||
enableBackdropDismiss?: boolean;
|
enableBackdropDismiss?: boolean;
|
||||||
enterAnimation?: AnimationBuilder;
|
enterAnimation?: AnimationBuilder;
|
||||||
ev?: Event;
|
ev?: any;
|
||||||
leaveAnimation?: AnimationBuilder;
|
leaveAnimation?: AnimationBuilder;
|
||||||
mode?: 'ios' | 'md';
|
mode?: 'ios' | 'md';
|
||||||
overlayId?: number;
|
overlayId?: number;
|
||||||
|
@ -84,7 +84,7 @@ export class Popover implements OverlayInterface {
|
|||||||
/**
|
/**
|
||||||
* The event to pass to the popover animation.
|
* The event to pass to the popover animation.
|
||||||
*/
|
*/
|
||||||
@Prop() ev: Event;
|
@Prop() ev: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, a backdrop will be displayed behind the popover. Defaults to `true`.
|
* If true, a backdrop will be displayed behind the popover. Defaults to `true`.
|
||||||
|
@ -11,7 +11,7 @@ Popovers can be created using a [Popover Controller](../../popover-controller/Po
|
|||||||
To present a popover, call the `present` method on a popover instance. In order to position the popover relative to the element clicked, a click event needs to be passed into the options of the the `present` method. If the event is not passed, the popover will be positioned in the center of the viewport.
|
To present a popover, call the `present` method on a popover instance. In order to position the popover relative to the element clicked, a click event needs to be passed into the options of the the `present` method. If the event is not passed, the popover will be positioned in the center of the viewport.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
async function presentPopover() {
|
async function presentPopover(event) {
|
||||||
const popoverController = document.querySelector('ion-popover-controller');
|
const popoverController = document.querySelector('ion-popover-controller');
|
||||||
await popoverController.componentOnReady();
|
await popoverController.componentOnReady();
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ Animation to use when the popover is presented.
|
|||||||
|
|
||||||
#### ev
|
#### ev
|
||||||
|
|
||||||
|
any
|
||||||
|
|
||||||
The event to pass to the popover animation.
|
The event to pass to the popover animation.
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ Animation to use when the popover is presented.
|
|||||||
|
|
||||||
#### ev
|
#### ev
|
||||||
|
|
||||||
|
any
|
||||||
|
|
||||||
The event to pass to the popover animation.
|
The event to pass to the popover animation.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user