提交 1072f142 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: tabs初始化条件报错

上级 527f5daa
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
:is-edit="isEdit" :is-edit="isEdit"
:active="active" :active="active"
:element="item.content" :element="item.content"
:filters="filterMap[item.content.propValue && item.content.propValue.viewId]" :filters="filterMap[item.content.propValue && item.content.propValue.viewId] || []"
:out-style="outStyle" :out-style="outStyle"
/> />
</div> </div>
......
...@@ -48,7 +48,9 @@ export const buildFilterMap = panelItems => { ...@@ -48,7 +48,9 @@ export const buildFilterMap = panelItems => {
} }
if (element.type === 'de-tabs') { if (element.type === 'de-tabs') {
element.options.tabList && element.options.tabList.forEach(tab => { element.options.tabList && element.options.tabList.forEach(tab => {
result[tab.content.propValue.viewId] = [] if (tab.content.propValue && tab.content.propValue.viewId) {
result[tab.content.propValue.viewId] = []
}
}) })
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论