import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'

const TagCMeta: IPublicTypeComponentMetadata = {
  group: '低代码组件',
  componentName: 'TagC',
  title: 'TagC',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  category: '布局容器类',
  npm: {
    package: '@dckj-npm/dc-material',
    version: '0.1.8',
    exportName: 'TagC',
    main: 'src\\index.tsx',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'name',
            'zh-CN': '标签名称',
          },
          tip: 'name | 标签名称',
        },
        name: 'name',
        description: '标签名称',
        setter: {
          componentName: 'StringSetter',
          isRequired: true,
          initialValue: '',
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'color',
            'zh-CN': '标签颜色',
          },
          tip: 'color | 标签颜色',
        },
        name: 'color',
        description: '标签颜色',
        setter: {
          componentName: 'StringSetter',
          isRequired: true,
          initialValue: '',
        },
      },
    ],
    supports: {
      style: true,
    },
    component: {
      disableBehaviors: ['copy'],
    },
  },
}
const snippets: IPublicTypeSnippet[] = [
  {
    title: 'TagC',
    screenshot: '',
    schema: {
      componentName: 'TagC',
      props: {},
    },
  },
]

export default {
  ...TagCMeta,
  snippets,
}
