Commit 1416321be57fa70877a14cb01f1d1d3af3855c38

Authored by 梁灏
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,16 +6,13 @@
6 <div :class="wrapClasses" @click="handleWrapClick"> 6 <div :class="wrapClasses" @click="handleWrapClick">
7 <transition name="fade"> 7 <transition name="fade">
8 <div class="ivu-drawer" :style="mainStyles" v-show="visible"> 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 <a class="ivu-drawer-close" v-if="closable" @click="close"> 10 <a class="ivu-drawer-close" v-if="closable" @click="close">
11 <slot name="close"> 11 <slot name="close">
12 <Icon type="ios-close"></Icon> 12 <Icon type="ios-close"></Icon>
13 </slot> 13 </slot>
14 </a> 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 <div :class="[prefixCls + '-body']" :style="styles"><slot></slot></div> 16 <div :class="[prefixCls + '-body']" :style="styles"><slot></slot></div>
20 </div> 17 </div>
21 </div> 18 </div>