From 3a4f58e3883bd841f2658c38889fdc43a4b9cc8d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 一月 2021 16:59:13 +0800 Subject: [PATCH] 2021-01-21 --- src/views/billprint/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx index bd4f620..44841cc 100644 --- a/src/views/billprint/index.jsx +++ b/src/views/billprint/index.jsx @@ -22,6 +22,7 @@ const TableCard = asyncComponent(() => import('@/tabviews/custom/components/card/table-card')) const NormalTable = asyncComponent(() => import('@/tabviews/custom/components/table/normal-table')) const BraftEditor = asyncComponent(() => import('@/tabviews/custom/components/editor/braft-editor')) +const SandBox = asyncComponent(() => import('@/tabviews/custom/components/code/sand-box')) class BillPrint extends Component { state = { @@ -155,7 +156,7 @@ if (component.search) component.search = [] component.data = [] // 鍒濆鍖栨暟鎹负绌� - if ((component.subtype === 'propcard' || component.subtype === 'brafteditor') && component.wrap.datatype === 'static') { + if (['propcard', 'brafteditor', 'sandbox'].includes(component.subtype) && component.wrap.datatype === 'static') { component.format = '' } @@ -577,6 +578,12 @@ <BraftEditor config={item} initdata={item.data} mainSearch={[]} menuType="" /> </Col> ) + } else if (item.type === 'code') { + return ( + <Col span={item.width} key={item.uuid}> + <SandBox config={item} initdata={item.data} mainSearch={[]} menuType="" /> + </Col> + ) } else { return null } -- Gitblit v1.8.0