📅  最后修改于: 2022-03-11 15:03:27.007000             🧑  作者: Mango
`,
})
export class UserListComponent {
@Output() selectUser = new EventEmitter<{ id: string; name: string }>()
@Inout() users: { id: string; name: string }[]
onSelectUser(id: string) {
this.selectUser.emit(this.users.find(u => u.id === id))
}
}