From f9ba5907ddff56da7c38b1c7d5a9c5ba6aadfa05 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 19 一月 2021 17:10:19 +0800 Subject: [PATCH] 2021-01-19 --- src/tabviews/custom/components/group/normal-group/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/group/normal-group/index.jsx b/src/tabviews/custom/components/group/normal-group/index.jsx index f38e4a2..356cebf 100644 --- a/src/tabviews/custom/components/group/normal-group/index.jsx +++ b/src/tabviews/custom/components/group/normal-group/index.jsx @@ -18,6 +18,7 @@ const DataCard = asyncComponent(() => import('@/tabviews/custom/components/card/data-card')) const TableCard = asyncComponent(() => import('@/tabviews/custom/components/card/table-card')) const PropCard = asyncComponent(() => import('@/tabviews/custom/components/card/prop-card')) +const BraftEditor = asyncComponent(() => import('@/tabviews/custom/components/editor/braft-editor')) class TabTransfer extends Component { static propTpyes = { @@ -45,7 +46,7 @@ if (item.type === 'tabs') return if (!item.setting || item.setting.interType !== 'system') return - if (!item.format || (item.subtype === 'propcard' && item.wrap.datatype === 'static')) return + if (!item.format) return if (item.dataName && (!item.pageable || (item.pageable && !item.setting.laypage)) && item.setting.onload === 'true' && item.setting.sync === 'true') { let param = this.getDefaultParam(item, _mainSearch) @@ -267,6 +268,12 @@ <TableCard config={item} data={data} BID={_bid} mainSearch={mainSearch} menuType={menuType} /> </Col> ) + } else if (item.type === 'editor') { + return ( + <Col span={item.width} key={item.uuid}> + <BraftEditor config={item} data={data} BID={_bid} mainSearch={mainSearch} menuType={menuType} /> + </Col> + ) } else { return null } -- Gitblit v1.8.0