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

const EventBookingServiceListMeta: IPublicTypeComponentMetadata = {
  componentName: 'EventBookingServiceList',
  title: '预约服务列表',
  category: '数据展示',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.4',
    exportName: 'EventBookingServiceList',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        name: 'showSearch',
        title: { label: '显示搜索框', tip: 'showSearch | 显示搜索框' },
        setter: 'BoolSetter',
      },
      {
        name: 'showCategory',
        title: { label: '显示锚点导航', tip: 'showCategory | 显示锚点导航' },
        setter: 'BoolSetter',
      },
      {
        name: 'showImage',
        title: { label: '显示商品图片', tip: 'showImage | 显示商品图片' },
        setter: 'BoolSetter',
      },
      {
        name: 'showPrice',
        title: { label: '显示价格', tip: 'showPrice | 显示价格' },
        setter: 'BoolSetter',
      },
      {
        name: 'showTitle',
        title: { label: '显示商品名称', tip: 'showTitle | 显示商品名称' },
        setter: 'BoolSetter',
      }
    ],
    supports: {
      style: true,
      events: [
      ],
    },
    component: {
      isContainer: true,
    },
  },
};

const snippets: IPublicTypeSnippet[] = [
  {
    title: '预约服务列表',
    screenshot: '',
    schema: {
      componentName: 'EventBookingServiceList',
      props: {
        showSearch: false,
        showCategory: true,
        showImage: true,
        showPrice: true,
        showTitle: true,
      },
    },
  },
];

export default {
  ...EventBookingServiceListMeta,
  snippets,
};