Browse Source

style: 🎨 修改字体大小

test
姜鑫 2 years ago
parent
commit
3c3e3c08ce
  1. 9
      src/App.vue
  2. 2
      src/components/ScrollList/ScrollList.vue

9
src/App.vue

@ -39,7 +39,7 @@ onMounted(() => {
_getCustomerList() _getCustomerList()
timer = setInterval(() => { timer = setInterval(() => {
_getCustomerList() _getCustomerList()
scrollList.value.scroll()
scrollList.value?.scroll()
}, 1000 * 60) }, 1000 * 60)
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
@ -47,7 +47,7 @@ onBeforeUnmount(() => {
}) })
function back() { function back() {
scrollList.value.scroll()
scrollList.value?.scroll()
} }
</script> </script>
@ -61,4 +61,9 @@ body,
#app { #app {
background: #000; background: #000;
} }
.text-24 p,
.text-24 div,
.text-24 span {
font-size: 24px !important;
}
</style> </style>

2
src/components/ScrollList/ScrollList.vue

@ -27,7 +27,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { shallowRef, computed, onMounted, onBeforeUnmount } from 'vue'
import { shallowRef, computed } from 'vue'
import { chunk } from 'lodash-es' import { chunk } from 'lodash-es'
import ScrollListItem from '@/components/ScrollListItem/ScrollListItem.vue' import ScrollListItem from '@/components/ScrollListItem/ScrollListItem.vue'
import SwiperCore, { Autoplay } from 'swiper' import SwiperCore, { Autoplay } from 'swiper'

Loading…
Cancel
Save