
import { ComponentDescription } from '@vtj/engine';
const components: ComponentDescription = {
  name: 'ElAlert',
  childIncludes: false,
  title: 'Alert 提示',
  groupId: 'el',
  categoryId: 'other',
  // icon: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_button.png',
  package: 'element-plus',
  props: [
    {
      name: 'title',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'type',
      defaultValue: 'info',
      setters: 'SelectSetter',
      options: ['success', 'warning', 'info', 'error']
    },
    {
      name: 'description',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'closable',
      defaultValue: true,
      setters: 'BooleanSetter'
    },
    {
      name: 'center',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'closeText',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'showIcon',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'effect',
      defaultValue: 'light',
      setters: 'SelectSetter',
      options: ['light', 'dark']
    },
  ],
  events: [
    {
      name: 'close'
    }
  ],
  slots: [
    {
      name: 'default'
    },
    {
      name: 'title'
    }
  ],
  snippet: {
    name: 'ElAlert',
    children: 'Alert 提示',
    props: {
      offset: 120,
    }
  }
};

export default components;
