|
@@ -128,13 +128,13 @@ Muestra una animación de pantalla completa mientras se cargan los datos
|
|
<template>
|
|
<template>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
- @click="openFullScreen"
|
|
|
|
|
|
+ @click="openFullScreen1"
|
|
v-loading.fullscreen.lock="fullscreenLoading">
|
|
v-loading.fullscreen.lock="fullscreenLoading">
|
|
Como directiva
|
|
Como directiva
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
- @click="openFullScreen">
|
|
|
|
|
|
+ @click="openFullScreen2">
|
|
Como servicio
|
|
Como servicio
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -147,13 +147,13 @@ Muestra una animación de pantalla completa mientras se cargan los datos
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- openFullScreen() {
|
|
|
|
|
|
+ openFullScreen1() {
|
|
this.fullscreenLoading = true;
|
|
this.fullscreenLoading = true;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.fullscreenLoading = false;
|
|
this.fullscreenLoading = false;
|
|
}, 2000);
|
|
}, 2000);
|
|
},
|
|
},
|
|
- openFullScreen() {
|
|
|
|
|
|
+ openFullScreen2() {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
text: 'Loading',
|
|
text: 'Loading',
|