From ad01ea7d8ea42d9df787b6847c2d4272c5740c5b Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 31 Jul 2023 18:44:49 +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