File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ export const sidebar = {
473
473
link : '/examples/#svg'
474
474
} ,
475
475
{
476
- text : 'Modal with Transitions ' ,
476
+ text : '트렌지션으로 모달 구현 ' ,
477
477
link : '/examples/#modal'
478
478
} ,
479
479
{
Original file line number Diff line number Diff line change 1
- < button id ="show-modal " @click ="showModal = true "> Show Modal </ button >
1
+ < button id ="show-modal " @click ="showModal = true "> 모달 열기 </ button >
2
2
3
+ <!--
4
+ Vue 가상 DOM 구조에서
5
+ 모달 컴포넌트는 현재 컴포넌트의 자식이지만,
6
+ <body> 태그에 위치합니다.
7
+ -->
3
8
< Teleport to ="body ">
4
- <!-- use the modal component, pass in the prop -->
9
+ <!-- prop을 전달하는 모달 컴포넌트를 사용합니다 -->
5
10
< modal :show ="showModal " @close ="showModal = false ">
11
+ <!-- name 속성 값이 "header"인 슬롯에 전달될 컨텐츠 -->
6
12
< template #header >
7
- < h3 > custom header </ h3 >
13
+ < h3 > 커스텀 해더 </ h3 >
8
14
</ template >
9
15
</ modal >
10
16
</ Teleport >
Original file line number Diff line number Diff line change 3
3
< div class ="modal-wrapper ">
4
4
< div class ="modal-container ">
5
5
< div class ="modal-header ">
6
- < slot name ="header "> default header </ slot >
6
+ < slot name ="header "> 기본 해더 </ slot >
7
7
</ div >
8
8
9
9
< div class ="modal-body ">
10
- < slot name ="body "> default body </ slot >
10
+ < slot name ="body "> 기본 컨텐츠 </ slot >
11
11
</ div >
12
12
13
13
< div class ="modal-footer ">
14
14
< slot name ="footer ">
15
- default footer
15
+ 기본 푸터
16
16
< button
17
17
class ="modal-default-button "
18
18
@click ="$emit('close') "
19
- > OK </ button >
19
+ > 확인 </ button >
20
20
</ slot >
21
21
</ div >
22
22
</ div >
Original file line number Diff line number Diff line change 1
- Modal component with customizable slots and CSS transitions.
1
+ 커스텀 가능한 슬롯 및 CSS 트렌지션이 있는 모달 컴포넌트
You can’t perform that action at this time.
0 commit comments