2

例如,我在登录、主页、联系人等多个页面之间有一条路由。但是在主页下,我想为抽屉面板创建一个数据路由,该路由将路由到主页内的内容。或者类似标签之间的滑动页面?这可能吗?

                <paper-tabs selected="{{selectedPage}}">
                    <paper-tab>Page 0</paper-tab>
                    <paper-tab>Page 1</paper-tab>
                    <paper-tab>Page 2</paper-tab>
                </paper-tabs>


                <iron-pages attr-for-selected="data-route" selected="{{route}}">
                    <section data-route="home">
                        <paper-material elevation="1">                 

                            <swipe-pages attr-for-selected="data-route" selected="{{selectedPage}}">
                                <swipe-page layout vertical center center-justified>1</swipe-page>
                                <swipe-page layout vertical center center-justified>2</swipe-page>
                                <swipe-page layout vertical center center-justified>3</swipe-page>
                            </swipe-pages>
                        </paper-material>


                    </section>
4

0 回答 0