Docs: Fix Loading demo (#17862) (#17863)

This commit is contained in:
Weiqi Wu
2019-10-30 14:27:11 +08:00
committed by Zhi Cun
parent 096966a4c8
commit a78f4b9e5a
4 changed files with 16 additions and 16 deletions

View File

@@ -128,13 +128,13 @@ Show a full screen animation while loading data.
<template>
<el-button
type="primary"
@click="openFullScreen"
@click="openFullScreen1"
v-loading.fullscreen.lock="fullscreenLoading">
As a directive
</el-button>
<el-button
type="primary"
@click="openFullScreen">
@click="openFullScreen2">
As a service
</el-button>
</template>
@@ -147,13 +147,13 @@ Show a full screen animation while loading data.
}
},
methods: {
openFullScreen() {
openFullScreen1() {
this.fullscreenLoading = true;
setTimeout(() => {
this.fullscreenLoading = false;
}, 2000);
},
openFullScreen() {
openFullScreen2() {
const loading = this.$loading({
lock: true,
text: 'Loading',