mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Toast: loading type error
This commit is contained in:
parent
234986e509
commit
3cae4288f2
@ -64,7 +64,7 @@ export default sfc({
|
||||
},
|
||||
|
||||
render(h) {
|
||||
const { type, message } = this;
|
||||
const { type, message, loadingType } = this;
|
||||
const style = STYLE.indexOf(type) !== -1 ? 'default' : type;
|
||||
|
||||
function Content() {
|
||||
@ -77,7 +77,7 @@ export default sfc({
|
||||
|
||||
return [
|
||||
type === 'loading' ? (
|
||||
<Loading color="white" type={this.loadingType} />
|
||||
<Loading color="white" type={loadingType} />
|
||||
) : (
|
||||
<Icon class={bem('icon')} name={type} />
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user