Skip to content

Commit 7aef3fc

Browse files
authored
Merge pull request #233 from niceplugin/examples/simple-component
예제 번역: /examples/simple-component
2 parents efdb43a + a3bb993 commit 7aef3fc

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

ko-KR/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export const sidebar = {
444444
link: '/examples/#form-bindings'
445445
},
446446
{
447-
text: 'Simple Component',
447+
text: '단순한 컴포넌트',
448448
link: '/examples/#simple-component'
449449
}
450450
]

ko-KR/src/examples/src/simple-component/App/composition.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { ref } from 'vue'
2-
import TodoItem from './TodoItem.vue'
2+
import ListItem from './ListItem.vue'
33

44
export default {
55
components: {
6-
TodoItem
6+
ListItem
77
},
88
setup() {
99
const groceryList = ref([
10-
{ id: 0, text: 'Vegetables' },
11-
{ id: 1, text: 'Cheese' },
12-
{ id: 2, text: 'Whatever else humans are supposed to eat' }
10+
{ id: 0, text: '채소' },
11+
{ id: 1, text: '치즈' },
12+
{ id: 2, text: '인간이 먹을 수 있는 모든 것' }
1313
])
1414

1515
return {

ko-KR/src/examples/src/simple-component/App/options.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import TodoItem from './TodoItem.vue'
1+
import ListItem from './ListItem.vue'
22

33
export default {
44
components: {
5-
TodoItem
5+
ListItem
66
},
77
data() {
88
return {
99
groceryList: [
10-
{ id: 0, text: 'Vegetables' },
11-
{ id: 1, text: 'Cheese' },
12-
{ id: 2, text: 'Whatever else humans are supposed to eat' }
10+
{ id: 0, text: '채소' },
11+
{ id: 1, text: '치즈' },
12+
{ id: 2, text: '인간이 먹을 수 있는 모든 것' }
1313
]
1414
}
1515
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<ol>
22
<!--
3-
We are providing each todo-item with the todo object
4-
it's representing, so that its content can be dynamic.
5-
We also need to provide each component with a "key",
6-
which is explained in the guide section on v-for.
3+
item 객체를 제공하여 list-item이
4+
콘텐츠를 동적으로 나타낼 수 있도록 합니다.
5+
그리고 컴포넌트에 "key"를 제공해야 하는데,
6+
"리스트 렌더링" 가이드에 설명되어 있습니다.
77
-->
8-
<TodoItem
8+
<ListItem
99
v-for="item in groceryList"
1010
:todo="item"
1111
:key="item.id"
12-
></TodoItem>
12+
></ListItem>
1313
</ol>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Here we show the simplest possible component which accepts a prop and renders it.
2-
Learn more about components in the guide!
1+
여기서는 prop을 전달받아 렌더링하는 가장 단순한 컴포넌트를 보여줍니다.
2+
가이드에서 컴포넌트에 대해 자세히 알아보세요!

0 commit comments

Comments
 (0)