[Improvement] Button: optimize loading (#1756)

This commit is contained in:
neverland
2018-09-05 17:47:15 +08:00
committed by GitHub
parent a2ff47f398
commit ca91a1b498
23 changed files with 72 additions and 136 deletions

View File

@@ -19,7 +19,7 @@
@click="onClick"
>
<loading v-if="loading" size="20px" :color="type === 'default' ? 'black' : 'white'" />
<span :class="b('text')">
<span v-else :class="b('text')">
<slot>{{ text }}</slot>
</span>
</component>