fix: 修复each组件items数组时编辑报错

This commit is contained in:
zhangtao07 2024-04-28 19:05:05 +08:00
parent c7be86a96c
commit 9167d28825

View File

@ -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`