Commit ea9620eb9e5cd5b89b7d5326c13a854bac513778

Authored by Aresn
1 parent 06554053

update Transfer

examples/routers/transfer.vue
@@ -178,7 +178,7 @@ @@ -178,7 +178,7 @@
178 setTimeout(function() { 178 setTimeout(function() {
179 console.log('--1'); 179 console.log('--1');
180 // _this.data1 = null; 180 // _this.data1 = null;
181 - _this.data1 = _this.getMockData1(); 181 +// _this.data1 = _this.getMockData1();
182 console.log('-fetch-', _this.data1); 182 console.log('-fetch-', _this.data1);
183 183
184 }, 1500); 184 }, 1500);
src/components/transfer/list.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div :class="classes" :style="listStyle"> 2 <div :class="classes" :style="listStyle">
3 <div :class="prefixCls + '-header'"> 3 <div :class="prefixCls + '-header'">
4 <Checkbox :value="checkedAll" :disabled="checkedAllDisabled" @on-change="toggleSelectAll"></Checkbox> 4 <Checkbox :value="checkedAll" :disabled="checkedAllDisabled" @on-change="toggleSelectAll"></Checkbox>
5 - <span @click="toggleSelectAll(!checkedAll)">{{ title }}</span> 5 + <span :class="prefixCls + '-header-title'" @click="toggleSelectAll(!checkedAll)">{{ title }}</span>
6 <span :class="prefixCls + '-header-count'">{{ count }}</span> 6 <span :class="prefixCls + '-header-count'">{{ count }}</span>
7 </div> 7 </div>
8 <div :class="bodyClasses"> 8 <div :class="bodyClasses">
src/styles/components/transfer.less
@@ -31,6 +31,10 @@ @@ -31,6 +31,10 @@
31 left: 0; 31 left: 0;
32 width: 100%; 32 width: 100%;
33 33
  34 + &-title{
  35 + cursor: pointer;
  36 + }
  37 +
34 & > span{ 38 & > span{
35 padding-left: 4px; 39 padding-left: 4px;
36 } 40 }