[Improvement] Loading: change default type to circular (#623)

This commit is contained in:
neverland
2018-02-08 09:47:15 +08:00
committed by GitHub
parent 2a3c75bc2f
commit c11c0bb4c7
14 changed files with 50 additions and 67 deletions

View File

@@ -16,12 +16,7 @@
]"
@click="onClick"
>
<loading
v-if="loading"
class="van-button__icon-loading"
type="circle"
:color="type === 'default' ? 'black' : 'white'"
/>
<loading v-if="loading" size="20px" :color="type === 'default' ? 'black' : 'white'" />
<span class="van-button__text">
<slot>{{ text }}</slot>
</span>