chore(Loading): 消除loading组件及示例类型问题
This commit is contained in:
parent
ba5809669d
commit
d84f6ef562
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<section
|
<section
|
||||||
class="full-loading"
|
class="full-loading"
|
||||||
:class="{ absolute, [theme]: !!theme }"
|
:class="{ absolute, [`${theme}`]: !!theme }"
|
||||||
:style="[background ? `background-color: ${background}` : '']"
|
:style="[background ? `background-color: ${background}` : '']"
|
||||||
v-show="loading"
|
v-show="loading"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,13 @@
|
||||||
const wrapEl = ref<ElRef>(null);
|
const wrapEl = ref<ElRef>(null);
|
||||||
|
|
||||||
const loadingRef = ref(false);
|
const loadingRef = ref(false);
|
||||||
const compState = reactive({
|
const compState = reactive<{
|
||||||
|
absolute?: boolean;
|
||||||
|
loading?: boolean;
|
||||||
|
theme?: 'dark' | 'light';
|
||||||
|
background?: string;
|
||||||
|
tip?: string;
|
||||||
|
}>({
|
||||||
absolute: false,
|
absolute: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
theme: 'dark',
|
theme: 'dark',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue