From 7fa67d91bfedaa79bc62b08a7d3cbe2d0bee815b Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 03 Apr 2023 09:48:11 +0800
Subject: [PATCH] 完善列表卡片公共组件

---
 layout/h5Page/CContent.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/layout/h5Page/CContent.vue b/layout/h5Page/CContent.vue
index 775f77c..6f4b89e 100644
--- a/layout/h5Page/CContent.vue
+++ b/layout/h5Page/CContent.vue
@@ -5,12 +5,31 @@
  
 <template>
     <view class="c-content">
-        <slot />
+        <view
+            class="c-content-inner"
+            v-if="scroll==='off'"
+        >
+            <slot />
+        </view>
+        <scroll-view
+            class="c-content-scroll"
+            v-if="scroll==='on'"
+            :scrollY="true"
+        >
+            <slot />
+        </scroll-view>
     </view>
 </template>
 
 <script>
 export default {
     name: 'CContent',
+    props: {
+        // 开启滚动,off / on
+        scroll: {
+            type: String,
+            default: 'off',
+        },
+    },
 };
 </script>
\ No newline at end of file

--
Gitblit v1.9.1