Skip to content

Commit 4eb93b7

Browse files
authored
Merge pull request #239 from niceplugin/examples/modal
예제 번역: /examples/modal
2 parents 6c0b7b4 + e990e22 commit 4eb93b7

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

ko-KR/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export const sidebar = {
473473
link: '/examples/#svg'
474474
},
475475
{
476-
text: 'Modal with Transitions',
476+
text: '트렌지션으로 모달 구현',
477477
link: '/examples/#modal'
478478
},
479479
{
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
<button id="show-modal" @click="showModal = true">Show Modal</button>
1+
<button id="show-modal" @click="showModal = true">모달 열기</button>
22

3+
<!--
4+
Vue 가상 DOM 구조에서
5+
모달 컴포넌트는 현재 컴포넌트의 자식이지만,
6+
<body> 태그에 위치합니다.
7+
-->
38
<Teleport to="body">
4-
<!-- use the modal component, pass in the prop -->
9+
<!-- prop을 전달하는 모달 컴포넌트를 사용합니다 -->
510
<modal :show="showModal" @close="showModal = false">
11+
<!-- name 속성 값이 "header"인 슬롯에 전달될 컨텐츠 -->
612
<template #header>
7-
<h3>custom header</h3>
13+
<h3>커스텀 해더</h3>
814
</template>
915
</modal>
1016
</Teleport>

ko-KR/src/examples/src/modal/Modal/template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<div class="modal-wrapper">
44
<div class="modal-container">
55
<div class="modal-header">
6-
<slot name="header">default header</slot>
6+
<slot name="header">기본 해더</slot>
77
</div>
88

99
<div class="modal-body">
10-
<slot name="body">default body</slot>
10+
<slot name="body">기본 컨텐츠</slot>
1111
</div>
1212

1313
<div class="modal-footer">
1414
<slot name="footer">
15-
default footer
15+
기본 푸터
1616
<button
1717
class="modal-default-button"
1818
@click="$emit('close')"
19-
>OK</button>
19+
>확인</button>
2020
</slot>
2121
</div>
2222
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Modal component with customizable slots and CSS transitions.
1+
커스텀 가능한 슬롯 및 CSS 트렌지션이 있는 모달 컴포넌트

0 commit comments

Comments
 (0)