From 28359f2f1624c637d3b4d1d577e4cabee5807f8e Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Thu, 15 Jan 2026 14:58:36 +0800
Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E9=A2=91=E5=8F=B7=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6):=20=E6=95=B4=E4=BD=93=E6=8E=A7=E5=88=B6=E6=98=AF?=
=?UTF-8?q?=E5=90=A6=E6=98=BE=E7=A4=BA=E8=A7=82=E7=9C=8B=E6=AC=A1=E6=95=B0?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=94=9F=E6=95=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components-diy/diy-channel-list.vue | 4 ++++
components-diy/diy-channel-video.vue | 11 ++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/components-diy/diy-channel-list.vue b/components-diy/diy-channel-list.vue
index c4c47b6..fa4c049 100644
--- a/components-diy/diy-channel-list.vue
+++ b/components-diy/diy-channel-list.vue
@@ -11,6 +11,7 @@
@@ -24,6 +25,7 @@
@@ -38,6 +40,7 @@
@@ -71,6 +74,7 @@ export default {
* @property {number} topAroundRadius - 顶部圆角半径
* @property {number} bottomAroundRadius - 底部圆角半径
* @property {Object} ornament - 装饰效果配置
+ * @property {boolean} showViewCount - 是否显示播放量,可选值:true, false
* @property {number} titleLineClamp - 标题显示行数
* @property {string} aspectRatio - 视频比例,可选值:16:9, 3:4
* @property {boolean} showPlayBtn - 是否显示播放按钮
diff --git a/components-diy/diy-channel-video.vue b/components-diy/diy-channel-video.vue
index cb1de1f..66d1061 100644
--- a/components-diy/diy-channel-video.vue
+++ b/components-diy/diy-channel-video.vue
@@ -17,7 +17,7 @@
{{ value.videoTitle }}
- {{ value.viewCount }}次观看
+ {{ value.viewCount }}次观看
@@ -28,7 +28,7 @@
-
+
{{ value.viewCount }}次观看
@@ -37,7 +37,7 @@
{{ value.videoTitle }}
- {{ value.viewCount }}次观看
+ {{ value.viewCount }}次观看
@@ -80,6 +80,11 @@ export default {
type: Boolean,
default: false
},
+ /** 是否显示观看次数,由父组件可以整体配置 */
+ showViewCount: {
+ type: Boolean,
+ default: true
+ },
/**
* 标题显示行数
* @type {number}