From 4d6d975fdeadf3e8f49005a0052b530c2dbfb075 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Fri, 21 Oct 2022 22:09:07 +0800 Subject: [PATCH] no message --- uni_modules/uni-nav-bar/changelog.md | 4 ++++ .../components/uni-nav-bar/uni-nav-bar.vue | 13 +++++++++---- uni_modules/uni-nav-bar/package.json | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-nav-bar/changelog.md b/uni_modules/uni-nav-bar/changelog.md index fbacca4..f0f6b56 100644 --- a/uni_modules/uni-nav-bar/changelog.md +++ b/uni_modules/uni-nav-bar/changelog.md @@ -1,3 +1,7 @@ +## 1.3.6(2022-06-30) +- 修复 组件示例中插槽用法无法显示内容的bug +## 1.3.5(2022-05-24) +- 新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效 ## 1.3.4(2022-01-24) - 更新 组件示例 ## 1.3.3(2022-01-24) diff --git a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue b/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue index 3346a86..4a46b87 100644 --- a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue +++ b/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue @@ -64,6 +64,7 @@ * @property {Boolean} fixed = [true|false] 是否固定顶部 * @property {Boolean} statusBar = [true|false] 是否包含状态栏 * @property {Boolean} shadow = [true|false] 导航栏下是否有阴影 + * @property {Boolean} stat 是否开启统计标题上报 * @event {Function} clickLeft 左侧按钮点击时触发 * @event {Function} clickRight 右侧按钮点击时触发 * @event {Function} clickTitle 中间标题点击时触发 @@ -135,6 +136,10 @@ type: [Number, String], default: 60 }, + stat: { + type: [Boolean, String], + default: '' + } }, computed: { themeBgColor() { @@ -170,7 +175,7 @@ } }, mounted() { - if (uni.report && this.title !== '') { + if (uni.report && this.stat && this.title !== '') { uni.report('title', this.title) } }, @@ -240,7 +245,7 @@ } .uni-navbar__header-btns { - /* #ifndef APP-NVUE */ + /* #ifndef APP-NVUE */ overflow: hidden; display: flex; /* #endif */ @@ -279,7 +284,7 @@ /* #ifndef APP-NVUE */ display: flex; /* #endif */ - flex: 1; + flex: 1; padding: 0 10px; overflow: hidden; } @@ -340,4 +345,4 @@ // 暗主题配置 .uni-dark {} - + diff --git a/uni_modules/uni-nav-bar/package.json b/uni_modules/uni-nav-bar/package.json index e1473ca..e3fe073 100644 --- a/uni_modules/uni-nav-bar/package.json +++ b/uni_modules/uni-nav-bar/package.json @@ -1,7 +1,7 @@ { "id": "uni-nav-bar", "displayName": "uni-nav-bar 自定义导航栏", - "version": "1.3.4", + "version": "1.3.6", "description": "自定义导航栏组件,主要用于头部导航。", "keywords": [ "uni-ui",