index.vue 602 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <scroll-view :scroll-y="true" :style="pageScrollStyle">
  3. <slot></slot>
  4. </scroll-view>
  5. </template>
  6. <script>
  7. export default {
  8. options: {
  9. styleIsolation: 'shared'
  10. },
  11. props: {
  12. tabbarConflict: Boolean
  13. },
  14. computed: {
  15. pageScrollStyle() {
  16. let pageHeight = this.$config.pageHeight
  17. if (this.tabbarConflict) {
  18. pageHeight = this.$config.pageHeight - uni.upx2px(150)
  19. }
  20. return 'height: ' + pageHeight + 'px'
  21. }
  22. },
  23. watch: {
  24. },
  25. data() {
  26. return {}
  27. },
  28. created() {
  29. },
  30. mounted() {
  31. },
  32. methods: {
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. </style>