Compare commits

..

No commits in common. "e734ad64f02a365f9712c21aaac84436dca61438" and "05e5b84c5c977ce54e02753dc412a17a6f4b3164" have entirely different histories.

7 changed files with 134 additions and 191 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -57,8 +57,6 @@ const props = withDefaults(defineProps<TableRowProps>(), {
const tableExpandAll = ref(props.defaultExpandAll);
const editIndex: any = ref({});
const tableExpandKeys: WritableComputedRef<Recordable[]> = computed({
get() {
return [...props.expandKeys];
@ -566,7 +564,6 @@ const radioProps = props.getRadioProps(props.data, props.index);
renderCellClassName(data, column, index, columnIndex),
column.fixed ? `layui-table-fixed-${column.fixed}` : '',
]"
@click="editIndex[columnIndex] = true"
>
<div
style="display: flex"
@ -606,21 +603,8 @@ const radioProps = props.getRadioProps(props.data, props.index);
>
{{ data[column.key] }}
</lay-tooltip>
<template v-else>
<template v-if="column.edit">
<span v-if="!editIndex[columnIndex]">
{{ data[column.key] }}
</span>
<lay-input
:autofocus="true"
v-model="data[column.key]"
v-else
@keyup.enter="editIndex[columnIndex] = false"
@blur="editIndex[columnIndex] = false"
></lay-input>
</template>
<span v-else> {{ data[column.key] }} </span>
</template>
</div>
</td>
</template>
@ -690,9 +674,3 @@ const radioProps = props.getRadioProps(props.data, props.index);
</template>
</template>
</template>
<style scoped>
.layui-table-cell :deep(.layui-input input) {
padding-left: 0;
}
</style>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long