import snippets from './snippets';

export default {
  snippets,
  componentName: 'Timeline.Item',
  title: '时间轴项',
  category: '',
  docUrl: "",
  screenshot: "",
  devMode: "proCode",
  npm: {
    package: "@pisell/materials",
    version: "1.0.1",
    exportName: "Timeline",
    main: "src/index.tsx",
    destructuring: true,
    subName: "Item",
  },
  props: [
    {
      name: 'color',
      title: { label: '颜色', tip: '颜色' },
      propType: 'string',
      defaultValue: '#D0D5DD',
      setter: 'ColorSetter',
    },
    {
      name: 'dot',
      title: {
        label: '时间轴点',
        tip: '时间轴点',
      },
      propType: 'node',
    },
    {
      name: 'label',
      title: {
        label: '标签',
        tip: '标签',
      },
      propType: { type: 'oneOfType', value: ['string', 'node', 'func'] },
    },
    {
      name: 'position',
      title: {
        label: '位置',
        tip: '位置',
      },
      propType: { type: 'oneOf', value: ['left', 'right'] },
    },
  ],
  configure: { supports: { style: true } },
};
