Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit df749bd

Browse files
4-spaces intend for README file
1 parent 5caae50 commit df749bd

File tree

2 files changed

+46
-47
lines changed

2 files changed

+46
-47
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ insert_final_newline = true
1111

1212
[*.md]
1313
indent_style = space
14-
indent_size = 2
1514
trim_trailing_whitespace = false
1615

1716
[*.{yml,yaml}]

README.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ Vue.use(VueAgile)
7070
import { VueAgile } from 'vue-agile'
7171

7272
export default {
73-
components: {
74-
agile: VueAgile
75-
}
73+
components: {
74+
agile: VueAgile
75+
}
7676
}
7777
```
7878

@@ -87,17 +87,17 @@ export default {
8787

8888
```vue
8989
<template>
90-
<agile>
91-
<div class="slide">
92-
<h3>slide 1</h3>
93-
</div>
94-
95-
...
96-
97-
<div class="slide">
98-
<h3>slide n</h3>
99-
</div>
100-
</agile>
90+
<agile>
91+
<div class="slide">
92+
<h3>slide 1</h3>
93+
</div>
94+
95+
...
96+
97+
<div class="slide">
98+
<h3>slide n</h3>
99+
</div>
100+
</agile>
101101
</template>
102102
```
103103

@@ -172,8 +172,8 @@ Every first-level child of `<agile>` is a new slide. You also can group them ins
172172

173173
```js
174174
showCurrentSlide (event) {
175-
console.log(event)
176-
// Shows for example: { currentSlide: 1 }
175+
console.log(event)
176+
// Shows for example: { currentSlide: 1 }
177177
}
178178
```
179179

@@ -189,33 +189,33 @@ To customize responsiveness, I recommend defining your desired breakpoints and p
189189

190190
```js
191191
data () {
192-
return {
193-
myOptions: {
194-
navButtons: false,
195-
196-
responsive: [
197-
{
198-
breakpoint: 600,
199-
settings: {
200-
dots: false
201-
}
202-
},
203-
204-
{
205-
breakpoint: 900,
206-
settings: {
207-
navButtons: true,
208-
dots: true,
209-
infinite: false
210-
}
192+
return {
193+
myOptions: {
194+
navButtons: false,
195+
196+
responsive: [
197+
{
198+
breakpoint: 600,
199+
settings: {
200+
dots: false
201+
}
202+
},
203+
204+
{
205+
breakpoint: 900,
206+
settings: {
207+
navButtons: true,
208+
dots: true,
209+
infinite: false
210+
}
211+
}
212+
]
211213
}
212-
]
213214
}
214-
}
215215
}
216216
```
217217

218-
How does it work? Mobile first mode is used by default. It means, that `navButtons: false` option will be used on screens from 0 to 600 px width (+ all default carousel options). On screens from 600 to 900 px `dots: false` will be added to options from breakpoint before. And on screens over 900 px width `navButtons` and `dots` options will be overwritten and `infinite: false` will be added.
218+
How does it work? Mobile first mode is used by default. It means, that `navButtons: false` option will be used on screens from 0 to 600 px width (+ all default carousel options). On screens from 600 to 900 px `dots: false` will be added to options from breakpoint before. And on screens over 900 px width `navButtons` and `dots` options will be overwritten and `infinite: false` will be added.
219219

220220
## Custom arrows / nav buttons
221221

@@ -225,10 +225,10 @@ From version `1.0` the component use slots for custom navigation buttons. It mea
225225

226226
```vue
227227
<agile>
228-
... <!-- slides -->
229-
230-
<template slot="prevButton">prev</template>
231-
<template slot="nextButton">next</template>
228+
... <!-- slides -->
229+
230+
<template slot="prevButton">prev</template>
231+
<template slot="nextButton">next</template>
232232
</agile>
233233
```
234234

@@ -280,15 +280,15 @@ Vue.use(VueAgile)
280280
// nuxt.config.js
281281

282282
module.exports = {
283-
plugins: [
284-
{ src: '~/plugins/vue-agile', ssr: false }
285-
]
283+
plugins: [
284+
{ src: '~/plugins/vue-agile', ssr: false }
285+
]
286286
}
287287
```
288288

289289
```vue
290290
<client-only placeholder="Loading...">
291-
<agile>...</agile>
291+
<agile>...</agile>
292292
</client-only>
293293
```
294294

0 commit comments

Comments
 (0)