Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

2 Navigators in BottomNavigation has unexpected behaviour #29

Closed
Labels
@darylteo

Description

@darylteo
<template>    <Page>        <BottomNavigation @selectedIndexChanged="onBottomNavigationIndexChanged">            <TabStrip>                <TabStripItem @tap="() => onTabTap(0)">                    <Label text="News"></Label>                    <Image src.decode="font://&#xf015;"></Image>                </TabStripItem>                <TabStripItem>                    <Label text="Settings"></Label>                    <Image src.decode="font://&#xf013;"></Image>                </TabStripItem>            </TabStrip>            <TabContentItem>                <Frame ref="frame-1">                    <Page>                        <Navigator defaultRoute="/feed"/>                    </Page>                </Frame>            </TabContentItem>            <TabContentItem>                <Frame ref="frame-2">                    <Page>                        <Navigator defaultRoute="/settings"/>                    </Page>                </Frame>            </TabContentItem>        </BottomNavigation>    </Page>

/feed route

                this.$navigator.navigate('/article', {                    props: {                        articleId: id,                    },                    frame: 'frame-1', // without this, it navigates in frame-2                });

I expected it to know which frame it was held within and navigate accordingly.

Not the end of the world, just means I have to manually specify the frame, which may not be ideal, as there might be several paths to the same page in each tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp