Skip to content

Commit 6b61d6a

Browse files
author
Jeff
committed
improve Localization docs
1 parent 5869079 commit 6b61d6a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/gitbook/Basics/Localization.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,32 @@ The `dir` attribute accepts the same values as the [HTML spec](https://developer
1212

1313
All of the text within the component has been wrapped within [slots](https://vuejs.org/v2/guide/components.html#Content-Distribution-with-Slots) and can be replaced in your app.
1414

15-
1615
##### Loading Spinner
17-
16+
*Slot Definition:*
1817
```html
1918
<slot name="spinner">
2019
<div class="spinner" v-show="mutableLoading">Loading...</div>
2120
</slot>
2221
```
22+
*Implementation:*
23+
```html
24+
<v-select>
25+
<i slot="spinner" class="icon icon-spinner"></i>
26+
</v-select>
27+
```
2328

2429
##### No Options Text
25-
30+
*Slot Definition:*
2631
```html
2732
<slot name="no-options">Sorry, no matching options.</slot>
2833
```
34+
*Implementation:*
35+
```html
36+
<v-select>
37+
<span slot="no-options">No Options Here!</div>
38+
</v-select>
39+
```
40+
2941
For a full list of component slots, view the [slots API docs](Api/Slots.md).
3042

3143
[](codepen://sagalbot/oZmLVN?height=250)

0 commit comments

Comments
 (0)