From 6fa13f030909d07b3c975d8d8c5926821ae9b875 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 10 Oct 2022 16:42:13 +0800 Subject: [PATCH] 上传图片设置30秒请求超时 --- 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