(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">
<lay-empty></lay-empty>
<div :style="{ width: tableBodyEmptyWidth }"></div>
</template>
</template>
<template v-if="loading == true">
<div class="layui-table-loading">
<i

View File

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