Commit 1416321be57fa70877a14cb01f1d1d3af3855c38
1 parent
f59e6e89
update Drawer
Showing
1 changed file
with
2 additions
and
5 deletions
Show diff stats
src/components/drawer/drawer.vue
... | ... | @@ -6,16 +6,13 @@ |
6 | 6 | <div :class="wrapClasses" @click="handleWrapClick"> |
7 | 7 | <transition name="fade"> |
8 | 8 | <div class="ivu-drawer" :style="mainStyles" v-show="visible"> |
9 | - <div :class="contentClasses" ref="content" :style="contentStyles"> | |
9 | + <div :class="contentClasses" ref="content"> | |
10 | 10 | <a class="ivu-drawer-close" v-if="closable" @click="close"> |
11 | 11 | <slot name="close"> |
12 | 12 | <Icon type="ios-close"></Icon> |
13 | 13 | </slot> |
14 | 14 | </a> |
15 | - <div :class="[prefixCls + '-header']" | |
16 | - @mousedown="handleMoveStart" | |
17 | - v-if="showHead" | |
18 | - ><slot name="header"><div :class="[prefixCls + '-header-inner']">{{ title }}</div></slot></div> | |
15 | + <div :class="[prefixCls + '-header']" v-if="showHead"><slot name="header"><div :class="[prefixCls + '-header-inner']">{{ title }}</div></slot></div> | |
19 | 16 | <div :class="[prefixCls + '-body']" :style="styles"><slot></slot></div> |
20 | 17 | </div> |
21 | 18 | </div> | ... | ... |