mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
Merge "fix: 测试:【组件优化第五批】穿梭框表格形式下添加表格行只对表格下的最后一行为空进行校验; amis-saas-7219" into feat-optimize-5
This commit is contained in:
commit
d5ef2fed91
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user