backlogIndex.vue 779 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="uni-app">
  3. <view class="status-bar" />
  4. <view class="main-container">
  5. <wk-nav-bar title="待办" />
  6. <view class="list-view">
  7. <backlog-list v-if="showList" />
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import BacklogList from './backlogList.vue'
  14. export default {
  15. name: 'BacklogIndex',
  16. components: {
  17. BacklogList
  18. },
  19. data() {
  20. return {
  21. showList: false
  22. }
  23. },
  24. onShow() {
  25. if (this.showList) {
  26. this.showList = false
  27. this.$nextTick(() => {
  28. this.showList = true
  29. })
  30. } else {
  31. this.showList = true
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .list-view {
  38. flex: 1;
  39. overflow-y: hidden;
  40. }
  41. </style>