import { ComponentDescription } from '@vtj/engine';
const components: ComponentDescription = {
  name: 'ElBacktop',
  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: 'target',
      defaultValue: '',
      setters: 'InputSetter'
    },
    {
      name: 'visibilityHeight',
      defaultValue: 200,
      setters: 'NumberSetter'
    },
    {
      name: 'right',
      defaultValue: 40,
      setters: 'NumberSetter'
    },
    {
      name: 'bottom',
      defaultValue: 40,
      setters: 'NumberSetter'
    }
  ],
  events: [
    {
      name: 'click'
    }
  ],
  snippet: {
    name: 'ElBacktop',
    children: [
      {
        name: 'div',
        style: {
          height: '100%',
          textAlign: 'center',
          lineHeight: '40px',
          color: '#1989fa'
        },
        children: 'up'
      },
    ]
  }
};

export default components;
