mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(angular): modal and popover now have correct props defined on angular component (#23565)
This commit is contained in:
@ -5,8 +5,8 @@ import { ProxyCmp, proxyOutputs } from "../proxies-utils";
|
|||||||
import { Components } from "@ionic/core";
|
import { Components } from "@ionic/core";
|
||||||
export declare interface IonModal extends Components.IonModal {
|
export declare interface IonModal extends Components.IonModal {
|
||||||
}
|
}
|
||||||
@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] })
|
@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "presentingElement", "showBackdrop", "swipeToClose", "translucent", "trigger"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] })
|
||||||
@Component({ selector: "ion-modal", changeDetection: ChangeDetectionStrategy.OnPush, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen"></ng-container>`, inputs: ["animated", "backdropDismiss", "component", "componentProps", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"] })
|
@Component({ selector: "ion-modal", changeDetection: ChangeDetectionStrategy.OnPush, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen"></ng-container>`, inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "presentingElement", "showBackdrop", "swipeToClose", "translucent", "trigger"] })
|
||||||
export class IonModal {
|
export class IonModal {
|
||||||
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
|
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import { ProxyCmp, proxyOutputs } from "../proxies-utils";
|
|||||||
import { Components } from "@ionic/core";
|
import { Components } from "@ionic/core";
|
||||||
export declare interface IonPopover extends Components.IonPopover {
|
export declare interface IonPopover extends Components.IonPopover {
|
||||||
}
|
}
|
||||||
@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] })
|
@ProxyCmp({ inputs: ["alignment", "animated", "arrow", "backdropDismiss", "cssClass", "dismissOnSelect", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent", "trigger", "triggerAction", "reference", "size"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] })
|
||||||
@Component({ selector: "ion-popover", changeDetection: ChangeDetectionStrategy.OnPush, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen"></ng-container>`, inputs: ["animated", "backdropDismiss", "component", "componentProps", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"] })
|
@Component({ selector: "ion-popover", changeDetection: ChangeDetectionStrategy.OnPush, template: `<ng-container [ngTemplateOutlet]="template" *ngIf="isCmpOpen"></ng-container>`, inputs: ["alignment", "animated", "arrow", "backdropDismiss", "cssClass", "dismissOnSelect", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent", "trigger", "triggerAction", "reference", "size"] })
|
||||||
export class IonPopover {
|
export class IonPopover {
|
||||||
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
|
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user