import { ComponentDescription } from '@vtj/engine';

const components: ComponentDescription = {
  name: 'ElPageHeader',
  childIncludes: false,
  title: '页头',
  groupId: 'el',
  categoryId: 'nav',
  // icon: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_button.png',
  package: 'element-plus',
  props: [
    {
      name: 'icon',
      defaultValue: 'Back',
      setters: ['InputSetter', 'ExpressionSetter']
    },
    {
      name: 'title',
      defaultValue: 'Back',
      setters: 'InputSetter'
    },
    {
      name: 'content',
      defaultValue: '',
      setters: 'InputSetter'
    }
  ],
  events: [
    {
      name: 'back'
    }
  ],
  slots: [
    {
      name: 'icon'
    },
    {
      name: 'title'
    },
    {
      name: 'content'
    },
    {
      name: 'extra'
    },
    {
      name: 'breadcrumb'
    },
    {
      name: 'default'
    }
  ],
  snippet: {
    name: 'ElPageHeader',
    children: '页头',
    props: {
      title: '返回',
      content: '内容'
    }
  }
};

export default components;
