File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
components/profile/follow Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 28
28
<ProfileFollowTab
29
29
v-if =" activeTab === 'followers'"
30
30
type =" followers"
31
- :user-list =" followersList"
32
31
:total-count =" followersCount"
33
32
/>
34
33
<ProfileFollowTab
35
34
v-else
36
35
type =" following"
37
- :user-list =" followingList"
38
36
:total-count =" followingCount"
39
37
/>
40
38
</tamplate >
45
43
<script setup lang="ts">
46
44
import { NeoModal } from ' @kodadot1/brick'
47
45
import TabItem from ' @/components/shared/TabItem.vue'
48
- import type { Follower } from ' @/services/profile'
49
46
import type { Tab } from ' @/components/profile/types'
50
47
51
48
const emit = defineEmits ([' close' ])
@@ -63,9 +60,6 @@ const counts = {
63
60
following: props .followingCount ,
64
61
}
65
62
66
- const followersList = ref <Follower []>([])
67
- const followingList = ref <Follower []>([])
68
-
69
63
const activeTab = ref <Tab >(' followers' )
70
64
71
65
const vOpen = useVModel (props , ' modelValue' )
Original file line number Diff line number Diff line change 11
11
<div
12
12
v-else-if =" totalCount > 0"
13
13
ref =" el"
14
- class =" flex flex-col gap-5"
14
+ class =" flex flex-col gap-5 max-h-[400px] overflow-y-auto "
15
15
>
16
16
<UserRow
17
17
v-for =" user in vList"
@@ -40,11 +40,10 @@ const route = useRoute()
40
40
41
41
const props = defineProps <{
42
42
totalCount: number
43
- userList: Follower []
44
43
type: Tab
45
44
}>()
46
45
47
- const vList = useVModel ( props , ' userList ' )
46
+ const vList = ref < Follower []>([] )
48
47
const offset = computed (() => vList .value .length )
49
48
const limit = 10
50
49
const el = ref <HTMLElement | null >(null )
You can’t perform that action at this time.
0 commit comments