Skip to content

Commit

Permalink
fix: 修复 uni-nav-bar 示例不显示插槽内容的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaotian committed Jun 30, 2022
1 parent 1429056 commit 00849cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pages/vue/nav-bar/nav-bar.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,24 @@
<uni-section title="自定义内容" subTitle="使用 left/right/default 插槽自定义内容" type="line" style="margin-bottom: 3px;">
<view class="box-bg">
<uni-nav-bar>
<block slot="left">
<template #left>
<view class="city">
<view>
<text class="uni-nav-bar-text">{{ city }}</text>
</view>
<uni-icons type="arrowdown" color="#666" size="18" />
</view>
</block>
</template>
<view class="input-view">
<uni-icons class="input-uni-icon" type="search" size="18" color="#999" />
<input confirm-type="search" class="nav-bar-input" type="text" placeholder="输入搜索关键词"
@confirm="confirm" />
</view>
<block slot="right">
<template #right>
<view class="city">
搜索
</view>
</block>
</template>
</uni-nav-bar>
</view>
</uni-section>
Expand Down
2 changes: 2 additions & 0 deletions uni_modules/uni-nav-bar/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.3.6(2022-06-30)
- 修复 组件示例中插槽用法无法显示内容的bug
## 1.3.5(2022-05-24)
- 新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效
## 1.3.4(2022-01-24)
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uni-nav-bar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "uni-nav-bar",
"displayName": "uni-nav-bar 自定义导航栏",
"version": "1.3.5",
"version": "1.3.6",
"description": "自定义导航栏组件,主要用于头部导航。",
"keywords": [
"uni-ui",
Expand Down

0 comments on commit 00849cb

Please sign in to comment.