/* eslint-disable-next-line @typescript-eslint/no-unused-vars */ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const ImageMeta: IPublicTypeComponentMetadata = { componentName: 'Image', title: 'Image', docUrl: '', group: '原子组件', category: '卡片类', screenshot: '', devMode: 'proCode', npm: { package: 'yl-ssa-lowcode-antd-comps', version: '0.1.63', exportName: 'Image', main: 'src\\index.tsx', destructuring: true, subName: '', }, props: [ { name: 'src', title: { label: '图片地址', tip: '图片地址' }, propType: { type: 'string', isRequired: true }, }, { name: 'alt', title: { label: '替换文本', tip: '替换文本' }, propType: 'string', }, { name: 'preview', title: { label: '支持预览', tip: '支持预览' }, defaultValue: true, propType: 'bool', }, { name: 'fallback', title: { label: '失败地址', tip: '加载失败容错地址' }, propType: 'string', }, { name: 'width', title: { label: '宽度', tip: '宽度' }, propType: 'number', }, { name: 'height', title: { label: '高度', tip: '高度' }, propType: 'number', }, ], configure: { supports: { style: true, events: [ { name: 'onClick', }, ], }, }, }; const snippets: IPublicTypeSnippet[] = [ { title: '图片', screenshot: require('./__screenshots__/image.png'), schema: { componentName: 'Image', props: { src: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png', height: 120, width: 120, }, }, }, ]; export default { ...ImageMeta, snippets, };