import { ComponentDescription } from '@vtj/engine';
const Collapse: ComponentDescription[] = [
  {
    name: 'ElCollapse',
    title: '折叠面板',
    groupId: 'el',
    categoryId: 'data',
    childIncludes: ['ElCollapseItem'],
    package: 'element-plus',
    props: [
      {
        name: 'modelValue',
        defaultValue: '',
        title:
          '当前激活的面板(如果是手风琴模式，绑定值类型需要为string，否则为array)',
        setters: ['InputSetter', 'JSONSetter']
      },
      {
        name: 'accordion',
        defaultValue: '',
        title: '是否手风琴模式',
        setters: 'BooleanSetter'
      }
    ],
    events: ['change'],
    snippet: {
      name: 'ElCollapse',
      children: [
        {
          name: 'ElCollapseItem',
          children: 'Button1'
        },
        {
          name: 'ElCollapseItem',
          children: 'Button2'
        },
        {
          name: 'ElCollapseItem',
          children: 'Button3'
        }
      ]
    }
  },
  {
    name: 'ElCollapseItem',
    title: '折叠面板子项',
    groupId: 'el',
    categoryId: 'data',
    package: 'element-plus',
    props: [
      {
        name: 'name',
        defaultValue: '',
        setters: ['InputSetter', 'NumberSetter']
      },
      {
        name: 'title',
        defaultValue: '',
        setters: 'InputSetter'
      },
      {
        name: 'disabled',
        defaultValue: '',
        setters: 'BooleanSetter'
      }
    ],
    events: ['change'],
    slots: [
      {
        name: 'default'
      },
      {
        name: 'title'
      }
    ]
  }
];

export default Collapse;
