From 7a7b6a4d80671162010ce4d2d2f2a7e49d22adb7 Mon Sep 17 00:00:00 2001 From: yiruiwen <1416956117@qq.com> Date: Sat, 31 Oct 2020 11:49:35 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91navbar?= =?UTF-8?q?=E6=96=B0=E5=A2=9Etitle-bold=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=8A=A0=E7=B2=97=E6=A0=87=E9=A2=98=202.=20?= =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98=E5=8C=96$u.test.u?= =?UTF-8?q?rl()=E6=97=A0=E6=B3=95=E6=A0=A1=E9=AA=8Curl=E4=B8=AD=E6=9C=89?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=97=B6=E7=9A=84=E9=97=AE=E9=A2=98=203.=20?= =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=8D=87=E7=BA=A7parse?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=9B=BE=E7=89=87=E5=92=8C=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=9A=84=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E4=B8=8D?= =?UTF-8?q?=E5=86=92=E6=B3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 - manifest.json | 2 +- pages/componentsC/layout/index.vue | 10 ++++- uview-ui/components/u-avatar/u-avatar.vue | 2 +- uview-ui/components/u-col/u-col.vue | 9 ++++- .../components/u-grid-item/u-grid-item.vue | 2 +- uview-ui/components/u-navbar/u-navbar.vue | 8 +++- .../components/u-parse/libs/MpHtmlParser.js | 2 +- uview-ui/components/u-parse/libs/trees.vue | 6 +-- uview-ui/components/u-parse/u-parse.vue | 39 ++++++++++++------- uview-ui/components/u-row/u-row.vue | 9 ++++- uview-ui/libs/config/config.js | 4 +- uview-ui/libs/function/test.js | 3 +- uview-ui/libs/mixin/mixin.js | 4 ++ uview-ui/package.json | 2 +- 15 files changed, 69 insertions(+), 34 deletions(-) diff --git a/App.vue b/App.vue index 068cde4a..8dd912a3 100644 --- a/App.vue +++ b/App.vue @@ -16,5 +16,4 @@ \ No newline at end of file diff --git a/manifest.json b/manifest.json index 3696ed7a..10063f76 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "uView", "appid" : "__UNI__60F4B81", "description" : "多平台快速开发的UI框架", - "versionName" : "1.7.4", + "versionName" : "1.7.8", "versionCode" : "100", "transformPx" : false, "app-plus" : { diff --git a/pages/componentsC/layout/index.vue b/pages/componentsC/layout/index.vue index 8dde7daf..8d05468d 100644 --- a/pages/componentsC/layout/index.vue +++ b/pages/componentsC/layout/index.vue @@ -3,8 +3,8 @@ 演示效果 - - + + @@ -54,6 +54,12 @@ } }, methods: { + click() { + console.log('col click'); + }, + rowClick() { + console.log('row click'); + }, spanChange(e) { switch (e) { case 0: diff --git a/uview-ui/components/u-avatar/u-avatar.vue b/uview-ui/components/u-avatar/u-avatar.vue index f92d318d..289b9b02 100644 --- a/uview-ui/components/u-avatar/u-avatar.vue +++ b/uview-ui/components/u-avatar/u-avatar.vue @@ -134,7 +134,7 @@ }, computed: { wrapStyle() { - let style = {}; + let style = {}; style.height = this.size == 'large' ? '120rpx' : this.size == 'default' ? '90rpx' : this.size == 'mini' ? '70rpx' : this.size + 'rpx'; style.width = style.height; diff --git a/uview-ui/components/u-col/u-col.vue b/uview-ui/components/u-col/u-col.vue index 82ecff98..3b6cc64e 100644 --- a/uview-ui/components/u-col/u-col.vue +++ b/uview-ui/components/u-col/u-col.vue @@ -9,7 +9,7 @@ justifyContent: uJustify, textAlign: textAlign }" - @tap.stop.prevent="click"> + @tap="click"> @@ -51,6 +51,11 @@ textAlign: { type: String, default: 'left' + }, + // 是否阻止事件传播 + stop: { + type: Boolean, + default: true } }, data() { @@ -81,7 +86,7 @@ } }, methods: { - click() { + click(e) { this.$emit('click'); } } diff --git a/uview-ui/components/u-grid-item/u-grid-item.vue b/uview-ui/components/u-grid-item/u-grid-item.vue index 3ab3fc84..0773307c 100644 --- a/uview-ui/components/u-grid-item/u-grid-item.vue +++ b/uview-ui/components/u-grid-item/u-grid-item.vue @@ -4,7 +4,7 @@ background: bgColor, width: width, }"> - + diff --git a/uview-ui/components/u-navbar/u-navbar.vue b/uview-ui/components/u-navbar/u-navbar.vue index 66be1fea..450242e9 100644 --- a/uview-ui/components/u-navbar/u-navbar.vue +++ b/uview-ui/components/u-navbar/u-navbar.vue @@ -14,7 +14,8 @@ class="u-title u-line-1" :style="{ color: titleColor, - fontSize: titleSize + 'rpx' + fontSize: titleSize + 'rpx', + fontWeight: titleBold ? 'bold' : 'normal' }"> {{ title }} @@ -115,6 +116,11 @@ type: String, default: '#606266' }, + // 标题字体是否加粗 + titleBold: { + type: Boolean, + default: false + }, // 标题的字体大小 titleSize: { type: [String, Number], diff --git a/uview-ui/components/u-parse/libs/MpHtmlParser.js b/uview-ui/components/u-parse/libs/MpHtmlParser.js index cb59bc51..aeb0fc38 100644 --- a/uview-ui/components/u-parse/libs/MpHtmlParser.js +++ b/uview-ui/components/u-parse/libs/MpHtmlParser.js @@ -1,7 +1,7 @@ /** * html 解析器 * @tutorial https://github.com/jin-yufeng/Parser - * @version 20201014 + * @version 20201029 * @author JinYufeng * @listens MIT */ diff --git a/uview-ui/components/u-parse/libs/trees.vue b/uview-ui/components/u-parse/libs/trees.vue index 3a9c22a4..2b248206 100644 --- a/uview-ui/components/u-parse/libs/trees.vue +++ b/uview-ui/components/u-parse/libs/trees.vue @@ -2,7 +2,7 @@ - + + :class="'_video '+(n.attrs.class||'')" :style="n.attrs.style" :data-i="i" @tap.stop="_loadVideo" />