File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ export default {
23
23
},
24
24
methods: {
25
25
convertItem (item ) {
26
+ if (typeof item === ' string' ) {
27
+ return item
28
+ }
26
29
let newItem = []
27
- newItem[0 ] = item ._component || ' div'
30
+ newItem[0 ] = item ._name || ' div'
28
31
newItem[1 ] = {}
29
32
newItem[1 ].props = this .getProps (item)
30
33
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import CSidebarMinimizer from './CSidebarMinimizer'
8
8
import CSidebarNav from './CSidebarNav'
9
9
import CSidebarNavDivider from './CSidebarNavDivider'
10
10
import CSidebarNavDropdown from './CSidebarNavDropdown'
11
- import CSidebarNavGenerator from './CSidebarNavGenerator'
12
11
import CSidebarNavItem from './CSidebarNavItem'
13
12
import CSidebarNavTitle from './CSidebarNavTitle'
14
13
@@ -23,7 +22,6 @@ export {
23
22
CSidebarNav ,
24
23
CSidebarNavDivider ,
25
24
CSidebarNavDropdown ,
26
- CSidebarNavGenerator ,
27
25
CSidebarNavItem ,
28
26
CSidebarNavTitle
29
27
}
Original file line number Diff line number Diff line change @@ -58,15 +58,13 @@ export default {
58
58
},
59
59
computed: {
60
60
classList () {
61
- const havePrefix = [' opposite' , ' outline' ].includes (this .variant )
62
- const colorPrefix = havePrefix ? ` -${ this .variant } ` : ' '
61
+ const variant = this .variant ? ` -${ this .variant } ` : ' '
63
62
return [
64
63
' c-switch form-check-label' ,
65
64
{
66
65
[` c-switch-${ this .size } ` ]: this .size ,
67
66
[` c-switch-${ this .shape } ` ]: this .shape ,
68
- ' c-switch-3d' : this .variant === ' 3d' ,
69
- [` c-switch${ colorPrefix} -${ this .color } ` ]: this .color ,
67
+ [` c-switch${ variant} -${ this .color } ` ]: this .color ,
70
68
' c-switch-label' : this .labelOn || this .labelOff
71
69
}
72
70
]
You can’t perform that action at this time.
0 commit comments