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

Change-Id: I868eae5155957ad1c47e2217d077360d310b3f80
This commit is contained in:
zhou999 2022-09-23 20:00:59 +08:00
parent 3122b5b0c8
commit e058192010

View File

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