wupengfei
8 天以前 14368e8a09c4b5793d0975f85e36a4c1d410ca36
apps/h5/src/components/Layout/ContentScrollView.vue
New file
@@ -0,0 +1,34 @@
<template>
  <div :class="['content-scroll-view', { hasPaddingTop }]">
    <slot />
  </div>
</template>
<script setup lang="ts">
defineOptions({
  name: 'ContentScrollView',
});
type Props = {
  hasPaddingTop?: boolean;
  allHeight?: boolean;
  paddingH?: boolean;
};
const props = withDefaults(defineProps<Props>(), {
  hasPaddingTop: false,
  allHeight: false,
  paddingH: true,
});
</script>
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
.content-scroll-view {
  overflow-y: auto;
  padding: 10px 14px 0;
  flex: 1;
  min-height: 0;
}
</style>