File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
>
8
8
<slot >
9
9
<CIcon v-if =" icon" v-bind =" computedIcon" />
10
+ <i v-if =" fontIcon" :class =" ['c-sidebar-nav-icon', fontIcon]" />
10
11
{{name}}
11
12
<CBadge
12
13
v-if =" badge"
20
21
<CLink v-else >
21
22
<slot >
22
23
<CIcon v-if =" icon" v-bind =" computedIcon" />
23
- <i v-if =" fontIcon" :class =" ['c-sidebar-nav-icon', fontIcon]" ></ i >
24
+ <i v-if =" fontIcon" :class =" ['c-sidebar-nav-icon', fontIcon]" / >
24
25
{{name}}
25
26
<CBadge
26
27
v-if =" badge"
@@ -37,7 +38,7 @@ import CLink, { props as linkProps } from '../link/CLink'
37
38
import CBadge from ' ../badge/CBadge'
38
39
import CIcon from ' @coreui/icons-vue/CIcon.vue'
39
40
40
- const props = Object .assign (linkProps, {
41
+ const props = Object .assign ({}, linkProps, {
41
42
name: String ,
42
43
icon: [String , Object ],
43
44
fontIcon: String ,
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ exports[`CSidebarNavLink.vue renders correctly 1`] = `
15
15
viewBox = " 0 0 64 64"
16
16
xmlns = " http://www.w3.org/2000/svg"
17
17
/>
18
+
19
+ <!---->
18
20
19
21
test link
20
22
@@ -44,6 +46,8 @@ exports[`CSidebarNavLink.vue renders correctly in label mode 1`] = `
44
46
viewBox = " 0 0 64 64"
45
47
xmlns = " http://www.w3.org/2000/svg"
46
48
/>
49
+
50
+ <!---->
47
51
48
52
test link
49
53
You can’t perform that action at this time.
0 commit comments