import { ComponentDescription } from '@vtj/engine';
const components: ComponentDescription = {
  name: 'ElAffix',
  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: 'offset',
      defaultValue: 0,
      setters: 'NumberSetter'
    },
    {
      name: 'position',
      defaultValue: 'top',
      setters: 'SelectSetter',
      options: ['top', 'bottom']
    },
    {
      name: 'target',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'z-index',
      defaultValue: 100,
      setters: 'NumberSetter'
    }
  ],
  events: [
    {
      name: 'change'
    },
    {
      name: 'scroll'
    }
  ],
  snippet: {
    name: 'ElAffix',
    children: '固钉',
    props: {
      offset: 120,
    }
  }
};

export default components;
