From 7acebbc35b63758b4e69dcb5e8a7e87b00ed911f Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 2 Feb 2023 17:19:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/generate.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tools/generate.js b/src/tools/generate.js index d351158..37a7b74 100644 --- a/src/tools/generate.js +++ b/src/tools/generate.js @@ -29,7 +29,12 @@ const genList = (app, dest) => { listProps = "", searchProps = "", btns = "", tableBtns = "" if (checkJson(app.props)) { let props = JSON.parse(app.props) - listProps = JSON.stringify(props.filter(e => e.isTable)) + listProps = JSON.stringify(props.filter(e => e.isTable)?.map(e => { + delete e.isSearch + delete e.isTable + delete e.isDetail + return e + }) || null)?.replace(/"([^"]+)":/g, '$1:') props.filter(e => e.isSearch && e.dict).map(e => { searchProps += `` })