import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const YCBoxMeta: IPublicTypeComponentMetadata = { componentName: 'YCBox', title: 'YCBox', docUrl: '', screenshot: '', devMode: 'proCode', priority: 0, npm: { package: 'yc-material', version: '0.1.0', exportName: 'YCBox', main: 'src/index.tsx', destructuring: true, subName: '', }, configure: { props: [ { title: { label: { type: 'i18n', 'en-US': 'children', 'zh-CN': '内容', }, tip: 'children | 内容', }, name: 'children', description: '内容', setter: { componentName: 'SlotSetter', props: { mode: 'node', }, isRequired: true, initialValue: { type: 'JSSlot', value: [], }, }, }, { title: { label: { type: 'i18n', 'en-US': 'style', 'zh-CN': 'style', }, }, name: 'style', setter: { componentName: 'ObjectSetter', props: { config: { extraSetter: { componentName: 'MixedSetter', isRequired: false, props: {}, }, }, }, isRequired: true, initialValue: {}, }, }, { title: { label: { type: 'i18n', 'en-US': 'className', 'zh-CN': 'className', }, }, name: 'className', setter: { componentName: 'StringSetter', isRequired: true, initialValue: '', }, }, ], supports: { style: true }, component: { isContainer: true, }, }, }; const snippets: IPublicTypeSnippet[] = [ { title: '盒子', screenshot: '', schema: { componentName: 'YCBox', props: {}, }, }, ]; export default { ...YCBoxMeta, snippets, };