update Transfer
update Transfer
This commit is contained in:
parent
dcc061279a
commit
4997bd42dd
4 changed files with 11 additions and 9 deletions
|
@ -18,7 +18,7 @@
|
||||||
v-model="checked"
|
v-model="checked"
|
||||||
@change="change">
|
@change="change">
|
||||||
</span>
|
</span>
|
||||||
<slot v-if="showSlot"><span v-el:slot style="display:none">{{ value }}</span></slot>
|
<slot v-if="showSlot"><span v-el:slot>{{ value }}</span></slot>
|
||||||
</label>
|
</label>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -78,8 +78,6 @@
|
||||||
this.updateModel();
|
this.updateModel();
|
||||||
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
||||||
this.showSlot = false;
|
this.showSlot = false;
|
||||||
} else {
|
|
||||||
this.$els.slot.style.display = 'inline';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -57,7 +57,8 @@
|
||||||
return [
|
return [
|
||||||
`${this.prefixCls}-body`,
|
`${this.prefixCls}-body`,
|
||||||
{
|
{
|
||||||
[`${this.prefixCls}-body-with-search`]: this.filterable
|
[`${this.prefixCls}-body-with-search`]: this.filterable,
|
||||||
|
[`${this.prefixCls}-body-with-footer`]: this.showFooter
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -100,7 +101,7 @@
|
||||||
this.updateFilteredData();
|
this.updateFilteredData();
|
||||||
|
|
||||||
},
|
},
|
||||||
ready () {
|
compiled () {
|
||||||
this.showFooter = this.$els.footer.innerHTML !== '';
|
this.showFooter = this.$els.footer.innerHTML !== '';
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -43,10 +43,14 @@
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&-with-search{
|
&-with-search{
|
||||||
padding-top: 34px;
|
padding-top: 34px;
|
||||||
}
|
}
|
||||||
|
&-with-footer{
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-content{
|
&-content{
|
||||||
|
@ -90,7 +94,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&-footer{
|
&-footer{
|
||||||
margin: 0 -1px;
|
|
||||||
border: 1px solid @border-color-base;
|
border: 1px solid @border-color-base;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
:operations="['向左移动','向右移动']"
|
:operations="['向左移动','向右移动']"
|
||||||
:filter-method="filterMethod"
|
:filter-method="filterMethod"
|
||||||
@on-change="change">
|
@on-change="change">
|
||||||
<!--<div :style="{float: 'right', margin: '5px'}">-->
|
<div :style="{float: 'right', margin: '5px'}">
|
||||||
<!--<i-button type="ghost" size="small" @click="getMock">刷新</i-button>-->
|
<i-button type="ghost" size="small" @click="getMock">刷新</i-button>
|
||||||
<!--</div>-->
|
</div>
|
||||||
</Transfer>
|
</Transfer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue