From a5355c38114640c5e54863ba14a1de6485ed38c0 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 05 Jun 2023 20:36:22 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- 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