Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/components/Feedback/Loading/loading.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,20 @@ const fullscreenLoadingSource = computed(() => {
import { ref } from 'vue'
import { ElLoading } from 'element-plus'

const fullscreenLoading = ref(false)
const openFullScreen1 = () => {
fullscreenLoading.value = true
setTimeout(() => {
fullscreenLoading.value = false
}, 2000)
}
const fullscreenLoading = ref(false)
const openFullScreen1 = () => {
fullscreenLoading.value = true
setTimeout(() => {
fullscreenLoading.value = false
}, 2000)
}

const openFullScreen2 = () => {
const loading = ElLoading.service()
setTimeout(() => {
loading.close()
}, 2000)
}
const openFullScreen2 = () => {
const loading = ElLoading.service()
setTimeout(() => {
loading.close()
}, 2000)
}
<\/script>

<template>
Expand Down Expand Up @@ -133,9 +133,9 @@ const openServiceLoading = () => {
}
const serviceLoadingSource = computed(() => {
return `<script setup lang="ts">
import { ElLoading } from 'element-plus'
import { ElLoading } from 'element-plus'

const openServiceLoading = () => {
const openServiceLoading = () => {
const loading = ElLoading.service({
lock: ${serviceLoadingData.lock},${serviceLoadingData.text !== '' ? `\n text: ${serviceLoadingData.text},` : ''}${serviceLoadingData.spinner !== '' ? `\n spinner: ${serviceLoadingData.spinner},` : ''}${serviceLoadingData.background !== '' ? `\n background: ${serviceLoadingData.background},` : ''}
})
Expand Down