swiper-page.nvue
667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<view class="uni-swiper-page">
<text>Tab View {{ pid}}</text>
</view>
</template>
<script>
export default {
props: {
pid: {
type: [Number, String],
default: ''
}
},
data() {
return {
dataList: []
}
},
created() {},
methods: {
loadData() {
// 首次激活时被调用
},
clear() {
// 释放数据时被调用,参考 swiper-list 缓存配置
this.dataList.length = 0;
}
}
}
</script>
<style scoped>
.uni-swiper-page {
flex: 1;
flex-direction: column;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
align-items: center;
justify-content: center;
}
</style>