diff --git a/docs/zh-CN/components/property.md b/docs/zh-CN/components/property.md index da3844b8d..fe7e46cb4 100644 --- a/docs/zh-CN/components/property.md +++ b/docs/zh-CN/components/property.md @@ -196,7 +196,7 @@ order: 60 }, "body": { "type": "property", - "source": "items" + "source": "${items}" } } ``` diff --git a/src/renderers/Property.tsx b/src/renderers/Property.tsx index 8bd6e7326..de87c0b60 100644 --- a/src/renderers/Property.tsx +++ b/src/renderers/Property.tsx @@ -120,9 +120,10 @@ export default class Property extends React.Component { prepareRows() { const {column = 3, items, source, data} = this.props; - const propertyItems = items - ? items - : (resolveVariable(source, data) as Array); + const propertyItems = + (items + ? items + : (resolveVariable(source, data) as Array)) || []; const rows: PropertyContent[][] = [];