/* eslint-disable-next-line @typescript-eslint/no-unused-vars */ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const svgIconMeta: IPublicTypeComponentMetadata = { componentName: 'svgIcon', title: 'svgIcon', docUrl: '', group: '原子组件', category: '按钮类', screenshot: '', devMode: 'proCode', npm: { package: 'yl-ssa-lowcode-antd-comps', version: '0.1.63', exportName: 'svgIcon', main: 'src\\index.tsx', destructuring: true, subName: '', }, configure: { props: [ { title: { label: { type: 'i18n', 'en-US': 'svgContent', 'zh-CN': 'svgContent', }, }, name: 'svgContent', setter: { componentName: 'StringSetter', isRequired: true, initialValue: '', }, }, { name: 'rotate', title: { label: '旋转角度', tip: '图标旋转角度', }, setter: 'NumberSetter', defaultValue: 0, }, { name: 'color', description: '颜色', setter: 'ColorSetter', }, { name: 'backgroundColor', description: '颜色', setter: 'ColorSetter', }, ], supports: { style: true, events: [ { name: 'onClick', }, ], }, component: {}, }, }; const snippets: IPublicTypeSnippet[] = [ { title: 'svg', screenshot: require('./__screenshots__/svg.png'), schema: { componentName: 'svgIcon', props: { svgContent: ` heart icon `, }, }, }, ]; export default { ...svgIconMeta, snippets, };