Skip to content

Commit 8754692

Browse files
bullet list rows prop
1 parent 88ae425 commit 8754692

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

docs/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/presets.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@
3434

3535
### Bullet List
3636

37+
| Custom Prop | Type | Default | Description |
38+
|:-----------:|:------:|:-------:|:----------------:|
39+
| rows | Number | 5 | The list rows |
40+
3741
<color-switch>
3842
<template slot-scope="props">
39-
<vcl-bullet-list :primary="props.primary" :secondary="props.secondary" />
43+
<vcl-bullet-list :primary="props.primary" :secondary="props.secondary" :rows="5" />
4044
</template>
4145
</color-switch>
4246

src/components/presets/BulletList.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ export default {
55
VueContentLoading,
66
},
77

8-
data () {
9-
return {
10-
rows: 5,
11-
};
8+
props: {
9+
rows: {
10+
default: 5,
11+
type: Number,
12+
}
1213
},
1314

1415
computed: {

0 commit comments

Comments
 (0)