提交 d9e52b99 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

perf(getCurrentPages): optimize style

上级 467abdea
<template> <template>
<view> <view>
<page-head title="getCurrentPages"></page-head> <page-head title="getCurrentPages"></page-head>
<view class="uni-padding-wrap">
<button @click="_getCurrentPages">getCurrentPages</button> <button @click="_getCurrentPages">getCurrentPages</button>
<button class="uni-common-mt" @click="hideAndShow">页面隐藏并显示</button> <button class="uni-common-mt" @click="hideAndShow">页面隐藏并显示</button>
<view style="padding: 15px 10px"> <view style="padding: 15px 0px">
<text>当前页面栈中 {{pages.length}} 个页面,列表如下:</text> <text>当前页面栈中 {{ pages.length }} 个页面,列表如下:</text>
<template v-for="(page, index) in pages" :key="page.route"> <template v-for="(page, index) in pages" :key="page.route">
<text style="margin-top: 5px" <text style="margin-top: 5px"
>index: {{ index }}, route: {{ page.route }}</text >index: {{ index }}, route: {{ page.route }}</text
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
</template> </template>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
class Page { class Page {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册