提交 577bfe90 编写于 作者: W wanganxp

x

上级 0b4f66aa
......@@ -112,12 +112,12 @@ uvue的策略是:在新建页面时,提供一个选项,让开发者选择
- 自定义导航栏
如果开发者想要自定义导航栏,首先在pages.json里对应页面的style里设置`"navigationStyle": "custom"`,关闭原生导航栏。
然后编写一个自己的导航栏组件,假设名为`<uni-navigationbar>`,那么推荐的页面代码结构为:
然后编写自定义的导航栏组件[<uni-navbar-lite>](https://ext.dcloud.net.cn/plugin?id=14618),那么推荐的页面代码结构为:
```html
<template>
<uni-navigationbar title="自定义导航栏标题">
</uni-navigationbar>
<uni-navbar-lite title="自定义导航栏标题">
</uni-navbar-lite>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
......
......@@ -317,4 +317,4 @@ hx的json转type工具,会对一些敏感符合和关键字自动转义。但
## 注意事项
* request 接口内部通过[特殊方式读取了范型类型](../../uts/generics.md#使用限制),不支持传入动态的范型:比如将外层方法的普通范型参数传入 request。
\ No newline at end of file
* request 接口内部通过[特殊方式读取了范型类型](../../uts/generics.md#使用限制),不支持传入动态的范型:比如将外层方法的普通范型参数传入 request。所以目前尽量直接使用uni.request而不是封装。如确需封装,可不使用type,改用UTSJSONObject。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册