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"
|
||||
@change="change">
|
||||
</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>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -78,8 +78,6 @@
|
|||
this.updateModel();
|
||||
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
||||
this.showSlot = false;
|
||||
} else {
|
||||
this.$els.slot.style.display = 'inline';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
return [
|
||||
`${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();
|
||||
|
||||
},
|
||||
ready () {
|
||||
compiled () {
|
||||
this.showFooter = this.$els.footer.innerHTML !== '';
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue