mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
feat(base-components): add ability to remove ios and md theme (#26669)
This commit is contained in:
@ -2,7 +2,7 @@ import type { EventEmitter } from '@stencil/core';
|
||||
import { Build, Component, Element, Event, Method, Prop, Watch, h } from '@stencil/core';
|
||||
|
||||
import { config } from '../../global/config';
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global';
|
||||
import type {
|
||||
Animation,
|
||||
AnimationBuilder,
|
||||
@ -111,8 +111,8 @@ export class Nav implements NavOutlet {
|
||||
this.useRouter = document.querySelector('ion-router') !== null && this.el.closest('[no-router]') === null;
|
||||
|
||||
if (this.swipeGesture === undefined) {
|
||||
const mode = getIonMode(this);
|
||||
this.swipeGesture = config.getBoolean('swipeBackEnabled', mode === 'ios');
|
||||
const platform = getIonBehavior(this);
|
||||
this.swipeGesture = config.getBoolean('swipeBackEnabled', platform === 'ios');
|
||||
}
|
||||
|
||||
this.ionNavWillLoad.emit();
|
||||
@ -859,7 +859,7 @@ export class Nav implements NavOutlet {
|
||||
const opts = ti.opts!;
|
||||
|
||||
const progressCallback = opts.progressAnimation ? (ani: Animation | undefined) => (this.sbAni = ani) : undefined;
|
||||
const mode = getIonMode(this);
|
||||
const mode = getIonStylesheet(this);
|
||||
const enteringEl = enteringView.element!;
|
||||
const leavingEl = leavingView && leavingView.element!;
|
||||
const animationOpts: TransitionOptions = {
|
||||
|
||||
Reference in New Issue
Block a user