mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
parent
e576aa588d
commit
552a6732b9
@ -27,8 +27,7 @@ function EachItem(props: EachExtraProps) {
|
||||
const ctx = React.useMemo(
|
||||
() =>
|
||||
createObject(data, {
|
||||
...(isObject(item) ? item : {}),
|
||||
[name]: item,
|
||||
...(isObject(item) ? {index, ...item} : {[name]: item}),
|
||||
[itemKeyName || 'item']: item,
|
||||
[indexKeyName || 'index']: index
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user