import { ComponentDescription } from '@vtj/engine';
const Tag: ComponentDescription[] = [
  {
    name: 'ElTag',
    title: '标签',
    groupId: 'el',
    categoryId: 'data',
    package: 'element-plus',
    props: [
      {
        name: 'type',
        defaultValue: '',
        options: ['success', 'info', 'warning', 'danger'],
        setters: 'SelectSetter'
      },
      {
        name: 'closable',
        defaultValue: false,
        setters: 'BooleanSetter'
      },
      {
        name: 'disable-transitions',
        defaultValue: false,
        label: '渐变动画',
        setters: 'BooleanSetter'
      },
      {
        name: 'hit',
        defaultValue: false,
        setters: 'BooleanSetter'
      },
      {
        name: 'color',
        defaultValue: '',
        setters: 'InputSetter'
      },
      {
        name: 'size',
        defaultValue: 'default',
        options: ['large', 'default', 'small'],
        setters: 'SelectSetter'
      },
      {
        name: 'effect',
        defaultValue: 'light',
        options: ['dark', 'light', 'plain'],
        setters: 'SelectSetter'
      },
      {
        name: 'round',
        defaultValue: false,
        setters: 'BooleanSetter'
      }
    ],
    events: ['click', 'close']
  },
  {
    name: 'ElCheckTag',
    title: '可选中的标签',
    groupId: 'el',
    categoryId: 'data',
    package: 'element-plus',
    props: [
      {
        name: 'checked',
        defaultValue: '',
        setters: 'BooleanSetter'
      }
    ],
    events: ['change']
  }
];

export default Tag;
