import { ComponentDescription } from '@vtj/engine';
const Carousel: ComponentDescription[] = [
  {
    name: 'ElCarousel',
    title: '走马灯',
    groupId: 'el',
    categoryId: 'data',
    childIncludes: ['ElCarouselItem'],
    package: 'element-plus',
    props: [
      {
        name: 'height',
        defaultValue: '',
        setters: 'InputSetter'
      },
      {
        name: 'initialIndex',
        defaultValue: 0,
        setters: 'NumberSetter'
      },
      {
        name: 'trigger',
        defaultValue: 'hover',
        options: ['hover', 'click'],
        setters: 'SelectSetter'
      },
      {
        name: 'autoplay',
        defaultValue: true,
        setters: 'BooleanSetter'
      },
      {
        name: 'interval',
        defaultValue: 3000,
        setters: 'NumberSetter'
      },
      {
        name: 'indicatorPosition',
        defaultValue: '',
        options: ['outside', 'none'],
        setters: 'InputSetter'
      },
      {
        name: 'arrow',
        defaultValue: 'hover',
        options: ['always', 'hover', 'never'],
        setters: 'SelectSetter'
      },
      {
        name: 'type',
        defaultValue: '',
        options: ['card'],
        setters: 'InputSetter'
      },
      {
        name: 'loop',
        defaultValue: true,
        setters: 'BooleanSetter'
      },
      {
        name: 'direction',
        defaultValue: 'horizontal',
        options: ['horizontal', 'vertical'],
        setters: 'SelectSetter'
      },
      {
        name: 'pauseOnHover',
        defaultValue: true,
        setters: 'BooleanSetter'
      }
    ],
    events: ['change']
  },
  {
    name: 'ElCarouselItem',
    title: '走马灯子项',
    groupId: 'el',
    categoryId: 'data',
    childIncludes: false,
    package: 'element-plus',
    props: [
      {
        name: 'name',
        defaultValue: '',
        setters: 'InputSetter'
      },
      {
        name: 'label',
        defaultValue: 0,
        setters: 'InputSetter'
      }
    ],
    events: ['change']
  }
];

export default Carousel;
