mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: 修复each组件items数组时编辑报错
This commit is contained in:
parent
c7be86a96c
commit
9167d28825
@ -363,7 +363,11 @@ export class EachPlugin extends BasePlugin {
|
||||
props.value = [{}, {}];
|
||||
|
||||
props.className = `${props.className || ''} ae-Editor-list`;
|
||||
if (props.items && !props.items.className?.includes('eachItem')) {
|
||||
if (
|
||||
props.items &&
|
||||
!props.items.className?.includes('eachItem') &&
|
||||
!Array.isArray(props.items)
|
||||
) {
|
||||
props.items = merge(
|
||||
{
|
||||
className: `${props.items.className || ''} ae-Editor-eachItem`
|
||||
|
Loading…
Reference in New Issue
Block a user