Commit 0c9f8fabb36ac8a72bad7fc994a961abff160aa9
1 parent
d5ba8cf3
Collapse add hide-arrow prop
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
examples/routers/collapse.vue
src/components/collapse/panel.vue
1 | 1 | <template> |
2 | 2 | <div :class="itemClasses"> |
3 | 3 | <div :class="headerClasses" @click="toggle"> |
4 | - <Icon type="ios-arrow-right"></Icon> | |
4 | + <Icon type="ios-arrow-right" v-if="!hideArrow"></Icon> | |
5 | 5 | <slot></slot> |
6 | 6 | </div> |
7 | 7 | <collapse-transition> |
... | ... | @@ -22,6 +22,10 @@ |
22 | 22 | props: { |
23 | 23 | name: { |
24 | 24 | type: String |
25 | + }, | |
26 | + hideArrow: { | |
27 | + type: Boolean, | |
28 | + default: false | |
25 | 29 | } |
26 | 30 | }, |
27 | 31 | data () { | ... | ... |