From a8815bb4d3a6f2a287129253b947323bfa1ec016 Mon Sep 17 00:00:00 2001 From: majinju Date: Thu, 14 Oct 2021 09:53:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?items=E6=96=B0=E5=A2=9Eslots=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=A0=B7=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=AD=E6=9C=89=EF=BC=8C=E4=BD=86=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E7=9C=8B=E5=88=B0=EF=BC=8C=E5=BD=93=E6=97=B6?= =?UTF-8?q?=E8=BE=83=E5=9B=B0=E6=83=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/api/form.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/api/form.ts b/examples/api/form.ts index feecd9786..29c92b10e 100644 --- a/examples/api/form.ts +++ b/examples/api/form.ts @@ -3,6 +3,7 @@ import itemAPI from './form-item' // import gatherAPI from './form-gather' const itemProps: any = itemAPI.find(item => item.name === 'Props') +const itemSlots: any = itemAPI.find(item => item.name === 'Slots') // const gatherProps: any = gatherAPI.find(item => item.name === 'Props') const apis = [ @@ -147,6 +148,15 @@ const apis = [ enum: '', defVal: '', list: [] + }, + { + name: 'slots', + desc: '项集合', + version: '', + type: 'any[]', + enum: '', + defVal: '', + list: XEUtils.mapTree(itemSlots.list, (item: any) => Object.assign({}, item, { name: XEUtils.camelCase(item.name) })) } ]) }, -- Gitee From a3c57a0fba295c2badb7050a60d06d677e43a033 Mon Sep 17 00:00:00 2001 From: majinju Date: Thu, 14 Oct 2021 10:52:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?items=E7=9A=84title=E6=8F=92=E6=A7=BD?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E4=B8=AD=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/api/form-item.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/api/form-item.ts b/examples/api/form-item.ts index b5b1c5755..91c2feaff 100644 --- a/examples/api/form-item.ts +++ b/examples/api/form-item.ts @@ -310,6 +310,15 @@ const apis = [ enum: '', defVal: '{ data, property }', list: [] + }, + { + name: 'title', + desc: '自定义标题', + version: '', + type: '', + enum: '', + defVal: '{ data, property }', + list: [] } ] }, -- Gitee