File tree 1 file changed +13
-8
lines changed
src/components/MdBottomBar
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 5
5
:id =" id"
6
6
:disabled =" mdDisabled"
7
7
:md-ripple =" MdBottomBar.type === 'fixed'"
8
- v-bind =" $ attrs"
8
+ v-bind =" attrs"
9
9
v-on =" $listeners"
10
10
@click =" setActiveItem" >
11
11
<slot v-if =" $slots.default" ></slot >
58
58
return {
59
59
' md-active' : this .id === this .MdBottomBar .activeItem
60
60
}
61
+ },
62
+ attrs () {
63
+ let attrs = {... this .$attrs }
64
+
65
+ const propNames = Object .keys (this .$options .propsData )
66
+ propNames .forEach (prop => {
67
+ if (! ignoredProps .includes (prop)) {
68
+ attrs[prop] = this [prop]
69
+ }
70
+ })
71
+
72
+ return attrs
61
73
}
62
74
},
63
75
methods: {
99
111
beforeCreate () {
100
112
if (this .$router && this .$options .propsData .to ) {
101
113
const componentProps = MdRouterLinkProps (this , this .$options .props )
102
- const propNames = Object .keys (this .$options .propsData )
103
-
104
114
this .$options .props = componentProps
105
- propNames .forEach (prop => {
106
- if (! ignoredProps .includes (prop)) {
107
- this .$attrs [prop] = this .$options .propsData [prop]
108
- }
109
- })
110
115
}
111
116
},
112
117
created () {
You can’t perform that action at this time.
0 commit comments