Skip to content

Commit

Permalink
fix: Tabs "route" prop should support Object too (besides a String) #289
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Dec 29, 2016
1 parent 1ce41ce commit bee4c0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/components/test-layout/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<q-tabs slot="navigation">
<q-tab icon="view_quilt" route="/test-layout/about" replace>About</q-tab>
<q-tab icon="view_quilt" :route="{path: '/test-layout/about'}" replace>About</q-tab>
<q-tab icon="view_day" route="/test-layout/toolbar" replace>Toolbar</q-tab>
<q-tab icon="view_day" route="/test-layout/tabs" replace>Tabs</q-tab>
<q-tab icon="input" route="/test-layout/drawer" replace>Drawer</q-tab>
Expand Down
2 changes: 1 addition & 1 deletion src/vue-components/datetime/DatetimeRange.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
type: Object,
validator (val) {
if (typeof val.min !== 'string' || typeof val.max !== 'string') {
console.error('DatetimeRange requires a {min, max} model.')
console.error('DatetimeRange requires a valid {min, max} model.')
return false
}
return true
Expand Down
2 changes: 1 addition & 1 deletion src/vue-components/tab/Tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
default: ''
},
name: String,
route: String,
route: [String, Object],
replace: Boolean,
exact: Boolean,
append: Boolean
Expand Down

0 comments on commit bee4c0e

Please sign in to comment.