Compare commits
No commits in common. "e734ad64f02a365f9712c21aaac84436dca61438" and "05e5b84c5c977ce54e02753dc412a17a6f4b3164" have entirely different histories.
e734ad64f0
...
05e5b84c5c
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
@ -57,8 +57,6 @@ const props = withDefaults(defineProps<TableRowProps>(), {
|
|||||||
|
|
||||||
const tableExpandAll = ref(props.defaultExpandAll);
|
const tableExpandAll = ref(props.defaultExpandAll);
|
||||||
|
|
||||||
const editIndex: any = ref({});
|
|
||||||
|
|
||||||
const tableExpandKeys: WritableComputedRef<Recordable[]> = computed({
|
const tableExpandKeys: WritableComputedRef<Recordable[]> = computed({
|
||||||
get() {
|
get() {
|
||||||
return [...props.expandKeys];
|
return [...props.expandKeys];
|
||||||
@ -566,7 +564,6 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
renderCellClassName(data, column, index, columnIndex),
|
renderCellClassName(data, column, index, columnIndex),
|
||||||
column.fixed ? `layui-table-fixed-${column.fixed}` : '',
|
column.fixed ? `layui-table-fixed-${column.fixed}` : '',
|
||||||
]"
|
]"
|
||||||
@click="editIndex[columnIndex] = true"
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style="display: flex"
|
style="display: flex"
|
||||||
@ -606,21 +603,8 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
>
|
>
|
||||||
{{ data[column.key] }}
|
{{ data[column.key] }}
|
||||||
</lay-tooltip>
|
</lay-tooltip>
|
||||||
<template v-else>
|
|
||||||
<template v-if="column.edit">
|
<span v-else> {{ data[column.key] }} </span>
|
||||||
<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>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
@ -690,9 +674,3 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</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
Loading…
x
Reference in New Issue
Block a user