[bugfix] Toast: loading type error

This commit is contained in:
陈嘉涵 2019-05-15 20:48:10 +08:00
parent 234986e509
commit 3cae4288f2

View File

@ -64,7 +64,7 @@ export default sfc({
}, },
render(h) { render(h) {
const { type, message } = this; const { type, message, loadingType } = this;
const style = STYLE.indexOf(type) !== -1 ? 'default' : type; const style = STYLE.indexOf(type) !== -1 ? 'default' : type;
function Content() { function Content() {
@ -77,7 +77,7 @@ export default sfc({
return [ return [
type === 'loading' ? ( type === 'loading' ? (
<Loading color="white" type={this.loadingType} /> <Loading color="white" type={loadingType} />
) : ( ) : (
<Icon class={bem('icon')} name={type} /> <Icon class={bem('icon')} name={type} />
), ),