ElemeFE / ElemeFE/mint-ui

[Bug Report] Indicator close()无法关闭

Open
#1,278 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.4k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

### Mint UI version
2.2.13

### OS/Browsers version
win10 /chrome

### Vue version
2.5.13

### Reproduction Link
[https://github.com/ElemeFE/mint-ui](https://github.com/ElemeFE/mint-ui)

### Steps to reproduce
加载中...
关闭加载

methods: {
greet() {
Indicator.open({
text: '加载中l...',
spinnerType: 'fading-circle'
});
},
greet1() {
Indicator.close()
}
}
当点击第一个按钮时启动Indicator弹出加载中...弹框,点击第二个按钮时调用close()方法无法关闭弹框

### What is Expected?
Indicator.close()设置为全局变量随时可以调用

### What is actually happening?
Indicator.close()只在自身的函数方法中可以调用,在其他函数方法无法调用

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.