import ChatUserList from './ChatUserList.vue'; 컴포넌트를 불러올 수 있다.
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
<template>
    <div class="flex h-full">
 
        <ChatUserList/>
       
        <div class="w-4/5 flex flex-col">
            
            <div class="flex-1">Chat Area</div>
 
            <div class="flex-initial p-2">
               <input class="border-r border-solids rounded border-gray-600 w-full p-3" type="text" name="">
            </div>
 
        </div>
    </div>
</template>
 
<script>
 
    import ChatUserList from './ChatUserList.vue';
 
    export default {
 
        components : {
 
            ChatUserList
            
        },
 
        mounted() {
            console.log('Component mounted.')
        }
    }
</script>
 
cs


'Vue' 카테고리의 다른 글

클래스 스타일 변경하기  (0) 2020.02.15
바인딩 양방향바인딩  (0) 2020.02.10
vue cli 프로젝트 생성하기 2.X, 3.X  (0) 2019.08.02
Cli설치시 에러  (0) 2019.08.02
이벤트 처리  (0) 2019.08.02

+ Recent posts