提交 372e8a91 编写于 作者: H hdx

feat: 新增<navigator>组件示例, 暂不支持内嵌button组件

上级 d30736d1
......@@ -146,6 +146,24 @@
"navigationBarTitleText": "web-view-local"
}
},
{
"path": "pages/component/navigator/navigator",
"style": {
"navigationBarTitleText": "navigator"
}
},
{
"path": "pages/component/navigator/navigate",
"style": {
"navigationBarTitleText": "navigatePage"
}
},
{
"path": "pages/component/navigator/redirect",
"style": {
"navigationBarTitleText": "redirectPage"
}
},
{
"path": "pages/tabBar/API",
"style": {
......
<template>
<view>
<page-head :title="title"></page-head>
</view>
</template>
<script>
export default {
data() {
return {
title: '新建的页面'
}
}
}
</script>
\ No newline at end of file
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<!-- TODO 暂不支持嵌入button组件 -->
<navigator class="navigator" url="navigate?title=navigate">
<!-- <button type="default">跳转到新页面</button> -->
<text class="btn">跳转到新页面</text>
</navigator>
<navigator class="navigator" url="redirect?title=redirect" open-type="redirect">
<!-- <button type="default">在当前页打开</button> -->
<text class="btn">在当前页打开</text>
</navigator>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'navigator'
}
}
}
</script>
<style>
.navigator {
margin-top: 15px;
}
.btn {
padding: 12px 5px;
text-align: center;
border: 1px solid #dbdbdb;
border-radius: 5px;
}
</style>
\ No newline at end of file
<template>
<view>
<page-head :title="title"></page-head>
</view>
</template>
<script>
export default {
data() {
return {
title: '当前页'
}
}
}
</script>
\ No newline at end of file
......@@ -181,14 +181,15 @@ export default {
},
*/
] as Page[],
/* }, {
id: 'nav',
name: '导航',
open: false,
pages: [{
name: 'navigator',
enable: false
}] as Page[] */
},
{
id: 'nav',
name: '导航',
open: false,
pages: [{
name: 'navigator',
enable: true
}] as Page[],
},
{
id: 'media',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册