|
|
@ -274,12 +274,7 @@ const props = defineProps({ |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
// TableForm 的第几列按钮 (后续用 fieldTableColumn替换 ,indexTableColumn容易出问题) |
|
|
|
indexTableColumn :{ |
|
|
|
type: Number, |
|
|
|
required: false, |
|
|
|
default: 0 |
|
|
|
}, |
|
|
|
|
|
|
|
fieldTableColumn:{ |
|
|
|
type: String, |
|
|
|
required: false, |
|
|
@ -515,11 +510,7 @@ const handleAddTable = () => { |
|
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
}) |
|
|
|
if(props.fieldTableColumn!=''){ |
|
|
|
console.log('handleAddTable',tableAllSchemas.value.tableFormColumns.find(item=>item.field==props.fieldTableColumn)) |
|
|
|
inpuFocus(tableAllSchemas.value.tableFormColumns.find(item=>item.field==props.fieldTableColumn),tableFormKeys,0) |
|
|
|
}else{ |
|
|
|
inpuFocus(tableAllSchemas.value.tableFormColumns[props.indexTableColumn],tableFormKeys,0) |
|
|
|
|
|
|
|
} |
|
|
|
}else{ |
|
|
|
emit('handleAddTable') |
|
|
|