Skip to content

Commit 01e3281

Browse files
authored
Merge pull request #232 from niceplugin/examples/form-bindings
예제 번역: /examples/form-bindings
2 parents 7aef3fc + 1dfe7c2 commit 01e3281

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

ko-KR/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ export const sidebar = {
440440
link: '/examples/#conditionals-and-loops'
441441
},
442442
{
443-
text: 'Form 바인딩',
443+
text: '폼(form) 바인딩',
444444
link: '/examples/#form-bindings'
445445
},
446446
{

ko-KR/src/examples/src/form-bindings/App/composition.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { ref } from 'vue'
22

33
export default {
44
setup() {
5-
const text = ref('Edit me')
5+
const text = ref('수정해보세요')
66
const checked = ref(true)
7-
const checkedNames = ref(['Jack'])
8-
const picked = ref('One')
9-
const selected = ref('A')
10-
const multiSelected = ref(['A'])
7+
const checkedNames = ref(['철수'])
8+
const picked = ref('서울')
9+
const selected = ref('')
10+
const multiSelected = ref(['무궁화'])
1111

1212
return {
1313
text,
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export default {
22
data() {
33
return {
4-
text: 'Edit me',
4+
text: '수정해보세요',
55
checked: true,
6-
checkedNames: ['Jack'],
7-
picked: 'One',
8-
selected: 'A',
9-
multiSelected: ['A']
6+
checkedNames: ['철수'],
7+
picked: '서울',
8+
selected: '',
9+
multiSelected: ['무궁화']
1010
}
1111
}
12-
}
12+
}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
<h2>Text Input</h2>
1+
<h2>텍스트 입력</h2>
22
<input v-model="text"> {{ text }}
33

4-
<h2>Checkbox</h2>
4+
<h2>채크박스</h2>
55
<input type="checkbox" id="checkbox" v-model="checked">
6-
<label for="checkbox">Checked: {{ checked }}</label>
6+
<label for="checkbox">체크됨: {{ checked }}</label>
77

88
<!--
9-
multiple checkboxes can bind to the same
10-
array v-model value
9+
여러 체크박스 값을 v-model을 사용하여
10+
하나의 배열에 바인딩할 수 있습니다.
1111
-->
12-
<h2>Multi Checkbox</h2>
13-
<input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
14-
<label for="jack">Jack</label>
15-
<input type="checkbox" id="john" value="John" v-model="checkedNames">
16-
<label for="john">John</label>
17-
<input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
18-
<label for="mike">Mike</label>
19-
<p>Checked names: <pre>{{ checkedNames }}</pre></p>
12+
<h2>멀티 채크박스</h2>
13+
<input type="checkbox" id="chulsoo" value="철수" v-model="checkedNames">
14+
<label for="chulsoo">철수</label>
15+
<input type="checkbox" id="yuri" value="유리" v-model="checkedNames">
16+
<label for="yuri">유리</label>
17+
<input type="checkbox" id="maenggu" value="맹구" v-model="checkedNames">
18+
<label for="maenggu">맹구</label>
19+
<p>체크된 이름: <pre>{{ checkedNames }}</pre></p>
2020

21-
<h2>Radio</h2>
22-
<input type="radio" id="one" value="One" v-model="picked">
23-
<label for="one">One</label>
21+
<h2>라디오</h2>
22+
<input type="radio" id="seoul" value="서울" v-model="picked">
23+
<label for="seoul">서울</label>
2424
<br>
25-
<input type="radio" id="two" value="Two" v-model="picked">
26-
<label for="two">Two</label>
25+
<input type="radio" id="busan" value="부산" v-model="picked">
26+
<label for="busan">부산</label>
2727
<br>
28-
<span>Picked: {{ picked }}</span>
28+
<span>고른것: {{ picked }}</span>
2929

30-
<h2>Select</h2>
30+
<h2>선택</h2>
3131
<select v-model="selected">
32-
<option disabled value="">Please select one</option>
33-
<option>A</option>
34-
<option>B</option>
35-
<option>C</option>
32+
<option disabled value="">하나를 선택하세요</option>
33+
<option></option>
34+
<option></option>
35+
<option></option>
3636
</select>
37-
<span>Selected: {{ selected }}</span>
37+
<span>선택함: {{ selected }}</span>
3838

39-
<h2>Multi Select</h2>
39+
<h2>복수 선택</h2>
4040
<select v-model="multiSelected" multiple style="width:100px">
41-
<option>A</option>
42-
<option>B</option>
43-
<option>C</option>
41+
<option>무궁화</option>
42+
<option>진달래</option>
43+
<option>개나리</option>
4444
</select>
45-
<span>Selected: {{ multiSelected }}</span>
45+
<span>선택함: {{ multiSelected }}</span>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
We can create two-way bindings between state and form inputs using the v-model directive.
1+
v-model 디렉티브를 사용하여 상태와 폼 입력 간에 양방향 바인딩을 만들 수 있습니다.

0 commit comments

Comments
 (0)