Skip to content

Commit

Permalink
[feat] 支持修改 loadingmask 显示文案
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Apr 24, 2016
1 parent 5b49ce2 commit f0000d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/loading-mask.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ var doAction = function() {
});
}
```

## 修改显示文案
LoadingMask.text = '加载中';
7 changes: 6 additions & 1 deletion src/service/loading-mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ var instance;
var service = {
open() {
if (!instance) {
const text = this.text;

instance = new LoadingMask({
el: document.createElement('div')
el: document.createElement('div'),
data() {
return { text };
}
});
}
Vue.nextTick(() => {
Expand Down

0 comments on commit f0000d7

Please sign in to comment.