File tree Expand file tree Collapse file tree 6 files changed +41
-17
lines changed Expand file tree Collapse file tree 6 files changed +41
-17
lines changed Original file line number Diff line number Diff line change 6
6
7
7
// If you want to add something do it here
8
8
@import " custom" ;
9
+
10
+ .card-header .c-icon :first-child {
11
+ margin-right : 0.1rem ;
12
+ margin-top : 0.1rem ;
13
+ vertical-align : top ;
14
+ width : 1.2rem ;
15
+ height : 1.2rem ;
16
+ font-size : 1.2rem ;
17
+ }
Original file line number Diff line number Diff line change 16
16
width =" 97"
17
17
height =" 46"
18
18
alt =" CoreUI Logo"
19
- :wrappedInLink =" { href: 'https://coreui.io', target: '_blank'}"
20
19
/>
21
20
<CHeaderNav class =" d-md-down-none mr-auto" >
22
- <CHeaderNavItem class =" px-3" to = " /dashboard " >
23
- <CHeaderNavLink >
21
+ <CHeaderNavItem class =" px-3" >
22
+ <CHeaderNavLink to = " /dashboard " >
24
23
Dashboard
25
24
</CHeaderNavLink >
26
25
</CHeaderNavItem >
27
- <CHeaderNavItem class =" px-3" to = " /users " exact >
28
- <CHeaderNavLink >
26
+ <CHeaderNavItem class =" px-3" >
27
+ <CHeaderNavLink to = " /users " exact >
29
28
Users
30
29
</CHeaderNavLink >
31
30
</CHeaderNavItem >
Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ export default [
216
216
}
217
217
} ,
218
218
{
219
- _name : 'CSidebarNavDivider'
219
+ _name : 'CSidebarNavDivider' ,
220
+ _class : 'm-2'
220
221
} ,
221
222
{
222
223
_name : 'CSidebarNavTitle' ,
Original file line number Diff line number Diff line change 2
2
<div >
3
3
<CCard >
4
4
<CCardHeader >
5
- <CIcon name =" cil-globe-alt " />Brand icons
5
+ <CIcon name =" cil-basket " />Brand icons
6
6
</CCardHeader >
7
7
<CCardBody >
8
8
<CRow class =" text-center" >
14
14
:key =" brandName"
15
15
>
16
16
<CIcon :height =" 42" :content =" brand" />
17
- <div >{{brandName}}</div >
17
+ <div >{{toKebabCase( brandName) }}</div >
18
18
</CCol >
19
19
</template >
20
20
</CRow >
27
27
import { brandSet as brands } from ' @coreui/icons'
28
28
export default {
29
29
name: ' Brands' ,
30
- brands
30
+ brands,
31
+ methods: {
32
+ toKebabCase (str ) {
33
+ return str .replace (/ ([a-z ] )([A-Z0-9 ] )/ g , ' $1-$2' ).toLowerCase ()
34
+ }
35
+ }
31
36
}
32
37
</script >
Original file line number Diff line number Diff line change 3
3
<div >
4
4
<CCard >
5
5
<CCardHeader >
6
- <CIcon :content =" $options.freeSet.pencil" />CoreUI Icons
6
+ <CIcon :content =" $options.freeSet.cilHandPointDown" />
7
+ CoreUI Icons
7
8
<CBadge color =" info" >New</CBadge >
8
9
<div class =" card-header-actions" >
9
10
<a
26
27
:key =" iconName"
27
28
>
28
29
<CIcon :height =" 42" :content =" icon" />
29
- <div >{{iconName}}</div >
30
+ <div >{{toKebabCase( iconName) }}</div >
30
31
</CCol >
31
32
</template >
32
33
</CRow >
39
40
import { freeSet } from ' @coreui/icons'
40
41
export default {
41
42
name: ' CoreUIIcons' ,
42
- freeSet
43
+ freeSet,
44
+ methods: {
45
+ toKebabCase (str ) {
46
+ console .log (this .$options .freeSet , this .$options .freeSet .handPointDown )
47
+ return str .replace (/ ([a-z ] )([A-Z0-9 ] )/ g , ' $1-$2' ).toLowerCase ()
48
+ }
49
+ }
43
50
}
44
51
</script >
Original file line number Diff line number Diff line change 13
13
span. If you want to have a squared version flag then add the class
14
14
flag-icon-squared as well. -->
15
15
</CCol >
16
- <template v-for =" (flag , key ) in displayedFlags " >
16
+ <template v-for =" (flag , flagName ) in displayedFlags " >
17
17
<CCol
18
18
class =" mb-5"
19
19
col =" 3"
20
20
sm =" 2"
21
- :key =" key "
21
+ :key =" flagName "
22
22
>
23
23
<CIcon :height =" 42" :content =" flag" />
24
- <div >{{key }}</div >
24
+ <div >{{toKebabCase(flagName) }}</div >
25
25
</CCol >
26
26
</template >
27
27
</CRow >
@@ -36,11 +36,14 @@ export default {
36
36
name: ' Flags' ,
37
37
flagSet,
38
38
computed: {
39
- // Avoid duplication caused by displaying 1x1 and 4x3 formats
40
- // (adding Q to name makes icon quadratic)
41
39
displayedFlags () {
42
40
return this .$options .flagSet
43
41
}
42
+ },
43
+ methods: {
44
+ toKebabCase (str ) {
45
+ return str .replace (/ ([a-z ] )([A-Z0-9 ] )/ g , ' $1-$2' ).toLowerCase ()
46
+ }
44
47
}
45
48
}
46
49
</script >
You can’t perform that action at this time.
0 commit comments