This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +47
-224
lines changed
_templates/generator/component
playground/src/.generated Expand file tree Collapse file tree 6 files changed +47
-224
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ to: packages/<%=h.changeCase.paramCase(name)%>/src/index.ts
5
5
import { h, defineComponent, PropType } from 'vue'
6
6
import { chakra, DOMElements } from '@chakra-ui/vue-system'
7
7
8
- export const CIcon = defineComponent({
8
+ export const <%= h . changeCase . pascalCase (name) %> = defineComponent({
9
9
props: {
10
10
as: {
11
11
type: [Object, String] as PropType<DOMElements >,
Original file line number Diff line number Diff line change
1
+ ---
2
+ to: packages/<%= h .changeCase .paramCase (name)%> /examples/base-<%= h .changeCase .paramCase (name)%> .vue
3
+ ---
4
+
5
+ <template >
6
+ <<%= h .changeCase .pascalCase (name)%> > HELLO <%= h .changeCase .pascalCase (name)%> <<%= h .changeCase .pascalCase (name)%> >
7
+ </template >
8
+
9
+ <script lang =" ts" >
10
+ import { <%=h .changeCase .pascalCase (name )%> } from ' @chakra-ui/<%=h.changeCase.paramCase(name)%>/src'
11
+ import { defineComponent } from ' vue'
12
+
13
+ export default defineComponent ({
14
+ name: ' Base<%= h.changeCase.pascalCase(name) %>Example' ,
15
+ components: { < %= h .changeCase .pascalCase (name) % > },
16
+ })
17
+ </script >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <c-icon > HELLO ALERT </c-icon >
3
+ </template >
4
+
5
+ <script lang="ts">
6
+ import { CIcon } from ' @chakra-ui/c-icon/src'
7
+ import { defineComponent } from ' vue'
8
+
9
+ export default defineComponent ({
10
+ name: ' BaseCIconExample' ,
11
+ components: { CIcon },
12
+ })
13
+ </script >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ const Component_3 = () => import('@chakra-ui/c-alert/examples/with-accent.vue')
4
4
const Component_4 = ( ) => import ( '@chakra-ui/c-alert/examples/with-status.vue' )
5
5
const Component_5 = ( ) => import ( '@chakra-ui/c-alert/examples/with-title.vue' )
6
6
const Component_6 = ( ) => import ( '@chakra-ui/c-button/examples/base-button.vue' )
7
- import Component_7 from "../components/Home.vue" ;
7
+ const Component_7 = ( ) => import ( '@chakra-ui/c-icon/examples/base-icon.vue' )
8
+ import Component_8 from "../components/Home.vue" ;
8
9
9
10
export default {
10
- "../components/Home.vue" : Component_7 ,
11
+ "../components/Home.vue" : Component_8 ,
11
12
"@chakra-ui/c-alert/examples/base-alert.vue" : Component_2 ,
12
13
"@chakra-ui/c-alert/examples/with-accent.vue" : Component_3 ,
13
14
"@chakra-ui/c-alert/examples/with-status.vue" : Component_4 ,
14
15
"@chakra-ui/c-alert/examples/with-title.vue" : Component_5 ,
15
- "@chakra-ui/c-button/examples/base-button.vue" : Component_6
16
+ "@chakra-ui/c-button/examples/base-button.vue" : Component_6 ,
17
+ "@chakra-ui/c-icon/examples/base-icon.vue" : Component_7
16
18
}
Original file line number Diff line number Diff line change 41
41
}
42
42
]
43
43
},
44
+ {
45
+ "name" : " Icon" ,
46
+ "path" : " /c-icon" ,
47
+ "children" : [
48
+ {
49
+ "name" : " Base icon" ,
50
+ "path" : " /c-icon/base-icon" ,
51
+ "component" : " @chakra-ui/c-icon/examples/base-icon.vue"
52
+ }
53
+ ]
54
+ },
44
55
{
45
56
"name" : " NotFound" ,
46
57
"path" : " /*" ,
You can’t perform that action at this time.
0 commit comments