mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
refactor(show): remove show/hide-when components (#16098)
This commit is contained in:
@ -291,16 +291,6 @@ export class Header {
|
||||
}
|
||||
}
|
||||
|
||||
export declare interface HideWhen extends StencilComponents<'IonHideWhen'> {}
|
||||
@Component({ selector: 'ion-hide-when', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['modes', 'orientation', 'mediaQuery', 'size', 'platform', 'or'] })
|
||||
export class HideWhen {
|
||||
|
||||
constructor(r: ElementRef) {
|
||||
const el = r.nativeElement;
|
||||
proxyInputs(this, el, ['modes', 'orientation', 'mediaQuery', 'size', 'platform', 'or']);
|
||||
}
|
||||
}
|
||||
|
||||
export declare interface Icon extends StencilComponents<'IonIcon'> {}
|
||||
@Component({ selector: 'ion-icon', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['ariaLabel', 'color', 'icon', 'ios', 'lazy', 'md', 'mode', 'name', 'size', 'src'] })
|
||||
export class Icon {
|
||||
@ -730,16 +720,6 @@ export class SelectPopover {
|
||||
}
|
||||
}
|
||||
|
||||
export declare interface ShowWhen extends StencilComponents<'IonShowWhen'> {}
|
||||
@Component({ selector: 'ion-show-when', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['modes', 'orientation', 'mediaQuery', 'size', 'platform', 'or'] })
|
||||
export class ShowWhen {
|
||||
|
||||
constructor(r: ElementRef) {
|
||||
const el = r.nativeElement;
|
||||
proxyInputs(this, el, ['modes', 'orientation', 'mediaQuery', 'size', 'platform', 'or']);
|
||||
}
|
||||
}
|
||||
|
||||
export declare interface SkeletonText extends StencilComponents<'IonSkeletonText'> {}
|
||||
@Component({ selector: 'ion-skeleton-text', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['width'] })
|
||||
export class SkeletonText {
|
||||
|
Reference in New Issue
Block a user