import snippets from './snippets';

export default {
  snippets,
  componentName: 'Spin',
  title: '加载中',
  category: '反馈',
  docUrl: "",
  screenshot: "",
  devMode: "proCode",
  npm: {
    package: "@pisell/materials",
    version: "1.0.1",
    exportName: "Spin",
    main: "src/index.tsx",
    destructuring: true,
    subName: "",
  },
  props: [
    {
      name: 'delay',
      title: { label: '延迟显示', tip: '延迟显示加载效果的时间（防止闪烁）' },
      propType: 'number',
    },
    {
      name: 'indicator',
      title: { label: '加载指示符', tip: '加载指示符' },
      propType: 'node',
    },
    {
      name: 'fullscreen',
      title: {
        label: '全屏',
        tip: '是否全屏加载',
      },
      propType: 'bool',
      defaultValue: false,
    },
    {
      name: 'size',
      title: {
        label: '尺寸',
        tip: '组件大小',
      },
      propType: { type: 'oneOf', value: ['small', 'default', 'large'] },
      defaultValue: 'default',
    },
    {
      name: 'spinning',
      title: { label: '加载状态', tip: '是否为加载中状态' },
      propType: 'bool',
      defaultValue: true,
    },
    {
      name: 'tip',
      title: { label: '描述文案', tip: '当作为包裹元素时，可以自定义描述文案' },
      propType: 'string',
      setter: 'PisellI18nSetter',
    },
    {
      name: 'wrapperClassName',
      title: { label: '包装器的类属性', tip: '包装器的类属性' },
      propType: 'string',
    },
  ],
  configure: {
    component: { isContainer: true },
    supports: { style: true },
  },
};
