From 9d5803a79aad859e201b94040e369298c7c348b0 Mon Sep 17 00:00:00 2001
From: chensiAb <chenchenco03@163.com>
Date: Fri, 23 Aug 2024 10:59:53 +0800
Subject: [PATCH] fix:兼容加载失败时&没数据时,页面显示暂无数据

---
 layout/card/CCardTitle.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/layout/card/CCardTitle.vue b/layout/card/CCardTitle.vue
index 2434682..7ef8b04 100644
--- a/layout/card/CCardTitle.vue
+++ b/layout/card/CCardTitle.vue
@@ -4,7 +4,11 @@
  */
 
 <template>
-    <view class="c-card-title">
+    <view class="c-card-title m-border-strong-bottom">
+        <view class="c-card-title-title">{{title}}</view>
+        <view class="c-card-title-extra">
+            <slot />
+        </view>
     </view>
 </template>
 
@@ -15,7 +19,18 @@
 export default {
     name: 'CCardTitle',
     components: {},
-    props: {},
+    props: {
+        // 标题
+        title: {
+            type: String,
+            default: '列表卡片标题',
+        },
+        // 标题点击
+        onTitleClick: {
+            type: Function,
+            default: () => null,
+        },
+    },
     data() {
         return {};
     },

--
Gitblit v1.9.1