update Transfer
update Transfer
This commit is contained in:
parent
37ee153528
commit
122e69ee97
6 changed files with 44 additions and 13 deletions
|
@ -18,7 +18,7 @@
|
|||
v-model="checked"
|
||||
@change="change">
|
||||
</span>
|
||||
<slot v-if="showSlot"><span v-el:slot>{{ value }}</span></slot>
|
||||
<slot v-if="showSlot"><span v-el:slot style="display:none">{{ value }}</span></slot>
|
||||
</label>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -78,6 +78,8 @@
|
|||
this.updateModel();
|
||||
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
||||
this.showSlot = false;
|
||||
} else {
|
||||
this.$els.slot.style.display = 'inline';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue