(component): update

This commit is contained in:
就眠儀式 2022-10-27 11:40:54 +08:00
parent c608b4f575
commit 21a34143a3
2 changed files with 16 additions and 13 deletions

View File

@ -886,7 +886,7 @@ onBeforeUnmount(() => {
<template v-if="tableDataSource.length == 0 && loading == false"> <template v-if="tableDataSource.length == 0 && loading == false">
<lay-empty></lay-empty> <lay-empty></lay-empty>
<div :style="{ width: tableBodyEmptyWidth }"></div> <div :style="{ width: tableBodyEmptyWidth }"></div>
</template> </template>
<template v-if="loading == true"> <template v-if="loading == true">
<div class="layui-table-loading"> <div class="layui-table-loading">
<i <i

View File

@ -381,17 +381,20 @@ watch(
* @param icon 图标类型 * @param icon 图标类型
*/ */
const boxClasses = computed(() => { const boxClasses = computed(() => {
return [{ return [
"layui-layer-dialog": type === 0, {
"layui-layer-page": type === 1, "layui-layer-dialog": type === 0,
"layui-layer-iframe": type === 2, "layui-layer-page": type === 1,
"layui-layer-loading": type === 3, "layui-layer-iframe": type === 2,
"layui-layer-drawer": type === 4, "layui-layer-loading": type === 3,
"layui-layer-photos": type === 5, "layui-layer-drawer": type === 4,
"layui-layer-notifiy": type === 6, "layui-layer-photos": type === 5,
"layui-layer-msg": props.isMessage, "layui-layer-notifiy": type === 6,
"layui-layer-hui": props.isMessage && !props.icon, "layui-layer-msg": props.isMessage,
},props.skin]; "layui-layer-hui": props.isMessage && !props.icon,
},
props.skin,
];
}); });
/** /**
@ -706,4 +709,4 @@ defineExpose({ reset, open, close });
</div> </div>
</transition> </transition>
</div> </div>
</template> </template>