diff --git a/examples/api/form-item.ts b/examples/api/form-item.ts index b5b1c57550e40e05af509060ca6b96a98b0a47d2..91c2feaff242a379250ce98a5c0fc9f11660ef09 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: [] } ] }, diff --git a/examples/api/form.ts b/examples/api/form.ts index feecd97862af5f8b94a415882175a459dc79cd4b..29c92b10e90309a01227145948ab5788b475a0e6 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) })) } ]) },