|
@ -69,6 +69,7 @@ |
|
|
style="flex:1" |
|
|
style="flex:1" |
|
|
@blur="inputStringBlur(headerItem.field, row[headerItem.field], row)" |
|
|
@blur="inputStringBlur(headerItem.field, row[headerItem.field], row)" |
|
|
/> |
|
|
/> |
|
|
|
|
|
<Icon icon="ep:circle-close" v-if="headerItem?.tableForm?.isInpuFocusShow && headerItem?.tableForm?.disabled&& headerItem?.tableForm?.clearable" style='position:absolute;right:50px;cursor: pointer;' @click="clearInput(headerItem.field,row,index)"/> |
|
|
<el-button :key="headerItem.field+$index+'button'" v-if="headerItem?.tableForm?.isInpuFocusShow" @click="inpuFocus(headerItem,row,index)"><Icon icon="ep:search" size="14"/></el-button> |
|
|
<el-button :key="headerItem.field+$index+'button'" v-if="headerItem?.tableForm?.isInpuFocusShow" @click="inpuFocus(headerItem,row,index)"><Icon icon="ep:search" size="14"/></el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="headerItem?.tableForm?.type == 'slot'"> |
|
|
<el-form-item v-if="headerItem?.tableForm?.type == 'slot'"> |
|
@ -414,7 +415,8 @@ const emit = defineEmits([ |
|
|
'buttonOperationClick', |
|
|
'buttonOperationClick', |
|
|
'inputStringBlur', |
|
|
'inputStringBlur', |
|
|
'tableFormSelectOnBlur', |
|
|
'tableFormSelectOnBlur', |
|
|
'formFormDateChange' |
|
|
'formFormDateChange', |
|
|
|
|
|
'clearInput' |
|
|
]) |
|
|
]) |
|
|
// 获取下拉列表 | type = radio | type = select |
|
|
// 获取下拉列表 | type = radio | type = select |
|
|
const initSelectOptions = (item) => { |
|
|
const initSelectOptions = (item) => { |
|
@ -511,7 +513,9 @@ const inpuFocus = (headerItem, row, index)=>{ |
|
|
const inputStringBlur = (field, val,row) => { |
|
|
const inputStringBlur = (field, val,row) => { |
|
|
emit('inputStringBlur', field, val,row) |
|
|
emit('inputStringBlur', field, val,row) |
|
|
} |
|
|
} |
|
|
|
|
|
const clearInput= (field, row, index) => { |
|
|
|
|
|
emit('clearInput',field, row, index) |
|
|
|
|
|
} |
|
|
//点击table操作列按钮 |
|
|
//点击table操作列按钮 |
|
|
const buttonOperationClick = (row, label, index)=> { |
|
|
const buttonOperationClick = (row, label, index)=> { |
|
|
emit("buttonOperationClick", row, label, index); |
|
|
emit("buttonOperationClick", row, label, index); |
|
|