Merge "fix: 测试:【组件优化第五批】穿梭框表格形式下添加表格行只对表格下的最后一行为空进行校验; amis-saas-7219" into feat-optimize-5

This commit is contained in:
zhoushengqiang01 2022-09-23 20:01:40 +08:00 committed by iCode
commit d5ef2fed91

View File

@ -286,7 +286,7 @@ const renderInput = (
name: string, name: string,
placeholder: string, placeholder: string,
required: boolean = true, required: boolean = true,
unique: Boolean = false unique: boolean = false
) => { ) => {
return { return {
type: 'input-text', type: 'input-text',
@ -450,7 +450,7 @@ export default class TransferTableOption extends React.Component<
const keys = value.map(item => item.name); const keys = value.map(item => item.name);
data.options = data.options.map((item: Option) => { data.options = data.options.map((item: Option) => {
return { return {
...keys.reduce((pv, cv, idx) => { ...keys.reduce((pv, cv) => {
pv[cv] = item[cv]; pv[cv] = item[cv];
return pv; return pv;
}, },