|
|
@ -65,6 +65,7 @@ |
|
|
|
:placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" |
|
|
|
:disabled="headerItem?.tableForm?.disabled ? true: headerItem?.tableForm?.isInpuFocusShow ? true : false" |
|
|
|
style="flex:1" |
|
|
|
@blur="inputStringBlur(headerItem.field, $event, row)" |
|
|
|
/> |
|
|
|
<el-button v-if="headerItem?.tableForm?.isInpuFocusShow" @click="inpuFocus(headerItem,row,index)"><Icon icon="ep:search" size="14"/></el-button> |
|
|
|
</el-form-item> |
|
|
@ -343,7 +344,8 @@ const emit = defineEmits([ |
|
|
|
'handleDeleteTable', |
|
|
|
'handleAddTable', |
|
|
|
'inpuFocus', |
|
|
|
'buttonOperationClick' |
|
|
|
'buttonOperationClick', |
|
|
|
'inputStringBlur' |
|
|
|
]) |
|
|
|
// 获取下拉列表 | type = radio | type = select |
|
|
|
const initSelectOptions = (item) => { |
|
|
@ -413,6 +415,11 @@ const inpuFocus = (headerItem, row, index)=>{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// input输入失去焦点事件 |
|
|
|
const inputStringBlur = (field, val,row) => { |
|
|
|
emit('inputStringBlur', field, val,row) |
|
|
|
} |
|
|
|
|
|
|
|
//点击table操作列按钮 |
|
|
|
const buttonOperationClick = (row, label, index)=> { |
|
|
|
emit("buttonOperationClick", row, label, index); |
|
|
|