fix(list): fix loading-text support (#948)

#947
This commit is contained in:
rex 2018-04-26 21:05:42 +08:00 committed by neverland
parent 390473c4f6
commit e25f98540d

View File

@ -4,7 +4,7 @@
<div v-show="loading" :class="b('loading')">
<slot name="loading">
<loading />
<span :class="b('loading-text')">{{ $t('loadingTip') }}</span>
<span :class="b('loading-text')">{{ loadingText || $t('loadingTip') }}</span>
</slot>
</div>
</div>
@ -32,7 +32,8 @@ export default create({
offset: {
type: Number,
default: 300
}
},
loadingText: String
},
mounted() {