fix 空白点击
This commit is contained in:
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
28
lib/index.js
28
lib/index.js
File diff suppressed because one or more lines are too long
@@ -566,6 +566,7 @@ 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"
|
||||||
@@ -607,7 +608,7 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
</lay-tooltip>
|
</lay-tooltip>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<template v-if="column.edit">
|
<template v-if="column.edit">
|
||||||
<span v-if="!editIndex[columnIndex]" @click="editIndex[columnIndex] = true"> {{ data[column.key] }} </span>
|
<span v-if="!editIndex[columnIndex]"> {{ data[column.key] }} </span>
|
||||||
<lay-input v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
|
<lay-input v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
|
||||||
</template>
|
</template>
|
||||||
<span v-else> {{ data[column.key] }} </span>
|
<span v-else> {{ data[column.key] }} </span>
|
||||||
@@ -681,3 +682,10 @@ 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
175
umd/index.js
175
umd/index.js
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user