Skip to content

Commit fabb736

Browse files
transform code preset
1 parent 7bb047e commit fabb736

File tree

4 files changed

+27
-26
lines changed

4 files changed

+27
-26
lines changed

docs/presets/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ pageClass: extra-spacing
1616

1717
<Showcase type="VclInstagram" />
1818

19-
<!--
2019
## Code
2120

2221
`VclCode`
2322

2423
<Showcase type="VclCode" />
2524

25+
<!--
26+
2627
## List
2728
2829
`VclList`

src/components/presets/Code.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import VueContentLoading from '../VueContentLoading';
2+
3+
export default {
4+
components: {
5+
VueContentLoading,
6+
},
7+
8+
render: (h, {
9+
data,
10+
} = {}) => (
11+
<VueContentLoading {...data} width={300} height={80}>
12+
<rect x="0" y="0" rx="3" ry="3" width="70" height="10" />
13+
<rect x="80" y="0" rx="3" ry="3" width="100" height="10" />
14+
<rect x="190" y="0" rx="3" ry="3" width="10" height="10" />
15+
<rect x="15" y="20" rx="3" ry="3" width="130" height="10" />
16+
<rect x="155" y="20" rx="3" ry="3" width="130" height="10" />
17+
<rect x="15" y="40" rx="3" ry="3" width="90" height="10" />
18+
<rect x="115" y="40" rx="3" ry="3" width="60" height="10" />
19+
<rect x="185" y="40" rx="3" ry="3" width="60" height="10" />
20+
<rect x="0" y="60" rx="3" ry="3" width="30" height="10" />
21+
</VueContentLoading>
22+
),
23+
};

src/components/presets/Code.vue

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

src/main.js

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

3-
// import VclCode from './components/presets/Code.vue';
3+
import VclCode from './components/presets/Code';
44
// import VclList from './components/presets/List.vue';
55
// import VclTable from './components/presets/Table.vue';
66
// import VclTwitch from './components/presets/Twitch.vue';
@@ -11,7 +11,7 @@ import VclInstagram from './components/presets/Instagram';
1111
export default VueContentLoading;
1212

1313
export {
14-
// VclCode,
14+
VclCode,
1515
// VclList,
1616
// VclTable,
1717
// VclTwitch,

0 commit comments

Comments
 (0)