import { ComponentDescription } from '@vtj/engine';
const components: ComponentDescription = {
  name: 'ElTooltip',
  childIncludes: true,
  title: '文字提示',
  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: 'appendTo',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'effect',
      defaultValue: 'dark',
      setters: 'InputSetter'
    },
    {
      name: 'content',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'rawContent',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'placement',
      defaultValue: 'bottom',
      setters: 'SelectSetter',
      options: [
        'top',
        'top-start',
        'top-end',
        'bottom',
        'bottom-start',
        'bottom-end',
        'left',
        'left-start',
        'left-end',
        'right',
        'right-start',
        'right-end'
      ]
    },
    {
      name: 'visible',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'disabled',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'offset',
      defaultValue: 0,
      setters: 'NumberSetter'
    },
    {
      name: 'transition',
      defaultValue: 'el-fade-in-linear',
      setters: 'InputSetter'
    },
    {
      name: 'visibleArrow',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'popperOptions',
      defaultValue: { boundariesElement: 'body', gpuAcceleration: false },
      setters: 'JSONSetter'
    },
    {
      name: 'showAfter',
      defaultValue: 0,
      setters: 'NumberSetter'
    },
    {
      name: 'disabled',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'offset',
      defaultValue: 0,
      setters: 'NumberSetter'
    },
    {
      name: 'offset',
      defaultValue: 0,
      setters: 'NumberSetter'
    },
    {
      name: 'confirmButtonType',
      defaultValue: 'primary',
      setters: 'SelectSetter',
      options: ['primary', 'success', 'warning', 'danger', 'info', 'text']
    },
    {
      name: 'confirmButtonType',
      defaultValue: 'text',
      setters: 'SelectSetter',
      options: ['primary', 'success', 'warning', 'danger', 'info', 'text']
    },
    {
      name: 'icon',
      defaultValue: 'QuestionFilled',
      setters: ['InputSetter', 'ExpressionSetter']
    },
    {
      name: 'iconColor',
      defaultValue: '#f90',
      setters: 'InputSetter'
    },
    {
      name: 'hide-icon',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'teleported',
      defaultValue: true,
      setters: 'BooleanSetter'
    },
    {
      name: 'persistent',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'width',
      defaultValue: '150',
      setters: 'InputSetter'
    }
  ],
  events: [
    {
      name: 'confirm'
    },
    {
      name: 'cancel'
    }
  ],
  slots: [
    {
      name: 'reference'
    }
  ],
  snippet: {
    name: 'ElTooltip',
    children: '文字提示',
    props: {
      title: '自定义弹出框的内容'
    }
  }
};

export default components;
