[Improvement] Toast: add loadingType option (#1049)

This commit is contained in:
neverland
2018-05-12 11:41:09 +08:00
committed by GitHub
parent 60e183f76d
commit 74714a41e4
5 changed files with 11 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
<!-- with icon -->
<template v-if="displayStyle === 'default'">
<loading v-if="type === 'loading'" color="white" />
<loading v-if="type === 'loading'" color="white" :type="loadingType" />
<icon v-else :class="b('icon')" :name="type" />
<div v-if="hasMessage" :class="b('text')">{{ message }}</div>
</template>
@@ -32,6 +32,10 @@ export default create({
type: String,
default: 'text'
},
loadingType: {
type: String,
default: 'circular'
},
position: {
type: String,
default: 'middle'