代码格式化
This commit is contained in:
parent
0df15d84de
commit
e734ad64f0
@ -57,7 +57,7 @@ const props = withDefaults(defineProps<TableRowProps>(), {
|
||||
|
||||
const tableExpandAll = ref(props.defaultExpandAll);
|
||||
|
||||
const editIndex:any = ref({})
|
||||
const editIndex: any = ref({});
|
||||
|
||||
const tableExpandKeys: WritableComputedRef<Recordable[]> = computed({
|
||||
get() {
|
||||
@ -608,10 +608,18 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
</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>
|
||||
<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>
|
||||
<span v-else> {{ data[column.key] }} </span>
|
||||
</template>
|
||||
</div>
|
||||
</td>
|
||||
@ -683,9 +691,8 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
</template>
|
||||
</template>
|
||||
|
||||
|
||||
<style scoped>
|
||||
.layui-table-cell :deep(.layui-input input){
|
||||
.layui-table-cell :deep(.layui-input input) {
|
||||
padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user