From 812070dc565f03bafb0b62696004aa676ed1b787 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 19 八月 2021 15:50:16 +0800 Subject: [PATCH] 2021-08-19 --- src/views/mobdesign/index.jsx | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index f1a3c70..a0f07b8 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -677,7 +677,10 @@ title: item.name, children: [] } - if (item.type === 'tabs') { + + if (item.type === 'topbar' || item.type === 'login') { + return null + } else if (item.type === 'tabs') { let tabs = [] item.subtabs.forEach(tab => { let s = traversal(tab.components) @@ -753,6 +756,13 @@ title: menu.setting.name } }) + } else if (item.type === 'form') { + m.children = item.subcards.map(m => { + return { + key: m.uuid, + title: m.setting.title + } + }) } else if (item.type === 'table' && item.subtype === 'normaltable') { item.action && item.action.forEach(btn => { this.checkBtn(btn) @@ -772,8 +782,6 @@ }) }) } - - if (m.children.length === 0) return null return m }) -- Gitblit v1.8.0