【发布时间】:2018-06-01 13:26:29
【问题描述】:
我正在尝试将我的页面显示为文档的正文。 但是,如果我将抽屉放在标题下方,则页面内容不会显示。 如果我改变位置并将抽屉放在标题上方,我的页面就会显示出来。 以下是我的一段代码。
<app-location
route="{{route}}"
url-space-regex="^[[rootPath]]">
</app-location>
<app-route
route="{{route}}"
pattern="[[rootPath]]:page"
data="{{routeData}}"
tail="{{subroute}}">
</app-route>
<!-- Main content -->
<app-header-layout has-scrolling-region>
<app-header slot="header" condenses reveals effects="waterfall">
<app-toolbar>
<paper-icon-button icon="my-icons:menu" drawer-toggle></paper-icon-button>
<div main-title>[[title]]</div>
</app-toolbar>
</app-header>
<app-drawer-layout fullbleed narrow="{{narrow}}">
<!-- Drawer content -->
<app-drawer id="drawer" slot="drawer" swipe-open="[[narrow]]">
<app-toolbar>Menu</app-toolbar>
<iron-selector selected="[[page]]" attr-for-selected="name" class="drawer-list" role="navigation">
<!-- <a name="view1" href="[[rootPath]]view1">View One</a> -->
<a name="aA" href="[[rootPath]]aA">AA</a>
<a name="bB" href="[[rootPath]]bB">BB</a>
</iron-selector>
</app-drawer>
<iron-pages
selected="[[page]]"
attr-for-selected="name"
role="main">
<a-a name="aA" title="{{title}}"></a-a>
<b-b name="bB" title="{{title}}"></b-b>
</iron-pages>
</app-drawer-layout>
</app-header-layout>
</template>
【问题讨论】:
标签: polymer polymer-2.x polymer-starter-kit