import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types' const AddressListMeta: IPublicTypeComponentMetadata = { group: '低代码组件', componentName: 'AddressList', title: '地址列表', docUrl: '', screenshot: '', devMode: 'proCode', category: '信息展示', npm: { package: '@dckj-npm/dc-material', version: '0.1.150', exportName: 'AddressList', main: 'src\\index.tsx', destructuring: true, subName: '', }, configure: { component: { isContainer: true, nestingRule: { childWhitelist: ['NextText', 'AddressListItem'], }, }, props: [ { title: '数据源绑定', name: 'dataListBind', setter: { componentName: 'SetterFormVariable', props: { attributes: [ { label: '图文数据', value: 'dataList', children: [ { label: '姓名', value: 'name' }, { label: '电话', value: 'phone' }, { label: '地址', value: 'address' }, { label: '标签', value: 'tag' }, ], }, ], }, }, }, ], supports: { style: true, }, }, } const snippets: IPublicTypeSnippet[] = [ { title: '地址列表', screenshot: '', schema: { componentName: 'AddressList', props: {}, children: [ { componentName: 'NextText', props: { type: 'inherit', children: '我的地址是xx市xx区xxxxxx203', key: 'address', }, }, { componentName: 'NextText', props: { type: 'h5', children: '张三', key: 'name', }, }, { componentName: 'NextText', props: { type: 'h5', children: '13819025571', key: 'phone', }, }, { componentName: 'NextText', props: { type: 'h5', children: 'Home', key: 'tag', }, }, ], }, }, ] export default { ...AddressListMeta, snippets, }