Commit affc010b3b24bcaf29bbad44e32084b0b28393f0
1 parent
d85e5726
add default value 'md' for breakpoint about sider.vue
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
examples/routers/layout.vue
@@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
4 | <Sider | 4 | <Sider |
5 | v-model="isCollapsed" | 5 | v-model="isCollapsed" |
6 | collapsed-width="0" | 6 | collapsed-width="0" |
7 | - breakpoint="md" | ||
8 | ref="side" | 7 | ref="side" |
9 | width="200"> | 8 | width="200"> |
10 | <Menu width="auto" theme="dark" active-name="1"> | 9 | <Menu width="auto" theme="dark" active-name="1"> |
src/components/layout/sider.vue
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | }, | 39 | }, |
40 | breakpoint: { | 40 | breakpoint: { |
41 | type: String, | 41 | type: String, |
42 | - default: '', | 42 | + default: 'md', |
43 | validator (val) { | 43 | validator (val) { |
44 | return oneOf(val, ['xs', 'sm', 'md', 'lg', 'xl']); | 44 | return oneOf(val, ['xs', 'sm', 'md', 'lg', 'xl']); |
45 | } | 45 | } |