Skip to content

Commit

Permalink
Loading: update Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Jun 2, 2016
1 parent c443f5a commit 2ab47a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/demos/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ export default {
},
methods: {
show1change (val) {
const _this = this
if (val) {
tick(0, function (percent) {
tick(0, (percent) => {
if (percent === 100) {
_this.show1 = false
_this.text1 = 'Start processing'
this.show1 = false
this.text1 = 'Start processing'
return
}
_this.text1 = `${percent}% completed`
this.text1 = `${percent}% completed`
})
}
}
Expand Down

0 comments on commit 2ab47a0

Please sign in to comment.