(component): update

This commit is contained in:
就眠儀式 2022-08-09 18:05:12 +08:00
parent 8b6e71922e
commit a62e28bbe9
3 changed files with 9 additions and 6 deletions

View File

@ -73,7 +73,6 @@ const ruleItems = computed(() => {
return rulesArrs;
});
//
const filedValue = computed(() =>
props.prop ? layForm.model[props.prop] : undefined
);

View File

@ -70,7 +70,7 @@ const props = withDefaults(defineProps<LayTableProps>(), {
defaultExpandAll: false,
spanMethod: () => {},
expandKeys: () => [],
loading: false
loading: false,
});
const tableId = uuidv4();
@ -777,10 +777,14 @@ const renderTotalRowCell = (column: any) => {
</tr>
</tbody>
</table>
<lay-empty v-if="tableDataSource.length == 0 && loading == false"></lay-empty>
<lay-empty
v-if="tableDataSource.length == 0 && loading == false"
></lay-empty>
<template v-if="loading == true">
<div class="layui-table-loading">
<i class="layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop"></i>
<i
class="layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop"
></i>
</div>
</template>
</div>

View File

@ -1223,7 +1223,7 @@ export default {
:::
::: title 复杂表头
::: title 加载过渡
:::
::: demo 通过 `span-method` 属性, 自定义行列合并的逻辑。