Skip to content

Commit 45492bd

Browse files
typo and transform list preset
1 parent fabb736 commit 45492bd

File tree

7 files changed

+41
-45
lines changed

7 files changed

+41
-45
lines changed

docs/presets/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pageClass: extra-spacing
99
`VclFacebook`
1010

1111
<Showcase type="VclFacebook" />
12+
<!--
1213
1314
## Instagram
1415
@@ -22,14 +23,13 @@ pageClass: extra-spacing
2223
2324
<Showcase type="VclCode" />
2425
25-
<!--
26-
2726
## List
2827
2928
`VclList`
3029
3130
<Showcase type="VclList" />
3231
32+
3333
## Bullet List
3434
3535
`VclBulletList`

src/components/presets/Code.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import VueContentLoading from '../VueContentLoading';
22

33
export default {
4-
components: {
5-
VueContentLoading,
6-
},
4+
functional: true,
75

86
render: (h, {
97
data,

src/components/presets/Facebook.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import VueContentLoading from '../VueContentLoading';
22

33
export default {
4-
funcional: true,
4+
functional: true,
55

6-
render: (h, {
6+
render (h, {
77
data,
8-
} = {}) => (
9-
<VueContentLoading {...data}>
10-
<rect x="0" y="0" rx="5" ry="5" width="70" height="70" />
11-
<rect x="80" y="17" rx="4" ry="4" width="300" height="13" />
12-
<rect x="80" y="40" rx="3" ry="3" width="250" height="10" />
13-
<rect x="0" y="80" rx="3" ry="3" width="350" height="10" />
14-
<rect x="0" y="100" rx="3" ry="3" width="400" height="10" />
15-
<rect x="0" y="120" rx="3" ry="3" width="360" height="10" />
16-
</VueContentLoading>
17-
),
8+
} = {}) {
9+
return (
10+
<VueContentLoading {...data}>
11+
<rect x="0" y="0" rx="5" ry="5" width="70" height="70" />
12+
<rect x="80" y="17" rx="4" ry="4" width="300" height="13" />
13+
<rect x="80" y="40" rx="3" ry="3" width="250" height="10" />
14+
<rect x="0" y="80" rx="3" ry="3" width="350" height="10" />
15+
<rect x="0" y="100" rx="3" ry="3" width="400" height="10" />
16+
<rect x="0" y="120" rx="3" ry="3" width="360" height="10" />
17+
</VueContentLoading>
18+
);
19+
},
1820
};

src/components/presets/Instagram.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import VueContentLoading from '../VueContentLoading';
22

33
export default {
4-
components: {
5-
VueContentLoading,
6-
},
4+
functional: true,
75

86
render: (h, {
97
data,

src/components/presets/List.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import VueContentLoading from '../VueContentLoading';
2+
3+
export default {
4+
functional: true,
5+
6+
render: (h, {
7+
data,
8+
} = {}) => (
9+
<VueContentLoading {...data} width={300} height={120}>
10+
<rect x="0" y="0" rx="3" ry="3" width="250" height="10" />
11+
<rect x="20" y="20" rx="3" ry="3" width="220" height="10" />
12+
<rect x="20" y="40" rx="3" ry="3" width="170" height="10" />
13+
<rect x="0" y="60" rx="3" ry="3" width="250" height="10" />
14+
<rect x="20" y="80" rx="3" ry="3" width="200" height="10" />
15+
<rect x="20" y="100" rx="3" ry="3" width="80" height="10" />
16+
</VueContentLoading>
17+
),
18+
};

src/components/presets/List.vue

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import VueContentLoading from './components/VueContentLoading';
1+
// import VueContentLoading from './components/VueContentLoading';
22

33
import VclCode from './components/presets/Code';
4-
// import VclList from './components/presets/List.vue';
4+
import VclList from './components/presets/List';
55
// import VclTable from './components/presets/Table.vue';
66
// import VclTwitch from './components/presets/Twitch.vue';
77
import VclFacebook from './components/presets/Facebook';
88
import VclInstagram from './components/presets/Instagram';
99
// import VclBulletList from './components/presets/BulletList.vue';
1010

11-
export default VueContentLoading;
11+
// export default VueContentLoading;
1212

1313
export {
1414
VclCode,
15-
// VclList,
15+
VclList,
1616
// VclTable,
1717
// VclTwitch,
1818
VclFacebook,
1919
VclInstagram,
2020
// VclBulletList,
21-
VueContentLoading,
21+
// VueContentLoading,
2222
};

0 commit comments

Comments
 (0)