Browse Source

dialog 遮罩修改

master_hella_20240701
陈薪名 6 months ago
parent
commit
59784804ee
  1. 10
      src/components/Dialog/src/Dialog.vue

10
src/components/Dialog/src/Dialog.vue

@ -51,7 +51,7 @@ watch(
}
)
const demo = ref()
let demo = null
watch(
() => props.vLoading,
async (val: boolean) => {
@ -59,7 +59,7 @@ watch(
if (val) {
initDialog()
} else {
demo.close()
if (demo !== null) demo.close()
}
},
{
@ -76,11 +76,7 @@ const dialogStyle = computed(() => {
const initDialog = () => {
// el-loadingsvg使
demo.value = ElLoading.service({ target: '.loading', text: '加载中...', background: 'rgba(246, 246, 246, 0.8)' })
// setTimeout(() => {
// // dom使loading
// demo.close()
// }, 5000)
demo = ElLoading.service({ target: '.loading', text: '加载中...', background: 'rgba(246, 246, 246, 0.8)' })
}
</script>

Loading…
Cancel
Save