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
46
47
48
49
| <template>
| <u-popup v-model="show" :round="true" mode="bottom" borderRadius="12" @close="$emit('update:flag', show)">
| <scroll-view scroll-y="true" style="height:350px" @scrolltolower="lower">
| <slot name="con"> </slot>
| </scroll-view>
| </u-popup>
| </template>
| <script>
| export default {
|
| props: {
| flag: {
| default: false,
| type: Boolean
| },
| part: {
| default: false,
| type: Boolean
| }
|
| },
| data() {
| return {
| show: false,
| page: 2
| }
| },
| methods: {
| lower() {
| this.$emit('lower', this.page++)
| }
| },
| watch: {
| flag() {
| this.show = this.flag
| },
| show(newVal, oldVal) {
| if (newVal == false) {
| this.page = 2
| }
| },
| part(newVal, oldVal) {
| if (newVal == true) {
| this.page = 2
| }
| }
| }
| }
| </script>
|
|