Skip to content

Commit 86b9292

Browse files
Update description.md
1 parent 58f3e59 commit 86b9292

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: src/tutorial/src/step-14/description.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Slots {#slots}
1+
# Slot-тар {#slots}
22

3-
In addition to passing data via props, the parent component can also pass down template fragments to the child via **slots**:
3+
Деректерді проптар арқылы жіберумен қатар, ата-ана компоненті баласына **slot** арқылы шаблон фрагменттерін жіберуге де болады:
44

55
<div class="sfc">
66

77
```vue-html
88
<ChildComp>
9-
This is some slot content!
9+
Бұл слоттың мазмұны!
1010
</ChildComp>
1111
```
1212

@@ -15,35 +15,35 @@ In addition to passing data via props, the parent component can also pass down t
1515

1616
```vue-html
1717
<child-comp>
18-
This is some slot content!
18+
Бұл слоттың мазмұны!
1919
</child-comp>
2020
```
2121

2222
</div>
2323

24-
In the child component, it can render the slot content from the parent using the `<slot>` element as outlet:
24+
Баланың компонентінде, ата-анадан келген слоттың мазмұнын `<slot>` элементі арқылы көрсетуге болады:
2525

2626
<div class="sfc">
2727

2828
```vue-html
29-
<!-- in child template -->
29+
<!-- бала шаблонында -->
3030
<slot/>
3131
```
3232

3333
</div>
3434
<div class="html">
3535

3636
```vue-html
37-
<!-- in child template -->
37+
<!-- бала шаблонында -->
3838
<slot></slot>
3939
```
4040

4141
</div>
4242

43-
Content inside the `<slot>` outlet will be treated as "fallback" content: it will be displayed if the parent did not pass down any slot content:
43+
<slot> шыққан жеріндегі мазмұн «резервтік» мазмұн ретінде қарастырылады: егер ата-ана ешқандай слот мазмұнын бермесе, ол көрсетіледі.
4444

4545
```vue-html
46-
<slot>Fallback content</slot>
46+
<slot>Резервтік мазмұн</slot>
4747
```
4848

49-
Currently we are not passing any slot content to `<ChildComp>`, so you should see the fallback content. Let's provide some slot content to the child while making use of the parent's `msg` state.
49+
Қазіргі уақытта біз <ChildComp>-ке ешқандай слот мазмұнын жібермей отырмыз, сондықтан сіз резервтік мазмұнды көруіңіз керек. Енді ата-ананың msg күйін пайдаланып, баласына слот мазмұнын жіберейік.

0 commit comments

Comments
 (0)