import { ComponentDescription } from '@vtj/engine';
const Progress: ComponentDescription = {
  name: 'ElProgress',
  title: '进度条',
  groupId: 'el',
  categoryId: 'data',
  childIncludes: false,
  package: 'element-plus',
  props: [
    {
      name: 'percentage',
      defaultValue: 0,
      title: '百分比，必填',
      setters: {
        name: 'NumberSetter',
        props: {
          min: 0,
          max: 100
        }
      }
    },
    {
      name: 'type',
      defaultValue: 0,
      options: ['line', 'circle', 'dashboard'],
      setters: 'SelectSetter'
    },
    {
      name: 'strokeWidth',
      defaultValue: 6,
      setters: 'NumberSetter'
    },
    {
      name: 'textInside',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'status',
      defaultValue: '',
      options: ['success', 'exception', 'warning'],
      setters: 'SelectSetter'
    },
    {
      name: 'indeterminate',
      defaultValue: false,
      setters: 'BooleanSetter'
    },
    {
      name: 'duration',
      defaultValue: 3,
      setters: 'NumberSetter'
    },
    {
      name: 'color',
      defaultValue: '',
      setters: ['InputSetter', 'ExpressionSetter', 'JSONSetter']
    },
    {
      name: 'width',
      defaultValue: 126,
      setters: 'NumberSetter'
    },
    {
      name: 'showText',
      defaultValue: true,
      setters: 'BooleanSetter'
    },
    {
      name: 'strokeLinecap',
      defaultValue: true,
      setters: 'BooleanSetter'
    },
    {
      name: 'format',
      defaultValue: '',
      setters: 'ExpressionSetter'
    }
  ]
};

export default Progress;
