mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix merge conflicts
This commit is contained in:
@ -250,12 +250,12 @@ export class CardExample {
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
|
||||
import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
|
||||
import { pin, walk, warning, wifi, wine } from 'ionicons/icons';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
|
||||
components: { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
|
||||
setup() {
|
||||
return { warning };
|
||||
}
|
||||
|
||||
@ -49,12 +49,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
|
||||
import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
|
||||
import { pin, walk, warning, wifi, wine } from 'ionicons/icons';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
|
||||
components: { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
|
||||
setup() {
|
||||
return { warning };
|
||||
}
|
||||
|
||||
@ -29,9 +29,9 @@ export interface Animation {
|
||||
*/
|
||||
destroy(clearStyleSheets?: boolean): void;
|
||||
|
||||
progressStart(forceLinearEasing: boolean, step?: number): void;
|
||||
progressStep(step: number): void;
|
||||
progressEnd(playTo: 0 | 1 | undefined, step: number, dur?: number): void;
|
||||
progressStart(forceLinearEasing?: boolean, step?: number): Animation;
|
||||
progressStep(step: number): Animation;
|
||||
progressEnd(playTo: 0 | 1 | undefined, step: number, dur?: number): Animation;
|
||||
|
||||
from(property: string, value: any): Animation;
|
||||
to(property: string, value: any): Animation;
|
||||
|
||||
@ -37,8 +37,18 @@ const beforeTransition = (opts: TransitionOptions) => {
|
||||
enteringEl.classList.remove('can-go-back');
|
||||
}
|
||||
setPageHidden(enteringEl, false);
|
||||
|
||||
/**
|
||||
* When transitioning, the page should not
|
||||
* respond to click events. This resolves small
|
||||
* issues like users double tapping the ion-back-button.
|
||||
* These pointer events are removed in `afterTransition`.
|
||||
*/
|
||||
enteringEl.style.setProperty('pointer-events', 'none');
|
||||
|
||||
if (leavingEl) {
|
||||
setPageHidden(leavingEl, false);
|
||||
leavingEl.style.setProperty('pointer-events', 'none');
|
||||
}
|
||||
};
|
||||
|
||||
@ -56,8 +66,10 @@ const afterTransition = (opts: TransitionOptions) => {
|
||||
const enteringEl = opts.enteringEl;
|
||||
const leavingEl = opts.leavingEl;
|
||||
enteringEl.classList.remove('ion-page-invisible');
|
||||
enteringEl.style.removeProperty('pointer-events');
|
||||
if (leavingEl !== undefined) {
|
||||
leavingEl.classList.remove('ion-page-invisible');
|
||||
leavingEl.style.removeProperty('pointer-events');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user